/* Abstand zum unteren Rand: iPhone meldet den Home-Balken selbst (safe-area). Android-Chrome meldet ihn oft nicht,
   der Wischbalken lag dann über den Reiter-Namen (Poly 03.12., Samsung). Darum dort mindestens 24 px. */
:root { --unten: max(env(safe-area-inset-bottom), 8px); }
html.android { --unten: max(env(safe-area-inset-bottom), 24px); }
/* Cockpit · fertige App (03.12.2026). Baut auf cockpit-design.css auf; hier nur, was eine echte App braucht:
   Ansichten als Stapel, Übergänge, echte Statusleiste, Wischen vom Rand, Ziehen zum Aktualisieren, Fenster, Meldungen. */
html.app, html.app body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.app body { -webkit-text-size-adjust: 100%; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
html.app input, html.app textarea, html.app [contenteditable], html.app .mailtext, html.app .md { -webkit-user-select: text; user-select: text; }
/* iPhone: Die Seite ist 390 px breit und wird auf das Gerät skaliert. Ohne „manipulation“ wartet Safari nach jedem Tippen auf ein zweites (Doppeltipp-Zoom), Knöpfe reagieren dann spürbar später. */
html.app { touch-action: manipulation; }
/* iPhone: Safari meldet Klicks, die erst am Dokument oder an einer Walze abgefangen werden, nur auf Elementen, die als klickbar gelten */
html.app [role="button"], html.app [data-a], html.app [data-i], html.app .t-fremd { cursor: pointer; }
* { scrollbar-width: none; } *::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Tippen auf die echte Statusleiste: iOS scrollt das Dokument nach oben. Darum ist das Dokument 1 px scrollbar (siehe app.js, statusTipp). */
html.app.ios1px, html.app.ios1px body { overflow: auto; height: auto; }
#iosplatz { height: calc(100vh + 1px); pointer-events: none; }

#ansichten { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.v { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: none; /* Federn an den Enden macht app.js (federn), auf beiden Geräten gleich */ background: var(--bg); contain: layout paint; }
.v.weg { visibility: hidden; }
.v.anderer-reiter { display: none; }
.v > .screen { width: 390px; min-height: 100%; }
.v > .screen.passt { min-height: 100%; }
.status-platz { height: max(env(safe-area-inset-top), 20px); }
.v > .screen > .kopf { height: 56px; }
html.app .home-ind, html.app .island, html.app .status { display: none !important; }
html.app .tabbar { height: calc(54px + var(--unten)); z-index: 40; }
html.app .tab { cursor: pointer; -webkit-user-select: none; user-select: none; }
html.app .tab .ic { transition: background .2s, color .2s; }
.tab .badge:empty { display: none; }
/* Aufnahme läuft: der Punkt in der Mitte des Termin-Symbols pulsiert rot, kein zusätzlicher Punkt (Poly 03.12.) */
html.live .tab[data-id="termin"] .rec-kern { fill: var(--rot); transform-origin: 12px 12px; animation: t-kern 1.4s ease-in-out infinite; }
@keyframes t-kern { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes t-puls { 50% { opacity: .45; } }

/* Übergänge: neue Seite schiebt sich von rechts darüber, die alte weicht ein Stück nach links und wird dunkler (wie iOS) */
.v.fahrt { transition: transform .38s cubic-bezier(.2,.85,.25,1); }
.v.oben { box-shadow: -14px 0 32px -18px rgba(0,0,0,.95); }
.v .dunkel-schicht { position: absolute; inset: 0; z-index: 50; background: #000; opacity: 0; pointer-events: none; }
.v.fahrt .dunkel-schicht { transition: opacity .38s cubic-bezier(.2,.85,.25,1); }
.v.blende { animation: v-blende .2s ease both; }
@keyframes v-blende { from { opacity: .0; } to { opacity: 1; } }

/* Schutz unter der Uhr, sobald man scrollt. Nur wo die Uhr wirklich über der Seite steht (iPhone als Home-App);
   auf Android und im Browser ist der Rand oben 0, dann gibt es keinen Streifen (Poly 03.12.: „zu schwarz … viel zu hart und sieht billig aus“).
   Statt schwarzer Fläche Milchglas: unscharf und etwas gedämpft, die Farbe darunter bleibt, nach unten läuft es weich aus. */
#schleier { position: fixed; z-index: 35; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top, 0px) * 1.8); pointer-events: none; opacity: 0; transition: opacity .35s ease;
  -webkit-backdrop-filter: blur(14px) brightness(.78) saturate(1.25); backdrop-filter: blur(14px) brightness(.78) saturate(1.25);
  background: linear-gradient(180deg, rgba(10,11,13,.22), rgba(10,11,13,0));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.18) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.18) 88%, transparent 100%); }
#statuszone { position: fixed; z-index: 36; top: 0; left: 0; right: 0; height: max(env(safe-area-inset-top), 20px); }

/* Ziehen zum Aktualisieren: hinter der Seite läuft das Leuchten weiter, das Zeichen dreht sich mit */
.v > .p-ptr-grund { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; pointer-events: none; background: var(--bg); }
.v > .p-ptr-grund::before { content: ""; position: absolute; inset: 0; opacity: var(--ptr-op, 1); background: radial-gradient(55% 2000px at 46% 100%, rgba(255,255,255,var(--glanz, .55)), rgba(255,255,255,0) 100%), var(--verlauf); }
.v > .screen { background-color: var(--bg); } /* deckend, damit die Kante zur Füllung beim Ziehen nicht durchscheint */
.v > .screen { position: relative; z-index: 1; background: var(--bg); }
.p-ptr { position: fixed; z-index: 45; left: 50%; top: calc(max(env(safe-area-inset-top), 20px) + 8px); width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20,21,24,.9); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 26px -10px rgba(0,0,0,.85);
  color: var(--akzent); opacity: 0; transform: translateY(-48px); pointer-events: none; }
.p-ptr svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
/* Verlauf bis unter den Rand (border-box): sonst kachelt er im 1-px-Rand und zeigt an jeder Seite eine feine Kante (Poly 03.12.) */
.p-ptr.bereit { background: var(--verlauf); background-origin: border-box; background-clip: border-box; color: var(--ink); border-color: transparent; }
.p-ptr.dreht svg { animation: p-dreh .75s linear infinite; }
@keyframes p-dreh { to { transform: rotate(360deg); } }

/* Meldung unten, mit „Rückgängig“ */
.p-toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(66px + var(--unten)); display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 8px 8px 16px; border-radius: 18px;
  background: #232529; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 40px -12px rgba(0,0,0,.9); color: var(--txt); font-size: 15px; font-weight: 600;
  transform: translateY(16px); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; pointer-events: none; }
.p-toast.an { transform: none; opacity: 1; pointer-events: auto; }
.p-toast span { flex: 1; line-height: 1.3; }
.p-toast.p-toast-tipp { cursor: pointer; padding-right: 12px; } .p-toast.p-toast-tipp:active { transform: scale(.98); }
.p-toast-pfeil { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--txt); flex: none; }
.c-job.c-hier { animation: c-hier 1.6s ease-out; } /* aus dem Hinweis „Claude hat geantwortet“ hierher: einmal kurz leuchten */
@keyframes c-hier { 0%, 35% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--v2) 75%, transparent), 0 0 24px -6px color-mix(in srgb, var(--v2) 60%, transparent); } 100% { box-shadow: 0 0 0 2px transparent; } }
.p-toast button { height: 38px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--txt); font: 650 14.5px "Figtree", system-ui, sans-serif; border: 0; }

/* Fenster von unten: Hand am Griff zieht es wieder runter */
.dimmer.p-dim { z-index: 50; transition: opacity .25s; } .dimmer.p-dim.p-zu { opacity: 0; pointer-events: none; }
.sheet.p-sheet { z-index: 51; transition: transform .32s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(20px + var(--unten)); max-height: calc(100% - max(env(safe-area-inset-top), 20px) - 12px); overflow-y: auto; overscroll-behavior: contain; }
.sheet.p-sheet.p-zu { transform: translateY(105%); }
.sheet.p-sheet.zieht { transition: none; }
.sheet.p-sheet.p-tastatur { padding-bottom: 16px; } /* über der Tastatur: kein Platz für den Home-Balken nötig */
/* Feld hat den Fokus: Oberkante steht (app.js App.blatt), Unter- und Oberkante gleiten mit der Tastatur */
.sheet.p-sheet.p-heftet { transition: transform .32s cubic-bezier(.2,.8,.2,1), top .3s cubic-bezier(.2,.8,.2,1), bottom .3s cubic-bezier(.2,.8,.2,1); }
.sheet.p-sheet.p-heftet.zieht { transition: none; }
.live-text[contenteditable] { outline: none; min-height: 60px; }
.live-text .vorl { color: var(--dim); }
.pegel i { transition: height .1s; }

/* Laden und leer */
.laedt { display: flex; align-items: center; gap: 10px; margin: 26px 4px; color: var(--dim); font-size: 15px; }
.laedt::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--akzent); animation: p-dreh .8s linear infinite; }
.leer-k { margin: 18px 0; padding: 22px 18px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--linie); color: var(--dim); font-size: 15px; line-height: 1.45; }
.leer-k b { display: block; color: var(--txt); font-size: 17px; margin-bottom: 4px; }
.fehler-k { margin: 18px 0; padding: 14px 16px; border-radius: var(--r-klein); background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.25); color: #F2B3AE; font-size: 14.5px; line-height: 1.4; }
html.offline .pc .marke i { background: var(--dim2) !important; box-shadow: none !important; }

/* Markdown aus den Akten und von Claude */
.md { font-size: 15px; line-height: 1.5; color: #DDE0E4; }
.md h1, .md h2, .md h3 { font-size: 16.5px; margin: 18px 0 6px; color: var(--txt); }
.md h1 { font-size: 19px; } .md p { margin: 8px 0; } .md ul { margin: 6px 0; padding-left: 20px; } .md li { margin: 3px 0; }
.md table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 10px 0; display: block; overflow-x: auto; }
.md td, .md th { border-bottom: 1px solid var(--linie); padding: 6px 8px 6px 0; text-align: left; vertical-align: top; white-space: nowrap; }
.md code { font-size: 13.5px; background: var(--karte2); padding: 1px 5px; border-radius: 6px; }
.md pre { position: relative; white-space: pre-wrap; background: #0E0F11; border: 1px solid var(--linie); border-radius: 14px; padding: 12px 14px; font: 14px/1.5 "Figtree", system-ui, sans-serif; }
.md pre .kopier { position: absolute; top: 8px; right: 8px; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--karte2); font-size: 13.5px; font-weight: 650; }
.md a { color: var(--akzent); }

/* 5i-Regeln gelten auch auf einer Ansicht (nicht nur auf <html>) */
[data-f="ueber"] .f-teil[data-f~="ueber"], [data-f="tage"] .f-teil[data-f~="tage"], [data-f="unterlagen"] .f-teil[data-f~="unterlagen"],
[data-f="geburt"] .f-teil[data-f~="geburt"], [data-f="kontakt"] .f-teil[data-f~="kontakt"], [data-f="kuendbar"] .f-teil[data-f~="kuendbar"] { display: block; }
[data-f="ueber"] .filter span[data-f="ueber"], [data-f="tage"] .filter span[data-f="tage"], [data-f="unterlagen"] .filter span[data-f="unterlagen"],
[data-f="geburt"] .filter span[data-f="geburt"], [data-f="kontakt"] .filter span[data-f="kontakt"], [data-f="kuendbar"] .filter span[data-f="kuendbar"] { background: var(--karte2); color: var(--txt); border-color: rgba(255,255,255,.16); }

/* Groß, fürs Auto */
html.p-gross .v > .screen { zoom: 1.12; width: calc(390px / 1.12); }
html.p-gross :is(.tabbar, .sheet, .p-toast) { zoom: 1.12; }
html.p-gross :is(.tabbar, .sheet) { width: calc(390px / 1.12); }
html.p-gross .filter { flex-wrap: wrap; }

/* Druck sofort sichtbar: alles Antippbare gibt beim Aufsetzen des Fingers nach (wie in einer nativen App) */
:is(.btn, .rund, .kachel, .eintrag, a.eintrag, .chip-m, .filter span, .tab, .freigabe .btn, .karte-k, .farbe-k, .symbol-k, .mehr-z, .stapel .karte, .zeile-tipp) { transition: transform .12s cubic-bezier(.2,.8,.2,1), filter .12s, background-color .2s, opacity .2s; }
:is(.btn, .rund, .chip-m, .filter span, .karte-k, .farbe-k, .symbol-k):active { transform: scale(.95); filter: brightness(1.15); }
:is(.kachel, .eintrag, a.eintrag, .mehr-z, .zeile-tipp):active { transform: scale(.975); filter: brightness(1.12); }
.tab:active .ic { transform: scale(.9); }

/* Claude-Reiter */
.c-feld:empty::before { content: attr(data-leer); color: var(--dim2); }
.c-eingabe .diktat .punkt { opacity: .3; transition: opacity .2s; }
.c-eingabe.hoert .diktat .punkt { opacity: 1; animation: t-puls 1.2s ease-in-out infinite; }
.c-eingabe:not(.hoert) .pegel i { opacity: .35; }
.c-faden { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--dim2); min-height: 20px; }
.c-faden span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-faden button { flex: none; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--linie); background: transparent; color: var(--akzent); font: 650 13.5px "Figtree", system-ui, sans-serif; }
.c-liste { padding-bottom: 24px; }
.c-job .titel { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-job.offen .titel { -webkit-line-clamp: unset; display: block; }
.c-job .amp-t { font-size: 15px; } .c-job .amp-t p { margin: 3px 0 0; } .c-job .amp-t ul { margin: 4px 0 0; }
.c-job .c-text { margin-top: 12px; } .c-job .c-vor { margin: 0 0 12px; }
.c-job .c-zu { max-height: 132px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.c-job .c-mehr { margin-top: 12px; }
.st.c-fehler { background: rgba(255,107,107,.12); color: #F2B3AE; } .st.c-fehler svg { width: 14px; height: 14px; }
.c-ftext { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--dim); }
.amp .s.y { background: #F2C46B; box-shadow: 0 0 0 4px rgba(242,196,107,.14); }
.amp .s.w { background: #5B5F67; }
.fortschritt.unbestimmt i { width: 34%; animation: c-lauf 1.5s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes c-lauf { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* Einstellungen */
.v.p-vorschau .glow.leise { opacity: 0; }
.v.p-vorschau .kopf-titel { color: var(--ink); }
.v.p-vorschau .auf-dunkel .kopf .rund { background: rgba(14,15,18,.9); }
.p-seg span { cursor: pointer; transition: background-color .2s, color .2s; }
.symbol-k { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.einst .z > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.einst .z .r .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); }
.einst .z .p-feld { display: block; width: 100%; height: 46px; margin: 10px 0 12px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--linie); background: #0E0F11; color: var(--txt); font: 600 17px "Figtree", system-ui, sans-serif; outline: none; -webkit-appearance: none; }
.einst .z .p-feld:focus { border-color: color-mix(in srgb, var(--v2) 50%, transparent); }
.einst .z:has(.p-feld) { align-items: flex-start; padding-top: 12px; }
.p-ende { margin: 26px 4px 32px; text-align: center; color: var(--dim2); }
.c-eingabe:not(.hoert) .diktat .punkt { background: var(--dim2); box-shadow: none; opacity: .6; }
.md blockquote { margin: 8px 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--linie); color: var(--dim); font-style: italic; }
.amp.ohne { padding-top: 10px; padding-bottom: 10px; } .amp.ohne .s { visibility: hidden; } .amp.ohne .k { font-size: 11.5px; } .amp.ohne .amp-t { font-size: 14.5px; color: #D3D6DB; }

/* Termin: kein Kopf-Mikrofon während einer Aufnahme */
html.live .p-mic-live { display: none !important; }

/* Farbverlauf wechseln (Einstellungen): sieben Farbstellen laufen weich, jede neue Wahl beginnt sofort vom sichtbaren Stand aus */
@property --g0 { syntax: "<color>"; inherits: false; initial-value: #0A0B0D; }
@property --g1 { syntax: "<color>"; inherits: false; initial-value: #0A0B0D; }
@property --g2 { syntax: "<color>"; inherits: false; initial-value: #0A0B0D; }
@property --g3 { syntax: "<color>"; inherits: false; initial-value: #0A0B0D; }
@property --g4 { syntax: "<color>"; inherits: false; initial-value: #0A0B0D; }
@property --g5 { syntax: "<color>"; inherits: false; initial-value: #0A0B0D; }
@property --g6 { syntax: "<color>"; inherits: false; initial-value: #0A0B0D; }
.vorschau-schicht.p-stellen { background: radial-gradient(55% 42% at 46% 0%, rgba(255,255,255,var(--glanz, .55)), rgba(255,255,255,0) 100%),
  linear-gradient(100deg, var(--g0) 0%, var(--g1) 16.667%, var(--g2) 33.333%, var(--g3) 50%, var(--g4) 66.667%, var(--g5) 83.333%, var(--g6) 100%);
  transition: opacity .4s ease, --g0 .45s ease, --g1 .45s ease, --g2 .45s ease, --g3 .45s ease, --g4 .45s ease, --g5 .45s ease, --g6 .45s ease; }

/* Antwort im App-Design außerhalb des Claude-Reiters (Kurzvorbereitung) */
.a-abschnitt { margin-top: 20px; } .a-abschnitt .fd-k { margin-bottom: 6px; }
.a-text { font-size: 15.5px; line-height: 1.5; color: #E2E4E8; } .a-text p { margin: 0 0 8px; } .a-text ul { margin: 4px 0 0; padding-left: 18px; } .a-text li { margin: 0 0 6px; }
.m-antwort > .ampel { margin-top: 2px; }

/* Diktat wird am PC sauber umgewandelt: Schimmer über dem Hinweis, Pegel als Welle, Text darunter leicht gedimmt */
.p-wandelt :is(.p-zeit, .c-zeit) { background: linear-gradient(90deg, var(--dim) 0%, var(--dim) 38%, #FFFFFF 50%, var(--dim) 62%, var(--dim) 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: p-glanz 1.5s linear infinite; }
@keyframes p-glanz { from { background-position: 100% 0; } to { background-position: -160% 0; } }
/* Welle über die fünf Striche, alle vom ersten Bild an in Bewegung (negative Verzögerung), nie ausgeblendet; der Punkt davor pulsiert
   (Poly 03.12.: „kleine animation da wo jetzt die ausgeblendeten grünen punkte sind so dass man wirklich checkt das etwas passiert“) */
.p-wandelt .pegel i { animation: p-welle .9s ease-in-out infinite; background: var(--verlauf); opacity: 1; }
.p-wandelt .pegel i:nth-child(1) { animation-delay: -.9s; } .p-wandelt .pegel i:nth-child(2) { animation-delay: -.75s; } .p-wandelt .pegel i:nth-child(3) { animation-delay: -.6s; }
.p-wandelt .pegel i:nth-child(4) { animation-delay: -.45s; } .p-wandelt .pegel i:nth-child(5) { animation-delay: -.3s; }
@keyframes p-welle { 0%, 100% { height: 4px; opacity: .6; } 50% { height: 16px; opacity: 1; } }
.p-wandelt .diktat .punkt, .eingabe.p-wandelt .diktat .punkt { background: var(--v2, #C9B8F0); opacity: 1; animation: p-puls 1.2s ease-in-out infinite; }
@keyframes p-puls { 0%, 100% { transform: scale(.75); box-shadow: 0 0 0 0 color-mix(in srgb, var(--v2, #C9B8F0) 55%, transparent); } 50% { transform: scale(1.1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--v2, #C9B8F0) 0%, transparent); } }
.p-wandelt .live-text { opacity: .72; transition: opacity .25s ease; }

/* Zeitstrahl offen: über der Kopfzeile darf man scrollen, sie schließt nicht mehr per Ziehen */
.stapel.offen .st-kopf { touch-action: pan-y; }
/* Zeitstrahl: Karte nach links ziehen zeigt rechts „öffnen“ (stapel_app.js, Poly 03.12.); ab der Schwelle leuchtet der Kreis, Loslassen öffnet wie Antippen */
.st-auf { position: absolute; left: 0; top: 0; width: calc(100% - 24px); height: 76px; border-radius: 22px; transform-origin: 0 0; will-change: transform, opacity; pointer-events: none; opacity: 0; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; background: #121316; border: 1px solid var(--linie); }
.st-auf i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--karte2); color: var(--dim); transition: background .15s ease, color .15s ease, transform .15s ease; }
.st-auf i svg { width: 16px; height: 16px; stroke-width: 2.6; }
.st-auf.an i { background: var(--verlauf); color: var(--ink); transform: scale(1.1); }
.st-karte.st-auf-an .st-inhalt { filter: brightness(1.12); }
/* Freie Zeit zwischen zwei Terminen (Poly 03.12.): leise, rechtsbündig mit dem Inhalt der Karten, nur offen sichtbar */
.st-frei { position: absolute; right: 16px; top: 0; height: 24px; display: flex; align-items: center; justify-content: flex-end; font-size: 12.5px; font-weight: 600; color: var(--dim2); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; pointer-events: none; }
.st-frei-warn { color: var(--rot); }

/* Heute passt auf jede Höhe (Poly 03.12., Samsung im Browser: Kacheln unten abgeschnitten). Platz unten = Reiterleiste + 14 px.
   Reicht die Höhe nicht, rückt heute.js stufenweise zusammen (h-knapp1 … 3). */
.v > .screen.passt { padding-bottom: calc(54px + var(--unten) + 14px); }
.v.h-knapp1 .gruss h1 { margin: 10px 0 6px; font-size: 33px; } .v.h-knapp1 .hero { margin-top: 16px; } .v.h-knapp1 .kacheln { margin-top: 10px; }
.v.h-knapp2 .gruss h1 { margin: 4px 0 4px; font-size: 29px; } .v.h-knapp2 .gruss p { font-size: 14.5px; } .v.h-knapp2 .hero { margin-top: 12px; padding-top: 14px; padding-bottom: 14px; }
.v.h-knapp2 .kacheln .kachel { padding-top: 10px; padding-bottom: 10px; }
.v.h-knapp3 .screen > .kopf { height: 48px; } .v.h-knapp3 .gruss h1 { font-size: 26px; margin: 2px 0 2px; } .v.h-knapp3 .gruss p { font-size: 13.5px; } .v.h-knapp3 .hero { margin-top: 10px; } .v.h-knapp3 .kacheln { margin-top: 8px; }
.p-fuss > .p-ende { grid-column: 1 / -1; } /* Fußzeile der Einstellungen über die ganze Breite, mittig */
.hero .h-tel { flex: none; width: 46px; height: 46px; aspect-ratio: 1; } /* Anrufknopf auf „Nächster Termin“ bleibt rund, auch bei langem Thema (Poly 03.12.: „wirkt etwas gequetscht“) */
/* Frag Claude: Fragen nach links wegwischen (Poly 03.12.) */
.c-liste .c-job { touch-action: pan-y; }
.c-job.c-zieht { transition: none; }
.c-job.c-zurueck { transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .26s; }
.c-job.c-weg { transition: transform .28s ease-in, opacity .28s, max-height .3s .2s, margin .3s .2s, padding .3s .2s; transform: translateX(-115%) !important; opacity: 0 !important;
  max-height: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; overflow: hidden; pointer-events: none; }
/* Vorlese-Knopf zeigt, dass er vorliest (Poly 03.12.): Verlauf, Welle statt Lautsprecher. Ohne Ring (Poly 03.12.: „es braucht den ausstrahlenden ring nicht“) */
.freigabe .vorlesen { position: relative; transition: background .25s ease, color .25s ease, transform .15s ease; }
.freigabe .vorlesen:active { transform: scale(.92); }
.freigabe .vorlesen .vl-welle { display: none; align-items: center; gap: 2px; height: 16px; }
.freigabe .vorlesen .vl-welle i { width: 2.5px; height: 4px; border-radius: 2px; background: var(--ink); animation: vl-welle .8s ease-in-out infinite; }
.freigabe .vorlesen .vl-welle i:nth-child(1) { animation-delay: -.75s; } .freigabe .vorlesen .vl-welle i:nth-child(2) { animation-delay: -.45s; }
.freigabe .vorlesen .vl-welle i:nth-child(3) { animation-delay: -.6s; } .freigabe .vorlesen .vl-welle i:nth-child(4) { animation-delay: -.3s; }
.freigabe .vorlesen.liest { background: var(--verlauf); color: var(--ink); }
.freigabe .vorlesen.liest svg { display: none; }
.freigabe .vorlesen.liest .vl-welle { display: flex; }
@keyframes vl-welle { 0%, 100% { height: 4px; } 50% { height: 15px; } }
@media (prefers-reduced-motion: reduce) { .freigabe .vorlesen .vl-welle i { animation: none; height: 10px; } }
/* Termin läuft weiter / endet gleich von selbst / Mikrofon weg / Abdunkeln (Poly 03.12.) */
.t-lauf-k { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 18px; background: var(--karte); border: 1px solid var(--linie, rgba(255,255,255,.08)); }
.t-lauf-k > svg.i { flex: none; width: 18px; height: 18px; color: var(--dim); }
.t-lauf-k > div { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--dim); }
.t-lauf-k > div b { display: block; color: var(--txt); font-size: 15px; margin-bottom: 2px; }
.t-lauf-k > div b.t-endet-in { display: inline; font-size: inherit; margin: 0; font-variant-numeric: tabular-nums; }
.t-lauf-k em { font-style: normal; color: var(--txt); }
.t-lauf-k .btn { flex: none; padding: 0 14px; height: 40px; font-size: 14px; white-space: nowrap; }
.t-lauf-k .t-knopf { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.t-lauf-k .t-knopf svg.i { width: 15px; height: 15px; }
.t-lauf-k.t-bald { border-color: color-mix(in srgb, var(--v2, #C9B8F0) 45%, transparent); }
.t-bald-z { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--v2, #C9B8F0); animation: p-puls 1.2s ease-in-out infinite; }
.t-dunkel { position: fixed; inset: 0; z-index: 400; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity .3s ease; touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer; }
.t-dunkel.an { opacity: 1; }
.t-dunkel-in { color: #3A3D42; font-size: 15px; letter-spacing: .02em; }
.t-dunkel small { color: #26282C; font-size: 12px; }
/* Hinweis wegwischen (Poly 03.12.) */
.p-toast { touch-action: none; }
.p-toast.p-toast-zieht { transition: none; }
.p-toast.p-toast-weg { transition: transform .22s ease-in, opacity .22s; pointer-events: none; }
.t-lauf-k.t-ruhig { padding: 8px 8px 8px 14px; gap: 10px; }
.t-lauf-k.t-ruhig > div { font-size: 13px; }
.t-lauf-k.t-ruhig .t-knopf { height: 36px; padding: 0 12px; }
.t-lauf-k.t-bald { flex-wrap: wrap; align-items: flex-start; }
.t-lauf-k.t-bald > .t-bald-z, .t-lauf-k.t-bald > svg.i { margin-top: 5px; }
.t-lauf-k.t-bald > .btn { flex: 1 0 100%; margin-top: 2px; height: 44px; }
.aufnahme.t-endet-bald .warn-z { color: var(--v2, #C9B8F0); }
/* Termin verschieben (Poly 03.12.) */
/* Walzen für Tag, Stunde, Minute (Poly 03.12.: „wie als wenn man an einer walze drehen würde“) */
/* Walze nur senkrecht (Poly 03.12., iPhone: „dass man die zeit walze nach links und rechts verschieben kann was so nicht sein sollte“): die gekippten Zeilen ragen
   in der Projektion über die Spalte hinaus, ohne overflow-x: hidden lief die Spalte in Safari seitlich mit */
.tz-walzen { position: relative; display: grid; overflow: hidden; touch-action: pan-y; grid-template-columns: 1.75fr 1fr 14px 1fr; height: 190px; margin: 2px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%); }
.tz-band { position: absolute; left: 0; right: 0; top: 76px; height: 38px; border-radius: 13px; background: var(--karte2); pointer-events: none; }
.tz-w { position: relative; height: 190px; box-sizing: border-box; padding: 76px 0; overflow-x: hidden; overflow-y: scroll; touch-action: pan-y; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; perspective: 520px; outline: none; -webkit-tap-highlight-color: transparent; }
.tz-w::-webkit-scrollbar { display: none; }
.tz-w > div { height: 38px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font: 600 18px "Figtree", system-ui, sans-serif; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; transform-origin: 50% 50%; backface-visibility: hidden; transition: color .15s; }
.tz-w > div.an { color: var(--txt); font-weight: 750; }
.tz-w-tag > div { font-size: 16.5px; }
.tz-w-tag > div.an { font-size: 17px; }
.tz-dp { position: relative; align-self: center; text-align: center; font: 750 18px "Figtree", system-ui, sans-serif; color: var(--txt); margin-top: -2px; }
.tz-blatt .tz-ok { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; height: 54px; }
.tz-schnell { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.tz-schnell button { height: 40px; border: 0; border-radius: 12px; background: var(--karte2); color: var(--txt); font: 650 14px "Figtree", system-ui, sans-serif; transition: transform .12s; }
.tz-schnell button:active { transform: scale(.94); }
.tz-schnell button.tz-an { animation: tz-an .35s ease; }
@keyframes tz-an { 0% { background: color-mix(in srgb, var(--v2, #C9B8F0) 35%, var(--karte2)); } 100% { background: var(--karte2); } }
.tz-hinweis { margin: 14px 2px 14px; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.t-zeit-chip { border: 0; margin: 0; font-family: inherit; line-height: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; } /* sieht aus wie jeder Chip, nur antippbar (Poly 03.12.: kein Bearbeitungszeichen) */
.t-zeit-chip:active { transform: scale(.96); }
/* iPhone in Safari: Hinweis „Telisco als App“ (einmal, wegtippbar) */
.p-a2hs { position: fixed; z-index: 49; /* unter dem Abdunkeln der Blätter (50) */ left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 92px); display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 16px; border-radius: 18px;
  background: rgba(37,39,44,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 14px 34px -12px rgba(0,0,0,.7);
  transform: translateY(calc(100% + 140px)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.p-a2hs.an { transform: none; }
.p-a2hs-t { flex: 1; font-size: 14px; line-height: 1.42; color: var(--dim); }
.p-a2hs-t b { display: block; margin-bottom: 2px; color: var(--txt); font-size: 15px; font-weight: 700; }
.p-a2hs-t svg { width: 17px; height: 17px; margin: 0 1px; vertical-align: -3px; color: var(--txt); }
.p-a2hs-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--karte2); color: var(--txt); display: grid; place-items: center; }
.p-a2hs-x svg { width: 16px; height: 16px; }
/* Schritte statt Satz, unten über der Leiste, ein Pfeil zeigt dahin, wo Safari das Menü hat (Mitte bzw. rechts ab Safari 26) */
.p-a2hs-t ol { margin: 6px 0 4px; padding-left: 20px; color: var(--txt); }
.p-a2hs-t li { margin: 3px 0; } .p-a2hs-t li::marker { color: var(--dim); font-weight: 650; }
.p-a2hs-t > span { display: block; font-size: 13px; }
.p-a2hs-pfeil { position: absolute; bottom: -9px; left: calc(50% - 9px); width: 18px; height: 18px; transform: rotate(45deg); background: rgba(37,39,44,.94); border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.p-a2hs-rechts .p-a2hs-pfeil { left: auto; right: 34px; }

/* Telis (kräftiger Verlauf, Poly 03.12.): Auf dem Verlauf ist die Schrift weiß (--ink aus setzeVariante). Was hell bleibt, behält dunkle Schrift:
   gewählte Kapsel, Haken auf Farbe und Karte, gewählte Stufe, Zahl an Freigaben (auf Türkis) */
html[data-variante="telis"] :is(.chip-m.an, .farbe-k .ok, .segment span.an, .symbol-k .ok, .karte-k .ok, .badge) { color: #101215; }

/* Knopfreihen, die zu knapp sind (App.knopfReihen, Poly 03.12.): Nebenknöpfe nur mit Symbol, rund; sonst untereinander */
.k-eng > .btn:not(.pastell):not(.voll):has(svg) { flex: none; width: auto; aspect-ratio: 1; padding: 0; gap: 0; font-size: 0; }
.k-stapel { flex-wrap: wrap; }
.k-stapel > .btn { flex: 1 1 100%; }

/* Neuer Termin (App.neuerTermin, Poly 03.12.): baut auf dem Blatt „Termin verschieben“ auf (tz-walzen, tz-hinweis, tz-ok) */
/* Ansagen als Mikrofon im Feld „Mit wem“ (Poly 03.12.: „das ansagen symbol als symbol in der entsprechenden farbe innerhalb des chatfensters … das wir oben mehr platz bekommen“) */
.nt-such-w { position: relative; }
.nt-such-w .nt-such { padding-right: 58px; }
.nt-sag { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--verlauf); color: var(--ink, #101215); display: grid; place-items: center; cursor: pointer; transition: transform .12s; -webkit-tap-highlight-color: transparent; box-shadow: 0 0 16px -4px rgba(188,208,244,.55); }
.nt-sag:active { transform: scale(.9); }
.nt-sag .i { width: 19px; height: 19px; }
.nt-k1 { margin-top: 6px; }
.nt-k { margin: 18px 2px 8px; font-size: 12px; font-weight: 750; letter-spacing: .08em; color: var(--dim2); }
.nt-feld { display: block; width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--linie); background: var(--karte); color: var(--txt); font: 500 16px "Figtree", system-ui, sans-serif; outline: none; }
.nt-feld:focus { border-color: var(--akzent); }
.nt-feld::placeholder { color: var(--dim2); }
.nt-feld[hidden] { display: none; }
/* Mit wem: eine Zeile, seitlich wischbar, so breit wie das Feld darüber. Wo noch mehr kommt, blendet der Rand schmal und weich aus
   (Poly 03.12.: „nicht breiter … als das chatfenster und dann so smooth rausfaden“; bei der Lupe war ihm eine breite Blende zu auffällig). r-l / r-r setzt app.js. */
.nt-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 10px 0 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y;
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0, rgba(0,0,0,.55) calc(var(--fl) * .45), #000 var(--fl), #000 calc(100% - var(--fr)), rgba(0,0,0,.55) calc(100% - var(--fr) * .45), rgba(0,0,0,.08) 100%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0, rgba(0,0,0,.55) calc(var(--fl) * .45), #000 var(--fl), #000 calc(100% - var(--fr)), rgba(0,0,0,.55) calc(100% - var(--fr) * .45), rgba(0,0,0,.08) 100%); }
.nt-chips:not(.r-l) { --fl: 0.01px; } .nt-chips.r-l { --fl: 24px; }
.nt-chips:not(.r-r) { --fr: 0.01px; } .nt-chips.r-r { --fr: 24px; }
.nt-chips:not(.r-l):not(.r-r) { -webkit-mask-image: none; mask-image: none; }
.nt-chips::-webkit-scrollbar { display: none; }
.nt-chips:empty { display: none; }
/* Auf- und Zuklappen weich statt schlagartig (Poly 03.12.: Feld antippen „buggt“, während die Tastatur kommt). nt-auf / nt-zu setzt app.js. */
.nt-chips.nt-auf { animation: nt-chips-auf .24s cubic-bezier(.2,.8,.2,1); }
.nt-chips.nt-zu { animation: nt-chips-auf .2s cubic-bezier(.4,0,.6,1) reverse both; }
@keyframes nt-chips-auf { from { max-height: 0; margin-top: 0; opacity: 0; } to { max-height: 46px; margin-top: 10px; opacity: 1; } }
.nt-chips .chip-m { flex: none; height: 36px; padding: 0 14px; font-size: 14.5px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.nt-chips .nt-frei { flex: none; white-space: nowrap; }
.nt-chips .chip-m.an { color: #101215; }
.nt-frei { align-self: center; font-size: 13px; color: var(--dim); }
.nt-tag { margin-top: 10px; }
/* Tagesband (App.tagesband, Poly 03.12.: „das man schnell sieht wann welcher termin ist und weiß wo man noch einen reinpacken kann“) */
.tb-kopf { margin: 0 2px 6px; font-size: 13px; color: var(--dim); }
.tb-lage { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.35; color: var(--txt); font-weight: 600; }
.tb-lage.gelb { color: var(--gelb); } .tb-lage.rot { color: var(--rot); }
.tb { position: relative; padding-top: 16px; }
.tb-std { position: absolute; left: 0; right: 0; top: 0; height: 14px; pointer-events: none; }
.tb-std span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--dim2); font-variant-numeric: tabular-nums; }
.tb-band { position: relative; height: 44px; border-radius: 12px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px calc(100% / var(--tb-std, 12))), #0E0F11; border: 1px solid var(--linie); overflow: hidden; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb-band i { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; font-style: normal; transition: top .32s cubic-bezier(.2,.8,.2,1), bottom .32s cubic-bezier(.2,.8,.2,1), border-radius .32s; }
/* Gehalten oder gezogen: das Band wird weich größer, beim Loslassen wieder klein (Poly 03.12.) */
.tb-band { transition: height .32s cubic-bezier(.2,.8,.2,1), border-radius .32s; }
.tb-gross .tb-band { height: 70px; border-radius: 16px; }
.tb-gross .tb-band i { top: 6px; bottom: 6px; border-radius: 9px; }
.tb-gross .tb-t span { font-size: 13px; padding: 0 8px; }
.tb-t.tb-nah { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rot) 80%, transparent); }
.tb-z.tb-z-nah b { color: var(--rot); }
.tb-vorbei { left: 0; top: 0 !important; bottom: 0 !important; border-radius: 0 !important; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 4px, transparent 4px 8px); }
.tb-t { background: #34373E; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 1px 0 0 #0E0F11; display: flex; align-items: center; overflow: hidden; }
.tb-t span { padding: 0 6px; font-size: 11.5px; font-weight: 650; color: #C9CCD2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-t.tb-kreuzt { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gelb) 70%, transparent); }
.tb-neu { z-index: 2; min-width: 7px; background: linear-gradient(90deg, #E3F0F7, #BCD0F4 55%, #CFC3EE); box-shadow: 0 0 0 2px #0E0F11, 0 0 18px -2px rgba(188,208,244,.65); transition: left .18s cubic-bezier(.2,.8,.2,1), width .18s; }
.tb-band .tb-neu { transition: left .18s cubic-bezier(.2,.8,.2,1), width .18s, top .32s cubic-bezier(.2,.8,.2,1), bottom .32s cubic-bezier(.2,.8,.2,1), border-radius .32s; }
/* beim Ziehen nicht strecken: die Umrandung (gelb, rot) bliebe sonst am Bandrand hängen (Poly 03.12., Samsung) */
.tb-zieht .tb-neu { transition: top .32s cubic-bezier(.2,.8,.2,1), bottom .32s cubic-bezier(.2,.8,.2,1), border-radius .32s; }
.tb-neu.tb-warn { box-shadow: 0 0 0 2px #0E0F11, 0 0 0 3.5px var(--gelb); }
.tb-neu.tb-gleich { box-shadow: 0 0 0 2px #0E0F11, 0 0 0 3.5px var(--rot); }
.tb-jetzt { z-index: 1; top: 0 !important; bottom: 0 !important; width: 2px; margin-left: -1px; border-radius: 1px !important; background: rgba(255,255,255,.55); }
.tb-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin-top: 10px; } /* minmax: ein langer Name schiebt die Liste nicht über den Rand */
.tb-z { display: flex; align-items: baseline; gap: 12px; padding: 6px 12px; border-radius: 11px; font-size: 14.5px; color: var(--dim); }
.tb-z b { min-width: 44px; color: var(--txt); font-weight: 650; font-variant-numeric: tabular-nums; }
.tb-z span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-z small { flex: none; font-size: 12.5px; color: var(--dim2); font-variant-numeric: tabular-nums; }
.tb-z-neu { background: color-mix(in srgb, var(--v2, #BCD0F4) 24%, var(--karte2)); color: var(--txt); font-weight: 600; }
.tb-z-neu small { color: var(--dim); }
.tb-z-kreuzt b { color: var(--gelb); }
.tz-tag { margin-top: 16px; }
/* Termine des Tages auf der Tageswalze: Kalender-Zeichen mit Zahl (Poly 05.12. abends: Fassung D statt der Punkte, die „man nicht intuitiv checkt“) */
.tz-pk { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font: 700 12.5px "Figtree", system-ui, sans-serif; font-variant-numeric: tabular-nums; opacity: .75; vertical-align: 1px; }
.tz-pk svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nt-art { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.nt-art span { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
.nt-art span svg.i { width: 17px; height: 17px; opacity: .8; } .nt-art span.an svg.i { opacity: 1; }
/* Wie: eine Zeile mit dem, was gilt (Adresse oder Nummer aus der Akte), statt leerer Felder (Poly 03.12.) */
.nt-wo { display: flex; align-items: center; gap: 12px; min-height: 54px; margin-top: 10px; padding: 8px 8px 8px 15px; border-radius: 14px; background: var(--karte2); }
.nt-wo[hidden] { display: none; }
.nt-wo > svg.i { flex: none; color: var(--dim); }
.nt-wo > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nt-wo b { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-wo small { font-size: 12.5px; color: var(--dim2); }
.nt-wo-k { flex: none; height: 36px; padding: 0 13px; border: 0; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--txt); font: 650 13.5px "Figtree", system-ui, sans-serif; cursor: pointer; }
.nt-ort { margin-top: 10px; }
.nt-thema-k { display: flex; align-items: center; gap: 8px; height: 44px; margin: 6px 0 0; padding: 0 2px; border: 0; background: none; color: var(--dim); font: 600 15px "Figtree", system-ui, sans-serif; cursor: pointer; }
.nt-thema-k[hidden] { display: none; }
.nt-thema-k svg.i { width: 18px; height: 18px; }
.nt-hinweis { margin: 8px 2px 4px; font-size: 12.5px; color: var(--dim2); }
.nt-dauer { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.nt-dauer button { height: 38px; border: 0; border-radius: 12px; background: var(--karte2); color: var(--dim); font: 650 13.5px "Figtree", system-ui, sans-serif; cursor: pointer; }
.nt-dauer button.an { background: #F3F4F6; color: #101215; }
.nt-thema { margin-top: 10px; }
.nt-blatt .nt-ok.tz-gleich { opacity: .55; }
.nt-fuss { position: sticky; bottom: calc(-20px - var(--unten, 0px)); z-index: 3; margin: 6px -20px calc(-20px - var(--unten, 0px)); padding: 18px 20px calc(20px + var(--unten, 0px)); background: linear-gradient(to bottom, rgba(23,24,27,0), #17181B 18px); }
.p-tastatur .nt-fuss { bottom: -16px; margin-bottom: -16px; padding-bottom: 16px; }
/* WhatsApp-Freigabe ohne Handynummer in der Akte (Poly 04.12.): vor dem Tippen sichtbar */
.f-nr-fehlt { display: inline-flex; align-items: center; gap: 4px; color: #F2C46B; font-weight: 650; white-space: nowrap; }
.f-nr-fehlt svg { width: 14px; height: 14px; }
html.hell .f-nr-fehlt { color: #9A5B00; }
/* Einstellungen feiner (Poly 04.12. 19:5x am Handy: „Das sieht noch ein bisschen raw aus die kachel im weiß modus und würde nur Dunkel und Hell schreiben
   und die botton wirken etwas groß“): Darstellung nur mit Namen, Kacheln und Umschalter niedriger, Gewähltes im Hellen mit Verlaufsrand (hell.css). */
.symbol-k { min-height: 60px; padding: 8px 12px; gap: 12px; }
.symbol-k.an { padding: 7px 11px; }
.symbol-k img { width: 40px; height: 40px; }
.symbol-k b { font-size: 16px; }
.symbol-k .ok, .farbe-k .ok, .karte-k .ok { width: 22px; height: 22px; }
.symbol-k .ok { top: 50%; right: 12px; margin-top: -11px; }
.symbol-k .ok svg, .farbe-k .ok svg, .karte-k .ok svg { width: 13px; height: 13px; stroke-width: 2.8; }
.segment { padding: 3px; }
.segment span { height: 40px; font-size: 14.5px; }
.kachel.karte-k { min-height: 86px; padding: 12px 12px 11px; }
.kachel.karte-k.an { padding: 11px 11px 10px; }
.karte-k .zahl { font-size: 31px; }
.karte-k .was { font-size: 14px; margin-top: 6px; }
.farbe-k .vorschau { height: 54px; }
/* Zeile unter dem Stapel immer einzeilig (Poly 04.12. 19:55: „Das mit dem text unten beim stapel darf nicht passieren“): lange Titel enden mit „…“, die Zahl rechts bleibt stehen */
.st-griff-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mehr { flex: none; margin-left: 10px; }

/* Termin: Schieben zum Starten (Poly 04.12. 21:3x) */
.t-rec { touch-action: pan-y; -webkit-user-select: none; user-select: none; overflow: hidden; --p: 0; }
.t-rec .t-rec-spur { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50px + var(--p) * (100% - 58px)); border-radius: 99px; background: rgba(255,255,255,.17); pointer-events: none; transition: width .5s cubic-bezier(.32,.72,0,1); }
.t-rec .t-rec-zeichen { z-index: 2; cursor: grab; will-change: transform; transition: transform .5s cubic-bezier(.32,.72,0,1), box-shadow .3s; }
.t-rec .t-rec-zeichen i { transition: transform .3s cubic-bezier(.32,.72,0,1); }
.t-rec .t-rec-text { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-left: 30px; pointer-events: none; opacity: calc(1 - var(--p) * 1.7); transform: translateX(calc(var(--p) * 22px)); transition: opacity .4s, transform .5s cubic-bezier(.32,.72,0,1); }
.t-rec .t-rec-text b { font-weight: inherit; background: linear-gradient(100deg, currentColor 40%, color-mix(in srgb, currentColor 55%, transparent) 50%, currentColor 60%) 100% 0 / 280% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: t-glanz 3.4s cubic-bezier(.45,.05,.55,.95) infinite; }
.t-rec .t-rec-text svg { width: 15px; height: 15px; opacity: .6; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: t-wink 3.4s ease-in-out infinite; }
@keyframes t-glanz { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
@keyframes t-wink { 0%, 30%, 100% { transform: translateX(0); } 45% { transform: translateX(4px); } }
.t-rec.zieht .t-rec-zeichen, .t-rec.zieht .t-rec-spur, .t-rec.zieht .t-rec-text { transition: none; }
.t-rec.zieht .t-rec-zeichen { cursor: grabbing; box-shadow: 0 4px 14px rgba(16,24,40,.22), inset 0 0 0 1px rgba(255,255,255,.6); }
.t-rec.zieht .t-rec-zeichen i, .t-rec.fertig .t-rec-zeichen i { transform: scale(1.18); }
.t-rec.fertig .t-rec-spur { background: rgba(255,255,255,.26); }
@media (prefers-reduced-motion: reduce) { .t-rec .t-rec-text b, .t-rec .t-rec-text svg { animation: none; } }

/* Freigaben: Vorschlag von Claude mit Ampel-Punkten (Poly 04.12. 21:3x) */
:is(.freigabe, .fd-blk) .mailtext.f-vs { background: none !important; border: 0 !important; padding: 0 !important; max-height: none !important; -webkit-mask-image: none !important; mask-image: none !important; overflow: visible; }
:is(.freigabe, .fd-blk) .f-vs .ampel { margin: 0; } :is(.freigabe, .fd-blk) .mailtext.f-vs::after { display: none !important; }
:is(.freigabe, .fd-blk) .f-vs .amp-t { font-size: 15px; } :is(.freigabe, .fd-blk) .f-vs .amp-t p { margin: 3px 0 0; } :is(.freigabe, .fd-blk) .f-vs .amp-t ul { margin: 4px 0 0; }

/* Kopf: Kalender mit Plus (Poly 05.12.) – das Plus etwas kräftiger als der Rahmen, damit es als „hinzufügen“ liest; Druck wie bei den anderen runden Knöpfen */
.kopf .rund.k-plus .k-plus-k { stroke-width: 2.1; }
.kopf .rund.k-plus { transition: transform .14s cubic-bezier(.2,.8,.2,1), background-color .45s ease, color .45s ease; -webkit-tap-highlight-color: transparent; }
.kopf .rund.k-plus:active { transform: scale(.92); }
.fd-blk .f-vs .f-vs-rest { margin-top: 14px; }
/* Ort im Blatt „Neuer Termin“ (Poly 05.12.): Vorschläge unter dem Feld, oben das Getippte zum Übernehmen; bestätigte Zeile mit „Karte“ und „ändern“ */
.nt-vor { margin-top: 8px; border-radius: 14px; background: var(--karte2); overflow: hidden; }
.nt-vor[hidden] { display: none; }
.nt-vor-z { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 15px; border: 0; background: none; color: var(--txt); text-align: left; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nt-vor-z + .nt-vor-z { border-top: 1px solid var(--linie); }
.nt-vor-z > svg.i { flex: none; width: 20px; height: 20px; color: var(--dim); }
.nt-vor-z.nt-vor-ok > svg.i { color: var(--akzent); }
.nt-vor-z > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nt-vor-z b { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-vor-z small { font-size: 12.5px; color: var(--dim2); }
.nt-vor-z:active { background: rgba(255,255,255,.05); }
html.hell .nt-vor-z:active { background: rgba(16,20,28,.05); }
.nt-wo-karte { display: inline; padding: 0; border: 0; background: none; color: var(--akzent); font: 650 12.5px "Figtree", system-ui, sans-serif; cursor: pointer; }

/* ---------- Einstellungen nach Entwurf C (Poly 05.12.: „C nehmen wir“): Vorschau oben, darunter Kästen wie in iOS. Alt: app_test/app_css_vor_einst_c.css */
/* 05.12. abends: die Vorschau hat keinen Rahmen mehr, sie steht direkt auf der Farbfläche der Seite (glow: "voll"), wie Heute selbst */
.e-vorschau { position: relative; z-index: 1; margin-top: 4px; padding: 6px 0 4px; }
.e-v-label { position: absolute; right: 0; top: 8px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: color-mix(in srgb, var(--bg) 22%, transparent); padding: 4px 9px; border-radius: 99px; }
.v[data-view="einstellungen"] .glow { transition: none; }
.e-v-zi { margin-top: 10px; padding: 13px 15px 12px; border-radius: 18px; 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); }
.e-v-zi-t { font-size: 14.5px; font-weight: 620; line-height: 1.36; color: var(--txt); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.e-v-zi-wer { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.e-v-zi-wer i { width: 12px; height: 2px; border-radius: 2px; background: var(--verlauf); flex: none; }
.e-v-zi-wer b { font-weight: 650; color: var(--txt); opacity: .9; }
.e-fach { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .32s cubic-bezier(.2,.8,.2,1), opacity .25s ease, margin-top .32s ease; margin-top: 12px; }
.e-fach > div { overflow: hidden; min-height: 0; }
.e-fach.e-weg { grid-template-rows: 0fr; opacity: 0; margin-top: 0; } /* nicht „.zu“: das ist in cockpit-design.css eine 60-px-Zeile */
.e-fach .e-klein:first-child { margin-top: 0; }
.e-punkte { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.e-punkte.wischt .e-pk { transform: scale(.94); }
.e-punkte.wischt .e-pk.an { transform: scale(1.1); }
.e-v-gruss { font-size: 24px; line-height: 1.1; letter-spacing: -.015em; font-weight: 340; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-v-gruss b { font-weight: 700; }
.e-v-dat { margin-top: 5px; font-size: 13.5px; font-weight: 550; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-v-hero { margin-top: 14px; padding: 11px 14px 12px; border-radius: 18px; background: linear-gradient(180deg, #17181B, #111214); border: 1px solid rgba(255,255,255,.06); box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.e-v-hero span { display: block; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.e-v-hero b { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 650; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Einstellungen oben: Gruß, Glasmarken, Zitat-Karussell (Poly 05.12. abends) */
.e-v-ics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.e-v-ic { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 24%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); white-space: nowrap; }
.e-v-ic b { font-weight: 750; font-variant-numeric: tabular-nums; }
.e-v-ic svg { width: 15px; height: 15px; flex: none; }
.e-v-zk { margin-top: 16px; }
.e-vorschau .e-v-kl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.e-vorschau .e-v-kl .kachel { min-height: 0; height: 68px; padding: 9px 10px 8px; border-radius: 15px; }
.e-vorschau .e-v-kl .kachel .zahl { font-size: 22px; }
.e-vorschau .e-v-kl .kachel .was { font-size: 11.5px; line-height: 1.15; margin-top: 4px; }
.e-box { margin-top: 12px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-gross); overflow: hidden; }
.e-blk { padding: 14px 16px 16px; }
.e-blk + .e-blk, .e-blk + .einst { border-top: 1px solid var(--linie); }
.e-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 16px; font-weight: 650; white-space: nowrap; }
.e-t > span { font-size: 14.5px; font-weight: 550; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.e-blk .segment { margin-top: 0; }
.e-klein { margin: 10px 2px 0; font-size: 13px; line-height: 1.4; color: var(--dim); }
.e-punkte { display: flex; justify-content: space-between; padding: 0 4px; }
.e-pk { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.2,.8,.2,1); }
.e-pk::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s ease; }
.e-pk.an::after { border-color: var(--txt); }
.e-pk:active { transform: scale(.9); }
/* Kachel-Wahl als Pillen (Poly 05.12. abends zum 3 × 2-Raster: „gefällt mir so nicht … das alte Design ist nicht verkehrt, aber es darf nicht riesen Lücken haben
   und auf ewige Zeilen nach unten gehen“): kurze Namen, und jede Pille wächst, bis ihre Reihe voll ist. Kein Haken, die helle Füllung zeigt die Wahl. */
.e-chips { display: flex; flex-direction: column; gap: 10px; } .e-chreihe { display: flex; gap: 8px; } /* „zu gequetscht“ bei 6 px (Poly 05.12. abends); aus vier Fassungen „D zwei Reihen mehr Luft“, Blatt app_test/chips_luft/ */
.e-chip { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 38px; padding: 0 10px; border-radius: 99px; border: 0; background: var(--karte2); color: var(--txt); font: 600 14px "Figtree", system-ui, sans-serif; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s; }
.e-chip em { flex: none; font-style: normal; font-variant-numeric: tabular-nums; color: var(--dim); }
.e-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.e-chip.an { background: #F3F4F6; color: #101215; }
.e-chip.an em { color: rgba(16,18,21,.55); }
.e-chip:active { transform: scale(.95); }
.e-box .einst.e-in { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.e-box + .symbol-hinweis { margin-top: 10px; }
.e-vorschau .e-v-kl .kachel .pfeil { right: 7px; top: 7px; width: 20px; height: 20px; }
.e-vorschau .e-v-kl .kachel .pfeil svg { width: 12px; height: 12px; }

/* Freigaben: Farbe nach Art (Poly 06.12.: B gewählt, dazu „umrande die karte ganz … wie bei heute wichtig“, „bau 38 prozent mal ein … wenn es eher verwirrt können wir es ja wieder rückgängig machen“).
   Schimmer oben wie im Blatt B, 1-px-Rand rundum in derselben Farbe zu 38 % wie .wichtig. WhatsApp grün · Mail blau · Rückfrage gelb. Die Frist (≤ 3 Tage) färbt
   seit 06.12. mittags nur noch ihren Chip rot, nicht die Karte (Poly: „Wieso ist das da dann rot und oben gelb?“); das Zeichen im Art-Chip trägt die Farbe der Art
   („die zeichen … in der farbe … what's app … mail … blau … zusätzlich“).
   Merkmal data-ton aus karte() in views/freigaben.js. Rückgängig: diesen Block und die Zeile dort entfernen. Beim Ansprung (.ziel) behält dessen Rand Vorrang. */
.v[data-view=freigaben] .freigabe[data-ton] { background: radial-gradient(115% 210px at 50% 0%, var(--f-ton), transparent 82%) no-repeat, var(--karte); }
.v[data-view=freigaben] .freigabe[data-ton]:not(.ziel) { border-color: color-mix(in srgb, var(--f-ring) 38%, transparent); }
.freigabe[data-ton=rot]   { --f-ton: rgba(255,107,107,.17); --f-ring: #FF6B6B; }
.freigabe[data-ton=gruen] { --f-ton: rgba(37,211,102,.22);  --f-ring: #25D366; }
.freigabe[data-ton=blau]  { --f-ton: rgba(64,140,255,.23);  --f-ring: #5C9CFF; }
.freigabe[data-ton=gelb]  { --f-ton: rgba(243,201,105,.15); --f-ring: #F3C969; }
html.hell .freigabe[data-ton=rot]   { --f-ton: rgba(217,59,59,.12); --f-ring: #D93B3B; }
html.hell .freigabe[data-ton=gruen] { --f-ton: rgba(30,190,90,.16); --f-ring: #1DA851; }
html.hell .freigabe[data-ton=blau]  { --f-ton: rgba(26,115,232,.13); --f-ring: #1A73E8; }
html.hell .freigabe[data-ton=gelb]  { --f-ton: rgba(240,180,30,.22); --f-ring: #DEA000; }
/* Termin: Orchidee. Violett läge zu nah am Mail-Blau, Orange am Fristrot (Abstand geprüft mit validate_palette, ΔE ≥ 18 zu allen anderen) */
.freigabe[data-ton=lila]  { --f-ton: rgba(229,124,240,.17); --f-ring: #E57CF0; }
html.hell .freigabe[data-ton=lila]  { --f-ton: rgba(166,59,196,.11); --f-ring: #A63BC4; }
/* Zeichen im Art-Chip in der Farbe der Art (Karte und ganze Ansicht); der Text bleibt neutral, die Rückfrage ist als Ganzes gelb (.warn) */
.st.art.t-gruen { --f-ring: #25D366; } .st.art.t-blau { --f-ring: #5C9CFF; } .st.art.t-gelb { --f-ring: #F3C969; }
html.hell .st.art.t-gruen { --f-ring: #1DA851; } html.hell .st.art.t-blau { --f-ring: #1A73E8; } html.hell .st.art.t-gelb { --f-ring: #DEA000; }
.st.art.t-lila { --f-ring: #E57CF0; } html.hell .st.art.t-lila { --f-ring: #A63BC4; }
.st.art:is(.t-gruen, .t-blau, .t-gelb, .t-lila) > svg { color: var(--f-ring); }
/* Frist in höchstens 3 Tagen oder vorbei: der Chip selbst rot */
.frist-c.rot { color: #FF8A8A; background: rgba(255,107,107,.14); }
html.hell span.frist-c.rot { color: #C62F2F; background: rgba(217,59,59,.09); }
/* Nichts ragt über den Kartenrand (Poly 06.12. 11:3x: „Anders“ ragte rechts aus der Karte; 11:43: langer Pfad in `code` schob den ganzen Absatz über den Rand).
   Am Handy laufen Schriften breiter als im Test, mit „Größer“ noch mehr. Passen zwei Knöpfe nicht nebeneinander, stehen sie untereinander (k-stapel,
   gesetzt von App.knopfReihen in app.js). Lange Wörter und Pfade brechen um. */
.aktionen2.k-stapel { grid-template-columns: 1fr; }
.k-dicht > .btn { padding-left: 14px; padding-right: 14px; gap: 6px; }
.amp > div { min-width: 0; }
.md code, .md a { overflow-wrap: anywhere; }
/* „Handynummer fehlt“ auf der Grundlinie des Namens (Poly 06.12.: „Wieso steht das gelbe hinweis zeichen nicht auf der selben höhe wie der name links daneben“):
   als inline-flex lag die Grundlinie am Zeichen, die Zeile rutschte hoch. Jetzt Fließtext, das Zeichen sitzt auf der Schrift. */
.f-nr-fehlt { display: inline; } .f-nr-fehlt svg { display: inline-block; vertical-align: -2px; margin-right: 4px; }
/* Herunterziehen: über der Seite ihr eigenes Leuchten, gespiegelt an der Oberkante (Werte setzt ziehen() in app.js beim Anfassen) */
.v > .p-ptr-grund { overflow: hidden; }
.v > .p-ptr-grund::before { inset: auto 0 0 0; height: var(--ptr-h, 450px); transform: scaleY(-1); background: var(--ptr-bg, none);
  -webkit-mask-image: var(--ptr-maske, none); mask-image: var(--ptr-maske, none); }
