@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 800; font-display: swap; src: url(fonts/barlow-semi-condensed-800.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format('woff2'); }

:root {
  --papier: #f5f7f9; --weiss: #ffffff; --ink: #232328; --grau: #9ea4a5; --gruen: #19be84;
  --ink-04: rgba(35,35,40,.04); --ink-06: rgba(35,35,40,.06); --ink-10: rgba(35,35,40,.10); --ink-16: rgba(35,35,40,.16);
  --ink-35: rgba(35,35,40,.35); --ink-55: rgba(35,35,40,.55); --ink-75: rgba(35,35,40,.75);
  --linie: rgba(35,35,40,.08); --grau-30: rgba(158,164,165,.30); --gruen-12: rgba(25,190,132,.12);
  --zahl: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, sans-serif;
  --feder: cubic-bezier(.22, 1.18, .36, 1); --sanft: cubic-bezier(.2, .9, .3, 1);
  --nav-h: 64px; --sab: env(safe-area-inset-bottom, 0px); --sat: env(safe-area-inset-top, 0px);
  --schatten: 0 1px 2px rgba(35,35,40,.05), 0 10px 26px -16px rgba(35,35,40,.18);
  --schatten-hoch: 0 24px 48px -16px rgba(35,35,40,.34), 0 2px 8px rgba(35,35,40,.10);
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--papier); color: var(--ink); font-family: var(--text); font-size: 14px;
  line-height: 1.42; -webkit-font-smoothing: antialiased; overscroll-behavior: none; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; user-select: none; -webkit-user-select: none; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.zahl { font-family: var(--zahl); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Grundgerüst ---------- */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.spalte-liste { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--papier); }
.b-karte.gewaehlt, .ereignis.gewaehlt, .st-tag.gewaehlt { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 12px; }
.spalte-seite { display: none; position: relative; min-width: 0; min-height: 0; }
#stapel { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
#stapel > .seite { pointer-events: auto; }

/* Leiste: Handy unten */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--sab)); padding: 0 6px var(--sab); z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 72px 1fr 1fr; align-items: center; view-transition-name: leiste;
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--linie); }
.leiste .l-ziel { height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--grau); position: relative; }
.leiste .l-ziel svg { width: 22px; height: 22px; }
.leiste .l-ziel span { font-size: 11px; font-weight: 600; }
.leiste .l-ziel.an { color: var(--ink); }
.leiste .l-ziel.an::after { content: ""; position: absolute; top: 1px; width: 18px; height: 2px; border-radius: 2px; background: var(--gruen); }
.leiste .l-ziel .l-n { display: none; }
.leiste .l-extra, .leiste .l-marke, .leiste .l-titel { display: none; }
.mikro { justify-self: center; width: 54px; height: 54px; margin-top: -16px; border-radius: 50%; background: var(--ink); color: var(--weiss);
  display: grid; place-items: center; border: 3px solid var(--papier); box-shadow: 0 10px 24px -8px rgba(35,35,40,.5); transition: transform .2s var(--feder), background .15s; touch-action: none; text-align: center; }
.mikro svg { width: 22px; height: 22px; }
.mikro:active, .mikro.haelt { background: var(--gruen); transform: scale(.94); }

/* ---------- Übersicht-Kopf ---------- */
.ue { position: absolute; inset: 0 0 calc(var(--nav-h) + var(--sab)) 0; display: flex; flex-direction: column; min-height: 0; }
.ue-kopf { flex: none; padding: calc(12px + var(--sat)) 16px 6px; display: flex; align-items: center; gap: 10px; }
.ue-titel { font-family: var(--zahl); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.005em; flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ue-titel small { font-weight: 700; font-size: 17px; color: var(--grau); }
.knopf-rund { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--weiss); border: 1px solid var(--linie); flex: none; }
.knopf-rund svg { width: 18px; height: 18px; }
.knopf-rund:active { transform: scale(.94); background: var(--ink-06); }
.ue-inhalt { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding: 0 12px 28px; overscroll-behavior: contain; }

/* Umschalter */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--ink-06); }
.seg button { height: 30px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--ink-55); text-align: center; transition: background .18s, color .18s; }
.seg button.an { background: var(--weiss); color: var(--ink); box-shadow: 0 1px 3px rgba(35,35,40,.12); }
.ue-seg { margin: 2px 4px 8px; }

/* ---------- Ordnungsleiste ---------- */
.ordnung { display: flex; align-items: center; gap: 6px; padding: 4px 4px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.ordnung::-webkit-scrollbar { display: none; }
.o-knopf { flex: none; height: 30px; padding: 0 10px 0 8px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  background: var(--weiss); border: 1px solid var(--linie); color: var(--ink); white-space: nowrap; }
.o-knopf svg { width: 15px; height: 15px; color: var(--ink-55); }
.o-chip { flex: none; height: 30px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-55); border: 1px dashed var(--ink-16); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.o-chip.an { background: var(--ink); color: var(--weiss); border: 1px solid var(--ink); }
.o-chip .sw { width: 9px; height: 9px; }
.o-trenn { width: 1px; height: 18px; background: var(--linie); flex: none; }

/* ---------- Gruppen und Zeilen ---------- */
.gruppe { margin-top: 6px; }
.g-kopf { display: flex; align-items: center; gap: 8px; padding: 10px 6px 6px; font-size: 12px; font-weight: 600; color: var(--ink-55); }
.g-kopf b { font-family: var(--zahl); font-weight: 700; font-size: 13px; color: var(--ink-35); margin-left: auto; }
.g-kopf button { display: inline-flex; align-items: center; gap: 6px; }
.g-kopf button:hover { color: var(--ink); }
.zeilen { background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; }
.zeile { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 8px 12px; background: var(--weiss);
  border-top: 1px solid var(--linie); touch-action: pan-y; transition: background .12s; }
.zeile:first-child { border-top: 0; }
.zeile:active { background: var(--ink-04); }
.zeile.gewaehlt { background: var(--ink-06); box-shadow: inset 3px 0 0 var(--ink); }
.zeile.offen-rechts { background: var(--ink-04); }
.z-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.z-titel { font-family: var(--zahl); font-weight: 700; font-size: 16.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-unter { font-size: 12px; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.z-wert { flex: none; font-family: var(--zahl); font-weight: 700; font-size: 15px; color: var(--ink-75); font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 1px; }
.z-wert small { font-size: 11px; color: var(--grau); }
.z-wert.stark { color: var(--ink); }
.faellig { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-right: 6px; align-self: center; }
.z-erledigt .z-titel { text-decoration: line-through; color: var(--grau); }
.wisch-grund { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 600; font-size: 13px; }
.wisch-grund svg { width: 20px; height: 20px; margin: 0 6px; }
.wisch-grund.rechts { background: var(--gruen); color: var(--weiss); }
.wisch-grund.links { background: var(--ink); color: var(--weiss); justify-content: flex-end; }
.zeile-huelle { position: relative; overflow: hidden; border-top: 1px solid var(--linie); }
.zeile-huelle:first-child { border-top: 0; }
.zeile-huelle > .zeile { border-top: 0; will-change: transform; }

/* Zeichen der Art */
.zch { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-75); background: var(--ink-06); }
.zch svg { width: 17px; height: 17px; }
.zch.mensch { border-radius: 50%; font-family: var(--zahl); font-weight: 700; font-size: 13px; color: var(--ink); background: var(--weiss); box-shadow: inset 0 0 0 1.4px var(--ink-35); }
.zch.klein { width: 22px; height: 22px; border-radius: 7px; }
.zch.klein svg { width: 13px; height: 13px; }
.zch.mensch.klein { font-size: 10.5px; }

/* Kundenzeichen: Muster statt Farben */
.siegel { flex: none; width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ink-16); position: relative; overflow: hidden; }
.siegel.klein { width: 12px; height: 12px; border-radius: 3px; }
.siegel.gross { width: 46px; height: 46px; border-radius: 12px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2.5px; flex: none; box-shadow: inset 0 0 0 1px var(--ink-16); }
.f-voll { background: var(--ink); }
.f-halb { background: rgba(35,35,40,.5); }
.f-schraffur { background: repeating-linear-gradient(135deg, var(--ink) 0 1.4px, var(--weiss) 1.4px 3.8px); }
.f-streifen { background: repeating-linear-gradient(90deg, var(--ink) 0 1.4px, var(--weiss) 1.4px 3.8px); }
.f-punkte { background: radial-gradient(circle, var(--ink) .95px, transparent 1.2px) 0 0 / 3.6px 3.6px, var(--weiss); }
.f-ring { background: var(--weiss); box-shadow: inset 0 0 0 2.2px var(--ink) !important; }
.f-gitter { background: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--weiss) 1px 4px); }
.f-kreuz { background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 4px), repeating-linear-gradient(135deg, var(--ink) 0 1px, var(--weiss) 1px 4px); }
.f-grau { background: var(--grau); }
.f-leer { background: var(--weiss); box-shadow: inset 0 0 0 1.2px var(--ink-35) !important; }
.kz { display: inline-flex; align-items: center; gap: 5px; font-family: var(--zahl); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: var(--ink-75); white-space: nowrap; }

/* Zustandszeichen: Form statt Farbe */
.zst { flex: none; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.zst.ich { background: var(--gruen); }
.zst.aktiv { background: var(--ink); }
.zst.sie { box-shadow: inset 0 0 0 1.6px var(--ink); }
.zst.laeuft { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 1.4px var(--ink); }
.zst.ruht { background: var(--grau-30); border-radius: 2px; height: 4px; }
.zst.fertig { background: none; width: 11px; height: 11px; border-radius: 0; border-right: 2px solid var(--ink-55); border-bottom: 2px solid var(--ink-55); transform: rotate(40deg) scale(.6, .9); }
.frist-z { display: inline-block; width: 10px; height: 9px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
.frist-z.hohl { background: var(--ink-35); }

/* Frische */
.frische { display: inline-flex; align-items: center; gap: 6px; }
.frische i { display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--ink-06); position: relative; overflow: hidden; }
.frische i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); background: var(--ink); border-radius: 2px; }
.frische.alt i::after { background: var(--grau); }

/* ---------- Verweis-Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%; padding: 0 10px 0 5px; border-radius: 10px; background: var(--weiss);
  border: 1px solid var(--linie); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.chip .zch, .chip .siegel { width: 20px; height: 20px; border-radius: 6px; }
.chip .zch svg { width: 12px; height: 12px; }
.chip .zch.mensch { border-radius: 50%; font-size: 10px; }
.chip span.n { overflow: hidden; text-overflow: ellipsis; }
.chip:hover { border-color: var(--ink-35); }
.chip:active { transform: scale(.97); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.verweis { font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink-16); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.verweis:hover { text-decoration-color: var(--ink); }

/* ---------- Heute ---------- */
.hud { background: var(--weiss); border-radius: 18px; box-shadow: var(--schatten); overflow: hidden; }
.hud-termin { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; }
.ring { position: relative; width: 58px; height: 58px; flex: none; }
.ring svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .r-grund { stroke: var(--ink-06); }
.ring .r-wert { stroke: var(--gruen); stroke-linecap: round; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--zahl); font-weight: 800; font-size: 17px; }
.hud-t-text { flex: 1; min-width: 0; }
.hud-t-zeit { font-family: var(--zahl); font-weight: 700; font-size: 15px; color: var(--ink-55); }
.hud-t-titel { font-family: var(--zahl); font-weight: 800; font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-instr { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linie); }
.instr { padding: 10px 14px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.instr + .instr { border-left: 1px solid var(--linie); }
.instr b { font-family: var(--zahl); font-weight: 800; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 7px; }
.instr span { font-size: 12px; font-weight: 600; color: var(--ink-55); }
.instr .ki-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 4px var(--gruen-12); }
.instr b.klein { font-size: 22px; height: 32px; }
.instr:active { background: var(--ink-04); }
.blitz { animation: blitz .9s ease; }
@keyframes blitz { 30% { color: var(--gruen); } }

.karte { margin-top: 12px; background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); padding: 12px 14px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink-55); }
.karte-kopf button { color: var(--ink); font-weight: 600; }
.bogen { position: relative; height: 34px; border-radius: 9px; background: var(--ink-04); box-shadow: inset 0 0 0 1px var(--linie); }
.bogen button { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; background: var(--ink); }
.bogen button.privat { background: var(--grau); }
.bogen button.vorbei { opacity: .35; }
.bogen .jetzt { position: absolute; top: -7px; bottom: -4px; width: 2px; background: var(--gruen); border-radius: 2px; }
.bogen .jetzt::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); }
.skala { display: flex; justify-content: space-between; margin-top: 5px; font-family: var(--zahl); font-weight: 700; font-size: 11px; color: var(--grau); }

.streifen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.st-tag { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 7px; border-radius: 10px; text-align: center; }
.st-tag:active, .st-tag:hover { background: var(--ink-04); }
.st-tag .st-w { font-size: 10.5px; font-weight: 600; color: var(--grau); }
.st-tag .st-n { font-family: var(--zahl); font-weight: 700; font-size: 16px; line-height: 1; }
.st-tag.heute .st-n { color: var(--gruen); font-weight: 800; }
.st-tag.we { opacity: .55; }
.st-punkte { display: flex; gap: 2px; height: 6px; align-items: center; }
.st-punkte i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.st-punkte i.privat { background: var(--grau); }
.st-punkte i.frist { border-radius: 0; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 6px; height: 6px; }

.braucht { display: grid; gap: 8px; margin-top: 8px; }
.b-karte { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); width: 100%; }
.b-karte:active { transform: scale(.985); }
.b-karte .z-titel { font-size: 17px; }

.ereignis { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: start; padding: 7px 2px; width: 100%; }
.ereignis + .ereignis { border-top: 1px solid var(--linie); }
.e-zeit { font-family: var(--zahl); font-weight: 700; font-size: 13px; color: var(--grau); padding-top: 1px; }
.e-text { font-size: 13.5px; min-width: 0; }
.e-text { display: flex; align-items: flex-start; gap: 8px; }
.e-herk-ikon { flex: none; color: var(--ink-35); padding-top: 1px; }
.e-herk-ikon svg { width: 15px; height: 15px; display: block; }
.g-alle { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-family: var(--zahl); font-weight: 700; font-size: 15px; color: var(--ink); padding: 2px 4px 2px 8px; border-radius: 8px; }
.g-alle svg { width: 16px; height: 16px; }
.g-alle:hover { background: var(--ink-06); }

/* Lage-Radar Kunden */
.radar-karte { margin: 0 4px 10px; padding: 10px 12px 8px; }
.radar { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.radar .r-ring { fill: none; stroke: var(--ink-10); stroke-width: 1; }
.radar .r-mitte { stroke: var(--ink-10); stroke-dasharray: 2 3; }
.radar .r-zahl { font-family: var(--zahl); font-weight: 700; font-size: 9px; fill: var(--grau); }
.radar .r-treffer { fill: transparent; cursor: pointer; }
.radar .r-punkt.ich .r-p { fill: var(--gruen); }
.radar .r-punkt.sie .r-p { fill: var(--weiss); stroke: var(--ink); stroke-width: 1.8; }
.radar .r-punkt.an .r-p { stroke: var(--ink); stroke-width: 3; }
.radar .r-punkt, .radar .r-punkt:focus, .radar .r-punkt:focus-visible { outline: none; }
.radar .r-punkt:focus-visible .r-p { stroke: var(--ink); stroke-width: 3; }
.radar-seiten { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--ink-55); margin-top: 2px; }
.radar-seiten span { display: inline-flex; align-items: center; gap: 6px; }
.radar-seiten .zst { width: 8px; height: 8px; }
.radar-info { display: flex; align-items: center; gap: 8px; min-height: 0; font-size: 13px; }
.radar-info:not(:empty) { min-height: 34px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--linie); }
.radar-info b { font-family: var(--zahl); font-size: 15px; }
.radar-info .radar-oeffnen { margin-left: auto; font-weight: 600; padding: 5px 10px; border-radius: 9px; background: var(--ink); color: var(--weiss); }

/* ---------- Seite eines Dings ---------- */
.seite { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--papier); min-height: 0; }
#stapel > .seite { bottom: calc(var(--nav-h) + var(--sab)); box-shadow: -12px 0 30px -18px rgba(35,35,40,.35); }
#stapel > .seite.unten { visibility: hidden; }
.s-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 40px; }
.s-leiste { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--sat)) 12px 8px;
  background: rgba(245,247,249,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s; }
.s-leiste.schwebt { box-shadow: 0 1px 0 var(--linie); }
.zurueck { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 10px 0 4px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--ink-75); max-width: 44%; }
.zurueck svg { width: 20px; height: 20px; flex: none; }
.zurueck span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zurueck:active, .zurueck:hover { background: var(--ink-06); }
.s-mini { flex: 1; min-width: 0; font-family: var(--zahl); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; text-align: center; }
.s-leiste.schwebt .s-mini { opacity: 1; transform: none; }
.s-nav-pc { display: none; gap: 4px; }
.s-kopf { padding: 2px 16px 10px; }
.pfad { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; min-height: 22px; font-size: 12.5px; color: var(--ink-55); }
.pfad button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 5px; margin-left: -5px; border-radius: 7px; font-weight: 600; color: var(--ink-75); }
.pfad button:hover, .pfad button:active { background: var(--ink-06); color: var(--ink); }
.pfad .siegel { width: 11px; height: 11px; border-radius: 3px; }
.pfad .p-trenn { color: var(--ink-35); margin: 0 2px 0 -2px; }
.s-z1 { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.s-z1 .zch { width: 44px; height: 44px; border-radius: 12px; }
.s-z1 .zch svg { width: 22px; height: 22px; }
.s-z1 .zch.mensch { border-radius: 50%; font-size: 18px; }
.s-titel { flex: 1; min-width: 0; font-family: var(--zahl); font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -.005em; overflow-wrap: break-word; hyphens: auto; }
.aktionen .s-haupt { height: 34px; flex: none; border-radius: 11px; }
.s-zustand > span { white-space: nowrap; }
.s-haupt { flex: none; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--ink); color: var(--weiss); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.s-haupt svg { width: 16px; height: 16px; }
.s-haupt.gruen { background: var(--gruen); }
.s-haupt:active { transform: scale(.96); }
.s-zustand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: var(--ink-75); }
.s-zustand > span { display: inline-flex; align-items: center; gap: 6px; }
.s-zustand b { font-family: var(--zahl); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.aktionen { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.aktion { flex: none; height: 34px; padding: 0 12px 0 10px; border-radius: 11px; background: var(--weiss); border: 1px solid var(--linie); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.aktion svg { width: 16px; height: 16px; color: var(--ink-75); }
.aktion:active { transform: scale(.96); background: var(--ink-06); }
.aktion.erledigt { background: var(--gruen-12); border-color: transparent; }
.aktion.erledigt svg { color: var(--gruen); }
.aktion kbd { font-family: var(--zahl); font-size: 11px; color: var(--grau); border: 1px solid var(--linie); border-radius: 4px; padding: 0 4px; margin-left: 2px; display: none; }

/* Nachbarn-Band: das HUD des Dings */
.band { position: sticky; top: calc(52px + var(--sat)); z-index: 4; display: flex; gap: 0; margin: 4px 12px 4px; padding: 0; background: var(--weiss); border-radius: var(--r);
  box-shadow: var(--schatten); overflow-x: auto; scrollbar-width: none; }
.band::-webkit-scrollbar { display: none; }
.band button { flex: 1 0 auto; min-width: 66px; padding: 8px 12px 8px; display: flex; flex-direction: column; gap: 1px; position: relative; }
.band button + button { border-left: 1px solid var(--linie); }
.band b { font-family: var(--zahl); font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 5px; }
.band span { font-size: 11px; font-weight: 600; color: var(--ink-55); white-space: nowrap; }
.band button.an::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--ink); }
.band button.null b { color: var(--ink-35); }
.band .zst { width: 8px; height: 8px; }

.abschnitt { margin: 18px 12px 0; scroll-margin-top: calc(120px + var(--sat)); }
.ab-kopf { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 8px; }
.ab-kopf h2 { font-family: var(--zahl); font-weight: 700; font-size: 18px; line-height: 1; }
.ab-kopf b { font-family: var(--zahl); font-weight: 700; font-size: 14px; color: var(--ink-35); }
.ab-kopf .ab-mehr { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-75); padding: 4px 8px; border-radius: 8px; }
.ab-kopf .ab-mehr:hover { background: var(--ink-06); }
.ab-karte { background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); padding: 12px 14px; }
.ab-karte + .ab-karte { margin-top: 8px; }
.ab-karte p { font-size: 14px; line-height: 1.5; max-width: 62ch; }
.feld { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 7px 0; align-items: center; }
.feld + .feld { border-top: 1px solid var(--linie); }
.feld > span:first-child { font-size: 12px; font-weight: 600; color: var(--ink-55); }
.feld > span:last-child { min-width: 0; }
.leer-hinweis { font-size: 13px; color: var(--ink-55); padding: 4px 0; }

.phasen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 2px 0 4px; }
.phasen div { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-35); }
.phasen i { height: 5px; border-radius: 3px; background: var(--ink-06); }
.phasen .war i { background: var(--ink-55); }
.phasen .war { color: var(--ink-55); }
.phasen .jetzt i { background: var(--ink); }
.phasen .jetzt { color: var(--ink); }

.verlauf { position: relative; }
.v-eintrag { display: grid; grid-template-columns: 54px 14px 1fr; gap: 6px; align-items: start; padding: 6px 0; }
.v-tag { font-family: var(--zahl); font-weight: 700; font-size: 13px; color: var(--ink-55); text-align: right; padding-top: 1px; }
.v-punkt { position: relative; height: 100%; }
.v-punkt::before { content: ""; position: absolute; left: 6px; top: 0; bottom: -12px; width: 1.5px; background: var(--ink-10); }
.v-eintrag:last-child .v-punkt::before { display: none; }
.v-punkt::after { content: ""; position: absolute; left: 2.5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--weiss); box-shadow: inset 0 0 0 1.8px var(--ink); }
.v-punkt.agent::after { box-shadow: inset 0 0 0 1.8px var(--ink-35); }
.v-text { font-size: 13.5px; min-width: 0; }
.v-text small { display: block; font-size: 11.5px; color: var(--grau); }

.balken-reihe { display: flex; align-items: flex-end; gap: 2px; height: 54px; padding-top: 4px; border-bottom: 1px dashed var(--ink-10); }
.balken-reihe button { flex: 1; min-width: 0; border-radius: 2px 2px 0 0; background: var(--ink); min-height: 2px; position: relative; }
.balken-reihe button.leer { background: transparent; }
.balken-reihe button.geplant { opacity: .28; }
.balken-reihe button.heute::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gruen); }
.balken-reihe button:hover { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.balken-skala { display: flex; justify-content: space-between; font-family: var(--zahl); font-weight: 700; font-size: 11px; color: var(--grau); margin-top: 6px; }

.orte a, .orte span.ort { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
.orte a + a, .orte a + span, .orte span + a { border-top: 1px solid var(--linie); }
.orte svg { width: 16px; height: 16px; flex: none; color: var(--ink-55); }

.brief { display: grid; gap: 10px; }
.brief h3 { font-size: 12px; font-weight: 600; color: var(--ink-55); margin-bottom: 3px; }
.brief ul { margin: 0; padding: 0 0 0 16px; }
.brief li { font-size: 14px; line-height: 1.5; margin: 2px 0; }
.brief li::marker { color: var(--ink-35); }
.quittung { display: flex; align-items: center; gap: 10px; }
.quittung .q-zeichen { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.6px var(--ink-35); flex: none; }
.quittung.ok .q-zeichen { background: var(--gruen); box-shadow: none; color: var(--weiss); }
.quittung .q-zeichen svg { width: 14px; height: 14px; }

/* ---------- Projekte ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 4px 16px; align-items: start; }
.board-spalte { scroll-snap-align: start; background: var(--ink-04); border-radius: 16px; padding: 8px; min-height: 120px; }
.board-spalte h3 { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; font-family: var(--zahl); font-weight: 700; font-size: 15px; }
.board-spalte h3 b { margin-left: auto; color: var(--ink-35); }
.bkarte { display: block; width: 100%; padding: 10px 11px; margin-bottom: 6px; background: var(--weiss); border-radius: 12px; box-shadow: var(--schatten); }
.bkarte:active { transform: scale(.985); }
.bkarte .z-titel { font-size: 15.5px; white-space: normal; }
.bkarte .bk-fuss { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.bkarte.gewaehlt { box-shadow: inset 0 0 0 2px var(--ink); }

.zeitachse { position: relative; background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; }
.za-scroll { overflow-x: auto; scrollbar-width: thin; }
.za-innen { position: relative; }
.za-kopf { display: flex; height: 30px; border-bottom: 1px solid var(--linie); position: sticky; top: 0; background: var(--weiss); z-index: 2; }
.za-kopf span { flex: none; font-family: var(--zahl); font-weight: 700; font-size: 11px; color: var(--grau); padding: 9px 0 0 4px; border-left: 1px solid var(--linie); }
.za-reihe { position: relative; display: flex; align-items: center; height: 40px; border-bottom: 1px solid var(--linie); }
.za-name { position: sticky; left: 0; z-index: 3; flex: none; width: 128px; height: 100%; display: flex; align-items: center; gap: 7px; padding: 0 8px 0 10px; background: var(--weiss); font-family: var(--zahl); font-weight: 700; font-size: 13.5px; border-right: 1px solid var(--linie); }
.za-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.za-spur { position: relative; height: 100%; flex: none; }
.za-spur i { position: absolute; bottom: 9px; width: 8px; border-radius: 2px; }
.za-spur i.geplant { opacity: .3; }
.za-spur .za-frist { position: absolute; top: 6px; width: 10px; height: 9px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.za-spur .za-termin { position: absolute; top: 7px; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--ink); }
.za-heute { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gruen); z-index: 1; pointer-events: none; }
.za-gruppe { height: 26px; display: flex; align-items: flex-end; padding: 0 0 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-55); background: var(--papier); }
.za-gruppe > span { position: sticky; left: 10px; }

/* ---------- Kalender ---------- */
.k-kopf-z { display: flex; align-items: center; gap: 6px; }
.monat { background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; touch-action: pan-y; }
.wtage { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 0 4px; }
.wtage span { font-size: 11px; font-weight: 600; color: var(--grau); padding-left: 6px; }
.m-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 76px; }
.mz { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 5px 5px 5px 6px; min-width: 0; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); overflow: hidden; -webkit-touch-callout: none; }
.mz:nth-child(7n) { border-right: 0; }
.mz.we { background: rgba(245,247,249,.7); }
.mz.aus > * { opacity: .35; }
.mz:hover { background: var(--ink-04); }
.mz-k { display: flex; align-items: center; justify-content: space-between; height: 15px; }
.mz-n { font-family: var(--zahl); font-weight: 700; font-size: 15px; line-height: 1; }
.mz.heute::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gruen); }
.mz.heute .mz-n { color: var(--gruen); font-weight: 800; }
.mz.gewaehlt { box-shadow: inset 0 0 0 2px var(--ink); }
.mz.ziel { background: var(--ink-06); box-shadow: inset 0 0 0 2px var(--ink); }
.mz-t { display: flex; flex-direction: column; gap: 2px; min-height: 12px; }
.mz-t i { display: block; height: 3px; border-radius: 2px; background: var(--ink); }
.mz-t i.privat { background: var(--grau); }
.mz-b { display: flex; height: 8px; border-radius: 2px; overflow: hidden; margin-top: auto; }
.mz.werktag .mz-b { background: var(--ink-06); }
.mz-b i { display: block; height: 100%; }
.mz-b i + i { margin-left: 1px; }
.mz-b i.geplant { opacity: .3; }
.mz-f { display: flex; align-items: center; justify-content: space-between; height: 11px; }
.mz-h { font-family: var(--zahl); font-weight: 700; font-size: 11px; color: var(--ink-75); }
.bst { width: 11px; height: 11px; color: var(--gruen); flex: none; }
.offen-ring { width: 7px; height: 7px; border-radius: 50%; border: 1.4px solid var(--ink-55); flex: none; }
.mband { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mband .stapel { flex: 1 1 160px; display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--ink-06); }
.mband .stapel i { display: block; height: 100%; }
.mband .stapel i + i { margin-left: 2px; }

.zr { position: relative; background: var(--weiss); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; }
.zr-kopf { display: grid; border-bottom: 1px solid var(--linie); }
.zr-kopf button { padding: 6px 0 6px 6px; display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--linie); }
.zr-kopf button:first-child { border-left: 0; }
.zr-kopf .w { font-size: 10.5px; font-weight: 600; color: var(--grau); }
.zr-kopf .n { font-family: var(--zahl); font-weight: 700; font-size: 16px; line-height: 1.1; }
.zr-kopf button.heute .n { color: var(--gruen); }
.zr-koerper { position: relative; display: grid; }
.zr-achse { position: relative; }
.zr-achse span { position: absolute; left: 0; right: 4px; text-align: right; font-family: var(--zahl); font-weight: 700; font-size: 10.5px; color: var(--grau); transform: translateY(-50%); }
.zr-spalte { position: relative; border-left: 1px solid var(--linie); background-image: linear-gradient(var(--linie) 1px, transparent 1px); }
.zr-spalte.ziel { background-color: var(--ink-04); }
.zb { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: 3px 5px; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: left; }
.zb.termin { background: var(--ink); color: var(--weiss); z-index: 2; }
.zb.termin.privat { background: var(--grau); }
.zb.arbeit { left: 38%; opacity: .42; z-index: 1; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ink-16); }
.zb.arbeit.geplant { opacity: .2; }
.zb.vorschau { background: var(--ink-10); box-shadow: inset 0 0 0 2px var(--ink); z-index: 3; color: var(--ink); }
.zb span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zb small { font-family: var(--zahl); font-weight: 700; font-size: 10.5px; opacity: .8; }
.zr-jetzt { position: absolute; height: 2px; background: var(--gruen); z-index: 4; pointer-events: none; }

.ablage { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 6; background: var(--weiss); border-radius: 16px; box-shadow: var(--schatten-hoch); transition: transform .25s var(--sanft), opacity .2s; }
.ablage.taucht { transform: translateY(120%); opacity: 0; }
.ab-griff { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; font-family: var(--zahl); font-weight: 700; font-size: 17px; }
.ab-griff b { margin-left: 2px; font-size: 13px; background: var(--ink); color: var(--weiss); border-radius: 7px; padding: 1px 7px; }
.ab-griff svg { width: 18px; height: 18px; }
.ab-griff .pfeil { margin-left: auto; transition: transform .2s; }
.ablage.offen .ab-griff .pfeil { transform: rotate(180deg); }
.ab-reihe { display: none; gap: 8px; padding: 0 12px 12px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.ablage.offen .ab-reihe { display: flex; }
.ab-chip { flex: none; display: flex; flex-direction: column; gap: 4px; width: 150px; padding: 9px 10px; border-radius: 12px; background: var(--papier); border: 1px solid var(--linie); touch-action: pan-x; -webkit-touch-callout: none; cursor: grab; }
.ab-chip .z-titel { font-size: 14.5px; white-space: normal; line-height: 1.15; }
.ab-chip.hebt { opacity: .35; }
.zug-geist .z-titel { white-space: normal; display: block; font-size: 14.5px; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.zug-geist { position: fixed; z-index: 90; pointer-events: none; width: 150px; padding: 9px 10px; border-radius: 12px; background: var(--weiss); box-shadow: var(--schatten-hoch); transform: rotate(-2deg) scale(1.04); }

/* ---------- Blatt, Suche, Hinweis ---------- */
.schleier { position: fixed; inset: 0; z-index: 70; background: rgba(35,35,40,.32); opacity: 0; transition: opacity .2s; }
.schleier.an { opacity: 1; }
.blatt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 86vh; overflow-y: auto; background: var(--weiss); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(18px + var(--sab)); box-shadow: var(--schatten-hoch); transform: translateY(105%); transition: transform .34s var(--feder); }
.blatt.an { transform: none; }
.blatt-griff { width: 40px; height: 5px; border-radius: 3px; background: var(--ink-16); margin: 2px auto 12px; }
.blatt h2 { font-family: var(--zahl); font-weight: 800; font-size: 22px; margin-bottom: 4px; }
.blatt .b-unter { font-size: 13px; color: var(--ink-55); margin-bottom: 12px; }
.blatt-liste { display: grid; gap: 6px; }
.blatt-liste button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--papier); font-weight: 600; width: 100%; }
.blatt-liste button svg { width: 18px; height: 18px; color: var(--ink-75); }
.blatt-liste button kbd { margin-left: auto; font-family: var(--zahl); font-size: 12px; color: var(--grau); }
.blatt-liste button:active, .blatt-liste button:hover { background: var(--ink-06); }
.blatt textarea, .blatt input[type=text] { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ink-16); background: var(--papier); resize: vertical; }
.blatt textarea { min-height: 96px; }
.blatt-fuss { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.knopf { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: var(--ink-06); }
.knopf.haupt { background: var(--ink); color: var(--weiss); }
.o-abschnitt { margin-top: 12px; }
.o-abschnitt h3 { font-size: 12px; font-weight: 600; color: var(--ink-55); margin-bottom: 6px; }
.o-abschnitt .chips { gap: 6px; }

.pegel { display: flex; align-items: center; justify-content: center; gap: 4px; height: 70px; }
.pegel i { width: 5px; border-radius: 3px; background: var(--gruen); animation: pegel 1s ease-in-out infinite; }
@keyframes pegel { 0%, 100% { height: 10px; } 50% { height: 52px; } }

.suche { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--papier); }
.suche[hidden] { display: none; }
.su-kopf { display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--sat)) 12px 8px; }
.su-feld { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 13px; background: var(--weiss); border: 1.5px solid var(--ink); }
.su-feld svg { width: 18px; height: 18px; color: var(--ink-55); }
.su-feld input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.su-liste { flex: 1; overflow-y: auto; padding: 4px 12px 24px; }
.su-gruppe { font-size: 12px; font-weight: 600; color: var(--ink-55); padding: 12px 6px 6px; }
.su-treffer { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; }
.su-treffer.an { background: var(--weiss); box-shadow: var(--schatten), inset 0 0 0 1.5px var(--ink); }
.su-treffer mark { background: var(--gruen-12); color: inherit; border-radius: 3px; }
.su-treffer .z-unter { font-size: 11.5px; }
.su-treffer kbd { margin-left: auto; font-family: var(--zahl); font-size: 11px; color: var(--grau); }

.hinweis { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--sab) + 14px); z-index: 85; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--ink); color: var(--weiss); font-weight: 600; font-size: 13.5px; transition: transform .25s var(--feder), opacity .2s; max-width: calc(100vw - 24px); }
.hinweis.an { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.hinweis button { color: var(--gruen); font-weight: 600; padding: 6px 8px; border-radius: 8px; }

.kontextmenue { position: fixed; z-index: 75; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--weiss); box-shadow: var(--schatten-hoch); }
.kontextmenue button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; font-weight: 600; font-size: 13px; }
.kontextmenue button:hover, .kontextmenue button.an { background: var(--ink-06); }
.kontextmenue kbd { margin-left: auto; font-family: var(--zahl); color: var(--grau); }
.kontextmenue svg { width: 16px; height: 16px; color: var(--ink-75); }

.leer-seite { height: 100%; display: grid; place-items: center; text-align: center; color: var(--ink-55); padding: 30px; }
.leer-seite b { display: block; font-family: var(--zahl); font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.tasten { display: inline-grid; grid-template-columns: auto auto; gap: 6px 14px; margin-top: 14px; text-align: left; font-size: 12.5px; }
.tasten kbd { font-family: var(--zahl); font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--weiss); border: 1px solid var(--linie); color: var(--ink); justify-self: end; }

/* ---------- Übergänge ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: 280ms; animation-timing-function: var(--sanft); }
::view-transition-group(hinten) { z-index: 2; }
::view-transition-group(vorne) { z-index: 3; }
::view-transition-group(leiste) { z-index: 6; }
html.vt-vor::view-transition-old(hinten) { animation: 280ms var(--sanft) both vt-alt-weg; }
html.vt-vor::view-transition-new(vorne) { animation: 280ms var(--sanft) both vt-neu-rein; }
html.vt-zurueck::view-transition-old(vorne) { animation: 260ms var(--sanft) both vt-alt-raus; }
html.vt-zurueck::view-transition-new(hinten) { animation: 260ms var(--sanft) both vt-neu-hervor; }
::view-transition-old(liste-m), ::view-transition-new(liste-m) { animation-duration: 200ms; }
@keyframes vt-alt-weg { to { transform: translateX(-26%); filter: brightness(.9); } }
@keyframes vt-neu-rein { from { transform: translateX(100%); } }
@keyframes vt-alt-raus { to { transform: translateX(100%); } }
@keyframes vt-neu-hervor { from { transform: translateX(-26%); filter: brightness(.9); } }
::view-transition-old(liste), ::view-transition-new(liste) { animation-duration: 200ms; }
::view-transition-old(spalte3) { animation: 200ms var(--sanft) both vt-blende-weg; }
::view-transition-new(spalte3) { animation: 220ms var(--sanft) both vt-blende-rein; }
@keyframes vt-blende-weg { to { opacity: 0; transform: translateX(-12px); } }
@keyframes vt-blende-rein { from { opacity: 0; transform: translateX(16px); } }
::view-transition-group(titel) { animation-duration: 300ms; z-index: 5; }
.seite.rein { animation: vt-neu-rein 280ms var(--sanft) both; }
.seite.raus { animation: vt-alt-raus 240ms var(--sanft) both; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 120ms !important; animation-name: vt-ruhig !important; }
  .seite.rein, .seite.raus { animation: none; }
  .blatt, .hinweis, .ablage { transition: opacity .15s; }
  .pegel i { animation: none; height: 24px; }
  * { scroll-behavior: auto !important; }
}
@keyframes vt-ruhig { from { opacity: 0; } }

/* ---------- Dazwischen: 700 bis 1099 px, zwei Spalten ---------- */
@media (min-width: 700px) {
  .app { grid-template-columns: minmax(330px, 380px) 1fr; grid-template-rows: 56px 1fr; }
  .leiste { position: relative; grid-column: 1 / -1; height: 56px; bottom: auto; padding: 0 14px; display: flex; gap: 4px; border-top: 0; border-bottom: 1px solid var(--linie); }
  .leiste .l-ziel { flex-direction: row; height: 38px; padding: 0 12px; border-radius: 11px; gap: 7px; }
  .leiste .l-ziel.an { background: var(--ink-06); }
  .leiste .l-ziel.an::after { display: none; }
  .leiste .l-ziel span { font-size: 13px; }
  .leiste .l-ziel svg { width: 18px; height: 18px; }
  .leiste .l-marke { display: flex; align-items: center; margin-right: 10px; }
  .leiste .l-marke img { height: 24px; }
  .mikro { margin: 0 0 0 auto; width: 40px; height: 40px; border-width: 0; box-shadow: none; }
  .mikro svg { width: 18px; height: 18px; }
  .ue { inset: 0; }
  .spalte-liste { border-right: 1px solid var(--linie); grid-row: 2; view-transition-name: liste; }
  .spalte-seite { display: block; grid-row: 2; view-transition-name: spalte3; }
  #stapel { display: none; }
  .hinweis { bottom: 20px; }
  .s-nav-pc { display: flex; }
  .blatt { left: 50%; right: auto; width: 460px; bottom: 50%; transform: translate(-50%, 60%) scale(.96); opacity: 0; border-radius: 20px; transition: transform .26s var(--feder), opacity .18s; }
  .blatt.an { transform: translate(-50%, 50%); opacity: 1; }
  .blatt-griff { display: none; }
  .suche { inset: 9vh auto auto 50%; transform: translateX(-50%); width: 620px; max-height: 76vh; border-radius: 18px; box-shadow: var(--schatten-hoch), 0 0 0 100vmax rgba(35,35,40,.28); }
  .aktion kbd { display: inline; }
  body.breit-mitte .app { grid-template-columns: 1fr minmax(320px, 400px); }
}

/* ---------- PC ab 1100 px: drei Spalten ---------- */
@media (min-width: 1100px) {
  .app { grid-template-columns: 220px minmax(360px, 400px) 1fr; grid-template-rows: 1fr; }
  body.breit-mitte .app { grid-template-columns: 220px 1fr minmax(360px, 420px); }
  .leiste { grid-column: 1; grid-row: 1; height: auto; flex-direction: column; align-items: stretch; padding: 16px 10px; gap: 2px; border-bottom: 0; border-right: 1px solid var(--linie); background: var(--weiss); backdrop-filter: none; overflow-y: auto; }
  .leiste .l-marke { padding: 2px 10px 18px; margin: 0; }
  .leiste .l-marke img { height: 30px; width: auto; }
  .leiste .l-ziel { width: 100%; justify-content: flex-start; height: 36px; }
  .leiste .l-ziel .l-n { display: inline; margin-left: auto; font-family: var(--zahl); font-weight: 700; font-size: 13px; color: var(--ink-35); }
  .leiste .l-ziel kbd { display: none; }
  .leiste .l-titel { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-35); padding: 18px 12px 6px; }
  .leiste .l-extra { display: flex; }
  .leiste .l-extra .siegel { width: 14px; height: 14px; border-radius: 4px; }
  .mikro { margin: auto 0 0 0; width: 100%; height: 40px; border-radius: 12px; display: flex; gap: 8px; justify-content: center; font-weight: 600; font-size: 13px; }
  .spalte-liste { grid-row: 1; grid-column: 2; }
  .spalte-seite { grid-row: 1; grid-column: 3; }
  .ue-kopf { padding-top: 18px; }
  .s-leiste { padding-top: 12px; }
  .band { top: 56px; }
}
