/* Landingpage home.kidlog.de. Farben, Radien, Schrift aus tokens.css (scripts/landingpage-tokens.py).
   Formensprache der App (design-system/README.md): graue Fläche, weiße Karten, gruppierte Listen mit
   Icon-Kacheln und eingerückten Trennlinien, Kapseln. Die App-Oberflächen sind in HTML nachgebaut (ui.css),
   damit sie in jeder Auflösung scharf sind. Mobil zuerst, kein JavaScript (Reiter über Radio-Felder). */

:root {
  --seite-breite: 1180px;
  --schatten: 0 6px 14px var(--kl-card-shadow);
  --schatten-gross: 0 2px 6px rgba(23, 23, 23, 0.05), 0 30px 60px -30px rgba(23, 23, 23, 0.3);
  --tief: #171717;
  --entwurf-grund: #FEF3C7;
  --entwurf-text: #78350F;
}
@media (prefers-color-scheme: dark) {
  :root {
    --schatten-gross: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    --tief: #0F0F0F;
    --entwurf-grund: #3A2A06;
    --entwurf-text: #FDE68A;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--kl-font); color: var(--kl-ink); background: var(--kl-canvas); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--kl-accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .knopf:focus-visible { outline: 3px solid var(--kl-focus); outline-offset: 2px; border-radius: 12px; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--kl-ink); overflow-wrap: break-word; }
p { margin: 0; }
.huelle {
  width: 100%; max-width: calc(var(--seite-breite) + 40px); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons (Lucide, Strich 2,2 wie in der App) und Icon-Kachel mit Ton-Verlauf wie in der App (kl-icontile) */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.klein { width: 16px; height: 16px; }
.kachel {
  --s400: var(--tone-emerald-400); --s600: var(--tone-emerald-600);
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, var(--s400), var(--s600));
}
.kachel .i { width: 19px; height: 19px; }
.kachel.gross { width: 48px; height: 48px; border-radius: 14px; }
.kachel.gross .i { width: 24px; height: 24px; }
.ton-sky { --s400: var(--tone-sky-400); --s600: var(--tone-sky-600); }
.ton-blue { --s400: var(--tone-blue-400); --s600: var(--tone-blue-600); }
.ton-emerald { --s400: var(--tone-emerald-400); --s600: var(--tone-emerald-600); }
.ton-amber { --s400: var(--tone-amber-400); --s600: var(--tone-amber-600); }
.ton-teal { --s400: var(--tone-teal-400); --s600: var(--tone-teal-600); }
.ton-rose { --s400: var(--tone-rose-400); --s600: var(--tone-rose-600); }
.ton-slate { --s400: var(--tone-slate-400); --s600: var(--tone-slate-600); }
.ton-android { --s400: var(--tone-emerald-400); --s600: var(--tone-emerald-600); }

/* Kapseln wie die Badges der App */
.kapsel {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--kl-accent); background: var(--kl-accent-soft);
}
.kapsel.verfuegbar { color: var(--tone-emerald-text); background: var(--tone-emerald-badge); }
.kapsel.test { color: var(--tone-sky-text); background: var(--tone-sky-badge); }
.kapsel.vorbereitung { color: var(--tone-slate-text); background: var(--tone-slate-badge); }
.kapsel.bald { color: var(--tone-amber-text); background: var(--tone-amber-badge); }
.kapsel.umbruch { white-space: normal; }

/* Knöpfe wie in der App */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 16px/1.2 var(--kl-font); text-decoration: none; white-space: nowrap; color: var(--kl-on-primary); background: var(--kl-primary);
  border: 1px solid transparent; transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}
.knopf:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(23, 23, 23, 0.35); }
.knopf:active { transform: scale(0.97); }
.knopf .i { width: 18px; height: 18px; }
.knopf.weich { color: var(--kl-ink); background: var(--kl-card); border-color: var(--kl-hairline-strong); box-shadow: none; }
.knopf.klein { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

.entwurf { background: var(--entwurf-grund); color: var(--entwurf-text); font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
/* Vor dem Start: Hinweis über jeder Seite, dass KidLog in Kürze verfügbar ist und die Seite es vorstellt */
.bald-band { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--kl-on-primary); background: var(--kl-primary); }
.bald-band a { color: var(--kl-on-primary); font-weight: 700; }
.bald-band .live-punkt { flex: none; }
.kapsel-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.kapsel-reihe .kapsel { white-space: normal; }

/* Kopfleiste */
/* Deckend, ohne backdrop-filter: Der Weichzeichner über den 3D-Bühnen (Anmeldung, Abrechnung) ließ die Leiste beim Scrollen
   einzelne Bilder lang verschwinden, und über dunklen Abschnitten färbte sie sich grau. Beides sah wie Flackern aus. */
.kopf {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--kl-canvas); border-bottom: 1px solid var(--kl-hairline);
}
.kopf-leiste { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kl-ink); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
/* Logo: Marke aus dem App-Icon ohne SB-Streifen (scripts/landingpage-tokens.py) */
.logo { width: 32px; height: 32px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px var(--kl-hairline-strong); }
.kopf-nav { display: none; margin-inline: auto; gap: 2px; }
.kopf-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--kl-ink-secondary); transition: color 200ms ease, background-color 200ms ease; }
.kopf-nav a:hover { color: var(--kl-ink); background: var(--kl-field-fill); }
.kopf-aktionen { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.anmelden { display: none; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--kl-ink-secondary); text-decoration: none; }
.anmelden:hover { color: var(--kl-ink); }
.kopf-cta { display: none; }
.menue { position: relative; }
.menue summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--kl-field-fill); color: var(--kl-ink); }
.menue summary::-webkit-details-marker { display: none; }
.menue-liste {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 40px)); display: grid; gap: 2px; padding: 8px;
  border-radius: 18px; background: var(--kl-card-fill-strong); border: 1px solid var(--kl-hairline-strong); box-shadow: var(--schatten-gross);
}
.menue-liste a { padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--kl-ink); font-weight: 600; }
.menue-liste a:hover { background: var(--kl-field-fill); }
.menue-liste .knopf { margin-top: 6px; color: var(--kl-on-primary); }
@media (min-width: 560px) { .kopf-cta { display: inline-flex; } }
@media (min-width: 1200px) { .kopf-nav { display: flex; } .anmelden { display: inline-flex; } .kopf-aktionen { margin-left: 0; } .menue { display: none; } }

/* Abschnitte */
/* Abstandsskala (8-px-Raster): Abschnitt oben = unten, Kopf → Inhalt, Kopf innen. Stufen statt stufenloser Werte,
   damit gleichrangige Abstände überall gleich sind (gemessen bei 390/768/1280/1440/1920 px). */
:root { --raum-abschnitt: 64px; --raum-kopf: 32px; --raum-kopf-innen: 16px; }
@media (min-width: 768px) { :root { --raum-abschnitt: 96px; --raum-kopf: 48px; } }
@media (min-width: 1200px) { :root { --raum-abschnitt: 120px; } }
.abschnitt { padding-block: var(--raum-abschnitt); }
.abschnitt + .abschnitt { border-top: 1px solid var(--kl-hairline); }
.abschnitt.getoent { background: var(--kl-card-fill); }
.abschnitt-kopf { display: grid; gap: var(--raum-kopf-innen); max-width: 760px; margin-bottom: var(--raum-kopf); }
.abschnitt-kopf.mitte { margin-inline: auto; text-align: center; justify-items: center; }
.oberzeile { font-size: 16px; font-weight: 700; color: var(--kl-accent); }
.titel-1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.titel-2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.einleitung { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--kl-ink-secondary); max-width: 62ch; }
.hinweis { font-size: 14px; color: var(--kl-ink-secondary); }
.platzhalter-text { padding: 2px 8px; border-radius: 8px; background: var(--tone-amber-badge); color: var(--tone-amber-text); font-weight: 600; }

/* Karte und gruppierte Liste (wie iOS und die App) */
.karte { background: var(--kl-card); border-radius: var(--kl-card-radius); box-shadow: var(--schatten); }
.liste { list-style: none; margin: 0; padding: 0; background: var(--kl-card); border-radius: var(--kl-card-radius); box-shadow: var(--schatten); overflow: hidden; }
.zeile { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 16px; align-items: start; padding: 14px 18px; }
.zeile + .zeile::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--kl-hairline); }
.zeile .kachel { grid-row: span 2; margin-top: 2px; }
.zeile strong { font-size: 17px; font-weight: 600; line-height: 1.35; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.zeile span.text { font-size: 15px; line-height: 1.5; color: var(--kl-ink-secondary); }
.nummer { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; flex: none; font: 800 14px/1 var(--kl-font); color: var(--kl-on-primary); background: var(--kl-primary); font-variant-numeric: tabular-nums; }
.zeile .nummer { grid-row: span 2; }

/* Startbereich mit Produkt-Rundgang */
.start { padding-block: 48px; }
@media (min-width: 768px) { .start { padding-block: 72px; } }
.start-text { display: grid; gap: 20px; justify-items: start; max-width: 860px; }
.start-text .kapsel { white-space: normal; }
.vertrauen { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--kl-ink-secondary); }
.vertrauen span { display: inline-flex; align-items: center; gap: 6px; }
.vertrauen .i { color: var(--kl-ok); }

.rundgang { margin-top: clamp(36px, 5vw, 56px); container-type: inline-size; }
.rundgang input { position: absolute; opacity: 0; pointer-events: none; }
.reiter { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 24px; background: var(--kl-field-fill); width: max-content; max-width: 100%; margin-bottom: 18px; }
.reiter label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--kl-ink-secondary); cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.reiter label:hover { color: var(--kl-ink); }
.reiter .i { width: 17px; height: 17px; }
#r-uebersicht:checked ~ .reiter [for="r-uebersicht"], #r-auftraege:checked ~ .reiter [for="r-auftraege"], #r-bericht:checked ~ .reiter [for="r-bericht"],
#r-kalender:checked ~ .reiter [for="r-kalender"], #r-chat:checked ~ .reiter [for="r-chat"] { background: var(--kl-card); color: var(--kl-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
#r-uebersicht:focus-visible ~ .reiter [for="r-uebersicht"], #r-auftraege:focus-visible ~ .reiter [for="r-auftraege"], #r-bericht:focus-visible ~ .reiter [for="r-bericht"],
#r-kalender:focus-visible ~ .reiter [for="r-kalender"], #r-chat:focus-visible ~ .reiter [for="r-chat"] { outline: 3px solid var(--kl-focus); outline-offset: 2px; }
.rundgang .ui { font-size: clamp(9px, calc(100cqw / 78), 16px); }
@container (max-width: 760px) { .rundgang .ui { font-size: clamp(11px, calc(100cqw / 30), 15px); } }
.ansicht { display: none; }
#r-uebersicht:checked ~ .ui .a-uebersicht, #r-auftraege:checked ~ .ui .a-auftraege, #r-bericht:checked ~ .ui .a-bericht,
#r-kalender:checked ~ .ui .a-kalender, #r-chat:checked ~ .ui .a-chat { display: grid; }
.ui-nav[data-ansicht] { transition: background-color 200ms ease; }
#r-uebersicht:checked ~ .ui .n-uebersicht, #r-auftraege:checked ~ .ui .n-auftraege, #r-bericht:checked ~ .ui .n-bericht,
#r-kalender:checked ~ .ui .n-kalender, #r-chat:checked ~ .ui .n-chat { background: var(--kl-accent-soft); border-color: transparent; color: var(--kl-accent); font-weight: 600; }
#r-uebersicht:checked ~ .ui .n-uebersicht .i, #r-auftraege:checked ~ .ui .n-auftraege .i, #r-bericht:checked ~ .ui .n-bericht .i,
#r-kalender:checked ~ .ui .n-kalender .i, #r-chat:checked ~ .ui .n-chat .i { color: var(--kl-accent); }
.rundgang .ui-haupt { min-height: 44em; }
.rundgang-hinweis { margin-top: 14px; font-size: 14px; color: var(--kl-ink-secondary); }

/* Alles in einer App: statt vieler Werkzeuge */
.ersetzt { display: grid; gap: 12px; }
@media (min-width: 760px) { .ersetzt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ersetzt { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ersetzt li { list-style: none; display: grid; gap: 10px; padding: 18px; border-radius: 22px; background: var(--kl-card); box-shadow: var(--schatten); }
.ersetzt ul { margin: 0; padding: 0; }
.ersetzt .vorher { justify-self: start; font-size: 14px; color: var(--kl-ink-secondary); opacity: 0.45; transform-origin: left center; transform: scale(0.95); }
/* Durchstreichen als Linie je Textzeile (auch bei Umbruch): Hintergrund-Linie. Endzustand ohne Skript oder bei reduzierter Bewegung. */
.ersetzt .strich {
  background: linear-gradient(var(--kl-err), var(--kl-err)) no-repeat 0 55% / 100% 2.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Animation je Karte: assets/ersetzt.js setzt .anim an die Liste und .los an jede Karte, sobald sie zu 50 % sichtbar ist.
   --v = Versatz innerhalb einer Zeile. Ablauf ca. 1,3 s: Strich 700 ms, alter Text dämpft/schrumpft, dann neues Element 450 ms. */
@media (prefers-reduced-motion: no-preference) {
  .ersetzt.anim li { --v: 0ms; }
  .ersetzt.anim li:not(.los) .vorher { opacity: 1; transform: none; color: var(--kl-ink); }
  .ersetzt.anim li:not(.los) .strich { background-size: 0% 2.5px; }
  .ersetzt.anim li:not(.los) .nachher { opacity: 0; transform: translateY(12px); }
  .ersetzt.anim li:not(.los) .nachher .kachel { transform: scale(0.8); }
  .ersetzt.anim li.los .strich { transition: background-size 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--v); }
  .ersetzt.anim li.los .vorher { transition: opacity 400ms ease-out calc(var(--v) + 450ms), transform 400ms ease-out calc(var(--v) + 450ms), color 300ms ease-out calc(var(--v) + 300ms); }
  .ersetzt.anim li.los .nachher { transition: opacity 450ms ease-out calc(var(--v) + 800ms), transform 450ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--v) + 800ms); }
  .ersetzt.anim li.los .nachher .kachel { transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--v) + 800ms); }
}
.ersetzt .nachher { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.ersetzt .pfeil { color: var(--kl-ink-tertiary); width: 16px; height: 16px; }

/* Ablauf in fünf Schritten: Verbindungslinie mit laufendem Punkt, Karten leuchten nacheinander auf */
.ablauf { --dauer: 10s; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ablauf li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.ablauf::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--kl-accent); opacity: 0.35; border-radius: 2px; }
.ablauf .ablauf-puls { display: none; }
.ablauf-nummer {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: var(--kl-on-primary); background: var(--kl-primary); box-shadow: 0 0 0 5px var(--kl-canvas);
}
.ablauf-karte { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 22px; background: var(--kl-card); box-shadow: var(--schatten); border: 1px solid transparent; transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease; }
.ablauf-karte:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--kl-accent) 35%, transparent); box-shadow: var(--schatten-gross); }
.ablauf h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.ablauf p { font-size: 15px; color: var(--kl-ink-secondary); }
.ablauf .wer { display: flex; flex-wrap: wrap; gap: 6px; }
.ablauf .ui.mini { font-size: 13px; display: grid; gap: 0.6em; padding: 0.8em; border-radius: 1em; background: var(--kl-field-fill); min-height: 7.6em; align-content: center; justify-items: start; }
.ablauf .ui.mini > * { max-width: 100%; }
.ablauf .ui.mini .ui-gruppe { width: 100%; }
@media (min-width: 1100px) {
  .ablauf { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .ablauf li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
  .ablauf::before { left: 10%; right: 10%; top: 19px; bottom: auto; width: auto; height: 2px; background: var(--kl-accent); }
  .ablauf-karte { justify-self: stretch; }
  .ablauf .ablauf-puls { display: block; position: absolute; top: 14px; left: 10%; width: 12px; height: 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px var(--kl-accent), 0 0 18px 6px color-mix(in srgb, var(--kl-accent) 50%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
  .ablauf-karte { animation: aufleuchten var(--dauer) ease-in-out infinite; }
  .ablauf-nummer { animation: ring var(--dauer) ease-in-out infinite; }
  /* Kind 1 ist der laufende Punkt, die Schritte sind Kind 2 bis 6 */
  .ablauf li:nth-child(3) > * { animation-delay: 2s; }
  .ablauf li:nth-child(4) > * { animation-delay: 4s; }
  .ablauf li:nth-child(5) > * { animation-delay: 6s; }
  .ablauf li:nth-child(6) > * { animation-delay: 8s; }
  .ablauf .ablauf-puls { animation: wandern var(--dauer) linear infinite; }
  .ui-diktat .mikro::after { animation: puls 1.6s ease-out infinite; }
  .ui-balken i { animation: fuellen 3s ease-in-out infinite alternate; }
}
@keyframes aufleuchten {
  0%, 22%, 100% { border-color: transparent; box-shadow: var(--schatten); transform: none; }
  8%, 14% { border-color: color-mix(in srgb, var(--kl-accent) 35%, transparent); box-shadow: 0 0 0 4px var(--kl-accent-soft), var(--schatten-gross); transform: translateY(-4px); }
}
@keyframes ring {
  0%, 22%, 100% { box-shadow: 0 0 0 5px var(--kl-canvas); }
  8%, 14% { box-shadow: 0 0 0 5px var(--kl-canvas), 0 0 0 10px color-mix(in srgb, var(--kl-accent) 25%, transparent); }
}
@keyframes wandern { from { left: 10%; } to { left: calc(90% - 12px); } }
@keyframes puls { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
@keyframes fuellen { from { width: 28%; } to { width: 58%; } }

/* Höhepunkte: Text neben nachgebauter Oberfläche */
.hoehepunkt { display: grid; gap: 32px; align-items: center; padding-block: var(--raum-kopf); container-type: inline-size; }
.hoehepunkt + .hoehepunkt { border-top: 1px solid var(--kl-hairline); }
@media (min-width: 1000px) {
  .hoehepunkt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .hoehepunkt.gespiegelt > :first-child { order: 2; }
}
.hoehepunkt-text { display: grid; gap: 16px; align-content: start; }
.hoehepunkt h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
.punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.punkte li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 16px; color: var(--kl-ink-secondary); }
.punkte li strong { color: var(--kl-ink); font-weight: 600; }
.punkte .i { width: 18px; height: 18px; color: var(--kl-ok); margin-top: 3px; }
.hoehepunkt .ui { font-size: clamp(11px, 1.15vw, 15px); }
.buehne-flach { padding: clamp(16px, 3vw, 32px); border-radius: 30px; background: var(--kl-card-fill); border: 1px solid var(--kl-hairline); display: grid; justify-items: center; gap: 16px; }
.pdf-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: 0.8em; width: 100%; }
.pdf-blatt { display: grid; gap: 0.5em; justify-items: start; padding: 0.9em; border-radius: 1em; background: var(--kl-card); box-shadow: 0 0.4em 1em var(--kl-card-shadow); }
.pdf-blatt .kachel { width: 2em; height: 2em; border-radius: 0.6em; }
.pdf-blatt b { font-size: 0.9em; line-height: 1.25; }

/* Sicherheit: großer, ruhiger Teil */
.sicherheit-kopf { display: grid; gap: 24px; align-items: end; margin-bottom: var(--raum-kopf); }
@media (min-width: 1000px) { .sicherheit-kopf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.schichten { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .schichten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.schicht { padding: 22px; border-radius: 22px; background: var(--kl-card); box-shadow: var(--schatten); display: grid; gap: 12px; align-content: start; border-top: 4px solid var(--kl-primary); }
.schicht .stufe { font-size: 14px; font-weight: 600; color: var(--kl-ink-secondary); }
.schicht h3 { font-size: 19px; font-weight: 800; }
.schicht ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--kl-ink-secondary); }
.schicht li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.schicht li .i { width: 16px; height: 16px; color: var(--kl-ok); margin-top: 4px; }
.dsgvo { padding: 22px 24px; display: grid; gap: 14px; align-items: center; }
@media (min-width: 900px) { .dsgvo { grid-template-columns: auto minmax(0, 1fr) auto; } }
.dsgvo p { font-size: 15px; color: var(--kl-ink-secondary); }
.dsgvo strong { color: var(--kl-ink); }

/* Effizient und leicht */
.vorteile { display: grid; gap: 12px; }
@media (min-width: 700px) { .vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vorteile { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vorteil { padding: 22px; display: grid; gap: 10px; align-content: start; }
.vorteil h3 { font-size: 18px; font-weight: 700; }
.vorteil p { font-size: 15px; color: var(--kl-ink-secondary); }

/* Vergleich */
.vergleich-rahmen { overflow-x: auto; border-radius: var(--kl-card-radius); background: var(--kl-card); box-shadow: var(--schatten); }
.vergleich { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.vergleich th, .vergleich td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--kl-hairline); }
.vergleich tr:last-child td { border-bottom: 0; }
.vergleich thead th { font-size: 13px; font-weight: 700; color: var(--kl-ink-secondary); background: var(--kl-field-fill); }
.vergleich thead th.kidlog { color: var(--kl-accent); }
.vergleich tbody th { font-weight: 600; width: 30%; }
.vergleich td.kidlog { background: var(--kl-accent-soft); font-weight: 600; }
.vergleich .ja, .vergleich .nein, .vergleich .teils { display: inline-flex; align-items: flex-start; gap: 6px; }
.vergleich .ja .i { color: var(--kl-ok); width: 18px; height: 18px; margin-top: 2px; }
.vergleich .nein .i { color: var(--kl-err); width: 18px; height: 18px; margin-top: 2px; }
.vergleich .teils .i { color: var(--kl-warn); width: 18px; height: 18px; margin-top: 2px; }
.vergleich td { color: var(--kl-ink-secondary); }
.vergleich td.kidlog { color: var(--kl-ink); }

/* Rollen, Geräte, In Entwicklung, Support */
.rollen { display: grid; gap: 12px; }
@media (min-width: 700px) { .rollen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rollen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rolle { display: grid; gap: 12px; align-content: start; padding: 22px; }
.rolle h3 { font-size: 17px; font-weight: 700; }
.rolle ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--kl-ink-secondary); }
.zwei-spalten { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .zwei-spalten { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } .zwei-spalten > .abschnitt-kopf { margin-bottom: 0; } }
.zwei-listen { display: grid; gap: 16px; }
@media (min-width: 900px) { .zwei-listen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.support { padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; align-content: start; }
.support h3 { font-size: 22px; font-weight: 800; }
.support p { color: var(--kl-ink-secondary); }

/* Preise, Fragen, Kontakt */
.preis { padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; }
@media (min-width: 900px) { .preis { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; } }
.preis-text { display: grid; gap: 14px; }
.frage summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 56px; padding: 14px 18px; font-weight: 600; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary .i { color: var(--kl-ink-tertiary); transition: transform 200ms ease; }
.frage[open] summary .i { transform: rotate(90deg); }
.frage p { padding: 0 18px 18px; color: var(--kl-ink-secondary); max-width: 70ch; }
.frage + .frage { border-top: 1px solid var(--kl-hairline); }
.offen { font-style: italic; }
.kontakt { padding: clamp(24px, 5vw, 48px); display: grid; gap: 24px; color: #EDEDED; background: var(--tief); border-radius: 32px; }
@media (min-width: 900px) { .kontakt { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; } }
.kontakt .seite { display: grid; gap: var(--raum-kopf-innen); justify-items: start; }
.kontakt h2 { color: #fff; }
.kontakt .oberzeile { color: #3ECF8E; }
.kontakt p { color: #A3A3A3; }
.kontakt a:not(.knopf) { color: #fff; }
.kontakt .knopf { background: #3ECF8E; color: #0B2E1E; }

/* Fußzeile */
.fuss { padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--kl-ink-secondary); border-top: 1px solid var(--kl-hairline); }
.fuss-zeile { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fuss a { color: var(--kl-ink-secondary); text-decoration: none; }
.fuss a:hover { color: var(--kl-ink); text-decoration: underline; }
.fuss .rechte { flex-basis: 100%; font-size: 12px; color: var(--kl-ink-secondary); }

/* Unterseiten (Impressum, Datenschutz, 404) */
.unterseite { padding-block: clamp(40px, 8vw, 88px); }
.blatt { max-width: 760px; margin-inline: auto; display: grid; gap: 16px; padding: clamp(24px, 5vw, 48px); border-radius: var(--kl-card-radius); background: var(--kl-card); box-shadow: var(--schatten); }
.blatt h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; hyphens: auto; -webkit-hyphens: auto; }
.blatt h2 { font-size: 20px; font-weight: 700; margin-top: 10px; }
.blatt p, .blatt li { color: var(--kl-ink-secondary); }
.angaben { margin: 0; display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 10px 24px; }
.angaben dt { font-weight: 700; }
.angaben dd { margin: 0; color: var(--kl-ink-secondary); overflow-wrap: anywhere; }
@media (max-width: 520px) { .angaben { grid-template-columns: minmax(0, 1fr); gap: 2px; } .angaben dd { margin-bottom: 12px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Hilfsklassen (die CSP verbietet Inline-Stile) */
.ohne-abstand { margin-bottom: 0; }
.listen-stapel { display: grid; gap: 16px; }
.i.voll { fill: currentColor; stroke: none; }
.zeile strong .kapsel { white-space: normal; }

/* Im Rundgang klickbare Stellen der nachgebauten App (Labels der Reiter-Felder) */
.rundgang label.ui-nav, .rundgang label.ui-zahl, .rundgang label.ui-zeile, .rundgang label.pille, .rundgang label.ui-knopf { cursor: pointer; transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
.rundgang label.ui-nav:hover { background: var(--kl-field-fill); }
.rundgang label.ui-zahl:hover { transform: translateY(-2px); box-shadow: 0 0.8em 1.6em -0.6em var(--kl-card-shadow), 0 0 0 1px color-mix(in srgb, var(--kl-accent) 35%, transparent); }
.rundgang label.ui-zeile:hover { background: var(--kl-field-fill); }
.rundgang label.pille:hover { background: color-mix(in srgb, var(--kl-accent) 22%, transparent); }

/* Rundgang: Ansicht Schützlinge (gleiches Muster wie die übrigen Ansichten) */
#r-schuetzlinge:checked ~ .reiter [for="r-schuetzlinge"] { background: var(--kl-card); color: var(--kl-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
#r-schuetzlinge:focus-visible ~ .reiter [for="r-schuetzlinge"] { outline: 3px solid var(--kl-focus); outline-offset: 2px; }
#r-schuetzlinge:checked ~ .ui .a-schuetzlinge { display: grid; }
#r-schuetzlinge:checked ~ .ui .n-schuetzlinge { background: var(--kl-accent-soft); border-color: transparent; color: var(--kl-accent); font-weight: 600; }
#r-schuetzlinge:checked ~ .ui .n-schuetzlinge .i { color: var(--kl-accent); }
.ersetzt { margin: 0; padding: 0; }

/* Höhepunkt über die volle Breite (Dokument-Baukasten): Text oben zweigeteilt, Editor darunter */
.hoehepunkt.breit { grid-template-columns: minmax(0, 1fr); }
.hoehepunkt.breit .ui { font-size: clamp(11px, 1.12vw, 15px); }
.zweigeteilt { display: grid; gap: 24px; }
.hoehepunkt-kopf { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .hoehepunkt.breit { grid-template-columns: minmax(0, 1fr); } .zweigeteilt { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: end; } }

/* Bühne für das iPhone: weicher neutraler Schatten, Mitteilung schwebt daneben */
.geraet-buehne { position: relative; display: grid; place-items: center; padding: clamp(24px, 5vw, 56px) 0; }
.geraet-buehne::before { content: ""; position: absolute; inset: 8% 15%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--kl-ink) 7%, transparent), transparent); z-index: -1; }
.geraet-buehne .ui { font-size: clamp(12px, 1.2vw, 15px); }

/* Parallax: Ebenen verschieben sich beim Scrollen unterschiedlich schnell (nur CSS, nur wo unterstützt) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax-sanft, .parallax-langsam, .parallax-schnell, .schicht:nth-child(even), .ersetzt li:nth-child(even) { animation: parallax-langsam linear both; animation-timeline: view(); }
    .parallax-sanft { animation-name: parallax-sanft; }
    .parallax-schnell { animation-name: parallax-schnell; }
    .schicht:nth-child(even), .ersetzt li:nth-child(even) { animation-name: parallax-sanft; }
  }
}
@keyframes parallax-sanft { from { translate: 0 1.5rem; } to { translate: 0 -1.5rem; } }
@keyframes parallax-langsam { from { translate: 0 3rem; } to { translate: 0 -3rem; } }
@keyframes parallax-schnell { from { translate: 0 7rem; } to { translate: 0 -7rem; } }
.ton-android .i { width: 26px; height: 26px; }
.support-zeit { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--tone-emerald-text); background: var(--tone-emerald-badge); }


/* ===== 3D ===== */
:root { --ease-3d: cubic-bezier(0.2, 0, 0, 1); }
/* Startwert in px (em ist bei registrierten Eigenschaften nicht erlaubt); der eigentliche Abstand steht an .ebenen-szene */
@property --abstand { syntax: "<length>"; inherits: true; initial-value: 0px; }
.ebenen-szene { --abstand: 3.4em; }

/* Startbereich: das App-Fenster schwenkt beim Laden einmal ein und neigt sich mit der Maus (tiefe.js setzt --nx, --ny) */
.rundgang { perspective: 2200px; }
.rundgang .ui-fenster {
  transform: rotateX(calc(var(--ny, 0) * -2.5deg)) rotateY(calc(var(--nx, 0) * 3.5deg));
  transition: transform 500ms var(--ease-3d);
  transform-origin: 50% 40%;
}
@media (prefers-reduced-motion: no-preference) {
  .rundgang .ui-fenster { animation: einschwenken 1100ms 900ms var(--ease-3d) backwards; }
}
@keyframes einschwenken { from { opacity: 0; transform: translateY(48px) rotateX(18deg) scale(0.96); } }

/* Sicherheit: Schutzebenen als Stapel aus Glasplatten (Ablauf siehe „Sicherheit als Fundament“ unten) */
.ebenen-3d { position: relative; display: grid; place-items: center; min-height: 30em; perspective: 1500px; font-size: clamp(10px, 1.15vw, 15px); }
.ebenen-3d::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 10%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 23, 23, 0.3), transparent); filter: blur(10px); z-index: -1; }
.ebenen-szene {
  position: relative; width: 20em; height: 13em; transform-style: preserve-3d;
  transform: rotateX(calc(57deg + var(--ny, 0) * 6deg)) rotateZ(calc(-38deg + var(--nx, 0) * 9deg));
  transition: transform 600ms var(--ease-3d);
}
.ebene {
  --farbe: var(--tone-emerald-500);
  position: absolute; inset: 0; border-radius: 1.7em; display: flex; align-items: flex-end; gap: 0.7em; padding: 1.1em 1.2em;
  translate: var(--ziehen, 0em) 0 calc(var(--stufe) * var(--abstand));
  background:
    linear-gradient(color-mix(in srgb, var(--farbe) 14%, transparent) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    linear-gradient(90deg, color-mix(in srgb, var(--farbe) 14%, transparent) 1px, transparent 1px) 0 0 / 1.6em 1.6em,
    linear-gradient(145deg, color-mix(in srgb, var(--farbe) 28%, var(--kl-card)), color-mix(in srgb, var(--farbe) 10%, var(--kl-card)));
  border: 1px solid color-mix(in srgb, var(--farbe) 55%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 1.8em 2.6em -1.2em rgba(0, 0, 0, 0.3);
  transition: translate 500ms var(--ease-3d), opacity 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.ebene b { font-size: 1.05em; font-weight: 800; color: var(--kl-ink); }
.ebene .kachel { width: 2.4em; height: 2.4em; border-radius: 0.7em; }
.ebene .kachel .i { width: 1.25em; height: 1.25em; }
.e1 { --stufe: 0; --farbe: var(--tone-amber-500); }
.e2 { --stufe: 1; --farbe: var(--tone-blue-500); }
.e3 { --stufe: 2; --farbe: var(--tone-sky-500); }
.e4 { --stufe: 3; --farbe: var(--tone-teal-500); }

/* iPhone: leicht gedreht im Raum, Lichtreflex wandert mit der Neigung */
.geraet-buehne { perspective: 1600px; }
.geraet-buehne .ui-iphone {
  transform: rotateY(calc(-14deg + var(--nx, 0) * 10deg)) rotateX(calc(5deg + var(--ny, 0) * -6deg));
  transition: transform 600ms var(--ease-3d);
}
.geraet-buehne .ui-iphone-schirm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent calc(35% + var(--nx, 0) * 15%), rgba(255, 255, 255, 0.12) calc(45% + var(--nx, 0) * 15%), transparent calc(58% + var(--nx, 0) * 15%));
}
@media (prefers-reduced-motion: reduce) {
  .rundgang .ui-fenster, .geraet-buehne .ui-iphone { transform: none; }
}

/* ===== Handy ===== */
.nur-handy { display: none; }
.handy-cta { display: none; }
@media (max-width: 759px) {
  .nur-handy { display: block; }
  .wisch-hinweis { font-size: 14px; color: var(--kl-ink-secondary); margin-bottom: 10px; }
  /* Karussell: Karten nebeneinander zum Wischen, die nächste schaut an */
  .karussell {
    display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding: 4px max(20px, env(safe-area-inset-left, 0px)) 18px;
    scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px)); scrollbar-width: none;
  }
  .karussell::-webkit-scrollbar { display: none; }
  .karussell > * { flex: 0 0 84%; scroll-snap-align: start; }
  .ablauf.karussell::before { display: none; }
  .ablauf.karussell > .ablauf-puls { display: none; }
  .ablauf.karussell > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* Reiter des Rundgangs in einer wischbaren Zeile */
  .reiter { flex-wrap: nowrap; overflow-x: auto; width: auto; border-radius: 999px; scrollbar-width: none; }
  .reiter::-webkit-scrollbar { display: none; }
  .reiter label { white-space: nowrap; flex: none; }
  /* Werkzeuge kompakt in zwei Spalten */
  .ersetzt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ersetzt li { padding: 14px; gap: 8px; }
  .ersetzt .vorher { font-size: 12px; }
  .ersetzt .nachher { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 15px; }
  /* Vergleich: erste Spalte bleibt beim Wischen stehen */
  .vergleich { min-width: 680px; }
  .vergleich tbody th, .vergleich thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--kl-card); min-width: 150px; box-shadow: 1px 0 0 var(--kl-hairline); }
  /* --kl-field-fill ist halbdurchsichtig: deckende Kartenfarbe darunter, sonst scheint beim Wischen „KidLog“ durch */
  .vergleich thead th:first-child { z-index: 2; background: linear-gradient(var(--kl-field-fill), var(--kl-field-fill)), var(--kl-card); }
  /* Feste Leiste zum Anfragen */
  .handy-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--kl-canvas) 86%, transparent); border-top: 1px solid var(--kl-hairline);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  }
  .handy-cta .knopf { width: 100%; }
  body:has(.handy-cta) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .ebenen-3d { min-height: 22em; font-size: 10px; }
}
@media (max-width: 559px) {
  .start-text .knopfreihe .knopf { flex: 1 1 100%; }
}

/* Mobile UI/UX Pro Max: Zielgrößen ≥ 44 px mit ≥ 8 px Abstand, fokussierbare Wischbereiche, Leiste erst nach dem Start */
.reiter label { min-height: 44px; }
.fuss nav { gap: 8px 20px; }
.fuss nav a { display: inline-flex; align-items: center; min-height: 44px; }
.karussell:focus-visible, .vergleich-rahmen:focus-visible { outline: 3px solid var(--kl-focus); outline-offset: 4px; }
@media (max-width: 759px) {
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .handy-cta { animation: leiste-herein linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    }
  }
}
@keyframes leiste-herein { from { translate: 0 110%; } to { translate: 0 0; } }

/* Auftritt im Startbereich: Überschrift baut sich Wort für Wort auf, danach schwenkt das App-Fenster ein */
.auftritt .wort { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .auftritt .wort { animation: wort-herein 650ms var(--ease-3d) backwards; }
  .auftritt .wort:nth-child(1) { animation-delay: 0ms; }
  .auftritt .wort:nth-child(2) { animation-delay: 70ms; }
  .auftritt .wort:nth-child(3) { animation-delay: 140ms; }
  .auftritt .wort:nth-child(4) { animation-delay: 210ms; }
  .auftritt .wort:nth-child(5) { animation-delay: 280ms; }
  .auftritt .wort:nth-child(6) { animation-delay: 350ms; }
  .auftritt .wort:nth-child(7) { animation-delay: 420ms; }
  .auftritt .wort:nth-child(8) { animation-delay: 490ms; }
  .auftritt .wort:nth-child(9) { animation-delay: 560ms; }
  .auftritt .wort:nth-child(10) { animation-delay: 630ms; }
  .start-text > :not(h1) { animation: wort-herein 650ms 600ms var(--ease-3d) backwards; }
}
@keyframes wort-herein { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

/* Rundgang auf dem Handy: das App-Fenster wird zum iPhone mit Statusleiste und Tab-Leiste wie in der App */
.ui-tel-status, .ui-tabbar { display: none; }
@container (max-width: 760px) {
  .rundgang .ui-fenster {
    /* höchstens so hoch wie der Platz zwischen Kopfleiste und Anfrage-Leiste, damit die Tab-Leiste sichtbar bleibt */
    position: relative; width: 100%; max-width: min(26em, calc((100svh - 170px) * 393 / 852)); margin-inline: auto; aspect-ratio: 393 / 852;
    border-radius: 3em; border: 0.55em solid #1d1d22; box-shadow: 0 0 0 1px #45454d, 0 2.5em 5em -2.5em rgba(0, 0, 0, 0.45);
  }
  .rundgang .ui-haupt {
    min-height: 0; overflow: hidden; padding: 3.6em 1em 6.5em;
    -webkit-mask-image: linear-gradient(#000 82%, transparent 92%); mask-image: linear-gradient(#000 82%, transparent 92%);
  }
  .ui-tel-status {
    display: flex; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 3.3em; align-items: center; justify-content: space-between;
    padding: 0 1.8em 0 2em; font-size: 0.85em; font-weight: 700; background: linear-gradient(var(--kl-canvas) 65%, transparent);
  }
  .ui-tel-status .ui-insel { top: 0.7em; width: 6.5em; height: 1.9em; }
  .ui-tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: absolute; z-index: 3; left: 0.7em; right: 0.7em; bottom: 0.8em;
    padding: 0.35em; border-radius: 2em; background: color-mix(in srgb, var(--kl-card-fill-strong) 88%, transparent);
    border: 1px solid var(--kl-hairline-strong); box-shadow: 0 0.6em 1.6em -0.6em rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .ui-tab { display: grid; justify-items: center; gap: 0.15em; padding: 0.45em 0.1em; border-radius: 1.4em; font-size: 0.68em; font-weight: 600; color: var(--kl-ink-secondary); border: 1px solid transparent; cursor: pointer; }
  .ui-tab .i { width: 1.7em; height: 1.7em; }
  .ui-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* ===== Die ganze App als Kino-Szene (nach dem Vorbild einer filmischen App-Präsentation) ===== */
@property --f { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --fokus { syntax: "<number>"; inherits: true; initial-value: 1; }
.kino { position: relative; background: radial-gradient(70% 60% at 50% 40%, #1F1F1F 0%, #121212 70%); color: var(--kl-ink); overflow-x: clip; }
.kino + .abschnitt { border-top: 0; }
.kino-buehne { position: relative; min-height: 860px; display: grid; place-items: end center; overflow: hidden; perspective: 1900px; padding-block: 200px 20px; }
.kino-szene {
  --f: 1; --fokus: 0.6;
  position: relative; width: min(1100px, 100%); height: 640px; transform-style: preserve-3d;
  transform: rotateX(calc(var(--ny, 0) * -3deg)) rotateY(calc(var(--nx, 0) * 5deg));
  transition: transform 600ms var(--ease-3d);
}
.kino-telefone { position: absolute; inset: 0; transform-style: preserve-3d; }
.kino-tel {
  --x: 0; --ry: 0deg; --z: 0px; --rz: 0deg;
  position: absolute; left: 50%; top: 50%; width: 250px; font-size: 10.2px; transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--f) * var(--x)))
    translateZ(calc(var(--f) * var(--z) + var(--auftrieb, 0px)))
    rotateY(calc(-22deg + var(--f) * (var(--ry) + 22deg)))
    rotateZ(calc((1 - var(--f)) * var(--stapel, 0deg) + var(--f) * var(--rz)))
    scale(var(--groesse, 1));
  filter: brightness(calc(1 - var(--fokus) * var(--dimmen, 0)));
}
.kino-tel .ui-iphone { width: 100%; }
.t-mitte { --x: 0px; --z: 120px; --ry: -10deg; --rz: 0deg; --stapel: 0deg; --dimmen: 0; --groesse: calc(1 + var(--fokus) * 0.08); }
.t-links1 { --x: -250px; --z: 10px; --ry: 24deg; --rz: -3deg; --stapel: -4deg; --dimmen: 0.35; }
.t-rechts1 { --x: 250px; --z: 10px; --ry: -34deg; --rz: 3deg; --stapel: 4deg; --dimmen: 0.35; }
.t-links2 { --x: -470px; --z: -140px; --ry: 34deg; --rz: -5deg; --stapel: -8deg; --dimmen: 0.5; }
.t-rechts2 { --x: 470px; --z: -140px; --ry: -42deg; --rz: 5deg; --stapel: 8deg; --dimmen: 0.5; }
.ui-zahlen.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Formen (Kugel, Ring) der ersten Fassung entfallen seit Variante G; .form bleibt ausgeblendet */
.form { position: absolute; pointer-events: none; display: none; }
/* Hervorgehobenes Detail: springt aus dem mittleren Telefon */
.kino-fokus {
  position: absolute; left: 50%; top: 58%; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 22px; font-size: 16px;
  background: color-mix(in srgb, var(--kl-card-fill-strong) 82%, transparent); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px color-mix(in srgb, var(--kl-accent) 30%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: var(--fokus); transform: translate(-30%, -50%) translateZ(calc(160px + var(--fokus) * 140px)) scale(calc(0.7 + var(--fokus) * 0.3));
}
.kino-fokus .haken { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; color: var(--kl-on-primary); background: var(--kl-primary); box-shadow: 0 0 0 6px var(--kl-accent-soft); }
.kino-fokus .haken .i { width: 26px; height: 26px; }
.kino-fokus b { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.kino-fokus span:not(.haken) { display: block; font-size: 14px; color: var(--kl-ink-secondary); }
/* Texte der Szene */
.kino-texte { position: absolute; top: 88px; left: 0; right: 0; z-index: 2; display: grid; justify-items: center; text-align: center; padding-inline: 20px; pointer-events: none; }
.kino-text { grid-area: 1 / 1; display: grid; gap: 10px; justify-items: center; margin: 0; }
.kino-gross { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; color: #fff; margin: 0; }
.kino-klein { font-size: 17px; color: var(--kl-ink-secondary); max-width: 52ch; }
.kino .oberzeile { color: var(--kl-accent); }
.k1, .k3 { opacity: 0; }
.k2 { opacity: 1; }
/* Zwölf Bereiche unter der Bühne */
.kino-bereiche { padding-block: 24px 96px; display: grid; gap: 18px; justify-items: center; }
.kino-bereiche-titel { font-size: 15px; font-weight: 700; color: var(--kl-ink-secondary); }
.bereiche-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 1000px; }
@media (min-width: 700px) { .bereiche-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bereiche-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bereiche-raster li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; font-size: 15px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.bereiche-raster .kachel { width: 30px; height: 30px; border-radius: 9px; }
.bereiche-raster .kachel .i { width: 16px; height: 16px; }
.kino-sockel { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; font-weight: 600; color: var(--kl-ink-secondary); }
.kino-sockel span { display: inline-flex; align-items: center; gap: 8px; }
.kino-sockel .i { color: var(--kl-accent); }

/* Scroll-Szene: Spur 320 % hoch, Bühne klebt. tiefe.js liefert den weich geglätteten Fortschritt --p (0…1);
   daraus entstehen hier Kamerafahrt, das gestaffelte Auffächern (--f je Telefon) und das Hervorheben (--fokus).
   Ohne die Klasse „bewegt“ (kein Skript, reduzierte Bewegung) bleibt das Endbild stehen. */
.bewegt .kino-spur { height: 320svh; }
.bewegt .kino-buehne {
  position: sticky; top: 0; height: 100svh; min-height: 0; padding-block: 0; place-items: center;
  --fa: clamp(0, (var(--p, 1) - 0.1) / 0.42, 1);
  --fokus-t: clamp(0, (var(--p, 1) - 0.64) / 0.22, 1);
}
.bewegt .kino-szene, .bewegt .kino-texte {
  --f: calc(var(--fa) * var(--fa) * (3 - 2 * var(--fa)));
  --fokus: calc(var(--fokus-t) * var(--fokus-t) * (3 - 2 * var(--fokus-t)));
}
/* Kamera: fährt über die ganze Szene gleichmäßig heran und schwenkt von rechts nach vorn */
.bewegt .kino-szene {
  margin-top: min(180px, 20svh); transition: none;
  transform:
    translateZ(calc((1 - var(--p, 1)) * -320px))
    rotateX(calc(var(--ny, 0) * -3deg + (1 - var(--p, 1)) * 10deg))
    rotateY(calc(var(--nx, 0) * 5deg + (1 - var(--p, 1)) * 18deg - 3deg));
}
/* Jedes Telefon fächert mit eigenem Einsatz auf: Mitte zuerst, dann die inneren, zuletzt die äußeren */
.bewegt .kino-tel {
  --t: clamp(0, (var(--p, 1) - var(--einsatz, 0.1)) / 0.36, 1);
  --f: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
}
.bewegt .t-mitte { --einsatz: 0.08; }
.bewegt .t-links1, .bewegt .t-rechts1 { --einsatz: 0.12; }
.bewegt .t-links2, .bewegt .t-rechts2 { --einsatz: 0.17; }
.bewegt .k1 { opacity: calc(1 - var(--f) * 3); translate: 0 calc(var(--f) * -24px); }
.bewegt .k2 { opacity: calc(min(1, var(--f) * 1.6 - 0.4) - var(--fokus) * 2); translate: 0 calc((1 - var(--f)) * 20px - var(--fokus) * 20px); }
.bewegt .k3 { opacity: calc(var(--fokus) * 2 - 0.8); translate: 0 calc((1 - var(--fokus)) * 20px); }
/* Schmale Bildschirme: drei Telefone, kleiner */
@media (max-width: 899px) {
  .kino-szene { height: 520px; }
  .kino-tel { width: 210px; font-size: 8.5px; }
  .t-links2, .t-rechts2 { display: none; }
  .t-links1 { --x: -120px; } .t-rechts1 { --x: 120px; }
  .kino-fokus { font-size: 14px; top: 64%; transform: translate(-50%, -50%) translateZ(calc(160px + var(--fokus) * 140px)) scale(calc(0.7 + var(--fokus) * 0.3)); }
  .kino-fokus b { font-size: 16px; } .kino-fokus .haken { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .kino-tel { width: 180px; font-size: 7.4px; }
  .t-links1 { --x: -92px; } .t-rechts1 { --x: 92px; }
  .kino-texte { top: 32px; }
}

@container (max-width: 760px) {
  /* Auf dem Handy schaltet die Tab-Leiste im iPhone um; die obere Reiterleiste entfällt */
  .rundgang .reiter { display: none; }
  #r-chat:checked ~ .ui .n-mehr { background: var(--kl-accent-soft); border-color: transparent; color: var(--kl-accent); }
  .rundgang .ui-fenster { max-width: min(26em, calc((100svh - 130px) * 393 / 852)); }
}
@media (max-width: 759px) { .rundgang-hinweis { text-align: center; } }
.nur-handy-text { display: none; }
@media (max-width: 759px) { .nur-gross { display: none; } .nur-handy-text { display: inline; } }

/* Bewegung in der Kino-Szene: Telefone schweben versetzt, Freigabe pulsiert */
@media (prefers-reduced-motion: no-preference) {
  .kino-tel { animation: schweben-tel 6s ease-in-out infinite alternate; }
  .t-links1 { animation-delay: -1.5s; } .t-rechts1 { animation-delay: -3s; } .t-links2 { animation-delay: -4.5s; } .t-rechts2 { animation-delay: -2.2s; }
  .kino-fokus .haken { animation: haken-puls 2.4s ease-out infinite; }
}
@keyframes schweben-tel { from { translate: 0 -10px; } to { translate: 0 12px; } }
@keyframes treiben { from { translate: -12px -18px; } to { translate: 16px 14px; } }
@keyframes haken-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kl-accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }

/* Ausblick Widgets: dunkle Bühne, iPhone-Home-Bildschirm, Widget auf dem Sperrbildschirm schwebt davor */
.ausblick { background: var(--kl-canvas); color: var(--kl-ink); }
.ausblick h2, .ausblick .punkte strong { color: #fff; }
.ausblick .einleitung, .ausblick .hinweis, .ausblick .punkte li { color: var(--kl-ink-secondary); }
.widget-buehne { min-height: 640px; }
/* Hintergrundbild des Home-Bildschirms: dunkles Grün, kein UI-Element */
.homescreen .ui-iphone-schirm { background: radial-gradient(90% 60% at 20% 10%, #0B7A4B 0%, transparent 60%), radial-gradient(80% 60% at 90% 80%, #1F4D3A 0%, transparent 60%), linear-gradient(160deg, #15241C, #0E1A14); }
.hs-raster { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 4.6em; gap: 1.2em 1em; padding: 1.2em 1.3em; align-content: start; }
.w-klein, .w-mittel { border-radius: 1.6em; padding: 0.9em 1em; display: grid; align-content: start; gap: 0.15em; color: #fff; background: rgba(23, 23, 23, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 1em 2em -1em rgba(0, 0, 0, 0.5); }
.w-klein { grid-column: span 2; grid-row: span 2; }
.w-mittel { grid-column: span 4; grid-row: span 2; }
.w-kopf { display: flex; align-items: center; gap: 0.45em; font-size: 0.82em; font-weight: 700; color: rgba(255, 255, 255, 0.8); margin-bottom: 0.3em; }
.w-kopf img { width: 1.6em; height: 1.6em; border-radius: 0.45em; }
.w-kopf .i { width: 1.2em; height: 1.2em; }
.w-klein b { font-size: 2.6em; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.w-klein span:not(.w-kopf) { font-size: 0.9em; font-weight: 600; }
.w-klein small { font-size: 0.75em; color: rgba(255, 255, 255, 0.65); }
.w-held { color: var(--kl-on-primary); background: var(--kl-primary); border-color: transparent; }
.w-held .w-kopf { color: color-mix(in srgb, var(--kl-on-primary) 80%, transparent); }
.w-held small { color: color-mix(in srgb, var(--kl-on-primary) 70%, transparent); }
.w-zeilen { display: grid; gap: 0.45em; }
.w-zeilen span { display: flex; align-items: center; gap: 0.6em; font-size: 0.92em; font-weight: 600; }
.w-zeilen b { font-size: 1.25em; font-weight: 800; min-width: 1em; }
.w-zeilen .kachel { width: 1.9em; height: 1.9em; border-radius: 0.55em; font-style: normal; }
.w-zeilen .kachel .i { width: 1.05em; height: 1.05em; }
.hs-app { display: grid; justify-items: center; gap: 0.3em; }
.hs-app img { width: 3.9em; height: 3.9em; border-radius: 0.95em; box-shadow: 0 0.4em 1em rgba(0, 0, 0, 0.35); }
.hs-app small { font-size: 0.7em; color: #fff; }
.hs-app.leer::before { content: ""; width: 3.9em; height: 3.9em; border-radius: 0.95em; background: rgba(255, 255, 255, 0.14); }
.hs-dock { margin: 0 0.8em 1.6em; padding: 0.8em; border-radius: 2em; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hs-dock span { height: 3.6em; border-radius: 0.9em; background: rgba(255, 255, 255, 0.18); }
.homescreen .ui-statusleiste, .homescreen .ui-homeindikator { color: #fff; }
.homescreen .ui-homeindikator { background: #fff; }
.w-sperr {
  position: absolute; left: 4%; bottom: 14%; display: grid; gap: 0.1em; padding: 1em 1.2em; border-radius: 1.4em; font-size: 14px; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); transform: translateZ(120px) rotateY(10deg);
}
.w-sperr b { font-size: 1.5em; font-weight: 800; }
.w-sperr > span:last-child { font-size: 0.9em; color: rgba(255, 255, 255, 0.75); }
@media (prefers-reduced-motion: no-preference) {
  .widget-buehne .ui-iphone { animation: schweben-tel 7s ease-in-out infinite alternate; }
  .w-sperr { animation: treiben 8s -3s ease-in-out infinite alternate; }
}
@media (max-width: 559px) { .w-sperr { left: 0; bottom: 4%; font-size: 12px; } }
.ausblick .abschnitt-kopf > .kapsel { justify-self: start; white-space: normal; }
.w-termin b { font-size: 2.1em; }
.w-klein { overflow: hidden; }

/* Ablauf: gleiche Höhe und Oberkante je Karte; ab 1100 px auf einem symmetrischen, nach innen gewölbten 3D-Bogen */
.ablauf { align-items: stretch; }
.ablauf > li:not(.ablauf-puls) { align-content: start; grid-template-rows: auto 1fr; }
.ablauf-karte { height: 100%; align-content: start; }
@media (min-width: 1100px) {
  .ablauf { perspective: 1600px; transform-style: preserve-3d; padding-inline: 24px; }
  .ablauf::before, .ablauf .ablauf-puls { display: none; }
  .ablauf > li:not(.ablauf-puls) {
    --w: 0deg; --tz: 0px;
    transform-style: preserve-3d; transform: translateZ(var(--tz)) rotateY(var(--w));
    transition: transform 500ms var(--ease-3d);
  }
  /* Kind 1 ist der (ausgeblendete) Punkt; die Schritte sind Kind 2 bis 6 */
  .ablauf > li:nth-child(2) { --w: 22deg; --tz: 70px; }
  .ablauf > li:nth-child(3) { --w: 11deg; --tz: 18px; }
  .ablauf > li:nth-child(4) { --w: 0deg; --tz: 0px; }
  .ablauf > li:nth-child(5) { --w: -11deg; --tz: 18px; }
  .ablauf > li:nth-child(6) { --w: -22deg; --tz: 70px; }
  .ablauf-karte { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.3); }
  .ablauf > li:hover { --tz: 110px; }
  /* Spiegelung unter dem Bogen */
  .ablauf-karte { -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.12)); }
}


/* ===== Kino-Szene als Studio: Spotlicht, spiegelnder Boden, Kontaktschatten, Glanzlichter, Tiefenschärfe, Trägheit ===== */
.kino-buehne { --tel-h-halb: 271px; }
.kino-licht {
  position: absolute; left: 50%; top: -12%; width: 1100px; height: 1000px; translate: -50% 0; pointer-events: none; filter: blur(24px);
  background: conic-gradient(from 180deg at 50% 0%, transparent 156deg, rgba(255, 255, 255, 0.05) 168deg, rgba(255, 255, 255, 0.14) 180deg, rgba(255, 255, 255, 0.05) 192deg, transparent 204deg);
}
.kino-szene .form { display: none; }
/* Boden: liegt in der Szene, Oberkante an den Unterkanten der Telefone */
.kino-boden {
  position: absolute; left: -40%; right: -40%; top: calc(50% + var(--tel-h-halb)); height: 1400px; transform-origin: 50% 0; transform: rotateX(90deg);
  background:
    radial-gradient(45% 35% at 50% 0%, rgba(255, 255, 255, 0.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 80px);
  -webkit-mask: radial-gradient(60% 55% at 50% 0%, #000 30%, transparent 75%); mask: radial-gradient(60% 55% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.kino-tel { filter: none; }
.kino-tel .ui-iphone {
  filter: brightness(calc(1 - var(--fokus) * var(--dimmen, 0))) blur(var(--unschaerfe, 0px));
  -webkit-box-reflect: below 2px linear-gradient(transparent 80%, rgba(255, 255, 255, 0.16));
}
.t-links2, .t-rechts2 { --unschaerfe: 1.2px; }
.t-links1, .t-rechts1 { --unschaerfe: 0.35px; }
/* Kontaktschatten liegt flach auf dem Boden unter jedem Telefon */
.kino-tel::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: calc(100% - 4px); height: 110px; transform-origin: 50% 0; transform: rotateX(90deg);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25) 55%, transparent); pointer-events: none;
}
/* Rahmen und Glas: Glanz wandert mit der Neigung (eigene Drehung + Zeiger) */
.kino-tel .ui-iphone, .geraet-buehne .ui-iphone {
  background: linear-gradient(calc(140deg + var(--nx, 0) * 60deg), #5a5a64, #1d1d22 32%, #2c2c33 64%, #6a6a75 96%);
}
.kino-tel .ui-iphone-schirm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(112deg, transparent calc(30% + var(--nx, 0) * 22%), rgba(255, 255, 255, 0.11) calc(42% + var(--nx, 0) * 22%), transparent calc(56% + var(--nx, 0) * 22%));
}
@media (prefers-reduced-motion: no-preference) {
  /* Schweben: das Gerät hebt sich, der Schatten am Boden bleibt liegen und wird kleiner und heller */
  .kino-tel { animation: none; }
  .kino-tel .ui-iphone { animation: schweben-tel 6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; animation-delay: inherit; }
  .kino-tel::after { animation: schatten-atmen 6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; animation-delay: inherit; }
  .t-links1 { animation-delay: -1.5s; } .t-rechts1 { animation-delay: -3s; } .t-links2 { animation-delay: -4.5s; } .t-rechts2 { animation-delay: -2.2s; } .t-mitte { animation-delay: 0s; }
}
@keyframes schweben-tel { from { translate: 0 -14px; } to { translate: 0 6px; } }
@keyframes schatten-atmen { from { scale: 0.86; opacity: 0.55; } to { scale: 1.04; opacity: 1; } }
@media (max-width: 899px) { .kino-buehne { --tel-h-halb: 228px; } .kino-licht { width: 700px; } }
@media (max-width: 480px) { .kino-buehne { --tel-h-halb: 195px; } }
.kino-fokus { width: max-content; max-width: min(420px, 88vw); }
.kino-fokus .haken { flex: none; }
@media (max-width: 480px) { .kino-fokus { padding: 12px 16px 12px 12px; gap: 12px; } .kino-fokus b { font-size: 16px; } .kino-fokus span:not(.haken) { font-size: 12.5px; } }
@media (max-width: 480px) {
  .kino-fokus { max-width: 76vw; transform: translate(-50%, -50%) translateZ(calc(135px + var(--fokus) * 35px)) scale(calc(0.8 + var(--fokus) * 0.2)); }
}


/* ===== Sicherheit als Fundament: die Ebenen legen sich beim Scrollen von Ebene 1 an nacheinander auf,
   zuletzt setzt die App oben auf; daneben erscheint der Schritt der jeweiligen Ebene (--p aus tiefe.js) ===== */
.reise { margin-bottom: 16px; }
.reise-buehne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 1000px) { .reise-buehne { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; } }
.reise .ebenen-szene { --abstand: 2.9em; }
/* Grundriss: zeigt vor der ersten Ebene, wo das Fundament entsteht */
.reise .ebenen-szene::before { content: ""; position: absolute; inset: 0; border-radius: 1.7em; border: 1.5px dashed color-mix(in srgb, var(--kl-ink) 24%, transparent); }
.ebene-nr { position: absolute; top: 1em; right: 1.1em; width: 1.9em; height: 1.9em; border-radius: 999px; display: grid; place-items: center; font-size: 0.9em; font-weight: 800; color: var(--farbe); background: color-mix(in srgb, var(--farbe) 16%, transparent); }
/* Die App liegt oben auf den vier Ebenen */
.e-app { --stufe: 4; align-items: center; background: var(--kl-card); border-color: var(--kl-hairline-strong); }
.e-app .logo { width: 2.4em; height: 2.4em; border-radius: 0.7em; }
.e-app-zeilen { margin-left: auto; display: grid; gap: 0.45em; justify-items: end; }
.e-app-zeilen i { display: block; width: 6em; height: 0.5em; border-radius: 1em; background: var(--kl-field-fill); }
.e-app-zeilen i:nth-child(2) { width: 4.2em; } .e-app-zeilen i:nth-child(3) { width: 5em; }
.reise-schritte { display: grid; gap: 14px; }
.reise-schritt { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 24px; background: var(--kl-card); box-shadow: var(--schatten); }
.reise-stufe { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--kl-ink-secondary); }
.reise-stufe .kachel { width: 32px; height: 32px; border-radius: 10px; }
.reise-schritt h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.reise-satz { font-size: 17px; color: var(--kl-ink); }
.reise-vignette { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.reise-vignette .ui-kapsel { font-size: 0.85em; padding: 0.35em 0.8em; white-space: normal; }
.reise-vignette .ui-kapsel .i { width: 1.1em; height: 1.1em; }
.reise-log { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--kl-field-fill); font-size: 14px; }
.reise-log b { font-weight: 700; }
.reise-schritt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--kl-ink-secondary); }
.reise-schritt li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.reise-schritt li .i { width: 16px; height: 16px; color: var(--kl-ok); margin-top: 4px; }

.bewegt .reise { height: 460svh; }
.bewegt .reise-buehne { position: sticky; top: 64px; height: calc(100svh - 64px); }
.bewegt .sicherheit-kopf { margin-bottom: 12px; }
/* Jede Platte sinkt von oben auf ihren Platz und bremst beim Aufsetzen ab (ease-out), dreht sich dabei gerade */
.bewegt .reise .ebene {
  --t: clamp(0, (var(--p, 1) - var(--einsatz)) / 0.13, 1);
  --land: calc(1 - (1 - var(--t)) * (1 - var(--t)) * (1 - var(--t)));
  translate: 0 0 calc((var(--stufe) + (1 - var(--land)) * 4) * var(--abstand));
  rotate: z calc((1 - var(--land)) * -9deg);
  opacity: min(1, calc(var(--t) * 3));
  transition: none;
}
.bewegt .reise .e1 { --einsatz: 0.02; }
.bewegt .reise .e2 { --einsatz: 0.24; }
.bewegt .reise .e3 { --einsatz: 0.46; }
.bewegt .reise .e4 { --einsatz: 0.68; }
.bewegt .reise .e-app { --einsatz: 0.85; }
/* Schritte überblenden: jeder steht, solange seine Ebene die oberste ist */
.bewegt .reise-schritt {
  grid-area: 1 / 1;
  --ein: clamp(0, (var(--p, 1) - var(--von)) / 0.06, 1);
  --aus: clamp(0, (var(--p, 1) - var(--bis)) / 0.06, 1);
  opacity: calc(var(--ein) - var(--aus));
  translate: 0 calc((1 - var(--ein)) * 18px - var(--aus) * 12px);
}
.bewegt .r1 { --von: -1; --bis: 0.22; }
.bewegt .r2 { --von: 0.22; --bis: 0.44; }
.bewegt .r3 { --von: 0.44; --bis: 0.66; }
.bewegt .r4 { --von: 0.66; --bis: 2; }
@media (max-width: 999px) {
  .reise-buehne { align-content: start; }
  .reise .ebenen-3d { min-height: 25em; font-size: 8px; padding-top: 6em; }
  .reise-buehne { gap: 8px; }
  .reise-schritt { padding: 16px; gap: 8px; }
  .reise-schritt h3 { font-size: 21px; }
  .reise-satz { font-size: 15px; }
  .reise-schritt ul { font-size: 13.5px; gap: 3px; }
}


/* ===== Verfügbarkeit, Auftrag mit Tagessatz, Arbeitstage: ein Monat läuft beim Scrollen ab (--p aus tiefe.js) =====
   Phasen: --zeichnen (Verfügbarkeit erscheint), --einsatz (Auftrag wird gesetzt), --team (Tage zählen hoch).
   Zähler über registrierte ganze Zahlen und CSS-Zähler; ohne die Klasse „bewegt“ steht das Endbild (--p = 1). */
@property --tage { syntax: "<integer>"; inherits: true; initial-value: 15; }
@property --tausend { syntax: "<integer>"; inherits: true; initial-value: 1; }
@property --rest { syntax: "<integer>"; inherits: true; initial-value: 800; }
@property --n { syntax: "<integer>"; inherits: true; initial-value: 0; }
@counter-style drei-stellen { system: extends decimal; pad: 3 "0"; }

.planung-buehne {
  --zeichnen: clamp(0, var(--p, 1) / 0.28, 1);
  --einsatz-t: clamp(0, (var(--p, 1) - 0.34) / 0.22, 1);
  --einsatz: calc(var(--einsatz-t) * var(--einsatz-t) * (3 - 2 * var(--einsatz-t)));
  --team-t: clamp(0, (var(--p, 1) - 0.64) / 0.3, 1);
  --team: calc(var(--team-t) * var(--team-t) * (3 - 2 * var(--team-t)));
  --tage: calc(var(--team) * 15);
  --tausend: round(down, calc(var(--tage) * 0.12), 1);
  --rest: calc(var(--tage) * 120 - var(--tausend) * 1000);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 1000px) { .planung-buehne { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; } }

/* Geschichte in drei Schritten; der laufende Schritt steht vorn */
.planung-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.planung-schritte li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 22px; background: var(--kl-card); box-shadow: var(--schatten); }
.planung-schritte h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.planung-schritte p { font-size: 15px; color: var(--kl-ink-secondary); }
.planung-nr { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; color: var(--kl-on-primary); background: var(--kl-primary); }

/* Tafel: drei Karten wie in der App */
.planung-tafel { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); font-size: 15px; }
@media (min-width: 700px) { .planung-tafel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pt-verfuegbar { grid-column: 1 / -1; } }
.pt-karte { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: 22px; background: var(--kl-card); border: 1px solid var(--kl-hairline); box-shadow: var(--schatten); }
.pt-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pt-kopf b { display: block; font-weight: 800; }
.pt-kopf span:not(.kachel):not(.ui-kapsel):not(.pt-heute) { display: block; font-size: 13px; color: var(--kl-ink-secondary); }
.pt-kopf .ui-kapsel { font-size: 12px; }
.pt-heute { font-size: 13px; font-weight: 700; color: var(--kl-accent); }
.pt-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--kl-ink-secondary); }
.pt-legende span { display: inline-flex; align-items: center; gap: 6px; }
.pt-legende span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--farbe); }
.l-frei, .seg.frei { --farbe: var(--tone-emerald-500); }
.l-anfrage, .seg.anfrage { --farbe: var(--tone-amber-500); }
.l-einsatz, .seg.einsatz { --farbe: var(--tone-blue-500); }

/* Zeitleiste: 20 Werktage, Segmente als Rasterbereiche */
.pt-zeitleiste { position: relative; display: grid; gap: 8px; }
.pt-reihe { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; align-items: center; }
.pt-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.pt-name .ui-avatar { width: 26px; height: 26px; font-size: 10px; }
.pt-spur { position: relative; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--kl-field-fill) 0 calc(5% - 2px), transparent calc(5% - 2px) 5%); }
.seg { grid-row: 1; display: flex; align-items: center; min-width: 0; padding-inline: 8px; border-radius: 7px; font-style: normal; background: var(--farbe); transform-origin: 0 50%; }
.seg em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr1 .s-a { grid-column: 1 / 3; } .pr1 .s-neu { grid-column: 3 / 21; } .pr1 .s-b { display: none; }
.pr2 .s-a { grid-column: 1 / 10; } .pr2 .s-b { grid-column: 12 / 21; }
.pr3 .s-a { grid-column: 3 / 9; } .pr3 .s-b { grid-column: 13 / 19; }
.pr4 .s-a { grid-column: 1 / 6; } .pr4 .s-b { grid-column: 8 / 17; }
/* Linie „heute“ wandert über den Monat */
.pt-linie { position: absolute; top: -4px; bottom: -4px; left: calc(7.5em + 10px + (100% - 7.5em - 10px) * var(--p, 1) * 0.98); width: 2px; border-radius: 2px; background: var(--kl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kl-accent) 20%, transparent); }

/* Auftrag: Tagessatz, Fortschritt, Betrag */
.pt-satz { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--kl-field-fill); }
.pt-satz b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pt-satz span:not(.kachel) { display: block; font-size: 13px; color: var(--kl-ink-secondary); }
.pt-fortschritt { display: grid; gap: 8px; }
.pt-balken { display: block; height: 10px; border-radius: 999px; background: var(--kl-field-fill); overflow: hidden; }
.pt-balken i { display: block; height: 100%; width: calc(var(--tage) / 20 * 100%); border-radius: inherit; background: var(--kl-primary); }
.pt-zahlen { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--kl-ink-secondary); }
.pt-tage { counter-reset: tage var(--tage); }
.pt-tage::before { content: counter(tage) " von 20 Tagen bestätigt"; }
.pt-betrag { display: grid; font-weight: 800; color: var(--kl-ink); counter-reset: tausend var(--tausend) rest var(--rest); }
.pt-betrag > span { grid-area: 1 / 1; text-align: end; }
.mit-tausend::before { content: counter(tausend) "." counter(rest, drei-stellen) " €"; }
.ohne-tausend::before { content: counter(rest) " €"; }
.mit-tausend { opacity: min(1, var(--tausend)); }
.ohne-tausend { opacity: calc(1 - min(1, var(--tausend))); }

/* Arbeitstage je Person */
.pt-personen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-personen li { --n: calc(var(--team) * var(--ziel)); display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 2.4em; gap: 10px; align-items: center; font-size: 13px; counter-reset: n var(--n); }
.pt-personen b { text-align: end; font-weight: 800; }
.pt-personen b::before { content: counter(n); }
.pt-bar { position: relative; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--kl-accent) 16%, transparent); }
.pt-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--geplant) / 20 * 100%); border-radius: inherit; background: color-mix(in srgb, var(--kl-accent) 28%, transparent); }
.pt-bar i { position: absolute; inset: 0 auto 0 0; z-index: 1; width: calc(var(--n) / 20 * 100%); border-radius: inherit; background: var(--kl-accent); }
.tp1 { --ziel: 15; --geplant: 20; } .tp2 { --ziel: 12; --geplant: 17; } .tp3 { --ziel: 8; --geplant: 12; } .tp4 { --ziel: 6; --geplant: 14; }
.pt-fuss { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--kl-ink-secondary); }
.pt-punkt { width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.pt-punkt.bestaetigt { margin-left: 0; background: var(--kl-accent); }
.pt-punkt.geplant { background: color-mix(in srgb, var(--kl-accent) 28%, transparent); }
.planung-hinweis { margin-top: 18px; }
.planung-hinweis a { color: var(--kl-accent); font-weight: 700; }

/* Bewegung: Bühne klebt (breit), Segmente zeichnen sich ein, der Auftrag setzt sich in Lenas Lücke */
.bewegt .planung-buehne .seg { scale: var(--zeichnen) 1; opacity: min(1, calc(var(--zeichnen) * 2)); }
.bewegt .planung-buehne .pr2 .seg { scale: clamp(0, calc(var(--zeichnen) * 1.15 - 0.1), 1) 1; }
.bewegt .planung-buehne .pr3 .seg { scale: clamp(0, calc(var(--zeichnen) * 1.3 - 0.2), 1) 1; }
.bewegt .planung-buehne .pr4 .seg { scale: clamp(0, calc(var(--zeichnen) * 1.45 - 0.3), 1) 1; }
.bewegt .planung-buehne .pr1 .s-neu { scale: var(--einsatz) 1; opacity: min(1, calc(var(--einsatz) * 3)); }
/* Lena ist zuerst den ganzen Monat frei; der Auftrag legt sich darüber */
.bewegt .planung-buehne .pr1 .s-a { grid-column: 1 / 21; }
.bewegt .planung-buehne .pr1 .s-neu { z-index: 1; }
.bewegt .pt-auftrag { opacity: calc(0.35 + var(--einsatz) * 0.65); translate: 0 calc((1 - var(--einsatz)) * 16px); }
.bewegt .pt-team { opacity: calc(0.35 + var(--team) * 0.65); translate: 0 calc((1 - var(--team)) * 16px); }
@media (min-width: 1000px) {
  /* Neben der klebenden Tafel steht der laufende Schritt vorn; auf dem Handy bleiben alle Schritte voll lesbar */
  .bewegt .ps1 { opacity: calc(1 - var(--einsatz) * 0.55); }
  .bewegt .ps2 { opacity: calc(0.45 + var(--einsatz) * 0.55 - var(--team) * 0.55); }
  .bewegt .ps3 { opacity: calc(0.45 + var(--team) * 0.55); }
  /* Die Bühne klebt oben unter der Kopfleiste. Vorher stand sie mittig in einer fensterhohen Fläche (min-height 100svh):
     Unter der Einleitung blieb so eine leere Fläche, auf 1920 × 1080 rund 300 px. */
  .bewegt .planung-spur { height: 240svh; }
  /* Beim Kleben mittig im Fenster (Bühne rund 544 px hoch), mindestens 32 px unter der Kopfleiste. Vor dem Kleben folgt sie
     dem Kopf mit dem normalen Abstand, eine Leerfläche entsteht so nicht. */
  .bewegt .planung-buehne { position: sticky; top: max(calc(65px + 32px), calc(50svh - 272px)); }
}
@media (max-width: 480px) {
  .pt-reihe { grid-template-columns: 5.6em minmax(0, 1fr); gap: 8px; }
  .pt-name .ui-avatar { display: none; }
  .pt-linie { left: calc(5.6em + 8px + (100% - 5.6em - 8px) * var(--p, 1) * 0.98); }
  .seg { padding-inline: 5px; }
  .pt-karte { padding: 14px; }
}

/* Rollen: Link in die Demo */
.rolle-demo { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--kl-accent); text-decoration: none; }
.rolle-demo .i { width: 16px; height: 16px; }
.rolle-demo:hover { text-decoration: underline; }


/* ===== Demo hervorheben: Knopf im Kopf, Live-Knopf im Startbereich, eigenes Band gleich nach dem Start, Handy-Leiste ===== */
.live-punkt { position: relative; flex: none; width: 9px; height: 9px; border-radius: 999px; background: var(--kl-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kl-ok) 25%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .live-punkt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--kl-ok); animation: live-puls 2s ease-out infinite; }
}
@keyframes live-puls { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }
.kopf-demo { gap: 8px; color: var(--kl-ink); background: var(--kl-card); border-color: color-mix(in srgb, var(--kl-accent) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kl-accent) 12%, transparent); }
.kopf-demo:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--kl-accent) 20%, transparent); }
/* Live-Knopf: heller Grund, Rand im Akzent */
.knopf.demo-knopf {
  gap: 10px; color: var(--kl-ink); border: 2px solid var(--kl-accent);
  background: var(--kl-card);
  box-shadow: 0 10px 26px -14px rgba(23, 23, 23, 0.35);
}

/* Band */
/* Band: ruhige dunkle Fläche (Variante G), Rollenkarten als Glas darauf */
.demo-band { position: relative; padding-block: var(--raum-abschnitt); color: #EDEDED; background: #171717; overflow: hidden; }
@media (prefers-color-scheme: dark) { .demo-band { background: #1C1C1C; border-block: 1px solid var(--kl-hairline); } }
.demo-band-kopf { display: grid; gap: var(--raum-kopf-innen); max-width: 720px; margin-bottom: 32px; }
/* Band, kein voller Abschnitt: eine Stufe kleiner als --raum-abschnitt */
@media (min-width: 1200px) { .demo-band { padding-block: 96px; } }
.demo-band-kopf .titel-2 { color: #fff; }
.demo-band-kopf p { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.82); }
.demo-band-marke { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); }
.demo-rollen { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.demo-rollen a {
  height: 100%; box-sizing: border-box; display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 22px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform 200ms var(--ease-3d), background-color 200ms ease, border-color 200ms ease;
}
.demo-rollen a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); }
.demo-rollen a:active { transform: scale(0.98); }
.demo-rollen a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.demo-rollen b { font-size: 19px; font-weight: 800; margin-top: 6px; }
.demo-rollen a > span:not(.kachel):not(.demo-los) { font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }
.demo-los { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 15px; font-weight: 700; color: #fff; }
.demo-los .i { width: 16px; height: 16px; }
.demo-band-fuss { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.demo-band-fuss .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #3ECF8E; }
.demo-band-fuss a { color: #fff; font-weight: 700; }
.demo-band + .abschnitt { border-top: 0; }
@media (prefers-reduced-motion: reduce) { .demo-rollen a { transition: none; } }

/* Handy-Leiste: Demo und Anfrage nebeneinander */
@media (max-width: 759px) {
  .handy-cta { display: flex; gap: 8px; }
  .handy-cta .knopf { width: auto; flex: 1 1 0; padding-inline: 12px; }
  .handy-cta .demo-knopf { flex: 0 0 auto; }
}
@media (max-width: 379px) { .kopf-demo { padding-inline: 12px; } }


/* ===== Akte eines Schützlings: Medikamentenplan mit Gaben, Ordner, Zeitverlauf (nachgebaut, Namen erfunden) ===== */
.akte-raster { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); font-size: 15px; }
@media (min-width: 760px) { .akte-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .akte-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.akte-karte { align-content: start; }
.akte-unter { font-size: 12px; font-weight: 700; color: var(--kl-ink-secondary); text-transform: none; margin-top: 2px; }
.akte-fuss { display: flex; align-items: flex-start; gap: 6px; margin-top: auto; font-size: 13px; color: var(--kl-ink-secondary); }
.akte-fuss .i { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--kl-ok); }

/* Medikamente und Gaben */
.med-liste, .gaben, .ordner-baum, .ordner-baum ul, .verlauf-wochen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.med-liste li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--kl-field-fill); }
.med-name b { display: block; font-size: 14.5px; }
.med-name span { display: block; font-size: 12.5px; color: var(--kl-ink-secondary); }
.gabe { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--kl-hairline); font-size: 14px; }
.gabe small { display: block; font-size: 12px; color: var(--kl-ink-secondary); }
.gabe-zeit { font-weight: 800; font-variant-numeric: tabular-nums; }
.gabe-status { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: var(--kl-ok); }
.gabe-status .i { width: 15px; height: 15px; }
.gabe.ok { background: color-mix(in srgb, var(--kl-ok) 8%, transparent); border-color: color-mix(in srgb, var(--kl-ok) 30%, transparent); }
.gabe .ui-knopf.klein { font-size: 12px; padding: 0.5em 0.9em; }

/* Ordnerbaum */
.ordner-baum li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.ordner-baum em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--kl-ink-secondary); padding: 1px 8px; border-radius: 999px; background: var(--kl-field-fill); }
.o-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--s400, var(--tone-emerald-400)), var(--s600, var(--tone-emerald-600))); }
.o-icon .i { width: 15px; height: 15px; }
.ordner-baum li.aufgeklappt { grid-template-rows: auto auto; }
.ordner-baum li ul { grid-column: 2 / -1; gap: 6px; padding-left: 10px; border-left: 2px solid var(--kl-hairline); }
.ordner-baum li ul li { grid-template-columns: minmax(0, 1fr) auto; font-weight: 500; color: var(--kl-ink-secondary); }
.fotos { grid-column: 2 / -1; display: flex; gap: 6px; }
.fotos i { width: 44px; height: 34px; border-radius: 8px; }
.fotos .f1 { background: linear-gradient(135deg, #fbbf24, #f97316); }
.fotos .f2 { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.fotos .f3 { background: linear-gradient(135deg, #5577c4, #0e7490); }

/* Zeitverlauf: Jahr als Heatmap, darunter die Wochen des Monats */
.verlauf-jahr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.verlauf-jahr span { display: grid; place-items: center; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--kl-ink); background: color-mix(in srgb, var(--kl-accent) calc(var(--st, 0) * 1%), var(--kl-field-fill)); }
.verlauf-jahr .v0 { --st: 0; color: var(--kl-ink-tertiary); } .verlauf-jahr .v1 { --st: 18; } .verlauf-jahr .v2 { --st: 34; } .verlauf-jahr .v3 { --st: 52; } .verlauf-jahr .v4 { --st: 72; color: #fff; }
.verlauf-jahr .jetzt { outline: 2px solid var(--kl-accent); outline-offset: 2px; }
.verlauf-wochen li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) 1.6em; gap: 10px; align-items: center; font-size: 13px; }
.verlauf-wochen li > span:last-child { text-align: end; font-weight: 700; }
.vb { height: 10px; border-radius: 999px; background: var(--kl-field-fill); overflow: hidden; }
.vb i { display: block; height: 100%; border-radius: inherit; background: var(--kl-accent); }
.vb .w5 { width: 100%; } .vb .w1 { width: 20%; }
.akte-bald { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; font-size: 14px; color: var(--kl-ink-secondary); }
.akte-bald a { color: var(--kl-accent); font-weight: 700; }

/* Anmeldung: eine Maske, sieben Tore der Prüfkette, das Ergebnis je Rolle und Träger (assets/anmeldung.js).
   Die Kamera (--kam) schwenkt weich zur Stelle, an der gerade etwas geschieht; --nx/--ny neigen mit dem Zeiger (tiefe.js).
   Ohne Skript: fertiges Bild für Lena, ohne Kontowahl. */
@property --kam { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.anmeldung { background: var(--kl-canvas); overflow: clip; }
.anmeldung h2 { color: #fff; }
.anmeldung .einleitung { color: var(--kl-ink-secondary); }
.anmeldung:not(.spielt) .anm-faelle { display: none; }
.anm-faelle { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.anm-fall {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px;
  border-radius: 999px; color: var(--kl-ink); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--kl-hairline);
  transition: background-color 200ms ease, border-color 200ms ease, scale 150ms ease;
}
.anm-fall .ui-avatar { font-size: 13px; }
.anm-fall b { display: block; font-size: 15px; line-height: 1.2; }
.anm-fall small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--kl-ink-secondary); }
.anm-fall:hover { background: rgba(255, 255, 255, 0.1); }
.anm-fall:active { scale: 0.96; }
.anm-fall:focus-visible { outline: 3px solid var(--kl-focus); outline-offset: 2px; }
.anm-fall[aria-pressed="true"] { background: var(--kl-accent-soft); border-color: var(--kl-accent); }
.ui-avatar.ton-anders { color: #fff; background: var(--tone-teal-600); }
.ui-avatar.ton-aus { color: #fff; background: var(--tone-slate-600); }

.anm-buehne { position: relative; perspective: 1800px; }
.anm-raum {
  position: relative; display: grid; gap: 20px; align-items: center; transform-style: preserve-3d;
  transform: rotateX(calc(var(--ny, 0) * -4deg)) rotateY(calc(var(--kam) + var(--nx, 0) * 5deg));
  transition: --kam 1.2s cubic-bezier(0.2, 0, 0, 1);
}
.anm-buehne[data-phase="maske"] { --kam: 5deg; }
.anm-buehne[data-phase="ergebnis"] { --kam: -5deg; }
.anm-boden {
  position: absolute; left: -30%; right: -30%; top: 55%; height: 900px; pointer-events: none; transform-origin: 50% 0; transform: rotateX(80deg);
  background-image: linear-gradient(color-mix(in srgb, var(--kl-accent) 16%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--kl-accent) 16%, transparent) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}

/* 1. Maske */
.anm-maske {
  position: relative; display: grid; gap: 10px; justify-items: stretch; padding: 22px; border-radius: 26px; font-size: 14px;
  background: rgba(33, 33, 33, 0.88); border: 1px solid var(--kl-hairline-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.anm-maske .logo { width: 40px; height: 40px; border-radius: 11px; }
.anm-maske-titel { font-size: 1.3em; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; }
.anm-feld { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--kl-field-fill); border: 1px solid var(--kl-hairline); color: var(--kl-ink-secondary); }
.anm-wert { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kl-ink); }
.anm-cursor { display: none; width: 2px; height: 1.15em; margin-left: -8px; background: var(--kl-accent); }
.tippt .anm-cursor { display: block; }
.anm-los { position: relative; overflow: hidden; justify-content: center; min-height: 44px; font-size: 15px; transition: scale 150ms ease, filter 200ms ease; }
.anm-los.ist-arbeitet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-100%); }
.anm-los.ist-gedrueckt { scale: 0.96; filter: brightness(1.2); }
.anm-meldung { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; opacity: 0; translate: 0 6px; transition: opacity 300ms ease, translate 300ms cubic-bezier(0.2, 0, 0, 1); }
.anm-meldung .i { width: 17px; height: 17px; }
.anm-meldung.ist-ok, .anm-meldung.ist-fehler, .anm-meldung.ist-tuer { opacity: 1; translate: 0 0; }
.anm-meldung.ist-ok { color: var(--tone-emerald-text); background: var(--tone-emerald-badge); }
.anm-meldung.ist-fehler { color: var(--tone-rose-text); background: var(--tone-rose-badge); }
.anm-meldung.ist-tuer { color: var(--tone-amber-text); background: var(--tone-amber-badge); }

/* 2. Prüfkette: Schiene links, gefüllt bis zum Paket; das Paket ist ein Ring, der von Tor zu Tor fährt */
.anm-kette { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; transform-style: preserve-3d; --paket-y: 26px; }
.anm-kette::before, .anm-kette::after { content: ""; position: absolute; left: 25px; top: 26px; width: 2px; translate: -1px 0; border-radius: 2px; }
.anm-kette::before { bottom: 26px; background: rgba(255, 255, 255, 0.1); }
.anm-kette::after { height: calc(var(--paket-y) - 26px); background: var(--kl-accent); transition: height 300ms cubic-bezier(0.2, 0, 0, 1); }
.anm-buehne:not([data-phase]) .anm-kette::after { height: calc(100% - 52px); }
.anm-tor {
  position: relative; z-index: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px 8px 8px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--kl-hairline);
  transition: background-color 250ms ease, border-color 250ms ease, opacity 250ms ease, transform 400ms cubic-bezier(0.2, 0, 0, 1);
}
.anm-tor:nth-child(1) { --i: 3; } .anm-tor:nth-child(2) { --i: 2; } .anm-tor:nth-child(3) { --i: 1; } .anm-tor:nth-child(4) { --i: 0; }
.anm-tor:nth-child(5) { --i: -1; } .anm-tor:nth-child(6) { --i: -2; } .anm-tor:nth-child(7) { --i: -3; }
.anm-punkt { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: var(--kl-ink-tertiary); background: #2A2A2A; border: 1px solid var(--kl-hairline-strong); transition: background-color 250ms ease, color 250ms ease; }
.anm-punkt .i { width: 17px; height: 17px; }
.anm-tor-text { display: grid; min-width: 0; }
.anm-tor b { font-size: 14.5px; line-height: 1.3; color: var(--kl-ink); }
.anm-tor code { font: 500 11.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--kl-accent); overflow-wrap: anywhere; }
.anm-tor-wert { font-size: 12.5px; line-height: 1.35; color: var(--kl-ink-secondary); min-height: 1.35em; }
.anm-tor.ist-pruefen { border-color: var(--kl-accent); background: var(--kl-accent-soft); transform: translateZ(26px); }
.anm-tor.ist-ok .anm-punkt { color: var(--kl-on-primary); background: var(--kl-primary); border-color: transparent; }
.anm-tor.ist-ok .anm-tor-wert { color: var(--kl-ok); }
.anm-tor.ist-stopp { border-color: rgba(251, 113, 133, 0.6); background: rgba(244, 63, 94, 0.12); transform: translateZ(26px); }
.anm-tor.ist-stopp .anm-punkt { color: #fff; background: var(--tone-rose-500); border-color: transparent; }
.anm-tor.ist-stopp .anm-tor-wert { color: var(--tone-rose-text); }
.anm-tor.ist-tuer { border-color: rgba(251, 191, 36, 0.6); background: rgba(245, 158, 11, 0.12); transform: translateZ(26px); }
.anm-tor.ist-tuer .anm-punkt { color: #fff; background: var(--tone-amber-600); border-color: transparent; }
.anm-tor.ist-tuer .anm-tor-wert { color: var(--kl-warn); }
.anm-tor.ist-aus { opacity: 0.35; }
.anm-paket {
  position: absolute; z-index: 2; left: 25px; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; pointer-events: none;
  border: 2px solid #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--kl-accent) 35%, transparent), 0 0 28px 6px color-mix(in srgb, var(--kl-accent) 70%, transparent);
  translate: 0 var(--paket-y); transform: translateZ(40px); opacity: 0;
  transition: translate 300ms cubic-bezier(0.2, 0, 0, 1), opacity 250ms ease;
}
.anm-buehne[data-phase="kette"] .anm-paket { opacity: 1; }

/* 3. Ergebnis: Fenster der App, baut sich je Rolle auf */
.anm-ergebnis { position: relative; font-size: 13px; }
.anm-fenster {
  display: grid; grid-template-columns: 11.5em minmax(0, 1fr); min-height: 21em; border-radius: 1.4em; overflow: hidden;
  border: 1px solid var(--kl-hairline-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  background: var(--kl-canvas);
  transition: opacity 400ms ease, filter 400ms ease;
}
.anm-leiste { margin: 0.6em 0 0.6em 0.6em; padding: 0.6em; border-radius: 1.1em; background: var(--kl-card-fill); display: grid; gap: 0.4em; align-content: start; }
.anm-leiste .ui-traeger { padding-bottom: 0.4em; min-width: 0; }
.anm-leiste .ui-traeger b, .anm-leiste .ui-traeger span span { overflow-wrap: anywhere; }
.anm-nav { display: grid; gap: 0.15em; }
.anm-nav > span { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.6em; border-radius: 0.75em; font-size: 0.95em; border: 1px solid transparent; }
.anm-nav > span .i { color: var(--kl-ink-secondary); }
.anm-nav > span:first-child { background: var(--kl-accent-soft); border-color: transparent; color: var(--kl-accent); font-weight: 600; }
.anm-nav > span:first-child .i { color: var(--kl-accent); }
.anm-inhalt { padding: 1.2em 1.3em; display: grid; gap: 0.8em; align-content: start; min-width: 0; }
.anm-gruss { font-size: 1.5em; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.anm-rechte { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2em 0.45em; color: var(--kl-ink-secondary); }
.anm-rechte b { font-size: 2.6em; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.anm-kann { display: flex; flex-wrap: wrap; gap: 0.4em; }
.anm-kann .ui-kapsel { white-space: normal; font-size: 0.85em; padding: 0.3em 0.7em; }
.anm-wand {
  position: absolute; right: -6px; bottom: -52px; display: none; align-items: center; gap: 8px; max-width: 80%; padding: 10px 14px; border-radius: 14px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(23, 23, 23, 0.72); border: 1px dashed rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateZ(60px);
}
.anm-wand .i { width: 16px; height: 16px; color: var(--kl-warn); }
.anm-ergebnis.ist-anders:not(.ist-leer) .anm-wand { display: flex; }
.anm-ergebnis.ist-anders .ui-traeger .ui-avatar { color: #fff; background: var(--tone-teal-600); }
.anm-ergebnis.ist-anders .anm-fenster { background: color-mix(in srgb, var(--tone-teal-500) 12%, var(--kl-canvas)); }
.anm-ergebnis.ist-tuer .anm-nav > span:first-child { background: var(--tone-amber-badge); border-color: transparent; color: var(--tone-amber-text); }
.anm-ergebnis.ist-tuer .anm-nav > span:first-child .i { color: var(--tone-amber-text); }
.anm-ergebnis.ist-leer .anm-fenster { opacity: 0.4; filter: saturate(0.3); }
.anm-ergebnis.ist-gesperrt .anm-fenster { opacity: 0.18; }
/* Solange die Kette prüft: Hinweis im leeren Fenster statt einer grauen Fläche */
.anm-ergebnis.ist-leer:not(.ist-gesperrt)::after { content: "Wartet auf die Anmeldung …"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1em; font-weight: 600; color: var(--kl-ink-tertiary); }
.anm-ergebnis.ist-gesperrt::after { content: "Kein Zugang"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4em; font-weight: 800; color: var(--tone-rose-text); }
/* Einzelteile erscheinen gestaffelt, sobald das Ergebnis da ist */
.anm-gruss, .anm-rechte, .anm-nav > span, .anm-kann > span, .anm-leiste .ui-traeger { transition: opacity 400ms ease, translate 500ms cubic-bezier(0.2, 0, 0, 1); transition-delay: calc(var(--n, 0) * 70ms + 80ms); }
.anm-ergebnis.ist-leer :is(.anm-gruss, .anm-rechte, .anm-nav > span, .anm-kann > span, .ui-traeger) { opacity: 0; translate: 0 8px; transition-delay: 0ms; transition-duration: 150ms; }

.anm-fuss { display: flex; align-items: flex-start; gap: 8px; margin-top: 48px; max-width: 70ch; font-size: 15px; color: var(--kl-ink-secondary); }
.anm-fuss .i { margin-top: 4px; color: var(--kl-warn); }

@media (min-width: 1000px) {
  .anm-raum { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 5fr); gap: 36px; }
  .anm-maske { transform: translateZ(30px) rotateY(16deg); }
  .anm-kette { transform: translateZ(0); }
  .anm-tor { transform: translateZ(calc(var(--i) * 8px)); }
  .anm-tor.ist-pruefen, .anm-tor.ist-stopp, .anm-tor.ist-tuer { transform: translateZ(calc(var(--i) * 8px + 30px)); }
  .anm-ergebnis { transform: translateZ(30px) rotateY(-16deg); }
}
/* Schmal: Maske und App liegen auf Vorder- und Rückseite derselben Karte; nach dem Anmelden dreht sie sich um.
   Die Prüfkette steht kompakt darunter, so bleibt alles nah beieinander im Blick. */
@media (max-width: 999px) {
  .anm-raum { grid-template-areas: "karte" "kette"; max-width: 520px; margin-inline: auto; gap: 22px; }
  .anm-buehne[data-phase] { --kam: 0deg; }
  .anm-boden { display: none; }
  .anm-maske, .anm-ergebnis { grid-area: karte; align-self: start; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform 900ms cubic-bezier(0.2, 0, 0, 1); }
  .anm-maske { transform: rotateX(4deg); }
  .anm-ergebnis { transform: rotateY(180deg); }
  .anm-buehne[data-phase="ergebnis"] .anm-maske { transform: rotateY(-180deg); }
  .anm-buehne[data-phase="ergebnis"] .anm-ergebnis { transform: rotateX(4deg); }
  .anm-kette { grid-area: kette; gap: 6px; }
  .anm-tor { padding: 6px 10px 6px 6px; }
  .anm-tor-text { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
  .anm-tor b { grid-column: 1 / -1; }
  .anm-tor code { align-self: baseline; }
  .anm-tor-wert { min-height: 0; text-align: right; }
  /* Ohne Skript: keine Drehung, die App steht unter der Kette */
  .anmeldung:not(.spielt) .anm-raum { grid-template-areas: "karte" "kette" "ergebnis"; }
  .anmeldung:not(.spielt) .anm-ergebnis { grid-area: ergebnis; transform: none; }
}
@media (max-width: 559px) {
  .anm-faelle { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .anm-faelle::-webkit-scrollbar { display: none; }
  .anm-fall { flex: none; }
  .anm-fenster { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .anm-leiste { margin: 0.6em 0.6em 0; }
  .anm-nav { display: flex; flex-wrap: wrap; }
  .anm-nav > span { padding: 0.35em 0.55em; font-size: 0.9em; }
  .anm-wand { position: relative; right: auto; bottom: auto; max-width: none; margin-top: 10px; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .tippt .anm-cursor { animation: anm-blinken 0.9s steps(1) infinite; }
  .anm-los.ist-arbeitet::after { animation: anm-glanz 1.1s ease-in-out infinite; }
  .anm-tor.ist-pruefen .anm-punkt { animation: anm-puls 0.6s ease-out infinite; }
}
@keyframes anm-blinken { 50% { opacity: 0; } }
@keyframes anm-glanz { to { transform: translateX(100%); } }
@keyframes anm-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kl-accent) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* Abrechnung für Honorarkräfte: dieselbe Bühne wie die Anmeldung (anm-*). Links die Tage des Auftrags, in der Mitte die sieben Schritte,
   rechts die Rechnung als helles Papier mit Zustellung und Prüfung. Ohne Skript (keine Klasse „spielt“) steht das fertige Bild „Alles stimmt“ da;
   versteckt wird nur, was das Skript per Zustandsklasse wieder einblendet. */
.abrechnung { color: var(--kl-ink); }
.ui-avatar.ton-warn { color: #fff; background: var(--tone-amber-600); }
.abr-tage {
  position: relative; display: grid; gap: 10px; padding: 20px; border-radius: 26px; font-size: 14px;
  background: rgba(33, 33, 33, 0.88); border: 1px solid var(--kl-hairline-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.abr-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 2px; }
.abr-kopf > span:last-child { min-width: 0; }
.abr-kopf b { display: block; font-size: 1.2em; font-weight: 800; letter-spacing: -0.01em; }
.abr-kopf .ui-fein { display: block; font-size: 12.5px; line-height: 1.35; color: var(--kl-ink-secondary); overflow-wrap: anywhere; }
.abr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.abr-tag {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px;
  background: var(--kl-field-fill); border: 1px solid var(--kl-hairline); transition: background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.abr-box { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: transparent; border: 1.5px solid var(--kl-hairline-strong); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.abr-box .i { width: 14px; height: 14px; }
.abr-tag-text { display: grid; min-width: 0; }
.abr-tag-text b { font-size: 13.5px; line-height: 1.25; }
.abr-tag-text small { font-size: 12px; line-height: 1.3; color: var(--kl-ink-secondary); }
.abr-tag-betrag { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--kl-ink-tertiary); transition: color 200ms ease; }
.abr-tag.ist-extra { margin-top: 4px; }
.abr-tag.ist-an { background: var(--kl-accent-soft); border-color: color-mix(in srgb, var(--kl-accent) 60%, transparent); }
.abr-tag.ist-an .abr-box { color: var(--kl-on-primary); background: var(--kl-primary); border-color: transparent; }
.abr-tag.ist-an .abr-tag-betrag { color: var(--kl-ink); }
/* Schon auf einer früheren Rechnung: gesperrt, nicht wählbar */
.abr-tag.ist-alt { opacity: 0.5; }
.abr-tag.ist-alt .abr-box { color: var(--kl-ink-tertiary); border-style: dashed; }
.abr-tag.ist-versucht { opacity: 1; background: rgba(244, 63, 94, 0.12); border-color: rgba(251, 113, 133, 0.6); }
.abr-tag.ist-versucht .abr-box { color: var(--tone-rose-text); border-color: currentColor; }
.abr-tag.ist-versucht small { color: var(--tone-rose-text); }
.abr-tag.ist-abweichung.ist-an { background: rgba(245, 158, 11, 0.12); border-color: rgba(251, 191, 36, 0.6); }
.abr-tag.ist-abweichung small { color: var(--kl-warn); }
.abr-summe { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 4px 2px; border-top: 1px solid var(--kl-hairline); font-size: 13px; color: var(--kl-ink-secondary); }
.abr-summe b { font-size: 1.55em; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }

/* Schritt mit anderem Ausgang: private Rechnung, der Träger ist nicht beteiligt */
.anm-tor.ist-anders .anm-punkt { color: #fff; background: var(--tone-teal-600); border-color: transparent; }
.anm-tor.ist-anders .anm-tor-wert { color: var(--tone-teal-text); }

/* 3. Die Rechnung: Papier auf dunkler Bühne, feste Farben in beiden Themen */
.abr-beleg { position: relative; display: grid; gap: 10px; font-size: 13px; }
.abr-blatt {
  --papier-ink: #1C1C1C; --papier-fein: #5B655F; --papier-linie: rgba(23, 23, 23, 0.12);
  position: relative; display: grid; gap: 10px; padding: 20px 20px 16px; border-radius: 6px 6px 16px 16px; font-size: 12px; color: var(--papier-ink);
  background: linear-gradient(#fdfcf9, #f6f4ee); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: opacity 450ms ease, filter 450ms ease, translate 600ms cubic-bezier(0.2, 0, 0, 1);
}
.abr-stempel {
  position: absolute; top: 16px; right: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em; color: #0B7A4B; border: 2px solid currentColor; rotate: -7deg;
  transition: opacity 250ms ease, scale 350ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.abr-stempel .i { width: 13px; height: 13px; }
.abr-von { font-size: 10px; color: var(--papier-fein); padding-right: 38%; padding-bottom: 4px; border-bottom: 1px solid var(--papier-linie); }
.abr-an { display: grid; gap: 1px; }
.abr-an b { font-size: 13px; }
.abr-an span { color: var(--papier-fein); }
.abr-titel { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; }
.abr-daten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 0; }
.abr-daten dt { color: var(--papier-fein); }
.abr-daten dd { margin: 0; font-variant-numeric: tabular-nums; }
.abr-posten { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--papier-linie); }
.abr-posten li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--papier-linie); font-variant-numeric: tabular-nums; }
.abr-posten small { margin-left: 8px; font-size: 10.5px; color: var(--papier-fein); white-space: nowrap; }
.abr-gesamt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; }
.abr-gesamt b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.abr-klein { font-size: 10px; line-height: 1.4; color: var(--papier-fein); }
.abr-beleg.ist-anders .abr-an b { color: #0f766e; }

.abr-zustellung { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.abr-zustellung li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--kl-hairline);
}
.abr-zustellung li > span:nth-child(2) { display: grid; min-width: 0; }
.abr-zustellung b { font-size: 12.5px; line-height: 1.3; }
.abr-zustellung small { font-size: 11.5px; color: var(--kl-ink-secondary); overflow-wrap: anywhere; }
.abr-zustellung .ui-kapsel { font-size: 11px; }
.abr-post { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: var(--tone-sky-text); background: var(--tone-sky-badge); }
.abr-post .i { width: 15px; height: 15px; }
.abr-pruefung { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; color: var(--kl-ink-secondary); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--kl-hairline-strong); }
.abr-pruefung:empty { display: none; }
.abr-pruefung .ui-kapsel { flex: none; font-size: 11.5px; }
.abr-pruefung .ui-kapsel .i { width: 13px; height: 13px; }
.abr-beleg.ist-anders:not(.ist-leer) .anm-wand { display: flex; }

/* Zustände aus dem Skript: leer → Nummer → festgeschrieben (Papier erscheint, Stempel) → zugestellt → geprüft */
.abr-zustellung li, .abr-posten li { transition: opacity 400ms ease, translate 500ms cubic-bezier(0.2, 0, 0, 1); transition-delay: calc(var(--n, 0) * 80ms + 120ms); }
.abr-pruefung { transition: opacity 400ms ease, translate 500ms cubic-bezier(0.2, 0, 0, 1); }
.abr-beleg.ist-leer .abr-blatt { opacity: 0.1; filter: blur(3px); translate: 0 18px; }
.abr-beleg.ist-leer :is(.abr-zustellung li, .abr-posten li) { opacity: 0; translate: 0 8px; transition-delay: 0ms; transition-duration: 150ms; }
.abrechnung.spielt .abr-beleg:not(.ist-fest) .abr-stempel { opacity: 0; scale: 1.8; }
.abrechnung.spielt .abr-beleg:not(.ist-geprueft) .abr-pruefung { opacity: 0; translate: 0 8px; }
.abr-beleg.ist-leer:not(.ist-gesperrt)::after { content: "Wartet auf die Rechnung …"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--kl-ink-tertiary); }
.abr-beleg.ist-gesperrt::after { content: "Keine Rechnung erstellt"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: var(--tone-rose-text); }

.abr-fakten { list-style: none; margin: 88px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.abr-fakten li { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--kl-hairline); }
.abr-fakten b { font-size: 15.5px; line-height: 1.3; color: #fff; }
.abr-fakten li > span:last-child { font-size: 14px; line-height: 1.5; color: var(--kl-ink-secondary); }

@media (min-width: 1000px) {
  .abr-tage { transform: translateZ(30px) rotateY(16deg); }
  .abr-beleg { transform: translateZ(30px) rotateY(-16deg); }
}
/* Schmal: einfach untereinander, ohne Kartendrehung (die Rechnung ist zu lang für eine Rückseite) */
@media (max-width: 999px) {
  .anmeldung.abrechnung .anm-raum { grid-template-areas: none; grid-template-columns: minmax(0, 1fr); }
  .abrechnung .anm-kette { grid-area: auto; }
  .abr-fakten { margin-top: 56px; }
}
@media (max-width: 559px) {
  /* Lange Funktionsnamen: Wert unter dem Namen statt rechts daneben */
  .abrechnung .anm-tor-text { grid-template-columns: minmax(0, 1fr); }
  .abrechnung .anm-tor-wert { text-align: left; }
  .abr-posten small { display: block; margin-left: 0; }
  .abr-zustellung li { grid-template-columns: 28px minmax(0, 1fr); }
  .abr-zustellung .ui-kapsel { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .abr-tag.ist-versucht { animation: abr-ruetteln 420ms ease-in-out; }
}
@keyframes abr-ruetteln { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }

/* Sicherheit, „Der Weg einer Anfrage“: dunkles Feld im hellen Abschnitt, dieselbe Bühne wie die Anmeldung.
   Links die Anfrage, wie sie das Gerät verlässt, in der Mitte sieben Prüfungen, rechts die Antwort der Datenbank.
   Ohne Skript steht der Fall „Eigener Schützling“ fertig da. */
.schutzweg { color: var(--kl-ink); margin: 8px 0 28px; padding: clamp(24px, 4vw, 48px); border-radius: 32px; }
.schutzweg-kopf { max-width: 70ch; margin-bottom: 24px; }
.schutzweg-kopf h3 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.schutzweg-kopf p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--kl-ink-secondary); }
.sw-anfrage, .sw-antwort {
  position: relative; display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 24px; font-size: 13px;
  background: rgba(33, 33, 33, 0.88); border: 1px solid var(--kl-hairline-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.sw-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sw-kopf > span:last-child { min-width: 0; }
.sw-kopf b { display: block; font-size: 15px; line-height: 1.25; }
.sw-kopf small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--kl-ink-secondary); }
.sw-code {
  margin: 0; padding: 12px 14px; border-radius: 14px; min-height: 7.6em; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 500 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #EDEDED; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--kl-hairline);
}
.tippt .sw-anfrage .sw-code::after { content: ""; display: inline-block; width: 7px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--kl-accent); }
.sw-ort { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--kl-ink-secondary); }
.sw-ort .i { flex: none; width: 14px; height: 14px; color: var(--tone-sky-text); }
.sw-ort code { font: 500 11.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; color: #EDEDED; }
.sw-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sw-status .ui-kapsel { font-size: 12px; }
.sw-status .ui-kapsel .i { width: 14px; height: 14px; }
.sw-status code { font: 600 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--kl-ink-secondary); }
.sw-antwort .sw-code { min-height: 0; }
.sw-folgen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sw-folgen li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--kl-ink-secondary); }
.sw-folgen .i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--kl-accent); }
.anm-tor.ist-neutral .anm-punkt { color: var(--kl-ink-secondary); background: rgba(255, 255, 255, 0.08); border-color: var(--kl-hairline-strong); }
.anm-tor.ist-neutral .anm-tor-wert { color: var(--kl-ink-secondary); }
/* Antwort erscheint, wenn die Prüfungen durch sind */
.sw-status, .sw-antwort .sw-code, .sw-folgen li { transition: opacity 400ms ease, translate 500ms cubic-bezier(0.2, 0, 0, 1); transition-delay: calc(var(--n, 0) * 90ms + 160ms); }
.sw-antwort .sw-code { transition-delay: 80ms; }
.sw-status { transition-delay: 0ms; }
.sw-antwort.ist-leer :is(.sw-status, .sw-code, .sw-folgen li) { opacity: 0; translate: 0 8px; transition-delay: 0ms; transition-duration: 150ms; }
.sw-antwort.ist-leer::after { content: "Wartet auf die Datenbank …"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--kl-ink-tertiary); }

.sw-fakten { list-style: none; margin: 72px 0 0; padding: 0; display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sw-fakten li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.sw-fakten li > .i { width: 34px; height: 34px; padding: 8px; border-radius: 11px; color: var(--kl-accent); background: var(--kl-accent-soft); }
.sw-fakten li > span { font-size: 14px; line-height: 1.5; color: var(--kl-ink-secondary); }
.sw-fakten b { display: block; margin-bottom: 2px; font-size: 15px; color: #fff; }
.schutzweg .anm-fuss { margin-top: 40px; }

@media (min-width: 1000px) {
  .sw-anfrage { transform: translateZ(30px) rotateY(16deg); }
  .sw-antwort { transform: translateZ(30px) rotateY(-16deg); }
}
@media (max-width: 999px) {
  .anmeldung.schutzweg .anm-raum { grid-template-areas: none; grid-template-columns: minmax(0, 1fr); }
  .schutzweg .anm-kette { grid-area: auto; }
  .sw-fakten { margin-top: 48px; }
}
@media (max-width: 559px) {
  .schutzweg { margin-inline: -20px; border-radius: 0; padding: 32px 20px; }
  .schutzweg .anm-faelle { margin-inline: -20px; }
  .schutzweg .anm-tor-text { grid-template-columns: minmax(0, 1fr); }
  .schutzweg .anm-tor-wert { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .tippt .sw-anfrage .sw-code::after { animation: anm-blinken 0.9s steps(1) infinite; }
}

/* Abrechnung, „So rechnen Honorarkräfte wirklich ab“: fünf Neuerungen in derselben Form wie die Punkte der E-Rechnung */
.abr-neu { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--kl-hairline); }
.abr-neu .er-punkte { margin-top: 0; }
@media (min-width: 1200px) {
  .abr-neu .er-punkte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Abrechnung, „Die E-Rechnung, einfach erklärt“: dieselbe Rechnung zweimal, links als Papier für Menschen,
   rechts als Datenzeilen für das Buchhaltungsprogramm, dazwischen die Klammer „in derselben Datei“. Kein Skript. */
.erechnung { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--kl-hairline); }
.er-kopf { max-width: 64ch; margin-bottom: 32px; }
.er-kopf h3 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.er-kopf p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--kl-ink-secondary); }

.er-zwei { display: grid; gap: 16px; align-items: stretch; }
.er-ansicht {
  margin: 0; display: grid; gap: 16px; align-content: start; padding: 24px; border-radius: 24px;
  background: rgba(33, 33, 33, 0.88); border: 1px solid var(--kl-hairline-strong);
}
.er-ansicht figcaption { display: grid; gap: 4px; }
.er-ansicht figcaption b { font-size: 17px; color: #fff; }
.er-ansicht figcaption span { font-size: 14px; line-height: 1.45; color: var(--kl-ink-secondary); }
.er-papier {
  display: grid; gap: 8px; padding: 20px; border-radius: 8px; color: #1C1C1C;
  background: linear-gradient(#fdfcf9, #f2efe7); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.8);
}
.er-papier-von { font-size: 12px; color: #5B655F; }
.er-papier > b { font-size: 16px; margin-bottom: 8px; }
.er-papier i { display: block; height: 6px; border-radius: 3px; background: rgba(23, 23, 23, 0.14); }
.er-papier i:nth-of-type(2) { width: 82%; }
.er-papier i:nth-of-type(4) { width: 64%; }
.er-papier-summe { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(23, 23, 23, 0.2); font-size: 13px; }
.er-papier-summe b { font-size: 16px; }
.er-gleich {
  justify-self: center; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #EDEDED; background: rgba(0, 0, 0, 0.4); border: 1px dashed var(--kl-accent);
}
.er-gleich .i { width: 16px; height: 16px; color: var(--kl-accent); }
.er-daten { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: 12px; overflow: hidden; border: 1px solid var(--kl-hairline); }
.er-daten dt, .er-daten dd { margin: 0; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--kl-hairline); }
.er-daten dt { color: var(--kl-ink-secondary); background: rgba(255, 255, 255, 0.04); }
.er-daten dd { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.er-daten dt:nth-last-of-type(1), .er-daten dd:nth-last-of-type(1) { border-bottom: 0; }

.er-punkte { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.er-punkte li { display: flex; align-items: flex-start; gap: 12px; }
.er-punkte li > .i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--kl-ok); }
.er-punkte li span { display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--kl-ink-secondary); }
.er-punkte li b { font-size: 15px; color: #fff; }
.er-hintergrund { max-width: 75ch; margin: 32px 0 0; font-size: 14px; line-height: 1.55; color: var(--kl-ink-secondary); }

@media (min-width: 760px) {
  .er-zwei { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .er-punkte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1200px) {
  .er-punkte { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* Geräte (#geraete, neu gestaltet 05.11.2026): Kopf mittig, darunter eine Bühne mit Bildschirm, Browserfenster, Tablet
   und Handy (alle Oberflächen in HTML nachgebaut, Maße in em: 1em = 1/60 der Bühnenbreite, mobil 1/40), danach je
   Plattform eine Karte mit großem Knopf. geraete.js stellt die Karte für das eigene Gerät nach vorne (.ist-empfohlen). */
.geraete-kopf > .abschnitt-kopf { margin-bottom: clamp(24px, 4vw, 40px); }
.geraete-leiste { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.geraete-leiste li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--kl-ink); background: var(--kl-card-fill); border: 1px solid var(--kl-hairline-strong); }
.geraete-leiste .i { width: 16px; height: 16px; color: var(--kl-accent); }

.gb { position: relative; max-width: 980px; margin: 0 auto clamp(32px, 5vw, 56px); aspect-ratio: 60 / 34; container-type: inline-size; }
.gb > * { font-size: calc(100cqw / 60); }
.gb-licht { position: absolute; inset: 12% 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--kl-ink) 8%, transparent), transparent); filter: blur(20px); pointer-events: none; }
.gb-teil { position: absolute; translate: calc(var(--nx, 0) * var(--tx, 0.4em)) calc(var(--ny, 0) * var(--tx, 0.4em)); }
.gb-monitor-ort { left: 13em; top: 0; width: 34em; --tx: 0.3em; }
.gb-browser-ort { left: 0; top: 12.5em; width: 21em; --tx: 0.9em; z-index: 2; }
.gb-tablet-ort { left: 41em; top: 9em; width: 13em; --tx: 0.6em; z-index: 1; }
.gb-handy-ort { left: 51em; top: 14.5em; width: 9em; --tx: 1em; z-index: 3; }
.gb .ui { color: var(--kl-ink); }
.gb .ui-titel { font-size: 1.9em; }
.gb .ui-gruppe, .gb .ui-zahl, .gb .ui-pdf { box-shadow: 0 0.3em 0.8em var(--kl-card-shadow); }

/* Bildschirm mit Desktop-App */
.gb-monitor { padding: 0.55em; border-radius: 1.1em; background: linear-gradient(160deg, #3A3A3F, #161618 40%, #222226); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2.4em 4em -1.6em rgba(0, 0, 0, 0.45); }
.gb .gb-schirm { font-size: 0.68em; aspect-ratio: 16 / 10; border-radius: 1.1em; overflow: hidden; display: flex; flex-direction: column; background: var(--kl-canvas); }
.gb-titelleiste { flex: none; display: flex; align-items: center; justify-content: space-between; height: 2.6em; padding: 0 1em; border-bottom: 1px solid var(--kl-hairline); background: var(--kl-card-fill); font-size: 0.95em; font-weight: 700; }
.gb-titel-name { display: inline-flex; align-items: center; gap: 0.5em; }
.gb-logo { width: 1.5em; height: 1.5em; border-radius: 0.35em; display: block; object-fit: contain; } /* echtes KidLog-Logo statt Buchstabe */
.gb-fensterknoepfe { display: inline-flex; gap: 0.9em; }
.gb-fensterknoepfe i { width: 0.9em; height: 0.9em; border-radius: 0.2em; border: 1.5px solid var(--kl-ink-tertiary); }
.gb-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 12.5em minmax(0, 1fr); }
.gb-seite { margin: 0.6em 0 0.6em 0.6em; padding: 0.6em; border-radius: 1.2em; background: var(--kl-card-fill); display: flex; flex-direction: column; gap: 0.15em; }
.gb-haupt { min-width: 0; overflow: hidden; padding: 1.1em 1.3em; display: grid; gap: 0.8em; align-content: start; }
.gb-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7em; }
.gb-hals { width: 5em; height: 2.6em; margin: 0 auto; background: linear-gradient(90deg, #2A2A2E, #4A4A50 50%, #2A2A2E); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.gb-fuss { width: 14em; height: 0.75em; margin: 0 auto; border-radius: 0.3em 0.3em 1em 1em; background: linear-gradient(#4A4A50, #222226); box-shadow: 0 1.2em 1.6em -0.6em rgba(0, 0, 0, 0.4); }

/* Browserfenster mit Web-App */
.gb-browser { border-radius: 0.9em; overflow: hidden; background: var(--kl-card-fill-strong); border: 1px solid var(--kl-hairline-strong); box-shadow: 0 2em 3.4em -1.4em rgba(0, 0, 0, 0.35); }
.gb-browser-leiste { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.8em; background: var(--kl-field-fill); border-bottom: 1px solid var(--kl-hairline); }
.gb-punkte { display: inline-flex; gap: 0.35em; }
.gb-punkte i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--kl-hairline-strong); }
.gb-adresse { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.35em; padding: 0.3em 0.8em; border-radius: 999px; background: var(--kl-card); font-size: 0.62em; font-weight: 600; color: var(--kl-ink-secondary); }
.gb-adresse .i { width: 1em; height: 1em; color: var(--tone-emerald-text); }
.gb .gb-browser-inhalt { font-size: 0.78em; padding: 1.3em 1.4em 1.6em; display: grid; gap: 0.9em; background: var(--kl-canvas); }
.gb-woche { display: grid; gap: 0.5em; }

/* Tablet und Handy */
.gb-tablet, .gb-handy { background: linear-gradient(150deg, #4A4A52, #1D1D22 35%, #2D2D34 70%, #4A4A52); box-shadow: inset 0 0 0 0.08em rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2.4em 3.6em -1.4em rgba(0, 0, 0, 0.5); }
.gb-tablet { padding: 0.55em; border-radius: 1.4em; }
.gb .gb-tablet-schirm { font-size: 0.66em; aspect-ratio: 3 / 4; border-radius: 1.8em; overflow: hidden; padding: 1.8em 1.4em; display: grid; gap: 0.9em; align-content: start; background: var(--kl-canvas); }
.gb-handy { padding: 0.32em; border-radius: 1.5em; }
.gb .gb-handy-schirm { position: relative; font-size: 0.6em; aspect-ratio: 9 / 19; border-radius: 2.6em; overflow: hidden; padding: 3.2em 1em 1em; display: grid; gap: 0.8em; align-content: start; background: var(--kl-canvas); }
.gb-handy-schirm .ui-titel { font-size: 1.7em; }
.gb-kamera { position: absolute; left: 50%; top: 1em; width: 1.1em; height: 1.1em; translate: -50% 0; border-radius: 50%; background: #0b0a10; box-shadow: 0 0 0 0.15em rgba(255, 255, 255, 0.06); }

@media (max-width: 639px) {
  .gb { aspect-ratio: 40 / 34; }
  .gb > * { font-size: calc(100cqw / 40); }
  .gb-monitor-ort { left: 2em; width: 29em; }
  .gb-browser-ort { left: 0; top: 13.5em; width: 19em; }
  .gb-tablet-ort { display: none; }
  .gb-handy-ort { left: 29em; top: 9.5em; width: 11em; }
}

/* Bewegung: die Geräte steigen beim Hereinscrollen nacheinander auf und schweben dann leicht */
@media (prefers-reduced-motion: no-preference) {
  .gb-schwebe { animation: gb-schweben 7s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .gb-browser-ort .gb-schwebe { animation-delay: -2.4s; }
  .gb-tablet-ort .gb-schwebe { animation-delay: -4.6s; }
  .gb-handy-ort .gb-schwebe { animation-delay: -1.2s; animation-duration: 6s; }
  @supports (animation-timeline: view()) {
    .gb-teil { animation: gb-auf linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
    .gb-browser-ort { animation-range: entry 15% cover 36%; }
    .gb-tablet-ort { animation-range: entry 20% cover 40%; }
    .gb-handy-ort { animation-range: entry 25% cover 44%; }
  }
}
@keyframes gb-schweben { from { translate: 0 -0.35em; } to { translate: 0 0.35em; } }
@keyframes gb-auf { from { opacity: 0; transform: translateY(3em) scale(0.96); } }

/* Download: eine Karte je Plattform */
.download { min-width: 0; display: grid; gap: 24px; scroll-margin-top: 96px; }
.download > * { min-width: 0; }
.dl-kopf { display: grid; gap: 8px; }
.dl-kopf h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.dl-kopf p { font-size: 16px; line-height: 1.5; color: var(--kl-ink-secondary); }
.dl-kopf .dl-erkannt { justify-self: start; display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 6px; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; color: var(--kl-ink); background: var(--kl-accent-soft); border: 1px solid color-mix(in srgb, var(--kl-accent) 35%, transparent); }
.dl-erkannt[hidden] { display: none; }
.dl-erkannt .i { width: 18px; height: 18px; margin-top: 2px; color: var(--kl-accent); }
.plattformen { display: grid; gap: 22px 16px; padding-top: 10px; }
@media (min-width: 640px) { .plattformen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .plattformen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plattform {
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border-radius: 22px; background: var(--kl-card); border: 1px solid var(--kl-hairline); box-shadow: var(--schatten);
  transition: transform 300ms var(--ease-3d), box-shadow 300ms ease, border-color 300ms ease;
}
.plattform:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--kl-accent) 35%, transparent); box-shadow: var(--schatten-gross); }
.pf-kopf { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pf-kopf > div { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.pf-kopf h4 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--kl-ink); }
.pf-symbol {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--s400), var(--s600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 20px -10px var(--s600);
  transition: transform 300ms var(--ease-3d);
}
.pf-symbol .i { width: 27px; height: 27px; }
.plattform:hover .pf-symbol { transform: scale(1.06) rotate(-3deg); }
.pf-text { flex: 1; font-size: 15px; line-height: 1.55; color: var(--kl-ink-secondary); }
.pf-knopf { width: 100%; min-height: 52px; white-space: normal; text-align: center; }
.pf-alt { display: flex; flex-wrap: wrap; gap: 0 18px; margin: -6px 0 -10px; }
.pf-alt a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pf-alt a:hover { text-decoration: underline; }
.pf-empfohlen { display: none; }
.plattform.ist-empfohlen { border: 1.5px solid var(--kl-accent); box-shadow: 0 18px 40px -22px rgba(23, 23, 23, 0.35); }
.ist-empfohlen .pf-empfohlen { position: absolute; top: -13px; left: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--kl-on-primary); background: var(--kl-primary); box-shadow: 0 6px 14px -6px rgba(23, 23, 23, 0.4); }
.pf-empfohlen .i { width: 14px; height: 14px; }

/* Status-Kapseln mit Punkt */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--kl-accent); background: var(--kl-accent-soft); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status.verfuegbar { color: var(--tone-emerald-text); background: var(--tone-emerald-badge); }
.status.test { color: var(--tone-sky-text); background: var(--tone-sky-badge); }
.status.pruefung { color: var(--tone-amber-text); background: var(--tone-amber-badge); }
.status.vorbereitung { color: var(--tone-slate-text); background: var(--tone-slate-badge); }
@media (prefers-reduced-motion: no-preference) {
  .status.verfuegbar::before, .status.test::before { animation: status-puls 2.4s ease-out infinite; }
  .ist-empfohlen { animation: empfohlen-auf 700ms 200ms var(--ease-3d) backwards; }
}
@keyframes status-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes empfohlen-auf { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.dl-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .dl-punkte { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.dl-punkte li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.5; color: var(--kl-ink-secondary); }
.dl-punkte li .i { width: 20px; height: 20px; margin-top: 2px; color: var(--kl-ink-secondary); }
.dl-punkte b { display: block; color: var(--kl-ink); font-weight: 600; }
.entwicklung-liste { margin-top: clamp(28px, 4vw, 40px); }
@media (min-width: 900px) {
  .entwicklung-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entwicklung-liste .zeile + .zeile::before { top: 14px; bottom: 14px; left: 0; width: 1px; height: auto; }
}

/* App-Datenschutz und Konto löschen: Vermerk zum Stand der Prüfung, Listen im Blatt */
.blatt .vermerk { margin: 0; padding: 12px 16px; border-radius: 0 var(--kl-radius-field) var(--kl-radius-field) 0; border-left: 3px solid var(--kl-warn); background: var(--kl-card-fill); color: var(--kl-ink); }
.blatt ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Zubuchbare Module (#module, 05.11.2026): Kapsel über der Überschrift eines Höhepunkts */
.hoehepunkt-text > .kapsel { justify-self: start; white-space: normal; }

/* Aufklappen auf dem Handy (05.11.2026, Wunsch des Inhabers: die Seite ist auf dem Handy zu lang).
   <details class="klapp"> ist bis 640 px eingeklappt; breiter verschwindet der Knopf und der Inhalt steht wie zuvor da
   (::details-content, ältere Browser öffnet geraete.js). Inhalte bleiben im HTML, Anker öffnen den Bereich (geraete.js). */
.klapp > summary { list-style: none; cursor: pointer; }
.klapp > summary::-webkit-details-marker { display: none; }
.sw-fakten-teil { list-style: none; margin: 0; padding: 0; display: contents; }
.pf-weitere { display: none; }
@media (min-width: 641px) {
  .klapp > summary { display: none; }
  .klapp { display: contents; }
  .klapp::details-content { display: contents; content-visibility: visible; }
  .hoehepunkt-text > .klapp > .punkte { margin-top: -6px; }
}
@media (max-width: 640px) {
  .klapp-knopf {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
    font: 700 15px/1.2 var(--kl-font); color: var(--kl-accent); background: var(--kl-card); border: 1px solid var(--kl-hairline-strong);
  }
  .klapp-knopf .i { width: 16px; height: 16px; rotate: 90deg; transition: rotate 250ms var(--ease-3d); }
  .klapp[open] > .klapp-knopf .i { rotate: -90deg; }
  .klapp:not([open]) > summary .auf, .klapp[open] > summary .zu { display: none; }
  .klapp[open] > .klapp-knopf { margin-bottom: 14px; }
  .klapp-knopf:focus-visible { outline: 3px solid var(--kl-focus); outline-offset: 2px; }
  @media (prefers-reduced-motion: no-preference) {
    .klapp[open]::details-content { animation: klapp-auf 300ms var(--ease-3d); }
  }
  .hoehepunkt-text > .klapp.mehr { margin-top: -4px; }
  .hoehepunkt-text > .klapp > .punkte { margin-bottom: 14px; }
  .hoehepunkt-text > .klapp > .hinweis { margin-bottom: 4px; }

  /* Bilder der Höhepunkte: nur ein Ausschnitt, der nach unten ausblendet */
  #funktionen .hoehepunkt > :not(.hoehepunkt-text), #module .hoehepunkt > :not(.hoehepunkt-text) {
    max-height: 240px; overflow: hidden; padding-block: 0;
    -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
  }
  #funktionen .hoehepunkt, #module .hoehepunkt { gap: 20px; }

  /* Sicherheit: Faktenliste untereinander, Schutzebenen und Weg einer Anfrage zum Aufklappen */
  .sw-fakten { display: grid; gap: 22px; margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
  .sw-fakten-teil { display: grid; gap: 22px; }
  .schutzweg .klapp-knopf, .sw-fakten .klapp-knopf { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
  #sicherheit > .huelle > .klapp { margin-bottom: 24px; }

  /* Geräte: nur das Handy auf der Bühne, Karten als Liste zum Aufklappen */
  .gb { aspect-ratio: 40 / 25; margin-bottom: 24px; }
  .gb-monitor-ort, .gb-browser-ort, .gb-tablet-ort { display: none; }
  .gb .gb-handy-ort { left: 14.5em; top: 0.5em; width: 11em; }
  .plattformen { gap: 12px; padding-top: 6px; }
  .pf-kopf.nur-breit { display: none; }
  .plattform { padding: 0; gap: 0; }
  .plattform:hover { transform: none; }
  .pf-zeile { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 16px; border-radius: 22px; }
  .pf-zeile .pf-symbol { width: 44px; height: 44px; border-radius: 13px; }
  .pf-zeile .pf-symbol .i { width: 22px; height: 22px; }
  .pf-titel { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
  .pf-titel h4 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--kl-ink); }
  .pf-zeile > .i { width: 18px; height: 18px; color: var(--kl-ink-tertiary); rotate: 90deg; transition: rotate 250ms var(--ease-3d); }
  .pf-klapp[open] > .pf-zeile > .i { rotate: -90deg; }
  .pf-zeile:focus-visible { outline: 3px solid var(--kl-focus); outline-offset: 2px; }
  .pf-klapp[open] { padding: 0 16px 16px; }
  .pf-klapp[open] > .pf-zeile { margin: 0 -16px 2px; }
  .pf-klapp > .pf-text { margin-bottom: 14px; }
  .pf-klapp > .pf-alt { margin: 4px 0 -6px; }
  .ist-empfohlen .pf-zeile { padding-top: 22px; }
  .pf-weitere { display: block; margin: 14px 0 0; font-size: 15px; font-weight: 700; color: var(--kl-ink-secondary); }
  .plattformen > .pf-weitere:first-child { margin-top: 0; }
  .download > .klapp { justify-self: start; }
  .download > .klapp[open] { justify-self: stretch; }
  .entwicklung-liste { margin-top: 24px; }
  #vergleich .klapp-knopf { margin-top: -8px; }
}
@keyframes klapp-auf { from { opacity: 0; translate: 0 -6px; } }
.punkte-gruppe { display: grid; gap: 10px; align-content: start; }
@media (min-width: 641px) { .punkte-gruppe > .klapp > .punkte { margin-top: 0; } }
@media (max-width: 640px) { .punkte-gruppe { gap: 14px; } }

.kopf-nav a { white-space: nowrap; padding-inline: 9px; }

/* Highlight „Ein Konto für mehrere Träger“ (#mehrere-traeger, demnächst): Karte mit Akzentkante, kurzer Kopf, als Bild der
   Wochenkalender von Wegblick im Verbund (grün = bei uns, grau = beim Verbundpartner belegt). Umschalter „Sicht des Trägers“ /
   „Sicht der Betreuerin“ über Radio-Felder, ohne Skript. Schmal: Bild direkt unter dem Titel, Raster ohne Querscrollen. */
.mehrere-traeger { padding-block: var(--raum-abschnitt); }
.mt-karte {
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "bild" "punkte" "mehr"; padding: clamp(20px, 4vw, 44px); border-radius: var(--kl-hero-radius);
  background: var(--kl-card); border: 1px solid var(--kl-hairline); border-left: 4px solid var(--kl-primary); box-shadow: var(--schatten);
}
@media (min-width: 1000px) {
  .mt-karte { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "kopf bild" "punkte bild" "punkte mehr"; grid-template-rows: auto auto 1fr; gap: 20px 48px; }
}
.mt-kopf { grid-area: kopf; display: grid; gap: 14px; justify-items: start; align-content: start; }
.mt-kopf > .kapsel { white-space: normal; }
.mt-kopf .kapsel .i { width: 14px; height: 14px; }
.mt-punkte { grid-area: punkte; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.mt-punkte li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.mt-punkte .kachel { width: 32px; height: 32px; border-radius: 9px; }
.mt-punkte .kachel .i { width: 17px; height: 17px; }

/* Bild mit Umschalter */
.mt-bild { grid-area: bild; display: grid; gap: 12px; align-content: start; min-width: 0; }
.mt-bild > input { position: absolute; opacity: 0; pointer-events: none; }
.mt-segment { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--kl-field-fill); justify-self: start; max-width: 100%; }
.mt-segment label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--kl-ink-secondary); cursor: pointer; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.mt-segment label:hover { color: var(--kl-ink); }
.mt-segment .i { width: 16px; height: 16px; }
.mt-kurz { display: none; }
#mt-sicht-traeger:checked ~ .mt-segment [for="mt-sicht-traeger"], #mt-sicht-person:checked ~ .mt-segment [for="mt-sicht-person"] { color: var(--kl-ink); background: var(--kl-card); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
#mt-sicht-traeger:focus-visible ~ .mt-segment [for="mt-sicht-traeger"], #mt-sicht-person:focus-visible ~ .mt-segment [for="mt-sicht-person"] { outline: 3px solid var(--kl-focus); outline-offset: 2px; }
.mt-ansicht { display: none; }
#mt-sicht-traeger:checked ~ .mt-a-traeger, #mt-sicht-person:checked ~ .mt-a-person { display: grid; }

.mt-kal { font-size: clamp(11px, 1.15vw, 14px); gap: 0.7em; padding: 1em; border-radius: 1.3em; background: var(--kl-canvas); border: 1px solid var(--kl-hairline); align-content: start; }
.mt-kal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.6em 1em; flex-wrap: wrap; }
.mt-kal-titel { display: flex; align-items: center; gap: 0.6em; min-width: 0; }
.mt-kal-titel b { display: block; font-size: 1em; }
.mt-kal-titel span span { display: block; font-size: 0.78em; color: var(--kl-ink-secondary); }
.mt-legende { display: flex; flex-wrap: wrap; gap: 0.3em 1em; font-size: 0.78em; color: var(--kl-ink-secondary); }
.mt-legende span { display: inline-flex; align-items: center; gap: 0.4em; }
.mt-legende span::before { content: ""; width: 0.8em; height: 0.8em; border-radius: 0.25em; background: var(--farbe); }
.mt-l-wir { --farbe: var(--tone-emerald-500); } .mt-l-verbund { --farbe: var(--tone-slate-500); } .mt-l-linden { --farbe: var(--tone-blue-500); }
.mt-raster { display: grid; grid-template-columns: 5.4em repeat(5, minmax(0, 1fr)); gap: 0.3em; padding: 0.6em; border-radius: 1em; background: var(--kl-card); box-shadow: 0 0.4em 1em var(--kl-card-shadow); }
.mt-raster > * { min-width: 0; }
.mt-tag { text-align: center; font-size: 0.75em; font-weight: 600; color: var(--kl-ink-secondary); padding-bottom: 0.2em; }
.mt-name { display: flex; align-items: center; gap: 0.4em; font-size: 0.82em; font-weight: 600; white-space: nowrap; overflow: hidden; }
.mt-name .ui-avatar { width: 1.8em; height: 1.8em; font-size: 0.78em; border-radius: 999px; }
.mt-z { display: grid; place-content: center; text-align: center; min-height: 3em; padding: 0.25em 0.15em; border-radius: 0.55em; font-style: normal; font-size: 0.74em; line-height: 1.2; overflow: hidden; }
.mt-z b { font-weight: 800; }
.mt-z small { font-size: 0.86em; font-weight: 600; }
.mt-z.frei { border: 1px dashed var(--kl-hairline-strong); }
.mt-z.wir { color: var(--tone-emerald-text); background: var(--tone-emerald-badge); }
.mt-z.verbund { color: var(--tone-slate-text); background: var(--tone-slate-badge); }
.mt-z.linden { color: var(--tone-blue-text); background: var(--tone-blue-badge); }
.mt-summe { display: flex; flex-wrap: wrap; gap: 0.3em 1.2em; font-size: 0.8em; color: var(--kl-ink-secondary); }
.mt-summe b { color: var(--kl-ink); }
.ui-avatar.mt-logo-w { color: var(--kl-on-primary); background: var(--kl-primary); }
.ui-avatar.mt-logo-l { color: #fff; background: var(--tone-blue-600); }
/* Trägerwechsel in der Sicht der Betreuerin */
.mt-wechsel { display: inline-flex; gap: 0.25em; padding: 0.25em; border-radius: 999px; background: var(--kl-field-fill); font-size: 0.82em; font-weight: 600; }
.mt-wechsel span { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.7em 0.3em 0.3em; border-radius: 999px; color: var(--kl-ink-secondary); }
.mt-wechsel span.aktiv { color: var(--kl-ink); background: var(--kl-card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.mt-wechsel .ui-avatar { width: 1.6em; height: 1.6em; font-size: 0.75em; border-radius: 0.45em; }

/* Selbstverständliches zum Aufklappen */
.mt-mehr { grid-area: mehr; border-top: 1px solid var(--kl-hairline); }
.mt-mehr summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 700; color: var(--kl-accent); }
.mt-mehr summary::-webkit-details-marker { display: none; }
.mt-mehr summary .i { width: 18px; height: 18px; transition: rotate 200ms ease; }
.mt-mehr[open] summary .i { rotate: 90deg; }
.mt-mehr summary:focus-visible { outline: 3px solid var(--kl-focus); outline-offset: 2px; border-radius: 8px; }
.mt-mehr ul { margin: 0 0 4px; padding-left: 1.2em; display: grid; gap: 6px; font-size: 14.5px; color: var(--kl-ink-secondary); }
@media (max-width: 480px) {
  .mt-kal { padding: 0.7em; }
  .mt-raster { grid-template-columns: 4.3em repeat(5, minmax(0, 1fr)); padding: 0.45em; gap: 0.22em; }
  .mt-name .ui-avatar { display: none; }
  .mt-z { font-size: 0.68em; min-height: 3.2em; }
  .mt-segment { justify-self: stretch; }
  .mt-segment label { flex: 1 1 0; padding-inline: 8px; font-size: 13.5px; }
  .mt-lang { display: none; }
  .mt-kurz { display: inline; }
}

/* App Store (17.11.2026): offizielles Apple-Badge unverändert, Höhe 40 px mit Freiraum; QR-Code nur für Desktop-Besucher */
.appstore { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.appstore-badge { display: inline-flex; padding: 4px 0; border-radius: 8px; }
.appstore-badge img { display: block; width: auto; height: 44px; }
.appstore-badge:focus-visible { outline: 3px solid var(--kl-focus); outline-offset: 3px; }
.appstore-qr { display: none; margin: 0; align-items: center; gap: 12px; }
.appstore-qr img { display: block; width: 112px; height: 112px; }
.appstore-qr figcaption { max-width: 9em; font-size: 13px; line-height: 1.4; color: var(--kl-ink-secondary); }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .appstore-qr { display: flex; } }
