/* ============================================================================
   Tag der offenen Tür – Bundespolizeiabteilung Duderstadt
   Look: hell & familienfreundlich mit malerischem Arcane-Anklang –
   Poster-Typo (Oswald) wie auf dem Flyer, atmosphärisches Licht im Header,
   Themenwelten in Corporate-Design-Farben mit weichen Verläufen.
   ============================================================================ */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/baloo2.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/oswald.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/caveat.woff2") format("woff2");
}
@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/dancingscript.woff2") format("woff2");
}

:root {
  --navy:        #08385C;   /* Flyer-Navy */
  --navy-dark:   #00243C;
  --navy-soft:   #1C4A8F;
  --rot:         #A32D2D;
  --gold:        #E7B84B;
  --gold-hell:   #F2C230;
  --gold-dark:   #8a6a12;
  --gruen:       #3B6D11;
  --orange:      #EA8A2C;   /* Kinderwelt CD */
  --creme:       #FBF8F1;
  --karte:       #FFFFFF;
  --text:        #1B2A4A;
  --muted:       #63636b;
  --hint:        #9a9a9a;
  --linie:       #E6E2D8;
  --linie-gold:  #E7D7B3;
  --radius:      14px;
  --tap:         48px;
  --maxw:        520px;
  --font-fun:    "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head:   "Oswald", "Avenir Next Condensed", "Arial Narrow", -apple-system, sans-serif;
  --font-hand:   "Dancing Script", "Caveat", "Segoe Script", "Bradley Hand", cursive;
  /* Pinsel-Kante als Bildmaske: wellige/gerissene Ober- und Unterkante direkt am Foto
     (eine Ebene → beim Seitenübergang sauber, keine separaten Pinsel-Ebenen mehr). */
  --brush-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 9 C160 3 300 15 520 8 C740 1 900 15 1200 8 L1200 111 C900 118 740 105 520 112 C300 118 160 106 0 111 Z'/%3E%3C/svg%3E");
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: var(--creme); touch-action: pan-x pan-y; }   /* Seiten-Pinch-Zoom aus, Scrollen bleibt */
html, body {
  margin: 0; padding: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body { background: transparent; }

/* ---- Dynamischer Hintergrund in Duderstadt-Farben (dezent, hell, lesbar) ---- */
body::before {
  content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(62% 58% at 16% 10%, rgba(24,95,165,0.30), transparent 72%),
    radial-gradient(60% 56% at 90% 22%, rgba(163,45,45,0.24), transparent 72%),
    radial-gradient(68% 62% at 78% 78%, rgba(231,184,75,0.30), transparent 74%),
    radial-gradient(66% 60% at 6% 82%, rgba(24,95,165,0.22), transparent 74%),
    var(--creme);
  background-color: var(--creme);
  animation: bg-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bg-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2.5%, 0) scale(1.08) rotate(1.2deg); }
  100% { transform: translate3d(2.5%, -2%, 0) scale(1.05) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
.kontrast body::before, body.kontrast::before { animation: none; background: #fff; }

#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; position: relative; }

/* ---- Kopfzeile im Flyer-Look, mit malerischem Licht (Arcane-Anklang) ---- */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background:
    radial-gradient(90% 130% at 85% -20%, rgba(242,194,48,.22), transparent 55%),
    radial-gradient(70% 100% at 12% 8%, rgba(28,74,143,.55), transparent 60%),
    radial-gradient(120% 90% at 50% 115%, rgba(163,45,45,.18), transparent 55%),
    linear-gradient(180deg, var(--navy-dark), var(--navy) 60%);
  color: #fff;
  padding: calc(4px + var(--safe-top)) 14px 12px;
  border-bottom: 1px solid rgba(242,194,48,.45);
  box-shadow: 0 2px 18px rgba(0,36,60,.25);
}
.skyline-row { margin: 0 -14px 4px; color: rgba(255,255,255,.16); }
.skyline { display: block; width: 100%; height: 22px; }
.appbar-row { display: flex; align-items: center; gap: 10px; }
.appbar .wappen {
  height: 48px; width: auto; flex: none; display: block;
  object-fit: contain; background: #fff;
  border-radius: 9px; padding: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.appbar .titles { flex: 1; min-width: 0; }
.appbar .jahre { color: var(--gold-hell); font-weight: 700; font-size: 11px; letter-spacing: .5px; }
.appbar .kicker { font-size: 12px; line-height: 1.25; letter-spacing: .2px; color: #D5E0F0; font-weight: 600; }
.appbar .title {
  font-family: var(--font-head); font-size: 18px; font-weight: 600;
  line-height: 1.1; letter-spacing: 2px; margin-top: 6px; white-space: nowrap;
  text-transform: uppercase;
}
.appbar .title.big {
  font-size: 25px; margin-top: 10px; letter-spacing: 2.5px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 0 22px rgba(242,194,48,.28);
}
.badge-70 {
  background: linear-gradient(160deg, #F8D670, var(--gold-hell) 55%, #D9A61F);
  color: #4a3305;
  font-family: var(--font-fun); font-size: 13px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap; flex: none;
  transform: rotate(-3deg);
  box-shadow: 0 1px 4px rgba(0,0,0,.3), 0 0 14px rgba(242,194,48,.35);
}
.appbar .backbtn, .appbar .iconbtn {
  background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  font-size: 20px; display: none; align-items: center; justify-content: center;
  text-decoration: none;
}
.appbar .iconbtn { display: flex; }
.appbar.has-back .backbtn { display: flex; }
.appbar.has-back .skyline-row { display: none; }
.chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12); font-size: 12px; padding: 5px 10px; border-radius: 8px;
}
.chip.gold { background: rgba(242,194,48,.2); color: var(--gold-hell); font-weight: 600; }

/* ---- Start-Kopf: generierte Flyer-Grafik ---- */
.appbar.imghead {
  position: static; padding: calc(var(--safe-top)) 0 0;
  background: #0A1A33; border-bottom: 1px solid rgba(242,194,48,.5);
}
.appbar.imghead .hdr { display: block; width: 100%; }
.appbar.imghead .iconbtn {
  position: absolute; top: calc(10px + var(--safe-top)); right: 10px;
  background: rgba(10,26,51,.55);
}

/* ---- Seiten-Container ---- */
main { padding: 14px 14px 96px; }
.page-title { font-family: var(--font-head); font-size: 24px; font-weight: 500; margin: 4px 2px 12px; text-transform: uppercase; letter-spacing: 1px; }
.page-lead  { color: var(--muted); font-size: 14px; margin: -6px 2px 14px; }
.group-intro { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: -2px 2px 12px; }
.textgross .group-intro { font-size: 16px; }
section + section { margin-top: 18px; }
.section-title { font-family: var(--font-head); font-size: 15px; font-weight: 500; margin: 0 2px 10px; color: var(--navy); text-transform: uppercase; letter-spacing: 1.2px; }

/* ---- Karten ---- */
.card {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
}
.pitem-card {
  --wf: var(--navy);
  border-left: 4px solid var(--wf);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative; overflow: hidden;
  min-height: 148px; display: flex; align-items: center;   /* alle Punkte gleich hoch (am größten orientiert) */
}
.pitem-card.past { opacity: .55; }
/* gedimmtes Hintergrundbild je Programmpunkt (Text bleibt lesbar) */
.pitem-card .pbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pitem-card .pbg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Option A (kontraststark): heller, deckender Schleier – Foto als ruhige Textur,
   Schrift dunkel, fett & mit weißem Saum. Overrides nur auf Programmkarten mit Foto. */
.pitem-card .pbg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,248,241,.97) 0%, rgba(251,248,241,.95) 48%, rgba(251,248,241,.8) 72%, rgba(251,248,241,.6) 100%); }
.pitem-card > .pbg + .pitem .info .h { color: #00243C; font-weight: 800; font-size: 17px;
  text-shadow: 0 1px 2px rgba(255,255,255,.98), 0 0 7px rgba(255,255,255,.92); }
.pitem-card > .pbg + .pitem .info .s { color: #17263F; font-weight: 700;
  text-shadow: 0 1px 2px rgba(255,255,255,.96), 0 0 5px rgba(255,255,255,.82); }
.pitem-card > .pbg + .pitem .time .hh { color: var(--navy-dark);
  text-shadow: 0 1px 2px rgba(255,255,255,.96); }
.pitem-card > .pbg + .pitem .time .ee { text-shadow: 0 1px 2px rgba(255,255,255,.9); }
.pitem-card > .pitem { position: relative; z-index: 1; flex: 1; min-width: 0; }

/* Programm-Detail: Foto-Kopf, läuft nach unten weich ins Layout aus */
.prog-hero { margin: -14px -14px 10px; }
.prog-hero img {
  display: block; width: 100%; height: 214px; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

/* ---- Live-Karte ---- */
.live {
  background: #fff; border: 1px solid var(--linie-gold);
  border-left: 5px solid var(--rot); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px; margin-bottom: 12px;
}
.live .lbl { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rot); animation: puls 1.6s infinite; }
@keyframes puls { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live .dot { animation: none; } }
.live .lbl-txt { font-size: 11px; font-weight: 700; color: var(--rot); letter-spacing: .4px; }
.live .lbl-time { margin-left: auto; font-size: 11px; color: var(--muted); }
.live .h { font-family: var(--font-head); font-size: 18px; font-weight: 500; cursor: pointer; letter-spacing: .3px; }
.live .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---- Nächste Termine (Startseite) – Weltfarbe über --wf ---- */
.event {
  --wf: var(--navy);
  background: #fff; border: 1px solid var(--linie);
  border-left: 4px solid var(--wf); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 11px 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px;
}
.event .t { text-align: center; min-width: 50px; cursor: pointer; }
.event .t .hh { font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--wf-ink, var(--wf)); }
.event .t .sub { font-size: 10px; color: var(--rot); font-weight: 600; }
.event .body { flex: 1; min-width: 0; border-left: 1px solid var(--linie); padding-left: 12px; cursor: pointer; }
.event .body .h { font-weight: 700; font-size: 14.5px; }
.event .body .s { font-size: 12px; color: var(--muted); }
.alllink {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 8px 0 2px; margin-bottom: 12px;
}

/* ---- Kachel-Raster (immer 2 nebeneinander) ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 15px 13px; text-align: left; text-decoration: none; color: var(--text);
  display: block; min-height: 104px;
}
.tile:active { transform: scale(.98); }
.tile i { font-size: 26px; }
.tile .n { font-family: var(--font-head); font-size: 15px; font-weight: 500; margin-top: 7px; line-height: 1.3; letter-spacing: .4px; }
.tile .d { font-size: 11px; color: var(--muted); }
.tile.blau i   { color: var(--navy-soft); }
.tile.rot i    { color: var(--rot); }
.tile.gold i   { color: var(--gold-dark); }
.tile.gruen i  { color: var(--gruen); }
.tile.orange i { color: var(--orange); }
.tile.photo { padding: 0 0 11px; }
.tile.photo .timg { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 8px; }
.tile.photo .timg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.photo { -webkit-touch-callout: none; user-select: none; }

/* ---- Foto-Anpassung (Langdruck auf Kachel) ---- */
.cropsheet {
  position: fixed; inset: 0; z-index: 220; background: rgba(0,36,60,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px; touch-action: none; overscroll-behavior: none;
}
.cropsheet .cs-head {
  color: #fff; font-family: var(--font-head); font-size: 18px; letter-spacing: 1.5px;
  text-transform: uppercase; display: flex; align-items: center; gap: 14px;
  width: min(92vw, 460px); justify-content: space-between; margin-bottom: 14px;
}
.cropsheet .cs-head .x { background: rgba(255,255,255,.18); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
.cropsheet .cs-frame {
  width: min(88vw, 420px); aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); background: #000;
  outline: 3px solid var(--gold-hell); outline-offset: 2px;
  cursor: grab;
}
.cropsheet .cs-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.cropsheet .cs-hint { color: #B9C9E6; font-size: 13px; margin: 12px 0 16px; text-align: center; }
.cropsheet .cs-btns { display: flex; gap: 10px; width: min(92vw, 460px); }
.cropsheet .cs-btns .btn { flex: 1; }
.tile.photo .n, .tile.photo .d { padding: 0 12px; }
.tile.frei { border-style: dashed; background: transparent; color: var(--hint); }
.tile.frei i { color: var(--hint); }
.tile.frei .n { color: var(--hint); }

/* ---- Programmliste ---- */
.pitem { display: flex; gap: 12px; align-items: flex-start; }
.pitem .mk-num { flex: none; align-self: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rot); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; }
.pitem .time { text-align: center; min-width: 48px; padding-top: 2px; }
/* Karten-Texte sitzen über gedimmten Bildern → kräftiger, dunkler, mit hellem Schriftsaum */
.pitem .time .hh { font-family: var(--font-head); font-weight: 700; color: var(--wf-ink, var(--wf, var(--navy))); font-size: 17px;
  text-shadow: 0 1px 2px rgba(255,255,255,.95), 0 0 5px rgba(255,255,255,.7); }
.pitem .time .ee { font-size: 11px; color: var(--muted); font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,.9); }
.pitem .info { flex: 1; min-width: 0; cursor: pointer; }
.pitem .info .h { font-weight: 800; font-size: 16.5px; color: var(--navy); letter-spacing: .1px;
  text-shadow: 0 1px 2px rgba(255,255,255,.98), 0 0 8px rgba(255,255,255,.85); }
.pitem .info .s { font-size: 12.5px; color: #223349; font-weight: 700; margin-top: 3px;
  text-shadow: 0 1px 2px rgba(255,255,255,.95), 0 0 6px rgba(255,255,255,.7); }
.pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; margin-top: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.pill.navy { background: #E7EEF6; color: var(--navy); }
.pill.info { background: #FBEFD6; color: #7a5a12; }
.pill + .pill { margin-left: 6px; }
.bell {
  flex: none; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--linie);
  background: #fff; color: var(--navy); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.bell.on { background: var(--navy); color: var(--gold-hell); border-color: var(--navy); }
.bell.sm { width: 36px; height: 36px; font-size: 17px; }

/* ---- Themenwelten ---- */
.welt-card {
  border: 1px solid var(--linie); border-left: 6px solid var(--wf);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px; margin-bottom: 12px; cursor: pointer;
}
.welt-card:active { transform: scale(.99); }
.wc-head { display: flex; align-items: center; gap: 9px; }
.wc-head i { font-size: 22px; color: var(--wf); }
.wc-name { font-family: var(--font-head); font-weight: 500; font-size: 16px; flex: 1; color: var(--wf-ink, var(--wf)); letter-spacing: .4px; }
.wc-cnt {
  background: var(--wf-ink, var(--wf)); color: #fff; font-size: 12px; font-weight: 700;
  min-width: 24px; height: 24px; border-radius: 999px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.wc-text { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* ---- Pinselstriche (SVG, mit Borsten-Striemen) ---- */
.brush { display: block; width: 100%; color: var(--wf); pointer-events: none; }

/* ---- Welt-Kopf mit Foto: Striche oben/unten, Titel geht ins Bild über ---- */
.welt-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 14px; background: var(--wf);
  box-shadow: 0 3px 14px color-mix(in srgb, var(--wf) 38%, transparent);
}
.wp-img { position: relative; }
.wp-img img { display: block; width: 100%; height: 240px; object-fit: cover;
  -webkit-mask: var(--brush-mask) center / 100% 100% no-repeat; mask: var(--brush-mask) center / 100% 100% no-repeat; }
.wp-title {
  position: relative; background: var(--wf-ink, var(--wf)); color: #fff; margin-top: -14px;
  display: flex; align-items: center; gap: 12px; padding: 0 14px 12px;
  text-shadow: 0 1px 2px rgba(0,20,40,.35);
}
.wp-title i { font-size: 30px; filter: drop-shadow(0 1px 3px rgba(0,20,40,.4)); }

/* ---- Themenwelten-Übersicht: Foto-Karten ---- */
.wfc {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 14px; cursor: pointer; background: var(--wf);
  box-shadow: 0 3px 14px color-mix(in srgb, var(--wf) 30%, transparent);
}
.wfc:active { transform: scale(.99); }
.wfc .wc-photo { position: relative; }
.wfc .wc-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  -webkit-mask: var(--brush-mask) center / 100% 100% no-repeat; mask: var(--brush-mask) center / 100% 100% no-repeat; }
.wfc .wc-bar {
  position: relative; background: var(--wf-ink, var(--wf)); color: #fff; margin-top: -14px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px 11px;
  text-shadow: 0 1px 2px rgba(0,20,40,.3);
}
.wfc .wc-bar i.ic { font-size: 24px; }
.wfc .wc-bar .n { flex: 1; font-family: var(--font-head); font-weight: 500; font-size: 17px; letter-spacing: .4px; }
.wfc .wc-bar .cnt {
  background: rgba(255,255,255,.22); min-width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; padding: 0 8px;
}

/* ---- Anfahrtskarte (Luftbild + Vektor-Overlay) ---- */
.anfahrt-wrap { position: relative; }
.anfahrt-wrap img { display: block; width: 100%; }
.anfahrt-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.mapfs .stage .anfahrt-overlay { position: absolute; inset: 0; }

/* ---- Aufbau-Animation (gestaffelt) & Seitenübergänge ---- */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: riseIn .5s cubic-bezier(.22,.75,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }
/* Ruhige Überblendung: alte Seite geht zügig aus, neue Seite sanft ein –
   ohne Nachziehen/Morphen der vorherigen Folie. */
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in  .24s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; } to { opacity: 1; } }
.appbar { view-transition-name: appbar; }
/* Startseiten-Kopf ist ein großes Bild – eigener Name, damit er NICHT in die
   kompakte Leiste morpht (sonst schob sich der alte Kopf kurz von oben ins Bild). */
.appbar.imghead { view-transition-name: appbar-home; }
.tabbar { view-transition-name: tabbar; }

.welt-hero {
  background:
    radial-gradient(120% 160% at 88% -30%, rgba(255,255,255,.30), transparent 55%),
    radial-gradient(130% 120% at 0% 120%, rgba(0,20,40,.28), transparent 60%),
    var(--wf-ink, var(--wf));
  color: #fff; border-radius: var(--radius);
  padding: 16px 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 13px;
  border: 1px solid color-mix(in srgb, var(--wf) 60%, #000);
  box-shadow: 0 3px 14px color-mix(in srgb, var(--wf) 38%, transparent);
  text-shadow: 0 1px 2px rgba(0,20,40,.35);
}
.welt-hero i { font-size: 34px; filter: drop-shadow(0 1px 3px rgba(0,20,40,.4)); }
.wh-name { font-family: var(--font-head); font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: .5px; }
.wh-sub { font-size: 12.5px; opacity: .85; }

/* ---- Liste ---- */
.row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px;
}
.row .ic { width: 40px; height: 40px; border-radius: 12px; background: #E7EEF6; color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.row .ic.welt { background: color-mix(in srgb, var(--wf) 15%, #fff); color: var(--wf); }
.row .ic.gruen2 { background: #EAF3DE; color: var(--gruen); }
.row .ic .ic-sym { font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: 1px; }
.row.notruf .ic { background: #FCEBEB; color: var(--rot); }
.row .body { flex: 1; min-width: 0; }
.row .body .h { font-weight: 700; font-size: 15px; }
.row .body .s { font-size: 12px; color: var(--muted); }
.row .go { color: var(--hint); font-size: 20px; flex: none; }
/* Teileinheit-Zeile mit Foto – Look wie die Programmpunkte (Foto rechts sichtbar,
   heller Verlauf, dunkle fette Schrift). Antippen wechselt direkt ins Detail. */
.row.rowimg { position: relative; overflow: hidden; min-height: 84px; border-color: var(--linie-gold); }
.row.rowimg .row-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.row.rowimg .row-veil { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(251,248,241,.96) 0%, rgba(251,248,241,.9) 46%, rgba(251,248,241,.78) 72%, rgba(251,248,241,.58) 100%); }
.row.rowimg > .ic, .row.rowimg > .body, .row.rowimg > .go { position: relative; z-index: 1; }
.row.rowimg .body .h { color: #00243C; font-weight: 800; text-shadow: 0 1px 2px rgba(255,255,255,.95); }
.row.rowimg .body .s { color: #17263F; font-weight: 600; text-shadow: 0 1px 2px rgba(255,255,255,.88); }
.row.rowimg .go { color: var(--navy-soft); }
.row .tel { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--rot); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; text-decoration: none; }

/* ---- Kinder Kommissar-Anwärter ---- */
.karl {
  background: color-mix(in srgb, var(--wf) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--wf) 40%, #fff);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: #7a4712;
}
.karl i { font-size: 30px; color: var(--wf); flex: none; }
.kinder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--wf) 30%, var(--linie)); border-radius: 14px;
  background: color-mix(in srgb, var(--wf) 14%, #fff);
  padding: 12px 11px; font-size: 13px; font-weight: 700; color: var(--navy);
}
.kind-item:active { transform: scale(.98); }
.kind-item > i:first-child { font-size: 22px; color: var(--wf-ink, var(--wf)); flex: none; }
.kind-item span { flex: 1; min-width: 0; }
.kind-item .kip { font-size: 15px; color: var(--wf-ink, var(--wf)); opacity: .55; flex: none; }

/* ---- Maskottchen Karl: Banner (Themenfoto-Stil) + zwei Foto-Buttons ---- */
/* Stempel-Pass: 6 Stempelfelder in den Themenwelt-Farben */
.stempel-card { background: #fff; border: 1.5px solid color-mix(in srgb, var(--wf) 30%, var(--linie));
  border-radius: 16px; padding: 14px 14px 12px; margin: 2px 0 14px; }
.stempel-card .st-head { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .3px;
  color: var(--wf-ink, var(--wf)); margin-bottom: 10px; }
.stempel-card .st-head i { margin-right: 5px; vertical-align: -2px; }
.stempel-card .st-row { display: flex; gap: 9px; justify-content: space-between; margin-bottom: 10px; }
.stempel-card .st-stamp { flex: 1; aspect-ratio: 1 / 1; max-width: 52px; border-radius: 50%;
  border: 2.5px dashed var(--sf); color: var(--sf);
  display: inline-flex; align-items: center; justify-content: center; font-size: 21px;
  background: color-mix(in srgb, var(--sf) 8%, #fff); transform: rotate(-6deg); }
.stempel-card .st-stamp:nth-child(2n) { transform: rotate(5deg); }
.stempel-card .st-text { font-size: 13.5px; line-height: 1.5; color: var(--text); margin: 0 2px; }
.textgross .stempel-card .st-text { font-size: 16px; }

.karl-hero { margin-top: 4px; cursor: default; }
.karl-hero:active { transform: none; }
/* Der wellige Fotorand darf unten KEINEN hellen Strich zeigen: der Bereich hinter der
   Pinselmaske bekommt denselben Orangeton wie die Leiste → gemalte Fläche läuft nahtlos aus */
.karl-hero .wc-photo { background: var(--wf-ink, var(--wf)); }
/* Begrüßungs-Spruch in EINER Zeile – Schrift skaliert mit der Breite, „…" bleibt hinter „dich" */
.karl-hero .wc-bar { gap: 8px; }
.karl-hero .wc-bar i.ic { font-size: 20px; }
.karl-hero .wc-bar .n { font-weight: 600; white-space: nowrap; letter-spacing: .2px; font-size: clamp(11px, 3.5vw, 16px); }
.textgross .karl-hero .wc-bar .n { white-space: normal; font-size: 16px; }
.karl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 4px; }
.karl-btn { position: relative; border: none; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1 / 1; background: #fff; box-shadow: 0 4px 14px rgba(8,56,92,.16); }
.karl-btn:active { transform: scale(.98); }
.karl-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Platzhalter-Symbol, falls (noch) kein Foto vorhanden ist – das Foto liegt darüber und deckt es ab */
.karl-btn .kb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 52px; color: rgba(255,255,255,.9); }
.karl-btn .kb-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 14px;
  background: linear-gradient(transparent, rgba(6,26,48,.55) 45%, rgba(6,26,48,.88)); color: #fff; font-family: var(--font-head);
  font-weight: 600; font-size: 15px; letter-spacing: .3px; text-align: center; }
.karl-btn .kb-label i { font-size: 16px; vertical-align: -2px; margin-right: 3px; }
.textgross .karl-btn .kb-label { font-size: 18px; }

/* ---- Karls Merkspiel (Memory/Paare) ---- */
.mem-top { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 4px; font-weight: 700; font-size: 14px; color: var(--navy); }
.mem-top i { color: var(--wf-ink, #EA8A2C); margin-right: 4px; }
.mem-moves { color: var(--muted); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 4px; }
.mem-card { aspect-ratio: 1 / 1; padding: 0; border: none; background: transparent; cursor: pointer; perspective: 700px; }
/* Vollbild: Kartenraster füllt den ganzen Schirm (Höhe per JS gesetzt), Karten werden hochkant */
html.mem-lock, html.mem-lock body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.mem-screen { display: flex; flex-direction: column; box-sizing: border-box; padding: 4px 8px 8px; margin: 0 -14px; }
.mem-screen .mem-top { flex: none; padding: 0 6px; margin: 6px 0 0; }
.mem-screen .mem-grid { flex: 1 1 auto; min-height: 0; grid-template-rows: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.mem-screen .mem-card { aspect-ratio: auto; }
.mem-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .34s cubic-bezier(.2,.7,.3,1.25); }
.mem-card.is-flipped .mem-inner, .mem-card.is-matched .mem-inner { transform: rotateY(180deg); }
.mem-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 2px 7px rgba(8,56,92,.16); }
.mem-back { background: linear-gradient(150deg, #0f6db0, #08385c); color: #fff; }
.mem-back i { font-size: 26px; opacity: .9; }
.mem-front { background: #fff; transform: rotateY(180deg); overflow: hidden; }
.mem-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mem-front i { font-size: 34px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,20,40,.4)); }
/* Icon nur als Fallback: liegt ein Foto davor, wird es versteckt; entfernt onerror das
   Foto, ist das Icon wieder erstes Kind und erscheint automatisch */
.mem-front img + i { display: none; }
.mem-card.is-matched { animation: memPop .42s ease; opacity: .9; }
/* KEIN filter auf .mem-inner (preserve-3d) – das würde den 3D-Flip flachdrücken.
   Treffer = grüner Innenrahmen auf der Vorderseite. */
.mem-card.is-matched .mem-front { box-shadow: inset 0 0 0 3px #82BB42; }
@keyframes memPop { 0%,100% { transform: scale(1); } 45% { transform: scale(1.09); } }
.mem-win { text-align: center; background: #fff; border: 1px solid var(--linie); border-radius: 18px; padding: 24px 18px 20px; margin-top: 4px; }
.mem-win .mw-badge { font-size: 48px; color: var(--wf-ink, var(--wf)); line-height: 1; }
.mem-win .mw-title { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--navy); margin-top: 8px; }
.mem-win .mw-score { font-size: 15px; color: var(--text); margin-top: 6px; }
.mem-win .mw-text { font-size: 14px; color: var(--muted); margin: 10px 6px 0; line-height: 1.5; }

/* ---- Wo ist Karl? (Guck-guck) ---- */
.karl-hud { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 6px; }
.karl-hud span { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 18px; color: var(--navy);
  background: #fff; padding: 7px 14px; border-radius: 13px; box-shadow: 0 2px 6px rgba(8,56,92,.1); }
.karl-hud .kh-score i { color: #EA8A2C; }
.karl-hud .kh-time { color: #A32D2D; }
.karl-hud .kh-time i { color: #A32D2D; }
.karl-field { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.karl-hole { position: relative; aspect-ratio: 1 / .82; border: none; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 24%, #34210f 0 40%, #6b4a2e 43%, #7d5836 100%);
  box-shadow: inset 0 7px 15px rgba(0,0,0,.45), 0 2px 6px rgba(8,56,92,.14); }
.karl-hole:active { transform: scale(.98); }
.kh-crit { position: absolute; left: 13%; width: 74%; bottom: 3%; transform: translateY(132%); transition: transform .17s ease-out; z-index: 1; }
.karl-hole.up .kh-crit { transform: translateY(5%); }
.kh-crit svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.kh-mound { position: absolute; left: -4%; right: -4%; bottom: -3%; height: 32%; z-index: 2; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0, #83592f 0 55%, #593d22 100%); box-shadow: 0 -2px 7px rgba(0,0,0,.22); }
.karl-hole.hit { animation: karlHit .28s ease; }
@keyframes karlHit { 50% { filter: brightness(1.18); } }
.kh-float { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 5; pointer-events: none;
  font-weight: 900; font-size: 24px; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,.5); animation: khFloat .7s ease-out forwards; }
.kh-float.gold { color: #ffe27a; }
.kh-float.neg { color: #ffc2c2; }
@keyframes khFloat { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -26px); } }
.karl-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.textgross .karl-hint { font-size: 15px; }

/* ---- Kinder-Kommissar-Quiz ---- */
.quiz-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 4px; padding: 14px 16px;
  border: none; border-radius: 16px; background: var(--wf-ink, var(--wf)); color: #fff; text-align: left;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wf) 40%, transparent); cursor: pointer; }
.quiz-cta:active { transform: scale(.99); }
.quiz-cta > i:first-child { font-size: 30px; flex: none; }
.quiz-cta .qc-t { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.quiz-cta .qc-t b { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .3px; }
.quiz-cta .qc-t small { font-size: 12.5px; opacity: .92; margin-top: 2px; }
.quiz-cta .qc-go { font-size: 22px; flex: none; opacity: .9; }

/* Spiel-Startbild (Quiz & Snake): großes Foto oben im Themenfoto-Stil, Karte mit Button darunter */
.game-hero { margin: 2px 0 0; }
.game-hero img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  -webkit-mask: var(--brush-mask) center / 100% 100% no-repeat; mask: var(--brush-mask) center / 100% 100% no-repeat; }
.game-hero + .quiz-intro { margin-top: -10px; }
.quiz-intro { text-align: center; background: #fff; border: 1px solid var(--linie); border-radius: 18px; padding: 22px 18px 20px; margin-top: 4px; }
.qi-badge, .qd-badge { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 32%, color-mix(in srgb, var(--wf) 80%, #fff), var(--wf-ink, var(--wf)));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wf) 45%, transparent); }
.qi-badge i, .qd-badge i { font-size: 44px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,20,40,.3)); }
.quiz-lead { font-size: 15.5px; line-height: 1.5; color: var(--text); margin: 0 4px 14px; }
.quiz-best { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--wf-ink, var(--wf));
  background: color-mix(in srgb, var(--wf) 14%, #fff); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.quiz-best i { color: #E7B84B; }
.btn.quiz-go { background: #95581c; }

.quiz-prog { display: flex; gap: 6px; margin: 2px 2px 8px; }
.quiz-prog .qp { flex: 1; height: 7px; border-radius: 999px; background: var(--linie); }
.quiz-prog .qp.done { background: #2E9E4F; }
.quiz-prog .qp.cur { background: var(--wf); }
.quiz-count { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 2px 12px; text-transform: uppercase; letter-spacing: .4px; }
.qhard { color: var(--wf-ink, var(--wf)); }
.qhard i { font-size: 14px; vertical-align: -1px; }

.quiz-card { background: #fff; border: 1px solid var(--linie); border-radius: 18px; padding: 18px 16px; }
.quiz-q { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--navy); margin-bottom: 16px; letter-spacing: .2px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  padding: 13px 16px; border: 2px solid var(--linie); border-radius: 14px; background: #fff; color: var(--navy);
  font-size: 16px; font-weight: 600; min-height: 52px; cursor: pointer; transition: transform .08s, border-color .12s; }
.quiz-opt:active { transform: scale(.99); }
.quiz-opt:not([disabled]):hover { border-color: var(--wf); }
.quiz-opt .qic { font-size: 22px; flex: none; }
.quiz-opt.correct { background: #E7F6EC; border-color: #2E9E4F; color: #1B5E2A; }
.quiz-opt.correct .qic { color: #2E9E4F; }
.quiz-opt.wrong { background: #FCEBEA; border-color: #C62828; color: #8E1B1B; }
.quiz-opt.wrong .qic { color: #C62828; }
.quiz-opt.dim { opacity: .55; }
.quiz-opt[disabled] { cursor: default; }
.quiz-fb { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.quiz-fb.ok { background: #E7F6EC; color: #1B5E2A; }
.quiz-fb.no { background: #FFF4E0; color: #7a5a12; }
.btn.quiz-next { background: var(--navy); }

.quiz-diplom { text-align: center; border-radius: 20px; padding: 24px 18px 20px; margin-top: 4px;
  background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--wf) 12%, #fff));
  border: 1px solid color-mix(in srgb, var(--wf) 40%, var(--linie)); box-shadow: 0 6px 20px color-mix(in srgb, var(--wf) 22%, transparent); }
.qd-rang { font-family: var(--font-head); font-weight: 600; font-size: 23px; color: var(--wf-ink, var(--wf)); letter-spacing: .3px; margin-bottom: 6px; }
.qd-stars { color: #E7B84B; font-size: 26px; letter-spacing: 3px; margin-bottom: 6px; }
.qd-stars i { filter: drop-shadow(0 1px 1px rgba(120,90,30,.25)); }
.qd-score { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 8px; }
.qd-text { font-size: 14px; line-height: 1.5; color: var(--text); margin: 0 4px; }
.textgross .quiz-q { font-size: 24px; }
.textgross .quiz-opt { font-size: 19px; }
.textgross .quiz-lead, .textgross .qd-text { font-size: 18px; }

/* ---- Kleines Spiel „Karls Fährte" (Snake) ---- */
.snake-cta { background: var(--navy); }
/* fixer Spielbildschirm: Seite scrollt nicht, Steuerkreuz bleibt immer sichtbar */
html.snake-lock, html.snake-lock body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* bricht aus dem 14px-Innenabstand des <main> aus → volle Breite fürs Spielfeld */
.snake-screen { display: flex; flex-direction: column; box-sizing: border-box; padding: 4px 8px 8px; margin: 0 -14px; }
.snake-top { display: flex; align-items: center; gap: 12px; margin: 0 2px 8px; font-size: 14px; font-weight: 700; color: var(--navy); flex: none; }
.snake-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .5px; margin-right: auto; }
.snake-top .snake-best { color: var(--muted); }
.snake-top i { vertical-align: -1px; }
.snake-top .snake-best i { color: #E7B84B; }
.snake-board { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.snake-stage { position: relative; margin: 0 auto; }
#snakecanvas { display: block; width: 100%; height: 100%; border-radius: 18px; border: 1px solid var(--linie);
  box-shadow: 0 6px 20px rgba(8,56,92,.16); touch-action: none; background: #FBF8F1; }
.snake-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; border-radius: 18px; background: rgba(251,248,241,.93); }
.snake-overlay p { font-size: 14.5px; line-height: 1.5; color: var(--text); margin: 0 0 14px; max-width: 300px; }
.so-badge { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  background: radial-gradient(circle at 40% 32%, #b9773a, #8A5A26); box-shadow: 0 4px 14px rgba(120,80,30,.35); }
.so-badge i { font-size: 40px; color: #fff; }
.so-title { font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--navy); margin-bottom: 8px; letter-spacing: .5px; }
.btn.snake-go { background: var(--navy); width: auto; padding: 0 22px; }
.btn.snake-go.wide { width: 100%; padding: 0 18px; }
/* Steuerkreuz „Seitenbalken + Mitte": große rechteckige Flächen, füllen die untere Fläche komplett aus.
   Links/rechts hohe Balken (über beide Reihen), oben/unten in der Mitte. Höhe setzt snakeLayout per JS. */
.snake-pad { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; width: 100%; margin: 10px 0 0; flex: none; }
.sp-btn { border: none; border-radius: 16px; color: #fff; font-size: 42px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 9px rgba(8,56,92,.22); }
.sp-btn i { filter: drop-shadow(0 1px 1.5px rgba(0,20,40,.45)); }
.sp-btn:active { transform: scale(.96); }
.sp-up    { grid-area: 1 / 2 / 2 / 3; background: #0A69A5; }
.sp-down  { grid-area: 2 / 2 / 3 / 3; background: #82BB42; }
.sp-left  { grid-area: 1 / 1 / 3 / 2; background: #5C5B95; }
.sp-right { grid-area: 1 / 3 / 3 / 4; background: #EA8A2C; }

/* Karriere-Seite */
.karr-p { font-size: 14px; line-height: 1.55; color: var(--text); margin: 0 2px 8px; }
.karr-sub { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); font-size: 14px; margin: 12px 2px 6px; }
.karr-sub i { font-size: 18px; }
.karr-ul { list-style: none; margin: 0 0 8px; padding: 0; }
.karr-ul li { position: relative; padding: 5px 2px 5px 26px; font-size: 14px; line-height: 1.5; }
.karr-ul li::before { content: "✓"; position: absolute; left: 5px; top: 5px; color: var(--gruen); font-weight: 700; }
.karr-steps { list-style: none; counter-reset: st; margin: 0 0 8px; padding: 0; }
.karr-steps li { position: relative; padding: 5px 2px 7px 36px; font-size: 14px; line-height: 1.5; min-height: 26px; }
.karr-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 2px; top: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.karr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 2px 6px; }
.karr-tag { display: inline-flex; align-items: center; gap: 5px; background: #E7EEF6; color: var(--navy);
  font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
.karr-tag i { font-size: 15px; }

/* Fundbüro: Hinweis + Aktualisieren-Knopf */
.fund-refresh { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap;
  background: #EAF1FA; border: 1px solid var(--linie); border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; }
.fr-txt { font-size: 12.5px; color: var(--navy); display: flex; align-items: center; gap: 7px; flex: 1; min-width: 170px; line-height: 1.35; }
.fr-txt i { font-size: 16px; color: var(--navy-soft); flex: none; }
.fr-btn { flex: none; border: none; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 8px 15px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fr-btn i { font-size: 15px; }

/* Aufklappbare Abschnitte (Akkordeon) mit dezentem Farbakzent je Abschnitt (--kc) */
.karr-acc { background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--kc, var(--navy));
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.karr-acc > summary { list-style: none; cursor: pointer; padding: 13px 14px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--navy); text-transform: uppercase; letter-spacing: 1px;
  background: color-mix(in srgb, var(--kc, var(--navy)) 8%, #fff); }
.karr-acc > summary::-webkit-details-marker { display: none; }
.karr-acc > summary .ka-t { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.karr-acc > summary .ka-t i { font-size: 18px; color: var(--kc, var(--navy)); }
.karr-acc > summary .ka-chev { flex: none; color: var(--kc, var(--muted)); font-size: 20px; transition: transform .2s; }
.karr-acc[open] > summary .ka-chev { transform: rotate(180deg); }
.karr-acc[open] > summary { border-bottom: 1px solid var(--linie); }
.karr-acc .ka-body { padding: 12px 14px 6px; }
.karr-acc .ka-body > .row:last-child, .karr-acc .ka-body > .karr-ul:last-child,
.karr-acc .ka-body > .kinder-grid:last-child { margin-bottom: 0; }

/* Eignungs-Kurzcheck (im Akkordeon) */
.kc-sub { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.kc-qs { display: flex; flex-direction: column; gap: 8px; }
.kc-q { text-align: left; width: 100%; border: 1px solid var(--linie); background: #F7F9FC; border-radius: 12px;
  padding: 10px 12px; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.kc-q::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--muted); flex: none; }
.kc-q.on { border-color: var(--gruen); background: #EAF3DE; color: #245a12; font-weight: 600; }
.kc-q.on::before { content: "✓"; border-color: var(--gruen); background: var(--gruen); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.kc-result { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* Leistungen-Liste */
.karr-blist { list-style: none; margin: 0 0 4px; padding: 0; }
.karr-blist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 2px; font-size: 14px; line-height: 1.5; }
.karr-blist li i { color: var(--navy); font-size: 18px; flex: none; margin-top: 1px; }

/* ---- Detail-Blatt ---- */
/* Grußwort der Abteilungsführung */
.grusswort { margin-bottom: 22px; }
.grusswort > .section-title { margin-bottom: 12px; }
.gw-portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gw-person { margin: 0; background: var(--karte); border: 1px solid var(--linie);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(8,56,92,.06); }
.gw-person img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: 50% 22%; background: var(--navy-dark); }
.gw-person figcaption { padding: 8px 10px 10px; text-align: center; }
.gw-name { display: block; font-family: var(--font-head); font-weight: 500; font-size: 15px;
  letter-spacing: .3px; color: var(--navy); }
.gw-rolle { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Grußwort als handschriftlicher Begrüßungsbrief (Papier-Karte) */
.gw-letter { position: relative; background: linear-gradient(160deg, #FFFDF6, #FBF5E7);
  border: 1px solid var(--linie-gold); border-radius: var(--radius);
  padding: 20px 22px 18px; box-shadow: 0 4px 16px rgba(120,90,30,.12);
  background-image: repeating-linear-gradient(transparent, transparent 33px, rgba(8,56,92,.05) 34px), linear-gradient(160deg, #FFFDF6, #FBF5E7); }
.gw-letter::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 14px; width: 2px;
  background: rgba(163,45,45,.28); border-radius: 2px; }
.gw-letter > * { padding-left: 12px; }
.gw-hi { font-family: var(--font-hand); font-weight: 700; font-size: 30px; line-height: 1.1;
  color: var(--navy); margin: 0 0 6px; }
.gw-hand { font-family: var(--font-hand); font-weight: 600; font-size: 25px; line-height: 1.5;
  color: #1c2b3d; margin: 0 0 8px; }
.gw-close { font-family: var(--font-hand); font-weight: 700; font-size: 27px; color: var(--navy);
  margin: 14px 0 6px; }
/* Unterschriftszeile: Namen in Druckbuchstaben, Siegel rechts */
.gw-sign { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 4px; padding-right: 104px; }
.gw-sig { display: flex; flex-direction: column; }
.gw-sig .sig-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--navy); }
.gw-sig .sig-rolle { font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: .2px; }
/* Siegel des Abteilungswappens (geprägte Gold-Medaille, leicht gedreht) */
.gw-seal { position: absolute; right: 16px; bottom: 16px; width: 96px; height: 96px; border-radius: 50%;
  transform: rotate(-8deg); display: flex; align-items: center; justify-content: center; opacity: .96;
  background: radial-gradient(circle at 38% 30%, #fcf5df, #efdcac 55%, #d9bd76 100%);
  border: 1px solid #b8912e;
  box-shadow: 0 3px 9px rgba(120,90,30,.32), inset 0 0 0 3px rgba(255,255,255,.5), inset 0 0 0 5px #cBa64a,
    inset 0 0 0 6px rgba(120,90,30,.35); }
.gw-seal img { width: 60%; height: 60%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.22)); }

.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.detail-head .ic { width: 48px; height: 48px; border-radius: 13px; background: #E7EEF6; color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.detail-head .ic.welt { background: color-mix(in srgb, var(--wf) 15%, #fff); color: var(--wf); }
.detail-body { font-size: 15px; line-height: 1.6; }
.kv { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
/* Foto einer Teileinheit / des Teileinheitsführers (Detailseite „Die Abteilung") */
.einheit-foto { margin: 0 0 6px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie-gold);
  box-shadow: 0 2px 10px rgba(8,56,92,.09); background: #fff; }
.einheit-foto img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.einheit-foto figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; background: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: var(--tap); border-radius: 13px; border: none;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; margin-top: 14px;
  text-decoration: none;
}
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--linie); }
.btn.merk-btn.on { background: #E7B84B; color: #4a3607; }
/* Vorstellung einer Einsatzhundertschaft: Einheiten-Foto oben, Führer-Porträt links,
   der Vorstellungstext fließt rechts daneben herunter und dann in voller Breite weiter. */
.hf-intro { margin-top: 14px; }
.hf-intro::after { content: ""; display: block; clear: both; }
.hf-portrait { float: left; width: 44%; max-width: 162px; margin: 3px 16px 10px 0;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 3px 12px rgba(8,56,92,.12); }
.hf-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; background: var(--navy-dark); }
.hf-portrait figcaption { padding: 8px 10px 10px; text-align: center; }
.hf-name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .3px; color: var(--navy); }
.hf-grad { display: block; font-size: 12.5px; color: var(--text); margin-top: 3px; font-weight: 600; }
.hf-rolle { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.hf-intro p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0 0 12px; }
.textgross .hf-intro p { font-size: 18px; }

/* ---- Zeitstrahl (70 Jahre) ---- */
.tl { border-left: 3px solid var(--gold); margin-left: 8px; padding-left: 16px; }
.tl .yr { font-family: var(--font-head); font-weight: 500; color: var(--navy); font-size: 17px; letter-spacing: .5px; }
.tl .it { position: relative; padding-bottom: 16px; }
.tl .it::before { content: ""; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--gold); border: 2px solid var(--creme); }
.tl .tl-t { font-weight: 700; color: var(--navy); margin: 1px 0 3px; font-size: 15px; }
.tl .tl-x { font-size: 14px; line-height: 1.5; }
.tl-img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; margin: 8px 0 4px; background: #0b2038; }
.tl-gallery { position: relative; margin: 8px 0 4px; border-radius: 10px; overflow: hidden; background: #0b2038; }
.tl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; }
.tl-track::-webkit-scrollbar { display: none; }
.tl-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3/2; }
.tl-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tl-count { position: absolute; top: 8px; right: 8px; background: rgba(8,24,44,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; letter-spacing: .3px; pointer-events: none; }
.tl-dots { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 3px; }
.tl-dot { width: 7px; height: 7px; box-sizing: content-box; padding: 0; border: 4px solid transparent; border-radius: 50%; background: rgba(255,255,255,.55); background-clip: padding-box; box-shadow: 0 0 3px rgba(0,0,0,.55); cursor: pointer; -webkit-appearance: none; appearance: none; }
.tl-dot.on { background: #fff; }
.quellen { display: flex; flex-direction: column; }
.qlink { display: flex; align-items: center; gap: 9px; padding: 9px 2px; color: var(--navy);
  font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--linie); }
.qlink:last-child { border-bottom: none; }
.qlink i { color: var(--navy-soft); font-size: 17px; flex: none; }

/* ---- Lageplan-Vorschau ---- */
.mapprev {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--linie); background: #fff; margin-bottom: 12px; cursor: pointer;
}
.mapprev img { display: block; width: 100%; }
.mapprev-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,36,60,.85); color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  max-width: calc(100% - 20px);
}
.legende { columns: 2; column-gap: 14px; margin-top: 12px; }
.leg { break-inside: avoid; display: flex; gap: 8px; padding: 5px 0; font-size: 13px; align-items: baseline; }
.leg .nr {
  flex: none; min-width: 24px; height: 22px; padding: 0 4px; border-radius: 7px;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.leg.tap {
  background: #fff; border: 1px solid var(--linie); border-radius: 12px;
  padding: 9px 12px; margin-bottom: 8px; align-items: center; cursor: pointer;
}
.leg.tap .nr { min-width: 28px; height: 26px; border-radius: 8px; }
.leg.tap .nr i { font-size: 15px; }
.leg.tap .nr.wht { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.leg.tap span:nth-child(2) { flex: 1; font-weight: 600; }
.leg.tap .go { color: var(--hint); font-size: 17px; }

/* ---- Vollbild-Kartenviewer ---- */
.mapfs {
  position: fixed; inset: 0; z-index: 200; background: var(--navy-dark);
  overflow: hidden; touch-action: none; overscroll-behavior: none;
}
.mapfs .stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.mapfs .stage img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.mapfs .pin {
  position: absolute; width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: var(--rot); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  transform-origin: center; cursor: pointer;
}
.mapfs .pin.big { width: 40px; height: 40px; font-size: 20px; }
.mapfs .pin.big i { font-size: 20px; }
.mapfs .pin.brc { background: #44608A; }
.mapfs .pin.wht { background: #fff; color: var(--navy); border-color: var(--navy); }
.mapfs .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #fff;
  padding: calc(10px + var(--safe-top)) 12px 20px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(rgba(0,36,60,.9), transparent);
}
.mapfs .topbar .t { font-family: var(--font-head); font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; }
.mapfs .closebtn {
  margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: none;
  background: rgba(255,255,255,.2); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.mapfs .hint {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(58px + var(--safe-top)); z-index: 5;
  background: rgba(0,36,60,.82); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 999px;
  transition: opacity .4s; white-space: nowrap;
}
.mapfs .ctrls {
  position: absolute; right: 12px; bottom: calc(22px + var(--safe-bottom)); z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
}
.mapfs .ctrls button {
  width: 46px; height: 46px; border-radius: 12px; border: none;
  background: rgba(255,255,255,.94); color: var(--navy); font-size: 24px; font-weight: 700;
  box-shadow: 0 1px 5px rgba(0,0,0,.3);
}
.mapfs .mapcap {
  position: absolute; left: 12px; right: 70px; bottom: calc(22px + var(--safe-bottom)); z-index: 5;
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(0,36,60,.88); color: #fff; font-size: 13px; line-height: 1.4;
  padding: 10px 13px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.mapfs .mapcap i { flex: none; font-size: 16px; margin-top: 1px; color: var(--gold-hell); }
.mapfs .mapcap span { min-width: 0; }
.mapfs .callout {
  position: absolute; left: 12px; right: 12px; bottom: calc(22px + var(--safe-bottom)); z-index: 6;
  background: #fff; border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.mapfs .callout .num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--rot); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.mapfs .callout .body { flex: 1; min-width: 0; }
.mapfs .callout .body .h { font-weight: 700; }
.mapfs .callout .open {
  flex: none; border: none; background: var(--navy); color: #fff; border-radius: 10px;
  min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.mapfs .callout .x { flex: none; border: none; background: #F1EFE8; color: var(--muted); width: 44px; height: 44px; border-radius: 11px; font-size: 16px; }

/* Info-Fenster für Lageplan-Symbole (Vollbild) */
.mapfs .lpco {
  position: absolute; left: 12px; right: 12px; bottom: calc(22px + var(--safe-bottom)); z-index: 7;
  background: #fff; border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.45);
  max-height: 54vh; display: flex; flex-direction: column; overflow: hidden;
  animation: lpcoIn .18s ease both;
}
@keyframes lpcoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lpco-head { display: flex; align-items: center; gap: 11px; padding: 12px 12px 9px; }
.lpco-badge { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.lpco-badge i { font-size: 19px; }
.lpco-title { flex: 1; min-width: 0; font-weight: 700; color: var(--navy); font-size: 15.5px; line-height: 1.25; }
.lpco-x { flex: none; border: none; background: #F1EFE8; color: var(--muted); width: 44px; height: 44px; border-radius: 11px; font-size: 16px; }
.lpco-body { padding: 0 14px 12px; overflow: auto; }
.lpco-sub { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.lpco-progs { display: flex; flex-direction: column; }
.lpco-prog { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linie); cursor: pointer; }
.lpco-prog .t { flex: none; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 14px; min-width: 46px; }
.lpco-prog .n { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }
.lpco-prog i { flex: none; color: var(--hint); font-size: 18px; }
.lpco-open { margin: 0 12px 12px; border: none; background: var(--navy); color: #fff; border-radius: 11px;
  min-height: 42px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---- Suche ---- */
.searchbox { display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--linie); border-radius: 13px; padding: 0 12px; margin-bottom: 14px; }
.searchbox i { color: var(--muted); font-size: 20px; }
.searchbox input { border: none; outline: none; flex: 1; height: 46px; font-size: 16px; background: transparent; color: var(--text); }
.res-group { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 12px 2px 8px; }

/* ---- Einstellungen / Schalter ---- */
.toggle-row { display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.toggle-row .ic { width: 40px; height: 40px; border-radius: 12px; background: #E7EEF6; color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.toggle-row .body { flex: 1; }
.toggle-row .body .h { font-weight: 700; font-size: 15px; }
.toggle-row .body .s { font-size: 12px; color: var(--muted); }
.switch { flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--linie);
  border: none; position: relative; transition: background .15s; }
/* unsichtbare Trefferfläche auf ≥44px vergrößern (Touch) */
.switch::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: calc(100% + 16px); height: 44px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--navy); }
.switch.on::after { left: 25px; }

/* ---- Rechtliches ---- */
.legal p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.legal .kv2 { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.legal .kv2 .k { color: var(--muted); min-width: 120px; }

/* ---- Bottom-Navigation ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: var(--maxw); margin: 0 auto;
  background: #fff; border-top: 1px solid var(--linie);
  display: flex; justify-content: space-around;
  padding: 8px 0 calc(8px + var(--safe-bottom));
}
.tabbar a { text-decoration: none; color: var(--hint); text-align: center; flex: 1; }
.tabbar a i { font-size: 22px; }
.tabbar a .l { font-size: 10px; display: block; margin-top: 1px; }
.tabbar a.on { color: var(--navy); }
.tabbar a .cnt {
  position: absolute; transform: translate(10px,-6px); background: var(--rot); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ---- Erinnerungs-Banner ---- */
.reminder {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(78px + var(--safe-bottom));
  z-index: 60; max-width: 420px; width: calc(100% - 28px);
  background: var(--navy); color: #fff; border-radius: 13px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.reminder i { color: var(--gold-hell); font-size: 22px; }
.reminder .x { margin-left: auto; background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }

/* ---- Hinweis-Boxen ---- */
.note {
  background: #FBF1D8; border: 1px solid var(--linie-gold); color: var(--gold-dark);
  border-radius: 13px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
  display: flex; gap: 8px; align-items: flex-start;
}
/* ---- Live-Infos (Durchsagen am Veranstaltungstag, ganz oben auf Start) ---- */
.livenews {
  background: #fff; border: 1px solid var(--linie-gold); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(8,56,92,.09);
}
.livenews .ln-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(100deg, var(--navy-dark), var(--navy-soft));
}
.livenews .ln-head i { font-size: 18px; color: var(--gold-hell); }
.livenews .ln-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px;
  border-top: 1px solid #EFE7D2; border-left: 4px solid var(--navy-soft);
}
.livenews .ln-item > i { font-size: 20px; margin-top: 1px; }
.livenews .ln-body { flex: 1; min-width: 0; }
.livenews .ln-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.livenews .ln-art { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.livenews .ln-time { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.livenews .ln-text { font-size: 14px; color: var(--navy-dark); line-height: 1.42; }
.livenews .ln-item.spontan   { border-left-color: var(--rot); }
.livenews .ln-item.spontan   > i, .livenews .ln-item.spontan   .ln-art { color: var(--rot); }
.livenews .ln-item.aenderung { border-left-color: #C77A00; }
.livenews .ln-item.aenderung > i, .livenews .ln-item.aenderung .ln-art { color: #C77A00; }
.livenews .ln-item.news      { border-left-color: var(--navy-soft); }
.livenews .ln-item.news      > i, .livenews .ln-item.news      .ln-art { color: var(--navy-soft); }
.livenews .ln-item.hinweis   { border-left-color: var(--gold-dark); }
.livenews .ln-item.hinweis   > i, .livenews .ln-item.hinweis   .ln-art { color: var(--gold-dark); }
.empty { text-align: center; color: var(--hint); padding: 40px 20px; }
.empty i { font-size: 36px; }

/* ---- Barrierefreiheit: größere Schrift ---- */
.textgross { font-size: 18px; }
.textgross .page-title { font-size: 26px; }
.textgross .row .body .h, .textgross .pitem .info .h, .textgross .tile .n,
.textgross .live .h, .textgross .detail-body, .textgross .legal p,
.textgross .event .body .h, .textgross .wc-name, .textgross .kind-item,
.textgross .gw-hand { font-size: 25px; }
.textgross .gw-hand { font-size: 30px; }
.textgross .gw-hi { font-size: 36px; }
.textgross .gw-close { font-size: 32px; }
.textgross .row .body .s, .textgross .pitem .info .s, .textgross .page-lead,
.textgross .leg, .textgross .chip, .textgross .event .body .s, .textgross .wc-text,
.textgross .karr-p, .textgross .karr-ul li, .textgross .karr-steps li, .textgross .karr-tag { font-size: 15px; }
/* bislang nicht erfasste Textbausteine ergänzen */
.textgross .note, .textgross .kv, .textgross .tl-x, .textgross .karr-blist li,
.textgross .lpco-sub, .textgross .detail-sub { font-size: 16px; }
.textgross .tl-t, .textgross .lpco-title, .textgross .detail-name { font-size: 20px; }
.textgross .tabbar a .l { font-size: 13px; }

/* ---- Screenreader-only (nur für Hilfstechnik sichtbar) ---- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Detail-Köpfe (Station/Einheit) – als Klassen, damit „Größere Schrift" greift */
.detail-name { font-weight: 700; font-size: 18px; }
.detail-sub { font-size: 13px; }

/* Merkliste-Aktionen (Teilen / Alle entfernen) */
.mk-actions { display: flex; gap: 10px; margin-top: 16px; }
.mk-actions .btn { margin-top: 0; }

/* kompakter Button (Install-Hinweis) */
.btn.sm { width: auto; flex: none; min-height: 40px; padding: 0 16px; margin-top: 0; font-size: 14px; }
.reminder.a2hs { align-items: center; }
.reminder .btn.sm { background: #F2C230; color: #08243C; }

/* ---- Barrierefreiheit: hoher Kontrast ---- */
.kontrast {
  --muted: #26313f; --hint: #3a4452; --linie: #7a7f8a; --linie-gold: #b98f2a;
  --creme: #ffffff;
}
.kontrast .tile, .kontrast .row, .kontrast .card, .kontrast .event, .kontrast .searchbox,
.kontrast .toggle-row, .kontrast .welt-card, .kontrast .kind-item { border-width: 2px; }
