/*
 * Gestaltung beider Formulare (Anfrage und Gutschein).
 *
 * Uebernommen aus Mikes Entwurf "kids-on-ski-gutschein (3).html".
 * Alles ist unter .kos-block gekapselt, damit nichts ins Theme ausblutet.
 * Die Schriften liegen lokal im Plugin, nicht auf kids-on-ski.com.
 */

@font-face {
  font-family: 'KOS Karla';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(../schriften/karla-regular.ttf) format('truetype');
}

@font-face {
  font-family: 'KOS Karla';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(../schriften/karla-bold.ttf) format('truetype');
}

@font-face {
  font-family: 'KOS Rufing';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(../schriften/rufing-bold.ttf) format('truetype');
}

.kos-block {
  /* CI KIDS ON SKI */
  --kos-primary: #109CE0;
  --kos-primary-dark: #0B7CB4;
  --kos-primary-deep: #075E89;
  --kos-primary-light: #7ACBEF;
  --kos-primary-ultra: #E7F5FD;
  --kos-action: #FFBF00;
  --kos-secondary: #E52122;
  --kos-base: #080708;
  --kos-text: #1C2B33;
  --kos-grau: #5E7480;
  --kos-linie: #CDE6F5;
  --kos-weiss: #fff;
  --kos-font-body: 'KOS Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kos-font-display: 'KOS Rufing', 'KOS Karla', system-ui, sans-serif;
  --kos-r: 1em;

  --kos-eingabemass: 980px;

  font-family: var(--kos-font-body);
  letter-spacing: normal;
  color: var(--kos-text);
  font-size: 19px;
  line-height: 1.6;
  max-width: none;
  margin: 0;
  padding: 0 0 72px;
  box-sizing: border-box;
}

.kos-block *,
.kos-block *::before,
.kos-block *::after { box-sizing: border-box; }

.kos-block p,
.kos-block ul,
.kos-block li,
.kos-block fieldset,
.kos-block legend { margin: 0; padding: 0; }

.kos-block ul { list-style: none; }

/* ---------- Schriften ---------- */
.kos-block .kopf-titel,
.kos-block .kachel-titel,
.kos-block .kachel-sub,
.kos-block .bubble,
.kos-block .l-txt strong,
.kos-block .abschnitt-titel,
.kos-block legend,
.kos-block .g-titel,
.kos-block .kind-nr {
  font-family: var(--kos-font-display);
  font-weight: 700;
  letter-spacing: -.03em;
}

.kos-block .kachel-sub { letter-spacing: .14em; }
.kos-block input,
.kos-block select,
.kos-block label,
.kos-block .fehlertext { letter-spacing: normal; }

/* ---------- Karte ----------
   Das Formular steht offen auf der Seite. Ein zweiter Kasten mit eigenem
   Kopf würde nur die Seitenüberschrift wiederholen. Nur der Dankeschritt
   behält seine Karte — dort ist der Abschluss der eigentliche Inhalt. */
.kos-block .karte { background: none; }

.kos-block .karte.gerahmt {
  background: var(--kos-weiss);
  border-radius: var(--kos-r);
  box-shadow: 0 2px 4px rgba(7, 94, 137, .06), 0 14px 40px rgba(7, 94, 137, .12);
  overflow: hidden;
}

.kos-block .kopf {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(160px, 24vw, 200px);
  background: linear-gradient(160deg, #3FB6EE 0%, var(--kos-primary) 55%, var(--kos-primary-dark) 100%);
  color: var(--kos-weiss);
  padding: 22px 30px 46px;
}

.kos-block .kopf-text {
  position: relative;
  z-index: 1;
  padding-right: clamp(104px, 24vw, 190px);
}

.kos-block .kopf-titel {
  font-size: clamp(30px, 6.2vw, 50px);
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}

.kos-block .maskottchen {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: 6px;
  width: clamp(116px, 23vw, 196px);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(7, 94, 137, .3));
}

.kos-block .schnee {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 26px;
  display: block;
}

.kos-block .inhalt { padding: 0; }
.kos-block .karte.gerahmt .inhalt { padding: 30px 34px 34px; }

/* ---------- Fortschritt ---------- */
.kos-block .fortschritt {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(8, 7, 8, .12);
  margin-bottom: 26px;
}

.kos-block .fortschritt span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--kos-primary);
  transition: width .35s ease;
}

/* ---------- Leistungsblock ---------- */
.kos-block .kachel {
  background: var(--kos-primary-ultra);
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  padding: 24px;
  margin-bottom: 24px;
}

.kos-block .kachel-titel {
  font-size: 26px;
  line-height: 1.2;
  color: var(--kos-primary-dark);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.kos-block .kachel-sub {
  font-size: 17px;
  font-weight: 700;
  color: var(--kos-grau);
  margin-bottom: 18px;
}

.kos-block .leistungen { display: grid; gap: 14px; }
.kos-block .leistungen li { display: flex; gap: 14px; align-items: flex-start; }

.kos-block .bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background: var(--kos-primary);
  color: var(--kos-weiss);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.kos-block .l-txt strong {
  display: block;
  font-size: 20px;
  color: var(--kos-primary-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.kos-block .l-txt span {
  display: block;
  font-size: 17px;
  color: var(--kos-grau);
  font-weight: 400;
}

/* ---------- Knöpfe ---------- */
.kos-block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  padding: .7em 1.4em;
  min-width: 14rem;
  border: none;
  border-radius: var(--kos-r);
  background: var(--kos-primary);
  color: var(--kos-weiss);
  cursor: pointer;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}

/*
 * Pfeil an jedem Knopf, wie im Theme. Der Knopf ist inline-flex mit gap,
 * also wird das ::after ein eigenes Flex-Element mit richtigem Abstand.
 * Zwei Ausnahmen, bei denen ein Rechtspfeil in die Irre fuehrt: „Zurueck"
 * zeigt nach links, „Herunterladen" nach unten.
 */
.kos-block .btn::after { content: "→"; }
.kos-block .btn.sek::after { content: none; }
.kos-block .btn.sek::before { content: "←"; }
.kos-block .btn.herunter::after { content: "↓"; }

.kos-block .btn:hover { background: var(--kos-primary-dark); color: var(--kos-weiss); }
.kos-block .btn:active { background: var(--kos-primary-deep); }
.kos-block .btn:focus-visible { outline: 3px solid var(--kos-primary-deep); outline-offset: 3px; }
.kos-block .btn[disabled] { opacity: .55; cursor: progress; }

.kos-block .btn.gross {
  width: 100%;
  font-size: 20px;
  padding: 1em 1.4em;
  text-transform: uppercase;
}

.kos-block .btn.sek {
  background: transparent;
  color: var(--kos-primary);
  box-shadow: inset 0 0 0 2px var(--kos-primary);
}

.kos-block .btn.sek:hover { background: var(--kos-primary); color: var(--kos-weiss); }

.kos-block .btn-reihe {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- Formular ---------- */
.kos-block .hinweis {
  background: var(--kos-primary-ultra);
  border-left: 4px solid var(--kos-primary);
  padding: 14px 16px;
  border-radius: 0 var(--kos-r) var(--kos-r) 0;
  font-size: 17px;
  margin-bottom: 24px;
}

.kos-block .hinweis.warnung {
  background: #FFF7E0;
  border-left-color: var(--kos-action);
}

.kos-block .abschnitt-titel {
  font-size: 30px;
  font-weight: 700;
  color: var(--kos-primary-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.15;
}

.kos-block .abschnitt-sub {
  font-size: 20px;
  color: var(--kos-grau);
  margin-bottom: 34px;
}

.kos-block fieldset { border: none; margin-bottom: 40px; }

.kos-block legend {
  font-size: 24px;
  font-weight: 700;
  color: var(--kos-primary-dark);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kos-linie);
  width: 100%;
}

.kos-block legend .opt {
  font-size: 16px;
  font-weight: 700;
  color: var(--kos-grau);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
}

.kos-block .raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
  max-width: var(--kos-eingabemass);
}

.kos-block .feld { display: flex; flex-direction: column; gap: 9px; }
.kos-block .feld.voll { grid-column: 1 / -1; }
/*
 * „klein" meint das EINGABEFELD, nicht den ganzen Block. Vorher lag die
 * Deckelung auf dem Block — dadurch brach die Beschriftung „Gesamtanzahl der
 * Personen" um und der Hinweis darunter lief als schmale Saeule herunter.
 */
.kos-block .feld.klein { grid-column: 1 / -1; }
.kos-block .feld.klein input { max-width: 160px; }

.kos-block label { font-size: 19px; font-weight: 600; color: var(--kos-base); }
.kos-block label .stern { color: var(--kos-secondary); margin-left: 2px; }

.kos-block input,
.kos-block select {
  font-family: inherit;
  font-size: 19px;
  font-weight: 400;
  color: var(--kos-text);
  padding: .7em 1em;
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  background: var(--kos-weiss);
  width: 100%;
}

.kos-block input:focus,
.kos-block select:focus {
  outline: none;
  border-color: var(--kos-primary);
  box-shadow: 0 0 0 4px rgba(16, 156, 224, .16);
}

.kos-block input.fehler,
.kos-block select.fehler {
  border-color: var(--kos-secondary);
  background: #FDF2F2;
}

.kos-block .fehlertext {
  font-size: 15px;
  font-weight: 700;
  color: var(--kos-secondary);
  display: none;
}

.kos-block .fehlertext.an { display: block; }

/* ---------- Kinderblöcke ---------- */
.kos-block .kind-block {
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  padding: 15px 16px;
  margin-bottom: 12px;
  background: #F7FCFF;
}

.kos-block .kind-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.kos-block .kind-nr {
  font-weight: 700;
  color: var(--kos-primary-dark);
  font-size: 23px;
  text-transform: uppercase;
}

.kos-block .entfernen {
  background: none;
  border: none;
  color: var(--kos-grau);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.kos-block .entfernen:hover { color: var(--kos-secondary); }

.kos-block .add {
  background: none;
  border: 2px dashed var(--kos-linie);
  color: var(--kos-primary-dark);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--kos-r);
  cursor: pointer;
  width: 100%;
}

.kos-block .add:hover {
  background: var(--kos-primary-ultra);
  border-color: var(--kos-primary-light);
}

.kos-block .kind-block.neben { background: #FAFCFD; border-style: dashed; }

.kos-block .feld-hinweis {
  font-size: 19px;
  color: var(--kos-grau);
  margin: -8px 0 18px;
}

.kos-block .leer-hinweis {
  font-size: 19px;
  color: var(--kos-grau);
  background: #FAFCFD;
  border: 2px dashed var(--kos-linie);
  border-radius: var(--kos-r);
  padding: 14px 16px;
  margin-bottom: 12px;
}

/* ---------- Datenschutz ---------- */
.kos-block .datenschutz {
  background: var(--kos-primary-ultra);
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  padding: 16px 18px;
  font-size: 17px;
  color: #22505F;
}

.kos-block .datenschutz h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--kos-primary-dark);
  margin: 0 0 6px;
  text-transform: uppercase;
}

/* ---------- Kacheln zur Auswahl (Hotel, Termin, Kinderzahl) ---------- */
.kos-block .kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.kos-block .kacheln.schmal {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

/* Termine stehen in zwei Spalten: die Beschriftungen sind lang, fuenf schmale
   Kacheln nebeneinander brechen sonst auf drei Zeilen um. */
.kos-block .kacheln--termine {
  grid-template-columns: repeat(2, 1fr);
}

.kos-block .kachel-wahl { position: relative; }

.kos-block .kachel-wahl input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.kos-block .kachel-wahl > span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 74px;
  height: 100%;
  padding: 18px 22px;
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  background: var(--kos-weiss);
  font-size: 18px;
  font-weight: 700;
  color: var(--kos-text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.kos-block .kachel-wahl input:checked + span {
  border-color: var(--kos-primary);
  background: var(--kos-primary-ultra);
  color: var(--kos-primary-dark);
}

.kos-block .kachel-wahl input:focus-visible + span {
  outline: 3px solid var(--kos-primary-deep);
  outline-offset: 2px;
}

.kos-block .kachel-wahl.gross > span { font-size: 30px; min-height: 92px; }

/* ---------- Meldungen ---------- */
.kos-block .meldung {
  border-radius: var(--kos-r);
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  display: none;
}

.kos-block .meldung.an { display: block; }
.kos-block .meldung.schlecht { background: #FDF2F2; color: var(--kos-secondary); border: 2px solid #F5C6C6; }

.kos-block .gross-nummer {
  font-family: var(--kos-font-display);
  font-size: 28px;
  color: var(--kos-primary-dark);
  letter-spacing: -.02em;
}

.kos-block .versteckt { display: none !important; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 640px) {
  .kos-block { padding: 0 0 48px; font-size: 18px; }
  .kos-block .inhalt { padding: 0; }
  .kos-block .karte.gerahmt .inhalt { padding: 22px 18px 26px; }
  .kos-block .kopf { padding: 22px 18px 44px; }
  .kos-block .kachel { padding: 20px 16px 18px; }
  .kos-block .raster { grid-template-columns: 1fr; }
  .kos-block .kacheln--termine { grid-template-columns: 1fr; }
  .kos-block .btn.gross { font-size: 18px; padding: 16px 20px; }
  .kos-block .bubble { width: 38px; height: 38px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .kos-block * { transition: none !important; }
}

/* ---------- Unterkünfte zur Auswahl ----------
   Aus einer Region kommend kennt man die Häuser nicht. Deshalb Bild, Art und
   Ort auf der Kachel, die Preisklasse als Zeichen auf dem Bild — und die
   Kurzinfo einen Klick entfernt.

   Alles steht in einer Spalte untereinander: „Kurzinfo" sitzt über
   „margin-top: auto" immer unten, egal wie lang der Name ist. */
.kos-block .kacheln--haeuser {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/*
 * Der Rahmen sitzt an der Kachel, nicht am Auswahlfeld: „Kurzinfo" steht
 * ausserhalb des <label> (sonst würde ein Klick darauf die Auswahl ändern)
 * und gehört trotzdem sichtbar dazu.
 */
.kos-block .haus {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--kos-weiss);
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}

.kos-block .haus:has(input:checked) {
  border-color: var(--kos-primary);
  background: var(--kos-primary-ultra);
}

.kos-block .haus:has(input:focus-visible) {
  outline: 3px solid var(--kos-primary-deep);
  outline-offset: 2px;
}

.kos-block .kachel-wahl--haus {
  flex: 1;
  display: flex;
}

.kos-block .kachel-wahl--haus > span {
  display: flex;
  flex-direction: column;
  /* Die allgemeine Kachel zentriert ihren Inhalt — hier soll er die ganze
     Breite füllen, sonst stehen Logo und Text mittig eingerückt. */
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  padding: 0;
  min-height: 0;
  text-align: left;
  overflow: hidden;
  background: none;
  border: 0;
  border-radius: 0;
}

.kos-block .haus .kachel-wahl input:checked + span { background: none; border: 0; }

.kos-block .kachel-wahl--haus .haus__rahmen {
  position: relative;
  display: block;
  height: auto;
  padding: 0;
  min-height: 0;
}

.kos-block .kachel-wahl--haus .haus__bild {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--kos-primary-ultra);
}

/*
 * Logos werden nicht beschnitten: sie sollen ganz zu sehen sein und ruhig
 * auf weissem Grund stehen — sonst vergleicht man Bildausschnitte statt
 * Häuser.
 */
.kos-block .kachel-wahl--haus .haus__bild--logo {
  height: 150px;
  padding: 22px 26px;
  object-fit: contain;
  background: var(--kos-weiss);
  border-bottom: 1px solid var(--kos-linie);
}

.kos-block .kachel-wahl--haus .haus__bild--leer {
  background: linear-gradient(160deg, var(--kos-primary-ultra) 0%, var(--kos-linie) 100%);
}

/* Preisklasse als Sprechblase auf dem Bild — nicht fett, sie ist ein Hinweis. */
.kos-block .kachel-wahl--haus .haus__preis {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  height: auto;
  min-height: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--kos-primary-dark);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .04em;
  box-shadow: 0 3px 10px rgba(7, 94, 137, .22);
}

/*
 * Alles im Textteil steht links: die allgemeine Kachelregel zentriert, was
 * bei kurzen Namen wie eine zufällige Einrückung aussieht.
 */
.kos-block .kachel-wahl--haus .haus__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: auto;
  min-height: 0;
  padding: 16px 18px 10px;
  text-align: left;
}

.kos-block .kachel-wahl--haus .haus__name {
  display: block;
  text-align: left;
  height: auto;
  min-height: 0;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--kos-text);
}

.kos-block .kachel-wahl--haus .haus__zeile {
  display: block;
  text-align: left;
  height: auto;
  min-height: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--kos-grau);
}

.kos-block .kachel-wahl--haus input:checked + span .haus__name { color: var(--kos-primary-dark); }

.kos-block .haus__info {
  align-self: flex-start;
  margin: -6px 0 0;
  padding: 10px 18px 16px;
  background: none;
  border: none;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--kos-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.kos-block .haus__info:hover { color: var(--kos-primary-deep); }

/* ---------- Schaufenster (Kurzinfo) ---------- */
.kos-block .haus-schau {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.kos-block .haus-schau[hidden] { display: none; }

.kos-block .haus-schau__hinter {
  position: absolute;
  inset: 0;
  background: rgba(7, 94, 137, .55);
  backdrop-filter: blur(2px);
}

.kos-block .haus-schau__karte {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--kos-weiss);
  border-radius: var(--kos-r);
  box-shadow: 0 2rem 5rem rgba(7, 94, 137, .35);
}

.kos-block .haus-schau__zu {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--kos-primary-deep);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.kos-block .haus-schau__zu:hover { background: var(--kos-primary-ultra); }

.kos-block .haus-schau__bild {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.kos-block .haus-schau__inhalt { padding: 24px 26px 26px; }

.kos-block .haus-schau__titel {
  margin: 0;
  font-family: var(--kos-font-display);
  font-size: 27px;
  line-height: 1.1;
  color: var(--kos-primary-dark);
  text-transform: uppercase;
}

.kos-block .haus-schau__zeile {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--kos-grau);
}

.kos-block .haus-schau__text { margin: 16px 0 0; font-size: 18px; }

.kos-block .haus-schau__merkmale {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.kos-block .haus-schau__merkmale li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
}

.kos-block .haus-schau__merkmale li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--kos-primary);
  border-bottom: 3px solid var(--kos-primary);
  transform: rotate(-45deg);
}

.kos-block .haus-schau__knoepfe {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.kos-block .haus-schau__knoepfe .btn { min-width: 0; flex: 1 1 auto; }

.kos-block .haus-schau__mehr {
  font-size: 17px;
  font-weight: 700;
  color: var(--kos-primary-dark);
}

@media (max-width: 640px) {
  .kos-block .kacheln--haeuser { grid-template-columns: 1fr; }
  .kos-block .haus-schau__bild { height: 180px; }
  .kos-block .haus-schau__inhalt { padding: 20px 18px 22px; }
}

/* ---------- Wähler mit Suche (Unterkunft) ---------- */
.kos-block .waehler { position: relative; }

.kos-block .waehler__liste {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--kos-weiss);
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  box-shadow: 0 14px 40px rgba(7, 94, 137, .18);
}

.kos-block .waehler__liste[hidden] { display: none; }

.kos-block .waehler__eintrag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: .6em;
  cursor: pointer;
}

.kos-block .waehler__eintrag:hover,
.kos-block .waehler__eintrag.ist-gewaehlt { background: var(--kos-primary-ultra); }

.kos-block .waehler__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--kos-text);
}

.kos-block .waehler__ort {
  font-size: 16px;
  color: var(--kos-grau);
}

/* ---------- Saisonpause ---------- */
.kos-block.kos-pause { padding: 0 0 40px; }

.kos-pause__karte {
  background: var(--kos-primary-ultra);
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.kos-pause__titel {
  margin: 0 0 12px;
  font-family: var(--kos-font-display);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  color: var(--kos-primary-dark);
  text-transform: uppercase;
}

.kos-pause__text {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 19px;
  color: var(--kos-text);
}

/* Der Hinweis für Angemeldete steht über dem Formular, nicht statt seiner. */
.kos-pause--intern {
  padding: 0 0 20px;
}

.kos-pause--intern p {
  margin: 0;
  padding: 12px 16px;
  background: #FFF7E0;
  border-left: 4px solid var(--kos-action);
  border-radius: 0 var(--kos-r) var(--kos-r) 0;
  font-size: 17px;
  font-weight: 700;
  color: #6B4E00;
}

/* ---------- Sponsorenformular ---------- */
.kos-kontaktform { padding: 0; }

.kos-kontakt textarea {
  font-family: inherit;
  font-size: 19px;
  color: var(--kos-text);
  padding: .7em 1em;
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  background: var(--kos-weiss);
  width: 100%;
  resize: vertical;
}

.kos-kontakt textarea:focus-visible,
.kos-block input:focus-visible { outline: 3px solid var(--kos-primary-deep); outline-offset: 2px; }

.kos-kontakt .btn.gross { width: auto; min-width: 20rem; margin-top: 26px; }

/* Für Maschinen, nicht für Menschen — deshalb ausserhalb der Sicht. */
.kos-falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kos-kontakt__danke {
  background: var(--kos-primary-ultra);
  border: 2px solid var(--kos-linie);
  border-radius: var(--kos-r);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}

.kos-kontakt__danke h3 {
  margin: 0 0 10px;
  font-family: var(--kos-font-display);
  font-size: 26px;
  color: var(--kos-primary-dark);
  text-transform: uppercase;
}

.kos-kontakt__danke p { margin: 0; font-size: 19px; }

/* ---------- Zustimmung ---------- */
.kos-block .kos-zustimmung { margin-top: 26px; }

.kos-block .kos-zustimmung__zeile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 17px;
  font-weight: 400;
  color: var(--kos-text);
  cursor: pointer;
}

.kos-block .kos-zustimmung__zeile input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--kos-primary);
  cursor: pointer;
}

.kos-block .kos-zustimmung.fehler .kos-zustimmung__zeile { color: var(--kos-secondary); }
.kos-block .kos-zustimmung .fehlertext { margin-top: 6px; }

/* ---------------------------------------------------------------
   Nachtrag 12.8.2026 — Ticket KUNDEN-202476.
   --------------------------------------------------------------- */

/* Datum: getippt oder aus dem Kalender. Das Textfeld traegt die Eingabe,
   der native Waehler liegt unsichtbar darunter und wird ueber den Knopf
   geoeffnet. */
.kos-block .datum-zeile { position: relative; display: block; }

.kos-block .datum-zeile input[type="text"] { width: 100%; padding-right: 42px; }

.kos-block .datum-waehler {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.kos-block .datum-knopf {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--kos-primary);
  cursor: pointer;
}

.kos-block .datum-knopf:hover { background: rgba(16, 156, 224, .1); }
.kos-block .datum-knopf svg { width: 20px; height: 20px; }
.kos-block .datum-knopf[hidden] { display: none; }

/* Die feste Buchung ist die Bedingung fuer den Gutschein. */
.kos-block .hinweis mark {
  background: var(--kos-action);
  color: inherit;
  padding: 0 .25em;
  border-radius: 4px;
  font-weight: 700;
}
