:root {
  --leuchtrot: rgb(227, 6, 19);
  --hellrot: rgb(227 6 19 / 5%);
  --laosblau: rgb(22, 65, 148);
  --hellblau: rgb(22 65 148 / 15%);
  --chili: rgb(196, 26, 29);
  --dunkle-chili: rgb(179, 34, 38);
  --schwarz: rgb(0, 0, 0);
  --dunkelgrau: rgb(0 0 0 / 60%);
  --grau: rgb(0 0 0 / 45%);
  --weiss: rgb(255, 255, 255);

  --font: "Merriweather Sans", sans-serif;
  --radius: 12px;
  --abstand: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2 Anfang */
body {
  font-family: var(--font);
  color: var(--schwarz);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* 2 Ende */

main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--abstand) 24px;
  /* 5 Anfang */
  background: url("../media/laos.webp") center top / cover no-repeat;
  /* 5 Ende */
}

a {
  color: var(--leuchtrot);
  text-decoration: none;
  font-style: italic;
}

a:hover {
  text-decoration: underline;
}

header {
  padding: 14px var(--abstand);
  display: flex;
  align-items: center;
  gap: var(--abstand);
}

header h1 {
  flex: 1;
  text-align: center;
}

header p {
  font-size: 0.85rem;
  color: rgb(0 0 0 / 10%);
}

.logo {
  height: 48px;
  margin-top: 12px;
  margin-left: 16px;
  display: block;
}

/* Planer-Bereich */
.planer-bereich {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planer-bereich h1 {
  text-align: center;
  color: var(--schwarz);
}
.planer-karte {
  width: 100%;
  max-width: 480px;
  background: var(--weiss);
  border-radius: 20px;
  padding: 28px var(--abstand);
  /* Doppelter Schatten für mehr Tiefe */
  box-shadow:
    0 4px 6px rgb(0 0 0 / 5%),
    0 12px 40px rgb(0 0 0 / 20%);
}

/* Fortschrittsanzeige */
/* 22 Anfang */
.fortschritt-punkte {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.planer-schritt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(0 0 0 / 15%);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s;
}

.planer-schritt-jetzt {
  background: var(--leuchtrot);
}

.planer-schritt-fertig {
  background: rgb(227 6 19 / 15%);
}

.fortschritt-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 12px;
}

.fortschritt-labels span {
  width: 32px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--grau);
}

.fortschritt-balken {
  height: 4px;
  background: var(--hellblau);
  border-radius: 2px;
  margin-bottom: 28px;
}

.fortschritt-fuellung {
  height: 100%;
  background: var(--dunkle-chili);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
/* 22 Ende */

/* Inhalt des Formulars */
h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--schwarz);
}

.formular-feldgruppe {
  margin-bottom: 20px;
}

fieldset.formular-feldgruppe {
  border: 0;
}

.formular-feldgruppe label,
.formular-feldgruppe > span,
.formular-feldgruppe legend {
  display: block;
  font-size: 0.82rem;
  color: var(--grau);
  margin-bottom: 6px;
  padding: 0;
}

/* Einheitliches Styling für alle Texteingabe-Felder */
.formular-feldgruppe input[type="text"],
.formular-feldgruppe input[type="number"],
.formular-feldgruppe input[type="email"],
.formular-feldgruppe input[type="tel"],
.formular-feldgruppe input[type="date"],
.formular-feldgruppe input[type="time"],
.formular-feldgruppe textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hellblau);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--schwarz);
  background: var(--weiss);
  outline: none;
  transition: border-color 0.2s;
}

.formular-feldgruppe input:focus,
.formular-feldgruppe textarea:focus {
  border-color: rgb(22 65 148 / 45%);
}
.formular-feldgruppe textarea {
  min-height: 100px;
  resize: vertical;
}

/* Radio-/Checkbox-Gruppen */
.anlass-auswahlgruppe,
.menue-auswahlgruppe {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anlass-auswahlgruppe label,
.menue-auswahlgruppe label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--schwarz);
  cursor: pointer;
  margin-bottom: 0;
}

.anlass-auswahlgruppe input,
.menue-auswahlgruppe input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Slider */
/* 1 Anfang */
#schaerfe-grad {
  width: 100%;
  cursor: pointer;

  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--hellblau);
  outline: none;
  border-radius: 3px;
  margin: 8px 0;
}

/* Slider-Thumb */
#schaerfe-grad::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: url("../media/chilli.png") center top/contain no-repeat;
  cursor: pointer;
}
/* 1 Ende */

.schaerfe-skala-beschriftung {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--grau);
  margin-top: 4px;
}

#schaerfe-grad-anzeige {
  font-weight: 700;
}

/* Zurück und Weiter Buttons */
.formular-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.button {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.85;
}

.weiter {
  background: var(--laosblau);
  color: var(--weiss);
  margin-left: auto;
  font-style: normal;
}

.zurueck {
  background: transparent;
  color: var(--laosblau);
  padding-left: 0;
}

/*  Schrittbereiche */
.formular-schrittbereich {
  display: none;
}

.formular-schrittbereich-jetzt {
  display: block;
}

/* Bestätigungsseite */
.bestaetigung-bereich {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.bestaetigung-bereich p {
  color: var(--grau);
}
/* Intro-Seite */
.intro-bereich {
  text-align: center;
  padding: 32px 0;
}
.intro-bereich p {
  color: var(--grau);
  margin-bottom: 16px;
}

/* Footer */
footer {
  background: var(--laosblau);
  backdrop-filter: blur(6px);
  padding: var(--abstand);
  text-align: center;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 85%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

footer a {
  color: rgb(255 255 255 / 70%);
}

/* Fehler Meldungen */

.formular-feldgruppe input.error,
.formular-feldgruppe textarea.error {
  border-color: var(--leuchtrot);
  background: var(--hellrot);
}

.anlass-auswahlgruppe.error,
.menue-auswahlgruppe.error {
  border: 1px solid var(--leuchtrot);
  background: var(--hellrot);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.feld-fehlerhinweis {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--leuchtrot);
}

.feld-fehlerhinweis:empty {
  display: none;
}

/* Hinweise für den User */

.format-hinweis {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--dunkelgrau);
}

.pflichtstern {
  color: var(--leuchtrot);
  margin-left: 2px;
}

.pflichtfeld-hinweis {
  font-size: 0.8rem;
  color: var(--dunkelgrau);
  margin-bottom: 16px;
}

/* Bestätigung */

.bestaetigung-bereich.ist-sichtbar {
  display: block;
}

.bestaetigung-bereich p {
  text-align: left;
  margin-bottom: 16px;
}

.bestaetigung-zurueck {
  display: inline-block;
  margin-left: 0;
  margin-top: 8px;
  color: var(--weiss);
}

.bestaetigung-zurueck:hover {
  text-decoration: none;
}

/* Responsive */
/* 4 Anfang */
@media (min-width: 640px) {
  main {
    padding: 40px var(--abstand);
  }

  .logo {
    height: 70px;
    margin-top: 40px;
    margin-left: 40px;
  }

  .planer-karte {
    padding: 36px 32px;
  }

  .anlass-auswahlgruppe,
  .menue-auswahlgruppe {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
  }
}
/* 4 Ende */
