/* Yung OS Hülle — App-Stil (claude/yung-os-designsystem.md) */
@font-face {
  font-family: Archivo;
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --bg: #1c1816; --bg-deep: #141110;
  --glass: rgba(52,45,41,.55); --glass2: rgba(70,61,56,.62); --innen: rgba(0,0,0,.16);
  --line: rgba(244,241,236,.08); --line2: rgba(244,241,236,.16);
  --fg: #f4f1ec; --mute: #aaa39b; --faint: #7a736c;
  --red: #cc2e1d; --red2: #e8462f;
  --ease: cubic-bezier(.22,.61,.36,1);
  --rail: 232px; --tab: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg-deep);
  background-image: radial-gradient(130% 90% at 50% -10%, #2a2320 0%, #1c1816 52%, #141110 100%);
  background-attachment: fixed;
  color: var(--fg); font: 400 14px/1.45 Archivo, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Lebender Hintergrund ---------- */
.licht { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.licht i { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.la { width: 72vmax; height: 72vmax; left: -22vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(204,46,29,.26) 0%, transparent 66%);
  animation: driftA 29s var(--ease) infinite alternate; }
.lb { width: 64vmax; height: 64vmax; right: -24vmax; bottom: -30vmax;
  background: radial-gradient(circle, rgba(226,118,72,.16) 0%, transparent 66%);
  animation: driftB 37s var(--ease) infinite alternate; }
.lc { width: 46vmax; height: 46vmax; left: 30%; top: 20%;
  background: radial-gradient(circle, rgba(204,46,29,.10) 0%, transparent 66%);
  animation: atmen 13s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate(16vmax, 12vmax) scale(1.14); } }
@keyframes driftB { to { transform: translate(-14vmax, -9vmax) scale(.9); } }
@keyframes atmen { to { opacity: .45; transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .licht i { animation: none; } * { transition: none !important; animation: none !important; } }

/* ---------- Gerüst ---------- */
.shell { display: flex; height: 100%; height: 100dvh; }
.haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.ansicht { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 48px; outline: none; }
.ansicht > .innen { max-width: 1000px; margin: 0 auto; animation: rise .32s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Rail (Mac) */
.rail { width: var(--rail); flex: none; padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(30,26,24,.55); border-right: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow-y: auto; }
.rail .logo { padding: 0 10px 18px; }
.logo { display: flex; align-items: baseline; gap: 9px; }
.logo-os { font-weight: 900; font-style: italic; font-stretch: 112%; font-size: 16px; letter-spacing: -.01em; transform: skewX(-8deg); display: inline-block; }
.rub { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.logo .rub { color: var(--red2); }
.nav-rub { margin: 16px 10px 6px; }
.nav-punkt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 11px; color: var(--mute);
  font-size: 13.5px; font-weight: 550; transition: background .2s var(--ease), color .2s var(--ease); min-height: 36px; }
.nav-punkt:hover { background: var(--glass); color: var(--fg); }
.nav-punkt[aria-current="page"] { background: var(--glass2); color: var(--fg); }
.nav-punkt .ik { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.nav-punkt .ik svg { width: 18px; height: 18px; }
.nav-punkt .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-punkt .zahl { font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: var(--fg); display: grid; place-items: center; }
.nav-punkt .aus { color: var(--faint); font-size: 12px; }
.nav-punkt .neu { width: 6px; height: 6px; border-radius: 50%; background: var(--red2); }
.rail .fuss { margin-top: auto; padding: 18px 10px 0; color: var(--faint); font-size: 11px; }

.kachel { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none;
  background: var(--innen); border: 1px solid var(--line2); font-size: 9px; font-weight: 800; letter-spacing: .02em; color: var(--fg); }
.kachel.gross { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.kachel.live { border-color: rgba(204,46,29,.45); }
.kachel.os { background: var(--red); border-color: var(--red); font-style: italic; font-weight: 900; }

/* Kopf (iPhone) */
.kopf { display: none; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 16px 10px; }
.ikon-knopf { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--mute); }
.ikon-knopf:hover { color: var(--fg); background: var(--glass); }
.ikon-knopf svg { width: 20px; height: 20px; }
.ikon-knopf .punkt { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 0 2px var(--bg); }

/* Tab-Leiste (iPhone) */
.tabbar { display: none; }

/* ---------- Bausteine ---------- */
.kopfzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kopfzeile h1 { margin: 6px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.kopfzeile .rub { color: var(--red2); }
.leise { color: var(--faint); font-size: 12px; }
.mute { color: var(--mute); }

.raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.sp-12 { grid-column: span 12; } .sp-8 { grid-column: span 8; } .sp-7 { grid-column: span 7; } .sp-5 { grid-column: span 5; } .sp-4 { grid-column: span 4; } .sp-6 { grid-column: span 6; }

.karte { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 16px;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); min-width: 0; }
.karte h2 { margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.karte h2 .mehr { letter-spacing: .04em; text-transform: none; font-size: 12px; font-weight: 550; color: var(--mute); }
.karte h2 .mehr:hover { color: var(--fg); }
.karte.rot { border-color: rgba(204,46,29,.5); box-shadow: inset 0 0 0 1px rgba(204,46,29,.18); }
.karte.rot h2 { color: var(--red2); }
.karte p { margin: 0; }
.karte .gross { font-size: 18px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 4px; }

.knopf { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: var(--fg); transition: background .2s var(--ease), border-color .2s; white-space: nowrap; }
.knopf:hover { background: var(--glass2); }
.knopf.voll { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.knopf.voll:hover { background: #fff; }
.knopf.klein { height: 28px; padding: 0 12px; font-size: 12px; }
.knopf svg { width: 14px; height: 14px; }
.knopf.gefahr.scharf { border-color: var(--red); color: var(--red2); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pille { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.pille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pille.fertig::before { background: var(--fg); }
.pille.rot { color: var(--red2); } .pille.rot::before { background: var(--red2); }

/* Tool-Kacheln */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tool { display: flex; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 16px; background: var(--innen);
  border: 1px solid var(--line); min-width: 0; transition: background .2s var(--ease), border-color .2s, transform .2s var(--ease); position: relative; text-align: left; width: 100%; }
.tool:hover { background: var(--glass2); border-color: var(--line2); }
.tool:active { transform: scale(.985); }
.tool .tx { min-width: 0; flex: 1; }
.tool .n { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.tool .z { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.tool .aus { color: var(--faint); }
.tool .aus svg { width: 13px; height: 13px; }
.tool .neu-marke { position: absolute; top: 8px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 0 2px #2a2421; }
.abschnitt { margin: 26px 0 10px; display: flex; align-items: baseline; gap: 12px; }
.abschnitt .leise { letter-spacing: 0; text-transform: none; }

/* Mitteilungen */
.liste { display: flex; flex-direction: column; gap: 8px; }
.mt { display: flex; gap: 11px; padding: 12px 13px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); position: relative; text-align: left; width: 100%; }
.karte .mt { background: var(--innen); backdrop-filter: none; -webkit-backdrop-filter: none; }
button.mt:hover { background: var(--glass2); }
.mt.ungelesen::after { content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red2); }
.mt .tx { flex: 1; min-width: 0; }
.mt .o { display: flex; justify-content: space-between; gap: 10px; }
.mt .n { font-weight: 650; font-size: 13.5px; }
.mt .t { color: var(--faint); font-size: 11px; white-space: nowrap; }
.mt .z { color: var(--mute); font-size: 12.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leer { color: var(--mute); padding: 6px 0 2px; }

/* Sperrzeit */
.sperr .gross { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sperr .tage { font-weight: 800; font-size: 26px; letter-spacing: -.02em; }

/* ---------- Tool-Fläche ---------- */
.toolflaeche { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-deep); }
.toolleiste { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line);
  background: rgba(30,26,24,.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); flex: none; }
.toolleiste .n { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolleiste .z { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolleiste .tx { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.toolleiste .ikon-knopf { width: 32px; height: 32px; }
.toolleiste .ikon-knopf svg { width: 17px; height: 17px; }
.rahmen { flex: 1; position: relative; min-height: 0; }
.rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
.rahmen .ladend { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.rahmen .hinweis { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--bg-deep); }
.rahmen .hinweis .karte { max-width: 420px; }

/* ---------- Banner, Toast, Sheet ---------- */
.banner { position: fixed; top: calc(12px + var(--safe-t)); left: 50%; width: min(420px, calc(100% - 24px)); z-index: 50;
  transform: translate(-50%, -140%); transition: transform .35s var(--ease); pointer-events: none; }
.banner.zeigen { transform: translate(-50%, 0); pointer-events: auto; }
.banner .mt { background: rgba(58,50,46,.78); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-color: var(--line2); border-radius: 20px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; z-index: 60;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: 13px; padding: 10px 16px; border-radius: 999px;
  transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { text-decoration: underline; font-weight: 700; }
.sheet-grund { position: fixed; inset: 0; z-index: 70; background: rgba(10,9,8,.55); display: grid; place-items: center; padding: 16px; }
.sheet { width: min(460px, 100%); background: rgba(44,38,35,.92); border: 1px solid var(--line2); border-radius: 20px; padding: 20px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); animation: rise .3s var(--ease); max-height: 90vh; overflow: auto; }
.sheet h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 750; }
.felder { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; background: var(--innen); padding: 12px 14px; border-radius: 16px; }
.felder dt { color: var(--faint); } .felder dd { margin: 0; overflow-wrap: anywhere; }
.noscript { padding: 40px; text-align: center; }


/* ---------- Startseite (Heute) ---------- */
.karte { position: relative; }
.hud::before { content: ""; position: absolute; inset: 7px; pointer-events: none; border-radius: 14px;
  background:
    linear-gradient(var(--line2), var(--line2)) left top / 10px 1px no-repeat,
    linear-gradient(var(--line2), var(--line2)) left top / 1px 10px no-repeat,
    linear-gradient(var(--line2), var(--line2)) right top / 10px 1px no-repeat,
    linear-gradient(var(--line2), var(--line2)) right top / 1px 10px no-repeat,
    linear-gradient(var(--line2), var(--line2)) left bottom / 10px 1px no-repeat,
    linear-gradient(var(--line2), var(--line2)) left bottom / 1px 10px no-repeat,
    linear-gradient(var(--line2), var(--line2)) right bottom / 10px 1px no-repeat,
    linear-gradient(var(--line2), var(--line2)) right bottom / 1px 10px no-repeat; }
.heute > .karte { margin-bottom: 14px; }
.hud-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chip { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 9px; }
.rub.rot, .rot { color: var(--red2); }
.session { padding: 20px 22px 16px; }
.session h1 { margin: 2px 0 16px; font-size: 30px; font-weight: 750; letter-spacing: -.02em; color: var(--mute); }
.session h1 em { font-style: italic; font-weight: 900; font-stretch: 108%; color: var(--fg); letter-spacing: -.025em; }
.session h1 .name { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; border-radius: 8px; }
.session h1 .name.leer { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--faint); border: 1px dashed var(--line2); padding: 4px 10px; border-radius: 999px; vertical-align: middle; }
.session h1 .name.leer:hover { color: var(--fg); border-color: rgba(244,241,236,.4); }
.name-feld { font: italic 900 30px Archivo, system-ui, sans-serif; font-stretch: 108%; color: var(--fg); background: var(--innen); border: 1px solid var(--line2); border-radius: 12px; padding: 0 10px; width: 9em; max-width: 60%; outline: none; }
@media (max-width: 760px) { .name-feld { font-size: 24px; } }
.erfassen { display: flex; gap: 8px; }
.erfassen input { flex: 1; min-width: 0; height: 42px; border-radius: 14px; border: 1px solid var(--line2); background: var(--innen); color: var(--fg);
  font: 400 14px Archivo, system-ui, sans-serif; padding: 0 14px; outline: none; transition: border-color .2s var(--ease); }
.erfassen input::placeholder { color: var(--faint); }
.erfassen input:focus { border-color: rgba(244,241,236,.4); }
.erfassen .knopf { height: 42px; }
.erkannt { margin: 9px 2px 0; color: var(--faint); font-size: 11.5px; min-height: 17px; }

.nexus-karte { padding: 14px 14px 14px; }
.nexus-karte .hud-kopf { padding: 4px 6px 4px; }
.nexus { position: relative; height: 500px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #1a1513 0%, #110e0d 60%, #0c0a09 100%); border: 1px solid var(--line); }
.nexus-canvas { display: block; touch-action: none; cursor: grab; }
.nexus-canvas:active { cursor: grabbing; }
.nx-balken { position: absolute; left: 28px; bottom: 28px; width: 230px; display: grid; gap: 6px; pointer-events: none; }
.bk { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 8px; }
.bk .l { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk .spur { height: 3px; border-radius: 3px; background: rgba(244,241,236,.1); overflow: hidden; }
.bk .spur i { display: block; height: 100%; width: 0; background: var(--fg); border-radius: 3px; transition: width .6s var(--ease); }
.bk .w { font-size: 10.5px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.nx-hilfe { position: absolute; right: 28px; bottom: 28px; pointer-events: none; letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }
.nx-fokus { position: absolute; right: 28px; top: 60px; width: 250px; padding: 14px 16px; border-radius: 16px; background: rgba(44,38,35,.82);
  border: 1px solid var(--line2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: rise .3s var(--ease); }
.fk-n { font-size: 18px; font-weight: 750; margin-top: 4px; }
.fk-w { color: var(--mute); margin-top: 2px; }
.nx-fokus dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0 0; font-size: 12.5px; }
.nx-fokus dt { color: var(--faint); } .nx-fokus dd { margin: 0; text-align: right; font-weight: 650; }
.nx-fokus .knopfreihe { margin-top: 12px; }

.spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spalte { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.spalte > .rub { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.spalte > .rub i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.spalte.hoch > .rub i { background: var(--red2); } .spalte.mittel > .rub i { background: var(--fg); }
.td { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; background: var(--innen); border: 1px solid var(--line);
  border-left: 2px solid var(--faint); transition: background .2s var(--ease); min-width: 0; }
.spalte.hoch .td { border-left-color: var(--red); } .spalte.mittel .td { border-left-color: rgba(244,241,236,.55); }
.td:hover { background: var(--glass2); }
.td .kachel { width: 20px; height: 20px; border-radius: 6px; font-size: 8px; margin-top: 1px; }
.td .tx { min-width: 0; display: flex; flex-direction: column; }
.td .n { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td .z { font-size: 11px; color: var(--faint); margin-top: 2px; }
.td.ueber .z { color: var(--red2); }
.leer-feld { margin: 0; padding: 12px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--faint); font-size: 12px; text-align: center; }

.woche { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wtag { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 12px; background: var(--innen); border: 1px solid var(--line); }
.wtag .wt { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.wtag .dz { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.wtag .pk { display: flex; gap: 3px; height: 5px; }
.wtag .pk i { width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.wtag.heute { border-color: rgba(244,241,236,.55); background: var(--glass2); }
.wtag.vorbei { opacity: .45; }
.abst { display: block; margin: 16px 0 8px; }
.termine { display: flex; flex-direction: column; gap: 6px; }
.tm { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--innen); border: 1px solid var(--line); transition: background .2s var(--ease); }
.tm:hover { background: var(--glass2); }
.tm .wann { font-size: 11px; color: var(--faint); display: flex; flex-direction: column; line-height: 1.25; }
.tm .wann b { color: var(--fg); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm .n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm .kachel { width: 20px; height: 20px; border-radius: 6px; font-size: 8px; }

.zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zahl-feld { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--innen); border: 1px solid var(--line); transition: background .2s var(--ease); min-width: 0; }
.zahl-feld:hover { background: var(--glass2); }
.zahl-feld .gr { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zahl-feld .z { font-size: 11.5px; color: var(--faint); }
.zahl-feld.rot .gr, .zahl-feld.rot .rub { color: var(--red2); }
.zahl-feld.leer { opacity: .5; }

.live-zeile { display: flex; align-items: center; gap: 18px; }
.live-zeile .sperr-text { flex: 1; min-width: 0; }
.live-zeile .sperr-text p { margin: 4px 0 0; }
.live-zeile .sperr-text b { color: var(--fg); }
.live-zeile .tools { width: 440px; flex: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 760px) {
  .session { padding: 16px 16px 12px; }
  .session h1 { font-size: 24px; }
  .erfassen .knopf { padding: 0 13px; }
  .nexus { height: 430px; }
  .nx-balken { left: 22px; bottom: 22px; width: 230px; }
  .bk { grid-template-columns: 96px 1fr 34px; }
  .nx-hilfe { display: none; }
  .nx-fokus { left: 22px; right: 22px; top: auto; bottom: 22px; width: auto; }
  .spalten { grid-template-columns: 1fr; }
  .live-zeile { flex-direction: column; align-items: stretch; }
  .live-zeile .tools { width: auto; }
}

/* ---------- iPhone ---------- */
@media (max-width: 760px) {
  .rail { display: none; }
  .kopf { display: flex; }
  .ansicht { padding: 6px 16px calc(var(--tab) + var(--safe-b) + 28px); }
  .kopfzeile h1 { font-size: 26px; }
  .sp-8, .sp-7, .sp-5, .sp-4, .sp-6 { grid-column: span 12; }
  .tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .tool { padding: 10px; gap: 9px; }
  .toolflaeche { bottom: calc(var(--tab) + var(--safe-b)); }
  body.tool-offen .kopf { display: none; }
  .toolleiste { padding-top: var(--safe-t); height: calc(46px + var(--safe-t)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab) + var(--safe-b));
    padding: 6px 8px var(--safe-b); background: rgba(28,24,22,.82); border-top: 1px solid var(--line);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); font-size: 10.5px; font-weight: 600; padding-top: 4px; position: relative; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--fg); }
  .tabbar .punkt { position: absolute; top: 2px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 0 2px var(--bg); }
}
