/* CSS Reset und Grundkonfiguration */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS-Variablen für ein konsistentes Farbschema und Schriftarten */
:root {
  --primary-color: #ceaf58;
  --secondary-color: #e7c76e;
  --background-gradient: linear-gradient(135deg, #f9f8f6, #f9f8f6);
  --font-family: 'Outfit', sans-serif;
  --text-color: #1f1d1b;
  --border-radius: 10px;
}

/* Import der Outfit-Schriftart */
@import url('https://www.postyou.de/files/theme/font/outfit/complete/outfit-complete.css');

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background: var(--background-gradient);
  color: var(--text-color);
  padding: 20px;
  font-size: 20px;
  font-weight: 300;
  min-height: 100vh;
}
@media (max-width: 840px) {
  body {
    font-size: 16px;
  }
  .answer-container.three-items {
    display: block;
  }
  .answer-container.three-items * {
    width: 100%;
  }
}
strong {font-weight: 500;}
a {
  color: var(--primary-color);
}
.copyright {
  text-align: center;
  margin: 2em 0em;
  font-size: 0.8em;
}

/* Formular-Container mittig ausrichten */
form {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Überschriften */
h1 {
  text-align: center;
  margin-bottom: 1em;
  font-size: 2.5em;
  font-weight: 600;

}

h2 {
  margin-bottom: 1em;
  font-size: 1.75em;
  font-weight: 500;

}
h3 {
  margin-bottom: 1em;
  font-size: 1.75em;
  font-weight: 500;

}

p {
  margin-bottom: 15px;
}
p + h3,
p + h2 {
  margin-top: 2em;
}

/* Schritte ein- und ausblenden */
.step {
  display: none;
}

.step.active {
  display: block;
}

/* Button-Styling für Navigation */
.nav-container {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}
button {
  background-color: var(--text-color);
  color: #fff;
  border: none;
  padding: 0.8em 2em;
  border-radius: 100px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0em 0.5em;
  font-weight: 300;
  font-family: var(--font-family);
}
button.forward{
  padding-right: 1.75em;
}
button.back{
  padding-left: 1.75em;
}

button:hover {
  background-color: var(--primary-color);

}
/* Formulare */
.input-container + .input-container {
  margin-top: 1em;
}
input[type="text"] {
  padding: 0.5em 1em;
  font-size: 1em;
  font-family: var(--font-family);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  margin-bottom: 0.5em;
}
label[for="unternehmensname"] {
  margin-right: 0.5em;
  display: none;
}
/* Standard Checkbox verstecken und eigene Gestaltung nutzen */
input[type="checkbox"] {
  /* Entfernt das native Styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Grundformatierung */
  width: 20px;
  height: 20px;
  border: 1px solid var(--primary-color);
  border-radius: 4px; /* optional: für abgerundete Ecken */
  background-color: #fff;
  cursor: pointer;
  position: relative;
  top: 2px;
  margin-right: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Styling, wenn die Checkbox gecheckt ist */
input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  box-shadow: none;
}

/* Ein Häkchen anzeigen, wenn die Checkbox aktiviert ist */
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Optional: Fokus-Styling, um die Zugänglichkeit zu verbessern */
:focus,
input[type="radio"]:focus + label  {
  outline: 2px solid  var(--primary-color);
}

/* Custom Radio-Button Styling für "Ja" und "Nein" */
.answer-container {
  display: flex;
  justify-content: center;
  margin: 2em 0em;
}
input[type="radio"] {
  opacity: 0;
}

input[type="radio"] + label {
  display: inline-block;
  padding: 2em 1em;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  margin: 5px 10px 5px 0;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  flex: 1;
  text-align: center;
  font-weight: 500;
}


input[type="radio"] + label:hover {
  background-color: var(--primary-color);
  color: #fff;
}

input[type="radio"]:checked + label {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Listen-Style */
ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

/* Kleiner Text */
.small {
  font-size: 0.8em;
  display: block;
  margin-top: 8px;
  color: #777;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
  form {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
