/* Cockpit · Design-Entwurf 01.12.2026 · nur Dark Mode
   Schrift: Figtree (SIL Open Font License 1.1, liegt in ../fonts, darf mitgeliefert werden). */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: block;
}

:root {
  --bg: #0A0B0D;          /* fast schwarz */
  --karte: #141518;       /* Karten */
  --karte2: #1E2024;      /* Knöpfe, Spuren auf Karten */
  --linie: rgba(255,255,255,.07);
  --txt: #F3F4F6;
  --dim: #A0A3AA;
  --dim2: #70737B;
  --ink: #101215;         /* dunkle Schrift auf Pastell */
  --ink-dim: #3A3E46;
  --rot: #FF6B6B;         /* nur echte Fristen und Warnungen */
  --gruen: #7BDCA0;       /* nur Zustand „verbunden / läuft“ */
  --r-gross: 28px;
  --r: 22px;
  --r-klein: 18px;
  /* --v1 --v2 --v3 --verlauf --akzent setzt varianten.js */
  --v1: #E8ECB0; --v2: #C4E6D2; --v3: #BCC3EE; --akzent: #C6CCF4;
  --verlauf: linear-gradient(100deg, #E8ECB0 0%, #C4E6D2 50%, #BCC3EE 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--txt);
  font: 16px/1.4 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.k { width: 18px; height: 18px; }

/* ---------- Bildschirm */
.screen { position: relative; width: 390px; min-height: 844px; padding: 0 20px 128px; overflow: hidden; }
.screen > *:not(.glow) { position: relative; z-index: 1; }

/* Leuchten oben: irisierendes Pastell, läuft ins Schwarz aus */
.glow {
  position: absolute; left: 0; right: 0; top: 0; height: 450px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 42% at 46% 0%, rgba(255,255,255,var(--glanz, .55)), rgba(255,255,255,0) 100%),
    var(--verlauf);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 57%, rgba(0,0,0,.74) 67%, rgba(0,0,0,.38) 78%, rgba(0,0,0,.12) 90%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 57%, rgba(0,0,0,.74) 67%, rgba(0,0,0,.38) 78%, rgba(0,0,0,.12) 90%, transparent 100%);
}
.glow.leise { height: 300px; opacity: .22; }

/* Nur Attrappe fürs Bild: Statusleiste und Dynamic Island zeichnet iOS selbst */
.status { height: 50px; margin: 0 -20px; display: flex; justify-content: space-between; align-items: center; padding: 4px 30px 0 44px; color: var(--ink); font-weight: 650; font-size: 16.5px; }
.status.hell { color: var(--txt); }
.status .rechts { display: flex; gap: 6px; align-items: center; }
.island { position: absolute; z-index: 3 !important; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; }

/* Kopf */
.kopf { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.kopf .rechts { display: flex; gap: 10px; }
.pc { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 14px; border-radius: 99px; background: rgba(14,15,18,.9); color: #E9EBEE; font-size: 14.5px; font-weight: 600; }
.pc .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 3px rgba(123,220,160,.2); }
.rund { width: 46px; height: 46px; border-radius: 50%; background: rgba(14,15,18,.9); color: #E9EBEE; display: grid; place-items: center; }
.rund.dunkel { background: var(--karte2); }

/* Begrüßung */
.gruss h1 { margin: 20px 0 8px; font-size: 37px; line-height: 1.06; letter-spacing: -.022em; color: var(--ink); font-weight: 340; }
.gruss h1 b { font-weight: 700; }
.gruss p { margin: 0; color: var(--ink-dim); font-size: 16px; font-weight: 560; }
.gruss.hell h1 { color: var(--txt); }
.gruss.hell p { color: var(--dim); }

/* Hervorgehobene dunkle Karte (nächster Termin) */
.hero { margin-top: 24px; background: linear-gradient(180deg, #17181B, #111214); border: 1px solid rgba(255,255,255,.06); border-radius: var(--r-gross); padding: 18px; box-shadow: 0 26px 50px -14px rgba(0,0,0,.6); }
.hero .oben { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 14.5px; font-weight: 550; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--karte2); color: #E6E8EB; border-radius: 99px; padding: 6px 11px; font-size: 13.5px; font-weight: 650; }
.hero .mitte { display: flex; align-items: center; gap: 14px; margin: 12px 0 6px; }
.hero .tel { margin-left: auto; align-self: center; }
.zeit { font-size: 44px; font-weight: 620; letter-spacing: -.03em; line-height: 1; }
.wer b { display: block; font-size: 21px; font-weight: 680; line-height: 1.15; }
.wer span { color: var(--dim); font-size: 14.5px; }
.ort { display: flex; gap: 7px; align-items: center; color: var(--dim); font-size: 14.5px; margin: 10px 0 16px; }
.aktionen { display: flex; gap: 10px; }
.btn { height: 54px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 16px; white-space: nowrap; }
.btn.pastell { flex: 1; background: var(--verlauf); color: var(--ink); }
.btn.dunkel { padding: 0 20px; background: var(--karte2); color: var(--txt); }
.btn.rund54 { width: 54px; padding: 0; background: var(--karte2); color: var(--txt); }

/* 2×2-Kacheln mit großen Zahlen, feines Leuchten an der Oberkante */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.kachel { position: relative; overflow: hidden; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); padding: 15px 16px 14px; min-height: 116px; }
.kachel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(95% 60% at 50% 0%, color-mix(in srgb, var(--v2) 20%, transparent), transparent 78%); }
.kachel::after { content: ""; position: absolute; left: 16%; right: 16%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--v2) 75%, transparent), transparent); }
.kachel.warn::before { background: radial-gradient(95% 60% at 50% 0%, rgba(255,107,107,.16), transparent 78%); }
.kachel.warn::after { background: linear-gradient(90deg, transparent, rgba(255,107,107,.7), transparent); }
.kachel > * { position: relative; }
.kachel .zahl { font-size: 40px; font-weight: 650; line-height: 1; letter-spacing: -.03em; }
.kachel .zahl.rot { color: var(--rot); }
.kachel .was { font-size: 15.5px; font-weight: 650; margin-top: 10px; }
.kachel .klein { font-size: 13.5px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel .pfeil { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.06); display: grid; place-items: center; color: var(--dim); }

/* Abschnitte und Zeitleiste */
.abschnitt { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 2px 12px; }
.abschnitt h2 { font-size: 20px; font-weight: 680; margin: 0; letter-spacing: -.01em; }
.abschnitt a { color: var(--dim); font-size: 14.5px; font-weight: 550; }
.tag { display: grid; grid-template-columns: 64px 1fr; gap: 10px; margin-bottom: 16px; }
.tag .wann { font-size: 14px; font-weight: 700; color: var(--txt); padding-top: 13px; line-height: 1.2; }
.tag .wann small { display: block; font-size: 13px; font-weight: 550; color: var(--dim2); margin-top: 2px; }
.tag .wann.rot { color: var(--rot); }
.eintraege { display: flex; flex-direction: column; gap: 8px; }
.eintrag { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-klein); padding: 12px 14px 13px; }
.eintrag.ueber { border-color: rgba(255,107,107,.26); }
.eintrag .t { font-size: 16px; font-weight: 680; display: flex; gap: 8px; align-items: center; }
.eintrag .m { font-size: 14.5px; color: var(--akzent); font-weight: 600; margin-top: 1px; }
.eintrag .d { font-size: 14px; color: var(--dim); margin-top: 4px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.punkt-rot { width: 8px; height: 8px; border-radius: 50%; background: var(--rot); flex: none; }

/* Fortschritt in Pillenbalken */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; }
.karte .kopfzeile { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.karte h3 { margin: 0; font-size: 17px; font-weight: 680; }
.karte .kopfzeile span { color: var(--dim); font-size: 14px; }
.balken-zeile { display: grid; grid-template-columns: 96px 1fr 46px; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 14.5px; color: var(--dim); }
.balken { height: 12px; border-radius: 99px; background: #24262B; overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: 99px; }
.balken-zeile .z { text-align: right; color: var(--txt); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Untere Navigation */
.tabbar { position: fixed; left: 0; bottom: 0; width: 390px; height: 88px; padding: 9px 4px 0; background: #0C0D0F; border-top: 1px solid var(--linie); display: flex; justify-content: space-around; align-items: flex-start; z-index: 10; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--dim2); font-size: 12px; font-weight: 650; width: 74px; position: relative; }
.tab .ic { width: 58px; height: 32px; border-radius: 99px; display: grid; place-items: center; }
.tab.an { color: var(--txt); }
.tab.an .ic { background: var(--verlauf); color: var(--ink); }
.badge { position: absolute; top: -3px; right: 9px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--v3); color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid #0C0D0F; }
.home-ind { position: fixed; z-index: 11; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.88); }

/* ======================================================================
   Ab Entwurf 2 (Gletscher, alle Bereiche)
   ====================================================================== */
:root { --gelb: #F3C969; }   /* Hinweise ohne Frist: fehlende Adresse, Mikrofon still */
html.voll body { position: relative; }
html.voll .tabbar, html.voll .home-ind { position: absolute; }

/* Kopf: links PC-Status und Einstellungen, rechts Suche und Diktat */
.kopf .links { display: flex; gap: 10px; align-items: center; }
.auf-dunkel .pc, .auf-dunkel .rund { background: var(--karte2); }
.kopf-titel { font-size: 17px; font-weight: 680; }
.kopf .platz { width: 46px; }
.marke { position: relative; width: 18px; height: 18px; color: #E9EBEE; display: inline-block; flex: none; }
.marke .rahmen-svg { display: block; width: 100%; height: 100%; }
.marke i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 2px; background: var(--gruen); box-shadow: 0 0 8px rgba(123,220,160,.9); }
.badge.rot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: -1px; right: 22px; background: var(--rot); border-width: 2px; }

/* Seitentitel auf dunklen Reitern */
.seitentitel h1 { margin: 18px 0 4px; font-size: 34px; line-height: 1.08; font-weight: 340; letter-spacing: -.022em; }
.seitentitel h1 b { font-weight: 700; }
.seitentitel p { margin: 0; color: var(--dim); font-size: 16px; font-weight: 550; }

/* Gemeinsame Bausteine */
.label { font-size: 13px; font-weight: 700; color: var(--dim2); letter-spacing: .06em; text-transform: uppercase; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.reihe { display: flex; gap: 10px; align-items: center; }
.reihe > .btn.voll { flex: 1; }
.btn.klein { height: 44px; font-size: 15px; padding: 0 16px; }
.btn.umriss { background: transparent; border: 1.5px solid rgba(255,255,255,.14); color: var(--txt); padding: 0 18px; }
.btn.aus { opacity: .38; }
.punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--rot); flex: none; box-shadow: 0 0 0 4px rgba(255,107,107,.18); }
.k-text { font-size: 15.5px; line-height: 1.45; color: #DADCE0; }
ul.punkte { margin: 6px 0 0; padding: 0; list-style: none; }
ul.punkte li { position: relative; padding-left: 18px; margin: 5px 0; font-size: 15px; line-height: 1.4; color: #DADCE0; }
ul.punkte li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--dim2); }
ul.punkte li.rot { color: var(--rot); } ul.punkte li.rot::before { background: var(--rot); }
ul.haken li::before { content: none; }
ul.haken li { padding-left: 24px; }
ul.haken li svg { position: absolute; left: 0; top: 1px; width: 17px; height: 17px; color: var(--gruen); }

/* Mandant: Suche, Wischleiste, Karten */
.suchfeld { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 8px 0 18px; border-radius: 99px; background: var(--karte); border: 1px solid var(--linie); color: var(--dim); font-size: 16.5px; margin-top: 16px; }
.suchfeld span { flex: 1; }
.suchfeld .mic { width: 48px; height: 48px; border-radius: 50%; background: var(--verlauf); color: var(--ink); display: grid; place-items: center; }
.chips { display: flex; gap: 8px; margin: 16px -20px 0; padding: 0 20px; overflow: hidden; }
.chip-m { flex: none; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--karte); border: 1px solid var(--linie); display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #D8DADF; }
.chip-m.an { background: #F3F4F6; color: var(--ink); border-color: transparent; }
.karussell { display: flex; gap: 10px; margin: 14px -20px 0; padding: 0 20px; overflow: hidden; align-items: flex-start; }
.seite { flex: 0 0 332px; min-width: 0; }
.seite.blass { opacity: .45; }
.mkopf { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 18px; }
.mkopf .name { font-size: 26px; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-c { height: 28px; padding: 0 11px; border-radius: 99px; background: var(--karte2); font-size: 13.5px; font-weight: 650; color: #D6D8DD; display: inline-flex; align-items: center; }
.tag-c.neu { background: color-mix(in srgb, var(--v2) 24%, var(--karte2)); color: #EEF2FF; }
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.kontakt a { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; border-radius: 18px; background: var(--karte2); min-width: 0; }
.kontakt a b { display: block; font-size: 15px; font-weight: 650; }
.kontakt a span { display: block; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kontakt a > div { min-width: 0; }
.ueberblick { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linie); }
.wichtig { position: relative; margin-top: 10px; border-radius: var(--r-gross); padding: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--v2) 11%, #141518), #141518 170px); border: 1px solid color-mix(in srgb, var(--v2) 38%, transparent); }
.wichtig h3 { margin: 0 0 2px; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wichtig h3 .pdot { width: 9px; height: 9px; border-radius: 50%; background: var(--verlauf); }
.fz { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.fz:last-child { border-bottom: 0; padding-bottom: 2px; }
.fz .label { margin-bottom: 4px; display: flex; justify-content: space-between; }
.fz .label em { font-style: normal; color: var(--dim2); text-transform: none; letter-spacing: 0; font-weight: 600; }
.fz b { font-size: 16px; font-weight: 680; }
.fz b.rot { color: var(--rot); }
.fz .d { font-size: 14.5px; color: var(--dim); margin-top: 2px; line-height: 1.4; }
.zu { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; height: 60px; padding: 0 16px 0 18px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--linie); }
.zu b { font-size: 16px; font-weight: 680; } .zu span { color: var(--dim); font-size: 14px; margin-left: 8px; }
.zeile2 { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.zeile2:last-child { border-bottom: 0; }
.zeile2 .w { font-size: 14px; font-weight: 700; color: var(--txt); padding-top: 1px; }
.zeile2 .w.rot { color: var(--rot); }
.zeile2 b { font-size: 15.5px; font-weight: 650; display: block; }
.zeile2 span { font-size: 14px; color: var(--dim); }

/* Freigaben */
.freigabe { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 18px; margin-top: 16px; }
.freigabe .meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--dim); }
.freigabe .betreff { font-size: 19px; font-weight: 700; margin: 10px 0 2px; line-height: 1.25; }
.freigabe .an { font-size: 14.5px; color: var(--dim); }
.freigabe .an b { color: var(--txt); font-weight: 650; }
.warnzeile { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(243,201,105,.1); color: var(--gelb); font-size: 14.5px; font-weight: 600; }
.warnzeile svg { width: 18px; height: 18px; }
.mailtext { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: #0E0F11; border: 1px solid var(--linie); font-size: 15px; line-height: 1.5; color: #D9DBDF; max-height: 262px; overflow: hidden; position: relative; }
.mailtext::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(transparent, #0E0F11); }
.mailtext p { margin: 0 0 8px; }
.mailtext ul { margin: 0 0 8px; padding-left: 18px; }
.aktionen3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.aktionen3 .btn { width: 100%; padding: 0 10px; }
.mehr { font-size: 14px; color: var(--dim); margin-top: 8px; text-align: center; }

/* Termin */
.einw { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--karte2); margin-top: 14px; }
.einw .box { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--verlauf); color: var(--ink); }
.einw .box svg { stroke-width: 2.6; }
.einw b { font-size: 16px; font-weight: 680; display: block; line-height: 1.3; }
.einw span { font-size: 14px; color: var(--dim); }
.zitat { margin-top: 12px; padding: 4px 0 4px 14px; border-left: 3px solid color-mix(in srgb, var(--v2) 70%, transparent); color: #D2D5DA; font-size: 15px; line-height: 1.45; }
.info { display: flex; gap: 10px; align-items: flex-start; color: var(--dim); font-size: 14px; line-height: 1.4; margin-top: 14px; }
.info svg { width: 18px; height: 18px; margin-top: 1px; color: var(--dim); }
.wahl { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 16px; border-radius: 20px; background: var(--karte2); margin-top: 14px; }
.wahl b { font-size: 16.5px; font-weight: 680; display: block; } .wahl span { color: var(--dim); font-size: 14px; display: block; }
.aufnahme { position: relative; margin: 6px -20px 0; padding: 11px 20px; background: #16171A; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.aufnahme .dzeit { color: var(--txt); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.pegel { display: flex; gap: 2px; align-items: center; height: 18px; flex: none; }
.pegel i { width: 3px; border-radius: 2px; background: var(--gruen); }
.aufnahme .dtext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; margin-top: 12px; }
.blk h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.blk h3 svg { width: 19px; height: 19px; color: var(--dim); }
.blk h3 .zahl-c { margin-left: auto; font-size: 13px; color: var(--dim); font-weight: 650; }
.gehoert { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 15px; line-height: 1.42; color: #C9CCD1; padding: 5px 0; }
.gehoert span { color: var(--dim2); font-variant-numeric: tabular-nums; font-size: 13.5px; padding-top: 1px; }
.gehoert.neu { color: var(--txt); }
.frage { padding: 8px 0 4px; }
.frage + .frage { border-top: 1px solid var(--linie); }
.frage b { font-size: 15.5px; display: block; }
.frage p { margin: 4px 0; font-size: 15px; color: #D9DBDF; line-height: 1.45; }
.frage small { font-size: 13px; color: var(--akzent); font-weight: 600; }
.blk.hinweise ul.punkte li::before { background: var(--gelb); }

/* Claude */
.eingabe { margin-top: 16px; border-radius: var(--r-gross); background: var(--karte); border: 1px solid color-mix(in srgb, var(--v2) 32%, transparent); padding: 16px; }
.eingabe .diktat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.eingabe .live-text { margin-top: 12px; font-size: 19px; line-height: 1.4; font-weight: 520; min-height: 54px; }
.eingabe .live-text em { font-style: normal; color: var(--dim2); }
.cursor { display: inline-block; width: 2px; height: 22px; background: var(--akzent); vertical-align: -4px; margin-left: 2px; }
.job { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 18px; margin-top: 12px; }
.job .meta { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--dim); }
.st { height: 26px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--karte2); color: #D6D8DD; }
.st.fertig { background: rgba(123,220,160,.14); color: var(--gruen); }
.st.laeuft { background: color-mix(in srgb, var(--v2) 18%, transparent); color: var(--akzent); }
.job .titel { font-size: 18px; font-weight: 700; margin: 10px 0 12px; line-height: 1.25; }
.ampel { border-radius: 18px; background: #0E0F11; border: 1px solid var(--linie); overflow: hidden; }
.amp { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--linie); }
.amp:last-child { border-bottom: 0; }
.amp .s { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; margin-left: 4px; }
.amp .s.r { background: var(--rot); box-shadow: 0 0 0 4px rgba(255,107,107,.16); }
.amp .s.e { background: var(--verlauf); }
.amp .s.g { background: var(--gruen); box-shadow: 0 0 0 4px rgba(123,220,160,.14); }
.amp .k { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; color: var(--dim); }
.amp p { margin: 3px 0 0; font-size: 15px; line-height: 1.45; color: #E2E4E8; }
.amp.du .k { color: var(--rot); }
.fortschritt { height: 6px; border-radius: 99px; background: #24262B; overflow: hidden; margin-top: 12px; }
.fortschritt i { display: block; height: 100%; width: 45%; background: var(--verlauf); border-radius: 99px; }

/* Einstellungen */
.einst { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-gross); padding: 4px 16px; margin-top: 10px; }
.einst .z { display: flex; align-items: center; gap: 12px; min-height: 62px; border-bottom: 1px solid var(--linie); }
.einst .z:last-child { border-bottom: 0; }
.einst .z > svg { color: var(--dim); }
.einst .z div { flex: 1; min-width: 0; }
.einst .z b { display: block; font-size: 16px; font-weight: 650; }
.einst .z span { font-size: 13.5px; color: var(--dim); }
.einst .z .r { color: var(--dim); font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex: none; }
.einst .z .r.ok { color: var(--gruen); }
.gruppe { margin: 24px 4px 0; }
.farbwahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.farbe-k { position: relative; border-radius: 22px; background: var(--karte); border: 1px solid var(--linie); padding: 10px 10px 12px; text-align: center; }
.farbe-k .vorschau { height: 64px; border-radius: 15px; position: relative; overflow: hidden; }
.farbe-k .vorschau::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 18px; border-radius: 7px; background: #141518; }
.farbe-k b { display: block; font-size: 14.5px; font-weight: 650; margin-top: 8px; }
.farbe-k.an { border: 2px solid #F3F4F6; padding: 9px 9px 11px; }
.farbe-k .ok { position: absolute; top: 4px; right: 4px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: #F3F4F6; color: var(--ink); display: grid; place-items: center; }
.farbe-k .ok svg { width: 15px; height: 15px; stroke-width: 2.6; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: var(--karte2); margin-top: 10px; }
.segment span { height: 44px; border-radius: 99px; display: grid; place-items: center; font-size: 15px; font-weight: 650; color: var(--dim); }
.segment span.an { background: #F3F4F6; color: var(--ink); }

/* TELIS angedeutet (Varianten über ?logo=) */
.wasserzeichen { position: absolute !important; z-index: 0 !important; width: 236px; height: 236px; right: -44px; top: 206px; color: #fff; opacity: .42; display: none; }
.wasserzeichen .rahmen-svg { width: 100%; height: 100%; display: block; }
html[data-logo="wasserzeichen"] .wasserzeichen { display: block; }
html[data-logo="wasserzeichen"] .hero { position: relative; z-index: 2; }
.hero-rahmen { display: none; }
html[data-logo="rahmen"] .hero { position: relative; margin-top: 34px; }
html[data-logo="rahmen"] .hero-rahmen { display: block; position: absolute; inset: -12px; pointer-events: none; }
.hero-rahmen i { position: absolute; background: var(--verlauf); border-radius: 2px; }
.hero-rahmen .o { left: 0; top: 0; height: 4px; right: 13px; }
.hero-rahmen .r { right: 0; top: 0; width: 4px; bottom: 13px; }
.hero-rahmen .u { left: 13px; bottom: 0; height: 4px; right: 0; }
.hero-rahmen .l { left: 0; top: 13px; width: 4px; bottom: 0; }

/* Korrekturen nach Durchsicht 01.12. */
.suchfeld .mic { flex: none; }
.aktionen3 .btn { font-size: 15.5px; gap: 6px; padding: 0 8px; }
.zu span { display: block; margin-left: 0; margin-top: 1px; }
.kontakt { grid-template-columns: 1fr; gap: 8px; }
.kontakt a { height: 54px; }
.kontakt a > div { display: flex; justify-content: space-between; align-items: baseline; flex: 1; gap: 10px; }
.kontakt a b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kontakt a span { font-size: 14px; flex: none; }

/* TELIS-Andeutung nachgeschärft 01.12. */
.marke { width: 20px; height: 20px; }
html[data-logo="rahmen"] .hero { margin-top: 38px; }
html[data-logo="rahmen"] .kacheln { margin-top: 30px; }
html[data-logo="rahmen"] .hero-rahmen { inset: -13px; }
.hero-rahmen .o { height: 5px; right: 26px; }
.hero-rahmen .r { width: 5px; bottom: 26px; }
.hero-rahmen .u { height: 5px; left: 26px; }
.hero-rahmen .l { width: 5px; top: 26px; }
.wasserzeichen { width: 270px; height: 270px; right: -66px; top: 166px; opacity: .34; }

/* Wasserzeichen oben rechts: die runden Knöpfe decken die Mitte */
.wasserzeichen { width: 300px; height: 300px; right: -92px; top: -40px; opacity: .5;
  -webkit-mask-image: linear-gradient(205deg, #000 25%, rgba(0,0,0,.5) 55%, transparent 82%);
          mask-image: linear-gradient(205deg, #000 25%, rgba(0,0,0,.5) 55%, transparent 82%); }
html[data-logo="wasserzeichen"] .kopf { position: relative; z-index: 2; }
.hero-rahmen .o, .hero-rahmen .u { height: 6px; }
.hero-rahmen .r, .hero-rahmen .l { width: 6px; }
html[data-logo="rahmen"] .hero-rahmen { inset: -14px; }
.wasserzeichen { color: #3A4A6B; opacity: .16; }
.wasserzeichen { opacity: .24; -webkit-mask-image: linear-gradient(205deg, #000 50%, transparent 96%); mask-image: linear-gradient(205deg, #000 50%, transparent 96%); }

/* Entwurf 3 · Wahl des App-Symbols (Poly 01.12.: Dunkel bevorzugt, Hell mit Fenster als zweite Wahl) */
.symbolwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.symbol-k { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 12px; border-radius: 22px; background: var(--karte); border: 1px solid var(--linie); }
.symbol-k img { width: 52px; height: 52px; border-radius: 22.4%; flex: none; display: block; }
.symbol-k b { display: block; font-size: 15.5px; font-weight: 650; }
.symbol-k span { font-size: 13px; color: var(--dim); }
.symbol-k.an { border: 2px solid #F3F4F6; padding: 9px 11px; }
.symbol-k .ok { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: #F3F4F6; color: var(--ink); display: grid; place-items: center; }
.symbol-k .ok svg { width: 15px; height: 15px; stroke-width: 2.6; }
.symbol-hinweis { margin: 8px 4px 0; font-size: 13px; color: var(--dim); line-height: 1.4; }

/* Einstellungen · Vorschau des Farbverlaufs oben (Poly 01.12.): erst grau, ab der ersten neuen Wahl der Verlauf */
.farbe-k { font: inherit; color: inherit; cursor: pointer; width: 100%; }
.glow.leise { transition: opacity .45s ease; }
.vorschau-schicht { height: 300px; opacity: 0; transition: opacity .45s ease; } /* endet wie das Grau (Poly 01.12.) */
.vorschau-schicht.an { opacity: 1; }
html.vorschau .glow.leise { opacity: 0; }
.status, .kopf-titel, .kopf .rund, .gruppe .label { transition: color .45s ease, background-color .45s ease; }
html.vorschau .status.hell, html.vorschau .kopf-titel { color: var(--ink); }
html.vorschau .auf-dunkel .kopf .rund { background: rgba(14,15,18,.9); }


/* Entwurf 4 · Terminstapel unter „Nächster Termin“ (Poly 01.12.): zu ein kleiner Stapel, offen eine Zeitleiste, rechts wischen = erledigt */
.screen > .hero { position: relative; z-index: 3; }
.screen > .stapel { position: relative; z-index: 2; }
.stapel { height: 58px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.stapel.offen { touch-action: pan-y; cursor: default; }
.st-karte, .st-erledigt { position: absolute; left: 0; top: 0; width: calc(100% - 24px); height: 76px; border-radius: 22px; transform-origin: 0 0; will-change: transform, opacity; }
.st-karte { background: linear-gradient(180deg, #1B1C20, #141518); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 14px 28px -12px rgba(0,0,0,.75); overflow: hidden; touch-action: pan-y; }
.st-dunkel { position: absolute; inset: 0; background: #0A0B0D; pointer-events: none; }
.st-inhalt { display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 12px 0 16px; }
.st-zeit { width: 50px; flex: none; }
.st-zeit b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.st-zeit span { font-size: 12.5px; color: var(--dim2); }
.st-wer { flex: 1; min-width: 0; padding-left: 12px; border-left: 1px solid var(--linie); }
.st-wer b { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-wer span { display: block; font-size: 13.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.st-wie { width: 40px; height: 40px; border-radius: 50%; background: var(--karte2); display: grid; place-items: center; color: var(--dim); flex: none; }
.st-wie svg { width: 19px; height: 19px; }
.st-erledigt { background: color-mix(in srgb, var(--gruen) 14%, #121316); border: 1px solid color-mix(in srgb, var(--gruen) 40%, transparent); display: flex; align-items: center; gap: 10px; padding-left: 18px; color: var(--gruen); font-weight: 700; font-size: 15.5px; opacity: 0; z-index: 1; }
.st-erledigt i { width: 30px; height: 30px; border-radius: 50%; background: var(--gruen); color: var(--ink); display: grid; place-items: center; }
.st-erledigt i svg { width: 17px; height: 17px; stroke-width: 2.8; }
.st-griff { position: absolute; left: 20px; right: 20px; top: 4px; height: 26px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px 0 16px; font-size: 13.5px; color: var(--dim); z-index: 60; pointer-events: none; }
.st-griff b { color: var(--txt); font-weight: 650; }
.st-mehr { display: flex; align-items: center; gap: 3px; font-weight: 650; color: var(--txt); }
.st-mehr svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.st-kopf { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 24px; opacity: 0; touch-action: none; z-index: 70; }
.st-kopf .st-zahl { color: var(--dim2); font-size: 13.5px; font-weight: 600; }
.st-zu { margin-left: auto; height: 44px; padding: 0 2px 0 14px; display: flex; align-items: center; gap: 4px; color: var(--dim); font: 600 14.5px "Figtree", system-ui, sans-serif; background: none; border: 0; cursor: pointer; }
.st-zu svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.st-tag { position: absolute; left: 24px; top: 0; height: 28px; display: flex; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim2); opacity: 0; }
.st-linie { position: absolute; left: 7px; width: 2px; top: 0; height: 0; border-radius: 1px; background: linear-gradient(180deg, var(--v2), rgba(255,255,255,.1) 60%); transform-origin: 0 0; opacity: 0; }
.st-punkt { position: absolute; left: 2px; top: 0; width: 12px; height: 12px; margin-top: -1px; border-radius: 50%; background: #2C2F35; border: 2.5px solid var(--bg); opacity: 0; }
.st-punkt.erst { background: var(--v2); }
.st-toast { position: fixed; z-index: 12; left: 20px; bottom: 100px; width: 350px; height: 58px; border-radius: 20px; background: #25272C; box-shadow: 0 18px 40px -10px rgba(0,0,0,.85); display: flex; align-items: center; gap: 10px; padding: 0 7px 0 14px; font-size: 14.5px; color: var(--dim); opacity: 0; pointer-events: none; }
.st-toast > i { width: 26px; height: 26px; border-radius: 50%; background: var(--gruen); color: var(--ink); display: grid; place-items: center; flex: none; }
.st-toast > i svg { width: 15px; height: 15px; stroke-width: 2.8; }
.st-toast-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-toast b { color: var(--txt); font-weight: 650; }
.st-toast button { margin-left: auto; flex: none; height: 44px; padding: 0 16px; border-radius: 99px; border: 0; background: rgba(255,255,255,.1); color: var(--txt); font: 650 14.5px "Figtree", system-ui, sans-serif; cursor: pointer; }
.schleier { position: fixed; z-index: 9; top: 0; left: 0; width: 390px; height: 64px; padding: 0 20px; background: linear-gradient(180deg, #0A0B0D 72%, rgba(10,11,13,0)); opacity: 0; pointer-events: none; }
.schleier .island { position: absolute; }
.st-finger { position: fixed; z-index: 30; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.26); box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 6px 18px rgba(0,0,0,.4); pointer-events: none; opacity: 0; }

/* ======================================================================
   Entwurf 5 · Klickwege (02.12.2026): nur in den *_n.html (body data-stand="5"), Entwurf 4 bleibt unverändert.
   ====================================================================== */
/* Tipp-Marken fürs Vorher/Nachher-Blatt (?marken=1), kein Teil der App */
.tm { position: absolute; z-index: 40; top: -9px; right: -7px; width: 27px; height: 27px; border-radius: 50%; background: #FFFFFF; color: #101215;
  font: 800 15px/27px "Figtree", system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2.5px #101215, 0 4px 12px rgba(0,0,0,.55); pointer-events: none; }
.tm.innen { top: 9px; right: 9px; }
.tm.unten { top: auto; bottom: 10px; right: 10px; }
.tab .tm { right: auto; left: 50%; margin-left: -13.5px; top: -27px; }

/* Heute: Ort als Tippfläche für die Route */
.ort-knopf { display: flex; align-items: center; gap: 10px; height: 50px; margin: 12px 0 14px; padding: 0 8px 0 14px; border-radius: 16px; background: var(--karte2); color: #DADCE0; font-size: 14.5px; }
.ort-knopf .ort-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ort-knopf .route { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--txt); font-weight: 650; font-size: 14px; flex: none; }
.ort-knopf .route svg { width: 15px; height: 15px; }
/* Heute: drei Kacheln in einer Reihe, jede führt in ihre Liste */
.kacheln.drei { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kacheln.drei .kachel { min-height: 100px; padding: 13px 12px 12px; }
.kacheln.drei .zahl { font-size: 36px; }
.kacheln.drei .was { font-size: 14.5px; margin-top: 8px; line-height: 1.2; }
.kacheln.drei .pfeil { width: 26px; height: 26px; right: 9px; top: 9px; }
/* Heute ab 15 Min. vor dem Termin (?bald=1) */
html:not(.bald) .nur-bald, html.bald .nicht-bald { display: none !important; }
.btn .rec { width: 12px; height: 12px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 3px rgba(16,18,21,.18); flex: none; }

/* Mandant: Kurzvorbereitung und Akte im Kopf der Karte */
.mkopf .reihe { margin-top: 10px; }

/* Termin vorher: Frage im Wortlaut, darunter ein Knopf */
.frage-vorher { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--karte2); }
.frage-vorher .zitat { margin-top: 8px; }
.frage-vorher .hinweis-z { margin-top: 10px; font-size: 14px; color: var(--dim); }

/* Termin läuft: Beenden fest über den Reitern, mit Rückgängig */
.end-leiste { position: fixed; z-index: 9; left: 0; bottom: 88px; width: 390px; padding: 18px 20px 10px; background: linear-gradient(180deg, rgba(10,11,13,0), rgba(10,11,13,.96) 34%); }
html.beenden .end-leiste .nicht-beenden { display: none; }
html:not(.beenden) .end-leiste .nur-beenden { display: none; }
.end-toast { height: 54px; border-radius: 20px; background: #25272C; box-shadow: 0 18px 40px -10px rgba(0,0,0,.85); display: flex; align-items: center; gap: 12px; padding: 0 6px 0 14px; font-size: 14.5px; color: var(--dim); }
.end-toast b { color: var(--txt); font-weight: 650; }
.end-toast .ring { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--txt); font-weight: 800; font-size: 14px;
  background: conic-gradient(var(--v2) 0 72%, rgba(255,255,255,.12) 72% 100%); -webkit-mask: radial-gradient(circle, transparent 10px, #000 10.5px); mask: radial-gradient(circle, transparent 10px, #000 10.5px); }
.end-toast .ring-z { position: relative; width: 30px; height: 30px; flex: none; }
.end-toast .ring-z span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--txt); font-weight: 800; font-size: 13.5px; }
.end-toast button { margin-left: auto; height: 44px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--txt); font-weight: 650; font-size: 14.5px; flex: none; }
html.beenden .aufnahme .dtext { color: var(--txt); }
.screen.mit-end { padding-bottom: 210px; }
/* Aufnahme-Leiste auf anderen Reitern: führt zurück zum Termin */
.aufnahme .zum-termin { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 6px 0 11px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--txt); font-weight: 650; font-size: 13.5px; flex: none; }
.aufnahme .zum-termin svg { width: 16px; height: 16px; }
html:not(.live) .nur-live { display: none !important; }

/* Freigaben: Rückgängig nach „weg“ (wie beim Terminstapel) */
.st-toast.da { opacity: 1; }
.st-toast > i.neutral { background: rgba(255,255,255,.14); color: var(--txt); }

/* Fristen-Liste (Ziel der Kacheln auf Heute) */
.filter { display: flex; gap: 8px; margin-top: 16px; }
.filter span { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--karte); border: 1px solid var(--linie); font-size: 14.5px; font-weight: 650; color: var(--dim); }
.filter span em { font-style: normal; color: var(--txt); }
.filter span.an { background: var(--karte2); color: var(--txt); border-color: rgba(255,255,255,.16); }
.filter span.rot em { color: var(--rot); }
.ort-knopf .ort-text b { display: block; font-size: 15px; font-weight: 650; color: var(--txt); line-height: 1.2; }
.ort-knopf .ort-text small { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.25; }
.screen.passt { padding-bottom: 92px; } /* Heute nachher: genau ein Bildschirm, nichts zum Scrollen */

/* Entwurf 5b · 02.12. · Zustimmung steht in der Aufnahme, schlanke Aufnahme-Leiste */
html:not(.anfang) .nur-anfang, html.anfang .nicht-anfang { display: none !important; }
html:not(.stoerung) .nur-stoerung { display: none !important; }
.zustimmung { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--karte2); border: 1px solid rgba(255,255,255,.12); }
.zustimmung .z-kopf { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 700; }
.zustimmung .z-warte { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.18); border-top-color: var(--v2); flex: none; }
.zustimmung .zitat { margin-top: 10px; }
.zustimmung .z-unten { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.zustimmung .z-unten span { flex: 1; font-size: 14px; color: var(--dim); line-height: 1.35; }
.zustimmung .z-unten button { height: 44px; padding: 0 15px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--txt); font-weight: 650; font-size: 14.5px; flex: none; }
.seitentitel .ja-z { display: inline-flex; align-items: center; gap: 5px; }
.seitentitel .ja-z svg { width: 15px; height: 15px; color: var(--gruen); }
html.stoerung .aufnahme { flex-wrap: wrap; }
html.stoerung .pegel i { background: var(--dim2); }
.aufnahme .warn-z { flex-basis: 100%; color: var(--rot); font-size: 14px; font-weight: 600; line-height: 1.35; }
/* Freigaben 5b: kein Knopf „weg“, Verwerfen = Karte nach links wischen, mit Rückgängig (Poly 02.12.) */
.aktionen2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 14px; }
.aktionen2 .btn { width: 100%; }
.wisch { position: relative; margin-top: 16px; }
.wisch > .freigabe { margin-top: 0; position: relative; }
.wisch-grund { position: absolute; inset: 0; border-radius: var(--r-gross); background: #2A2C31; display: none; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 24px; color: var(--txt); font-weight: 650; font-size: 15px; }
.wisch-grund svg { width: 20px; height: 20px; }
html.wischen .wisch-grund { display: flex; }
html.wischen .wisch > .freigabe { transform: translateX(-142px) rotate(-2.5deg); box-shadow: 0 22px 44px -12px rgba(0,0,0,.85); }
html.wischen .st-toast { display: none; }
html.wischen .wisch .tm { display: none; }
/* Freigaben 5b · „ändern“ mit Mikrofon öffnet ein Fenster zum Diktieren oder Tippen (Poly 02.12.) */
html:not(.aendern1) .nur-a1, html:not(.aendern2) .nur-a2, html.aendern2 .nicht-a2 { display: none !important; }
html.aendern1 .st-toast, html.aendern2 .st-toast { display: none; }
.dimmer { position: fixed; inset: 0; z-index: 20; background: rgba(4,5,6,.62); }
.sheet { position: fixed; z-index: 21; left: 0; bottom: 0; width: 390px; padding: 8px 20px 34px; border-radius: 30px 30px 0 0; background: #17181B; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 -20px 50px -10px rgba(0,0,0,.7); }
.sheet .griff { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); margin: 0 auto 14px; }
.sheet-kopf { display: flex; gap: 12px; align-items: flex-start; }
.sheet-kopf > div { flex: 1; }
.sheet-kopf b { display: block; font-size: 19px; font-weight: 700; }
.sheet-kopf span { display: block; margin-top: 3px; font-size: 14px; color: var(--dim); line-height: 1.35; }
.sheet-kopf .zu-x { width: 40px; height: 40px; border-radius: 50%; background: var(--karte2); color: var(--txt); display: grid; place-items: center; flex: none; }
.sheet-kopf .zu-x svg { width: 18px; height: 18px; }
.sheet .eingabe { margin-top: 14px; }
.sheet .tippen { display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 10px; padding: 0 16px; border-radius: 99px; background: var(--karte); border: 1px solid var(--linie); color: var(--dim); font-size: 15.5px; }
.sheet .tippen svg { width: 19px; height: 19px; }
.sheet .lern-z { margin-top: 12px; font-size: 13.5px; color: var(--dim2); text-align: center; }
.mailtext.ganz { max-height: none; }
.mailtext.ganz::after { display: none; }
.mailtext del { color: var(--dim2); text-decoration-color: rgba(255,255,255,.35); }
.mailtext ins { text-decoration: none; color: var(--txt); background: color-mix(in srgb, var(--v2) 26%, transparent); border-radius: 5px; padding: 0 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.geaendert { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--dim); }
.geaendert .alt { color: var(--txt); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
/* Freigaben 5b · ganze Seite: jede Art mit eigener Karte (freigaben_lang.html) */
.freigabe .st.art { display: inline-flex; align-items: center; gap: 6px; }
.freigabe .st.art svg { width: 15px; height: 15px; }
.freigabe .st.warn { color: var(--gelb); }
.freigabe .ktext { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: #D2D5DA; }
.auszug { margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: #0E0F11; border: 1px solid var(--linie); font-size: 14.5px; line-height: 1.45; color: #C9CCD1; }
.auszug div { display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 3px 0; }
.auszug span { color: var(--dim2); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.mailtext.kurz { max-height: 168px; }
mark.offen { background: rgba(243,201,105,.16); color: var(--gelb); border-radius: 5px; padding: 0 3px; }
.fuer-dich { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--dim); }
.fuer-dich svg { width: 17px; height: 17px; flex: none; }
.stapel-liste { margin-top: 12px; border-radius: 16px; background: #0E0F11; border: 1px solid var(--linie); padding: 2px 14px 4px; }
.stapel-liste .kopfz { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim2); padding: 8px 0 4px; }
.stapel-liste .z { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 15px; }
.stapel-liste .z b { font-weight: 650; }
.stapel-liste .z small { color: var(--dim); font-size: 13.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stapel-liste .z em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.vgl { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.vgl th { font-size: 13px; color: var(--dim); font-weight: 650; text-align: center; padding: 0 0 8px; white-space: nowrap; }
.vgl td { padding: 9px 0; border-top: 1px solid var(--linie); text-align: center; line-height: 1.3; }
.vgl td:first-child { text-align: left; color: var(--dim); width: 50%; padding-right: 10px; }
.vgl td b { font-weight: 700; }
.vgl td.ja { color: var(--txt); font-weight: 600; } .vgl td.nein { color: var(--dim2); }
.passt-z { margin: 10px 0 0; font-size: 14.5px; color: #D2D5DA; line-height: 1.4; }
.doc { display: flex; gap: 14px; margin-top: 12px; align-items: flex-start; }
.doc .blatt { width: 66px; height: 88px; border-radius: 8px; background: #E4E6EA; flex: none; padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.7); }
.doc .blatt i { display: block; height: 4px; border-radius: 2px; background: #B9BDC4; }
.doc .blatt i.k { width: 60%; background: #8D929B; }
.doc .blatt.form i:not(.k) { height: 9px; background: transparent; border: 1.5px solid #B9BDC4; border-radius: 3px; }
.doc > div:last-child { flex: 1; min-width: 0; }
.doc ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.35; }
.doc li { display: flex; gap: 8px; padding: 3px 0; color: #D2D5DA; }
.doc li svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--txt); }
.doc li.offen { color: var(--dim); }
.doc li.offen::before { content: ""; width: 11px; height: 11px; border: 1.5px solid var(--dim2); border-radius: 50%; margin: 3px 2px 0 1px; flex: none; }
.doc .lesen { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 14px; color: var(--txt); font-weight: 650; }
.doc .lesen svg { width: 15px; height: 15px; }
/* Heute 5b: Ort wieder klein wie in Entwurf 4, die ganze Zeile öffnet die Route in der gewählten Karten-App (Poly 02.12.) */
a.ort.tipp-ort { margin: 0 -10px 6px; padding: 12px 10px; min-height: 44px; border-radius: 12px; text-decoration: none; position: relative; }
a.ort.tipp-ort > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.ort.tipp-ort svg.ziel { width: 15px; height: 15px; color: var(--dim2); flex: none; }
html.aendern2 .seitentitel { display: none; } /* Bild „neue Fassung“: Titel weggescrollt, damit ok und ändern zu sehen sind */
/* Freigaben 5b · Vorlesen oben in der Mail-Karte, „Vorbild“ im Hinweis nach „ok“ */
.freigabe .meta-r { display: inline-flex; align-items: center; gap: 8px; }
.freigabe .vorlesen { width: 34px; height: 34px; border-radius: 50%; background: var(--karte2); color: var(--txt); display: grid; place-items: center; flex: none; }
.freigabe .vorlesen svg { width: 17px; height: 17px; }
html:not(.ok1) .nur-ok1, html.ok1 .nicht-ok1 { display: none !important; }
html.ok1 .tab .badge, html.ok1 .tm { display: none; }
.leer-f { margin-top: 18px; padding: 22px 18px; border-radius: var(--r-gross); background: var(--karte); border: 1px solid var(--linie); }
.leer-f b { display: block; font-size: 18px; font-weight: 700; }
.leer-f p { margin: 6px 0 0; color: var(--dim); font-size: 15px; line-height: 1.45; }
.st-toast.ok-t button { display: inline-flex; align-items: center; gap: 6px; }
.st-toast.ok-t button svg { width: 16px; height: 16px; }
/* Aufnahme-Leiste 5b: Schloss und „Ton nur auf dem eigenen PC“, zur Beruhigung, falls der Kunde mitliest (Poly 02.12.) */
.aufnahme .dtext.ruhig { color: var(--dim); font-size: 13.5px; }
.aufnahme .dtext svg.sz { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
html.stoerung .aufnahme .dtext.ruhig { display: none; }
/* Zustimmung: Satz neben dem Knopf in ausgeglichenen Zeilen */
.zustimmung .z-unten span { text-wrap: balance; }
/* Ja-Zeile: Haken und Text auf derselben Grundlinie wie „Service-Termin ·“ */
.seitentitel .ja-z { display: inline; }
.seitentitel .ja-z svg { vertical-align: -2px; margin-right: 4px; }
/* Termin ohne Aufnahme (nach „Nein · löschen“ oder „Ohne Aufnahme“): selbst zusammenfassen */
html:not(.nzw) .nur-nzw, html:not(.nzs) .nur-nzs, html:not(.nzt) .nur-nzt { display: none !important; }
.geloescht { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 16px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--linie); }
.geloescht > svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gruen); color: var(--ink); flex: none; box-sizing: content-box; }
.geloescht span { font-size: 14px; color: var(--dim); line-height: 1.35; }
.geloescht b { display: block; color: var(--txt); font-size: 15.5px; font-weight: 680; }
.notiz-k { margin-top: 12px; padding: 18px 16px 16px; border-radius: var(--r-gross); background: var(--karte); border: 1px solid var(--linie); }
.notiz-k h3 { margin: 0; font-size: 18px; font-weight: 700; }
.notiz-k > p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--dim); }
.notiz-k .btn.voll { width: 100%; }
.notiz-k .wege .btn { font-size: 15px; }
.notiz-k .eingabe { margin-top: 14px; background: #0E0F11; }
.notiz-k .eingabe .diktat svg { width: 17px; height: 17px; }
.notiz-k .feld-text { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--txt); }
.notiz-k .danach-z { margin-top: 12px; font-size: 13.5px; color: var(--dim2); text-align: center; }
/* Termin ohne Aufnahme · Chatfeld, das mit dem Text wächst (ersetzt Tippen / Text einfügen / Sprechen-Knopf) */
html.nzt .nicht-nzt { display: none !important; }
.komp { margin-top: 14px; border-radius: 22px; background: #0E0F11; border: 1px solid rgba(255,255,255,.14); padding: 14px 14px 10px 16px; }
html.nzs .komp, html.nzt .komp { border-color: color-mix(in srgb, var(--v2) 45%, transparent); }
.komp-kopf { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.komp-text { min-height: 72px; font-size: 16.5px; line-height: 1.45; color: var(--txt); }
.komp-text .ph { color: var(--dim2); }
.komp-text em { font-style: normal; color: var(--dim2); }
.komp-leiste { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.komp-info { margin-right: auto; font-size: 12.5px; color: var(--dim2); }
.komp-k { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--karte2); color: var(--txt); position: relative; }
.komp-k svg { width: 20px; height: 20px; }
.komp-k.mic { width: 48px; height: 48px; background: var(--verlauf); color: var(--ink); }
.komp-k.mic svg { width: 22px; height: 22px; }
.komp-k.senden { background: rgba(255,255,255,.06); color: var(--dim2); }
html.nzs .komp-k.senden, html.nzt .komp-k.senden { width: 48px; height: 48px; background: var(--verlauf); color: var(--ink); }
.komp-k.stopp svg { width: 16px; height: 16px; }
/* Tastatur-Attrappe */
.tastatur { position: fixed; z-index: 12; left: 0; bottom: 0; width: 390px; height: 336px; background: #2B2C2F; padding: 0 3px; box-sizing: border-box; font-family: -apple-system, "Figtree", sans-serif; }
html.nzt .home-ind { z-index: 13; }
.tastatur .tv { display: flex; height: 44px; align-items: center; justify-content: space-around; color: var(--txt); font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tastatur .tr { display: flex; gap: 6px; justify-content: center; margin-top: 11px; padding: 0 3px; }
.tastatur .t { flex: 1; height: 43px; border-radius: 6px; background: #6B6C70; color: #fff; display: grid; place-items: center; font-size: 21px; box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.tastatur .t.s { background: #46474B; font-size: 17px; flex: 1.35; }
.tastatur .t.w { flex: 1.6; font-size: 15px; }
.tastatur .t.leer { flex: 5; font-size: 15px; }
/* Chatfeld: leer eine Zeile, wächst mit dem Text; mit Tastatur rückt die Seite hoch (Attrappe: Verschieben um 150 px) */
html.nzw .komp { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 99px; }
html.nzw .komp-text { flex: 1; min-height: 0; }
html.nzw .komp-leiste { margin-top: 0; }
html.nzs .komp-text, html.nzt .komp-text { min-height: 0; }
html.nzt .screen { transform: translateY(-150px); }
html.nzt .schleier { height: 112px; }
html.nzt .schleier .status { margin-top: 36px; }
/* Notiz nach dem Nein: zwei Knöpfe (Sprechen, Tippen), das Feld erscheint erst danach */
html.nzw .nicht-nzw { display: none !important; }
/* Termin läuft: Fragen des Mandanten mit Antwort, oben unter dem Titel */
.antworten h3 { margin-bottom: 2px; }
.frage.wartet b { color: var(--txt); }
.frage .kommt { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: 14.5px; color: var(--dim); }
.frage .kommt .lauf { position: relative; width: 54px; height: 4px; border-radius: 2px; background: var(--karte2); overflow: hidden; flex: none; }
.frage .kommt .lauf::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 40%; border-radius: 2px; background: var(--verlauf); }
.frage .neu-z { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--verlauf); color: var(--ink); font-size: 11.5px; font-weight: 750; vertical-align: 2px; letter-spacing: .02em; }
html:not(.antwort) .nur-antwort, html.antwort .nicht-antwort { display: none !important; }
html.antwort .frage.nur-antwort { border-top: 0; }
/* Antworten im Termin eindeutiger (Poly 02.12.: „noch nicht eindeutig genug vom lesen her“): Frage = seine Worte in Anführungszeichen mit Uhrzeit,
   Antwort abgesetzt in eigener Fläche: erst ein Satz zum Sagen, dann Einzelheiten, dann Quelle */
.frage.fa { padding: 12px 0 10px; }
.frage.fa:first-of-type, html.antwort .frage.fa.nur-antwort { padding-top: 6px; }
.fa-k { display: flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .07em; color: var(--dim2); }
.fa-k .neu-z { margin-left: 8px; vertical-align: 0; }
.frage.fa > b { margin-top: 4px; font-size: 16px; font-weight: 650; color: var(--txt); line-height: 1.38; }
.fa-a { margin-top: 10px; padding: 11px 14px 12px; border-radius: 14px; background: #0E0F11; border: 1px solid var(--linie); box-shadow: inset 3px 0 0 var(--v2); }
.fa-a .fa-k { color: var(--v2); }
.fa-a .kurz { margin: 4px 0 0; font-size: 16.5px; font-weight: 720; color: var(--txt); line-height: 1.35; }
.fa-a ul { margin: 6px 0 0; padding: 0 0 0 16px; font-size: 14.5px; line-height: 1.42; color: #CDD0D5; }
.fa-a li + li { margin-top: 3px; }
.fa-a li b { font-size: 14.5px; display: inline; font-weight: 680; color: var(--txt); }
.fa-a small { display: block; margin-top: 7px; font-size: 12.5px; color: var(--akzent); font-weight: 600; }
.fa-a .kommt { margin: 6px 0 2px; }
/* Kopf-Mikrofon (?mic=1 auf Heute): Fenster „Sag Claude, was zu tun ist“ über der Seite */
html:not(.kmic) .nur-kmic { display: none !important; }
/* Fristen 5b: Claude macht, du gibst frei. Zeile mit dem, was Claude vorbereitet hat; ok/ändern nur, wo es dich braucht */
html:not(.fu) .nur-fu, html.fu .nicht-fu { display: none !important; }
.fr-z { margin: 12px 2px 0; font-size: 14px; line-height: 1.4; color: var(--dim); }
.eintrag .cl { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: #0E0F11; border: 1px solid var(--linie); font-size: 14px; line-height: 1.38; color: #DADCE0; }
.eintrag .cl svg { width: 16px; height: 16px; color: var(--akzent); margin-top: 1px; }
.eintrag .cl.ruhig { background: transparent; border-color: transparent; padding: 0; margin-top: 8px; color: var(--dim); }
.eintrag .cl.ruhig svg { color: var(--dim2); }
.aktionen2.klein { margin-top: 10px; }
.aktionen2.klein .btn { height: 44px; font-size: 15px; }
.nur-fu > .eintraege .eintrag .t { font-size: 15.5px; }
/* Poly 02.12.: „diesen rand braucht es nicht, er verwirrt“: kein farbiger Strich links an der Antwort */
.fa-a { box-shadow: none; }
/* 5b Fristen = Übersicht, Freigaben = einziger Ort für ok/ändern (Poly 02.12.: „wo ist der unterschied dieser beiden“) */
.zu-ok { display: flex; align-items: center; gap: 9px; margin-top: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 12px; background: var(--karte2); color: var(--txt); font-size: 14.5px; font-weight: 650; }
.zu-ok .p { width: 9px; height: 9px; border-radius: 50%; background: var(--verlauf); flex: none; }
.zu-ok svg { margin-left: auto; width: 17px; height: 17px; color: var(--dim); }
.frist-c { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--txt); font-size: 13px; font-weight: 700; }
.frist-c svg { width: 14px; height: 14px; }
.mehr-z { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; height: 46px; padding: 0 14px 0 16px; border-radius: 14px; background: #0E0F11; border: 1px solid var(--linie); color: var(--txt); font-size: 15px; font-weight: 620; }
.mehr-z svg { width: 18px; height: 18px; color: var(--dim); }
/* Freigabe ganz (freigabe_detail_n.html): warum jetzt, die Wahl, das Schreiben, Quellen; ok/ändern fest unten */
.fd-kopf { margin-top: 14px; }
.fd-kopf .meta { display: flex; justify-content: space-between; align-items: center; }
.fd-kopf .st.art { display: inline-flex; align-items: center; gap: 6px; } .fd-kopf .st.art svg { width: 15px; height: 15px; }
.fd-kopf h2 { margin: 14px 0 0; font-size: 25px; line-height: 1.2; font-weight: 720; letter-spacing: -.01em; }
.fd-an { margin-top: 6px; font-size: 15px; color: var(--dim); } .fd-an b { color: var(--txt); font-weight: 650; }
.fd-blk { margin-top: 14px; padding: 15px 16px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--linie); }
.fd-k { font-size: 12px; font-weight: 800; letter-spacing: .07em; color: var(--dim2); }
.fd-blk > p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.48; color: #DDE0E4; }
.fd-blk > p b, .fd-opt p b { color: var(--txt); font-weight: 700; }
.fd-opt { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #0E0F11; border: 1px solid var(--linie); }
.fd-opt.emp { border-color: color-mix(in srgb, var(--v2) 40%, transparent); }
.fd-ot { display: flex; align-items: center; gap: 8px; } .fd-ot b { font-size: 16px; font-weight: 700; }
.fd-emp { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--verlauf); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.fd-opt p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.45; color: #CDD0D5; }
.fd-brief { margin-top: 10px; max-height: none; } .fd-brief::after { display: none; }
.fd-brief .fd-an2 { color: var(--dim); font-size: 14px; }
.fd-danach { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--dim); }
.fd-quellen { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fd-quellen a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: #0E0F11; border: 1px solid var(--linie); color: var(--akzent); font-size: 14.5px; font-weight: 600; }
.fd-quellen svg { width: 17px; height: 17px; }
.fd-akt { margin-top: 0; }
html.fd-unten .screen { transform: translateY(-740px); }
/* 5b Polys Fassung (02.12.): Fristen-Karte antippen springt in Freigaben zur selben Karte */
a.eintrag { display: block; color: inherit; text-decoration: none; }
.eintrag .ez { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; line-height: 1.35; font-weight: 650; color: var(--txt); }
.eintrag .ez .p { width: 8px; height: 8px; border-radius: 50%; background: var(--verlauf); flex: none; }
.eintrag .ez svg { width: 16px; height: 16px; flex: none; }
.eintrag .ez:not(.ruhig) svg { margin-left: auto; color: var(--dim); }
.eintrag .ez.ruhig { font-weight: 500; color: var(--dim); }
.eintrag .ez.ruhig svg { color: var(--dim2); }
.freigabe.ziel { border-color: color-mix(in srgb, var(--v2) 62%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v2) 13%, transparent), 0 0 44px -10px color-mix(in srgb, var(--v2) 45%, transparent); }
/* 5b Terminstapel (Poly 02.12.: „der text muss leicht nach oben so dass er in der mitte steht“): 2,5 pt höher, gemessen an der sichtbaren Kante */
.st-griff { top: 1.5px; }
/* 5b Akte als eigene Seite (Poly 02.12.: „was passiert wenn ich akte drücke“): Person, Verträge, Dokumente, Verlauf; „Akte korrigieren“ fest unten */
.fd-kopf .tags { margin-top: 10px; }
.ak-z { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linie); }
.ak-z:last-child { border-bottom: 0; padding-bottom: 1px; }
.ak-l { flex: 1; min-width: 0; }
.ak-z b { display: block; font-size: 15.5px; font-weight: 680; }
.ak-l span { display: block; font-size: 14px; color: var(--dim); margin-top: 2px; line-height: 1.38; }
.ak-r { flex: none; text-align: right; font-size: 13px; line-height: 1.25; font-weight: 700; color: var(--txt); }
.ak-r.rot { color: var(--rot); }
.fd-quellen a.fehlt { color: var(--dim); background: transparent; border-style: dashed; font-weight: 550; }
.ak-v { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--linie); }
.ak-v:last-child { border-bottom: 0; padding-bottom: 1px; }
.ak-v .w { font-size: 13.5px; font-weight: 700; padding-top: 2px; }
.ak-v b { display: block; font-size: 15px; font-weight: 650; }
.ak-v span { display: block; font-size: 14px; color: var(--dim); margin-top: 2px; line-height: 1.38; }
.ak-v .von { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--karte2); font-size: 12.5px; font-weight: 600; color: #D6D8DD; }
.ak-v .von svg { width: 14px; height: 14px; }
html.ak-unten .screen { transform: translateY(-660px); }
.end-leiste > .btn.voll { display: flex; width: 100%; box-sizing: border-box; justify-content: center; }

/* 5b (Poly 02.12.): Das Mailfeld in Freigaben bleibt gleich groß, lässt sich aber in sich scrollen bis zum Gruß.
   Der Verlauf unten bleibt am unteren Rand stehen; am Ende blendet die Seite ihn aus (Klasse .am-ende). */
.mailtext:not(.ganz) { overflow-y: auto; scrollbar-width: none; }
.mailtext:not(.ganz)::-webkit-scrollbar { display: none; }
.mailtext:not(.ganz)::after { position: sticky; display: block; bottom: -14px; margin: -56px -16px -14px; transition: opacity .2s; pointer-events: none; }
.mailtext.am-ende::after { opacity: 0; }
/* 02.12.: „Ohne Aufnahme“ öffnet termin_nein_n ohne die Zeile „Aufnahme gelöscht“ */
html.ohne .geloescht { display: none !important; }
html.live .nicht-live { display: none !important; }
/* Vorschlag 02.12. (?tz=1): Merkmale unter dem Namen als ruhige Zeile. Die Kapseln sahen aus wie Knöpfe, „neu“ wie ein gewählter Filter. */
.tag-zeile { margin-top: 8px; font-size: 15px; font-weight: 550; color: var(--dim); }
html:not(.tz) .nur-tz { display: none !important; }
html.tz .nicht-tz { display: none !important; }
/* Poly 02.12.: Fragen im Termin nur, wenn sie offen blieben oder anders beantwortet wurden; besprochen = nach links wischen */
.fa-wisch { position: relative; }
.fa-wisch + .fa-wisch { border-top: 1px solid var(--linie); }
.fa-wisch > .frage { position: relative; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 14px; background: var(--karte); }
.fa-grund { position: absolute; inset: 4px -12px; border-radius: 14px; background: #2A2C31; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 20px; color: var(--txt); font-weight: 650; font-size: 15px; }
.fa-grund svg { width: 19px; height: 19px; }
.fa-st { margin-left: auto; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--txt); font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.fa-gesagt { margin-top: 6px; font-size: 14.5px; color: var(--dim); }
html.wisch .fa-wisch.w1 > .frage { transform: translateX(-128px) rotate(-1.5deg); box-shadow: 0 18px 40px -12px rgba(0,0,0,.9); }
.fa-wisch > .frage { background: transparent; transition: background .15s; }
.fa-grund { display: none; }
html.wisch .fa-wisch.w1 > .fa-grund, .fa-wisch.p-zieht > .fa-grund { display: flex; }
html.wisch .fa-wisch.w1 > .frage, .fa-wisch.p-zieht > .frage { background: var(--karte); }
html.antwort .fa-wisch.nur-antwort { border-top: 0; }

/* Aufnahme-Leiste: Termin direkt hier beenden (Poly 02.12.: „oben in der leiste schon beenden“), dann 5 s Countdown wie im Termin */
.aufnahme .end-k { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--txt); font-weight: 650; font-size: 13.5px; flex: none; cursor: pointer; }
.aufnahme .end-k svg { width: 15px; height: 15px; }
.aufnahme .endet { display: none; }
.aufnahme.endet-an > :not(.endet) { display: none; }
.aufnahme.endet-an .endet { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.aufnahme .ring-z { position: relative; width: 28px; height: 28px; flex: none; }
.aufnahme .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--v2) 0 72%, rgba(255,255,255,.12) 72% 100%); -webkit-mask: radial-gradient(circle, transparent 9.5px, #000 10px); mask: radial-gradient(circle, transparent 9.5px, #000 10px); }
.aufnahme .ring-z span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--txt); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.aufnahme .endet b { color: var(--txt); font-weight: 650; font-size: 14.5px; flex: 1; }
.aufnahme .weiter { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--txt); font-weight: 650; font-size: 14px; flex: none; display: inline-flex; align-items: center; cursor: pointer; }
.end-toast .ring-z span:last-child { font-variant-numeric: tabular-nums; }
.info.mitte { justify-content: center; align-items: center; gap: 6px; margin-top: 12px; }
.info.mitte svg { margin-top: 0; width: 16px; height: 16px; }
/* Heute ohne Termine (Poly 02.12.): oben das Dringendste aus Freigaben, gleiche Kartengröße, die Kacheln bleiben stehen */
.hero.offen { cursor: pointer; }
.hero.offen .of-kopf { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hero.offen .of-kopf .st.art { display: inline-flex; align-items: center; gap: 6px; } .hero.offen .of-kopf .st.art svg { width: 15px; height: 15px; }
.hero.offen .of-titel { margin-top: 8px; font-size: 21px; font-weight: 720; line-height: 1.24; letter-spacing: -.01em; color: var(--txt); }
.hero.offen .of-wer { margin-top: 6px; font-size: 14.5px; line-height: 1.35; color: var(--dim); }
.hero.offen .of-wer b { color: var(--txt); font-weight: 650; }
.hero.offen .aktionen { margin-top: 13px; }
.hero.offen .aktionen .of-ansehen { flex: 1; }
.hero.offen .aktionen .of-erledigt { padding: 0 18px; }
.hero.offen .of-ansehen svg { order: 2; margin-left: -2px; }
/* Stapel: unsichtbare Teile (grünes „erledigt“, Tage, Linie) nehmen keinen Tipp an, sonst öffnet ein Tipp auf die Kacheln den Zeitstrahl (Poly 02.12.) */
.st-erledigt, .st-tag, .st-linie, .st-punkt { pointer-events: none; }

/* 5e · WhatsApp-Freigabe (seine Nachricht, deine Antwort, ok öffnet den Chat) und Antrag ganz */
.wa-rein { margin-top: 12px; padding: 10px 14px 12px; border-radius: 18px 18px 18px 6px; background: var(--karte2); }
.wa-rein p { margin: 4px 0 0; font-size: 15px; line-height: 1.42; color: #E6E8EB; }
.wa-k { margin-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .07em; color: var(--dim2); }
.wa-k + .mailtext { margin-top: 6px; }
.wa-z { margin: 10px 0 0; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--dim); }
.fd-kv { margin-top: 6px; }
.fd-kv > div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--linie); font-size: 15px; line-height: 1.35; }
.fd-kv > div:first-child { border-top: 0; }
.fd-kv span { flex: 0 0 110px; color: var(--dim); }
.fd-kv b { flex: 1; min-width: 0; color: var(--txt); font-weight: 600; }
.fd-blk .mehr-z { margin-top: 10px; }
.fd-doc { margin-top: 8px; }
.fd-doc ul { font-size: 15px; }

/* 5f · Absprünge und Grenzfälle (Poly 02.12. abends): rechts steht, wohin es geht (Telefon, WhatsApp, Outlook, Karten), mit Pfeil aus dem Kasten;
   lange Listen zeigen das Wichtigste und „Alle …“ auf eine eigene Seite, die scrollt */
.kontakt a { height: auto; min-height: 60px; padding: 9px 14px; }
.kontakt a > div { display: block; flex: 1; min-width: 0; }
.kontakt a b { display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; } /* lange Adressen und Mails brechen um statt abgeschnitten zu werden */
.kontakt a span { display: block; font-size: 13.5px; margin-top: 1px; }
.kontakt a > svg { flex: none; }
.kontakt a > .weg { width: 16px; height: 16px; color: var(--dim); }
.fd-blk .kontakt { margin-top: 10px; }
.dok-liste { margin-top: 4px; }
.dok-z { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 11px; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--linie); font-size: 15px; font-weight: 580; color: var(--txt); }
.dok-z:last-child { border-bottom: 0; padding-bottom: 0; }
.dok-z svg { width: 17px; height: 17px; color: var(--akzent); }
.dok-z em { font-style: normal; font-size: 13.5px; font-weight: 550; color: var(--dim); font-variant-numeric: tabular-nums; }
.dok-z.fehlt, .dok-z.fehlt svg { color: var(--dim); }
.dok-such { margin-top: 18px; }
html.dok-unten .screen { transform: translateY(-900px); }
html.ak-unten.ak-huber .screen { transform: translateY(-1290px); }

/* 5g · WhatsApp kommt als Sinn an (Poly 02.12. abends), der ganze Chat bleibt in WhatsApp: „Chat öffnen“ springt hin */
.wa-chat { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 620; color: var(--akzent); }
.wa-chat svg { width: 15px; height: 15px; }
.ak-v .wa-chat { margin-top: 6px; }

/* 5i · Heute, drei Karten aus sechs (Poly 03.12.). Auswahl in den Einstellungen sieht aus wie die Karten auf Heute. */
.kartenwahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.kachel.karte-k { display: block; width: 100%; min-height: 100px; padding: 13px 12px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: opacity .2s; }
.karte-k .zahl { font-size: 36px; }
.karte-k .was { font-size: 14.5px; margin-top: 8px; line-height: 1.2; }
.kachel.karte-k.an { border: 2px solid #F3F4F6; padding: 12px 11px 11px; }
.karte-k .ok { position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: #F3F4F6; color: var(--ink); display: grid; place-items: center; }
.karte-k .ok svg { width: 15px; height: 15px; stroke-width: 2.6; }
.kartenwahl.voll .karte-k:not(.an) { opacity: .55; }
.kw-hinweis b { color: var(--txt); font-weight: 650; }
/* Fristen: ein Filter je Karte, die Leiste lässt sich seitlich schieben */
.filter { position: relative; overflow-x: auto; margin: 16px -20px 0; padding: 0 20px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter span { flex: none; cursor: pointer; }
.f-teil { display: none; }
html[data-f="ueber"] .f-teil[data-f~="ueber"], html[data-f="tage"] .f-teil[data-f~="tage"], html[data-f="unterlagen"] .f-teil[data-f~="unterlagen"],
html[data-f="geburt"] .f-teil[data-f~="geburt"], html[data-f="kontakt"] .f-teil[data-f~="kontakt"], html[data-f="kuendbar"] .f-teil[data-f~="kuendbar"] { display: block; }
html[data-f="ueber"] .filter span[data-f="ueber"], html[data-f="tage"] .filter span[data-f="tage"], html[data-f="unterlagen"] .filter span[data-f="unterlagen"],
html[data-f="geburt"] .filter span[data-f="geburt"], html[data-f="kontakt"] .filter span[data-f="kontakt"], html[data-f="kuendbar"] .filter span[data-f="kuendbar"] { background: var(--karte2); color: var(--txt); border-color: rgba(255,255,255,.16); }
.f-liste > .eintraege .eintrag .t { font-size: 15.5px; }
