/* Betriebsferien-Hinweis (component/ks-ferien/hinweis.html.twig, Schalter ferienHinweis, Lukas 20.11.2026).
   Farben wie die Tools (_stil.html.twig): Primär #69C8F3, Text auf Weiß #0E7DAF, Text #454444, Linie #E0E4E8.
   Stufe „vorher“ hellblau, ab Pop-up („bald“) und in den Ferien warm-gelb, „zurück“ hellgrün.
   Dunkle Darstellung (html.ktp-dunkel) steht unten mit drin. */
.ks-ferien {
  background: #E3F5FD;
  border-bottom: 1px solid #BFE6F8;
  color: #2E2E2E;
  font-size: 14px;
  line-height: 1.45;
}
.ks-ferien[hidden] { display: none; }
.ks-ferien-innen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.ks-ferien-symbol { flex: none; color: #0E7DAF; }
.ks-ferien-text { flex: 1 1 auto; min-width: 0; margin: 0; }
.ks-ferien-text strong { font-weight: 600; color: #1F2A36; }
.ks-ferien-zusatz { margin-left: .3em; }
.ks-ferien-knopf {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #0E7DAF;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}
.ks-ferien-knopf:hover, .ks-ferien-knopf:focus-visible { color: #0A5F86; }
.ks-ferien-knopf[hidden] { display: none; }

.ks-ferien--bald, .ks-ferien--ferien { background: #FFF4D6; border-bottom-color: #F1D68C; }
.ks-ferien--bald .ks-ferien-symbol, .ks-ferien--ferien .ks-ferien-symbol { color: #9A6B00; }
.ks-ferien--zurueck { background: #E8F6EC; border-bottom-color: #BFE3C9; }
.ks-ferien--zurueck .ks-ferien-symbol { color: #1E7E34; }

@media (max-width: 767.98px) {
  .ks-ferien { font-size: 13px; }
  .ks-ferien-innen { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  /* Am Handy nur die Überschrift, Termine im Fenster */
  .ks-ferien-zusatz { display: none; }
}

/* Fenster „Alle Termine“ (auch das Pop-up) */
.ks-ferien-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #454444;
  box-shadow: 0 12px 40px rgba(17, 29, 42, .25);
}
.ks-ferien-dialog::backdrop { background: rgba(17, 29, 42, .45); }
.ks-ferien-dialog-form { position: relative; margin: 0; padding: 24px 24px 20px; }
.ks-ferien-dialog-titel {
  margin: 0 32px 14px 0;
  color: #1F2A36;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
.ks-ferien-dialog-zu {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #6B7480;
  cursor: pointer;
}
.ks-ferien-dialog-zu:hover, .ks-ferien-dialog-zu:focus-visible { background: #F1F3F5; color: #1F2A36; }
/* Kurz: ein Satz, die Termine als Liste (Lukas 20.11.: „zu viel Info, dann klickt man es weg“) */
.ks-ferien-dialog-intro { margin: -6px 0 16px; font-size: 15px; line-height: 1.45; }
.ks-ferien-gruppe[hidden], .ks-ferien-zeile[hidden] { display: none; }
.ks-ferien-gruppe-titel { margin: 0 0 6px; color: #6B7480; font-size: 13px; font-weight: 600; }
.ks-ferien-termine { margin: 0 0 16px; padding: 4px 14px; border-radius: 6px; background: #F3FAFE; }
.ks-ferien-termine--wieder { background: #F1F8F3; }
.ks-ferien-zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}
.ks-ferien-zeile + .ks-ferien-zeile { border-top: 1px solid #E0E4E8; }
.ks-ferien-zeile dt { margin: 0; font-weight: 400; }
.ks-ferien-zeile dd { margin: 0; color: #1F2A36; font-weight: 700; white-space: nowrap; }
.ks-ferien-dialog-ausland { margin: -8px 0 16px; color: #454444; font-size: 13px; line-height: 1.45; }
html.ktp-dunkel .ks-ferien-dialog-ausland { color: #cad5e2; }
.ks-ferien-dialog-hinweis { margin: 0 0 18px; color: #6B7480; font-size: 13px; line-height: 1.45; }
.ks-ferien-dialog-gruss { margin: 0 0 16px; color: #1F2A36; font-size: 15px; font-weight: 600; text-align: center; }
.ks-ferien-dialog-ok { width: 100%; }

/* Eisbär-Bild oben im Fenster, randlos; bis es geladen ist, eine Fläche im Nachtblau des Bildes */
.ks-ferien-dialog-bild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1040 / 464;
  max-height: 190px;
  object-fit: cover;
  object-position: 50% 30%;
  background: #1d3b63;
}
.ks-ferien-dialog-bild[hidden] { display: none; }
@media (max-width: 575.98px) {
  .ks-ferien-dialog-bild { max-height: 160px; }
}
/* Niedrige Fenster (Laptop): Bild flacher, damit „Verstanden“ ohne Scrollen sichtbar bleibt */
@media (max-height: 860px) {
  .ks-ferien-dialog-bild { max-height: 120px; }
}
.ks-ferien-dialog-hinweis[hidden] { display: none; }

/* Vorschau nur auf Staging: Stufen zum Anklicken */
.ks-ferien-vorschau {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1040;
  max-width: min(360px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid #E0B400;
  border-radius: 6px;
  background: #FFF3B0;
  color: #3D3300;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}
.ks-ferien-vorschau p { margin: 0 0 6px; }
.ks-ferien-vorschau-knoepfe { display: flex; flex-wrap: wrap; gap: 4px; }
.ks-ferien-vorschau button {
  padding: 3px 7px;
  border: 1px solid #C9A400;
  border-radius: 4px;
  background: #fff;
  color: #3D3300;
  font: inherit;
  cursor: pointer;
}
.ks-ferien-vorschau button[aria-pressed="true"] { background: #3D3300; border-color: #3D3300; color: #fff; }
.ks-ferien-vorschau .ks-ferien-vorschau-nochmal { width: 100%; margin-top: 8px; padding: 5px 8px; border-color: #3D3300; font-weight: 600; }
.ks-ferien-vorschau-notiz { margin: 8px 0 0 !important; font-style: italic; }
.ks-ferien-vorschau-zu { float: right; margin: -4px -4px 0 6px; padding: 0 4px !important; border: 0 !important; background: none !important; font-size: 16px !important; line-height: 1; }

/* Dunkle Darstellung */
html.ktp-dunkel .ks-ferien { background: #111d2a; border-bottom-color: #273b52; color: #cad5e2; }
html.ktp-dunkel .ks-ferien-text strong { color: #eef3f8; }
html.ktp-dunkel .ks-ferien-symbol { color: #69C8F3; }
html.ktp-dunkel .ks-ferien-knopf { color: #ffc300; }
html.ktp-dunkel .ks-ferien-knopf:hover, html.ktp-dunkel .ks-ferien-knopf:focus-visible { color: #ffd64d; }
html.ktp-dunkel .ks-ferien--bald, html.ktp-dunkel .ks-ferien--ferien { background: #2a2310; border-bottom-color: #5a4a14; }
html.ktp-dunkel .ks-ferien--bald .ks-ferien-symbol, html.ktp-dunkel .ks-ferien--ferien .ks-ferien-symbol { color: #ffc300; }
html.ktp-dunkel .ks-ferien--zurueck { background: #10261a; border-bottom-color: #23503a; }
html.ktp-dunkel .ks-ferien--zurueck .ks-ferien-symbol { color: #6fd08c; }
html.ktp-dunkel .ks-ferien-dialog { background: #111d2a; color: #cad5e2; }
html.ktp-dunkel .ks-ferien-dialog-titel, html.ktp-dunkel .ks-ferien-zeile dd { color: #eef3f8; }
html.ktp-dunkel .ks-ferien-termine { background: #16263a; }
html.ktp-dunkel .ks-ferien-termine--wieder { background: #132a20; }
html.ktp-dunkel .ks-ferien-zeile + .ks-ferien-zeile { border-top-color: #273b52; }
html.ktp-dunkel .ks-ferien-gruppe-titel, html.ktp-dunkel .ks-ferien-dialog-hinweis { color: #9fb0c3; }
html.ktp-dunkel .ks-ferien-dialog-gruss { color: #eef3f8; }
html.ktp-dunkel .ks-ferien-dialog-zu { color: #9fb0c3; }
html.ktp-dunkel .ks-ferien-dialog-zu:hover, html.ktp-dunkel .ks-ferien-dialog-zu:focus-visible { background: #1b2b3d; color: #eef3f8; }
html.ktp-dunkel .ks-ferien-dialog::backdrop { background: rgba(0, 0, 0, .6); }
