/* Schriften liegen lokal – keine Verbindung zu Google */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/oswald-latin-700-normal.woff2') format('woff2'); }
:root {
  --bg: #050909;
  --panel: rgba(16,24,26,.84);
  --panel2: #1b2325;
  --line: #263235;
  --text: #f2efe8;
  --mute: #9c99a3;
  --dim: #66646d;
  --accent: #ff6a1a;
  --accent-ink: #1a0b02;
  --ok: #60bf00;
  --warn: #ffb020;
  --bad: #ff3b3b;
  --r: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --head: 'Oswald', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, sans-serif; }
body { min-height: 100vh; overscroll-behavior-y: none; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #020607 url('/bg.webp') center / cover no-repeat; }
.logo { width: 30px; height: auto; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.logo-big { width: 120px; display: block; margin: 0 0 18px; filter: drop-shadow(0 8px 30px rgba(30,180,150,.25)); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.boot { font-family: var(--head); font-size: 44px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100vh; letter-spacing: .5px; }
.boot img { width: 110px; }
.boot span, .dot { color: var(--accent); }

/* Layout */
.wrap { max-width: 760px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(96px + var(--safe-b)); }
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.topbar h1 { font-family: var(--head); font-weight: 700; font-size: 26px; margin: 0; text-transform: lowercase; letter-spacing: .3px; flex: 1; }
.net { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--panel2); color: var(--mute); white-space: nowrap; }
.net.off { background: #3a1f10; color: var(--warn); }
h2 { font-family: var(--head); font-weight: 600; font-size: 19px; text-transform: lowercase; margin: 26px 0 10px; letter-spacing: .3px; }
h2 small { font-family: Inter; font-size: 13px; color: var(--mute); text-transform: none; font-weight: 500; margin-left: 6px; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* Bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(14,14,16,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: var(--safe-b); z-index: 20; }
.nav-in { display: flex; width: 100%; max-width: 760px; }
.nav button { flex: 1; background: none; border: 0; padding: 10px 4px 9px; color: var(--dim); font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.nav button svg { width: 23px; height: 23px; }
.nav button.on { color: var(--text); }
.nav button.on svg { color: var(--accent); }
.nav .badge { position: absolute; top: 5px; left: calc(50% + 6px); background: var(--bad); color: #fff; font-size: 10px; border-radius: 99px; padding: 1px 5px; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.card + .card { margin-top: 10px; }
.hero { padding: 18px; position: relative; overflow: hidden; }
.hero .count { font-family: var(--head); font-weight: 700; font-size: 58px; line-height: 1; }
.hero .count span { font-size: 22px; color: var(--mute); font-weight: 500; margin-left: 6px; }
.hero .sub { color: var(--mute); margin-top: 4px; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(40,200,170,.22), transparent 70%); }

/* Progress */
.bar { height: 10px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar.big { height: 14px; }
.bar.done > i { background: var(--ok); }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 7px; }
.prog-head b { font-family: var(--head); font-size: 22px; font-weight: 600; }
.area-row { display: block; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--accent)); border-radius: 10px; padding: 9px 12px; margin-bottom: 5px; }
.area-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.area-row .top em { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 6px; }
.area-row .top span { color: var(--mute); font-weight: 500; font-size: 13px; white-space: nowrap; }
.area-row .bar { height: 5px; }
.area-row .bar > i { background: var(--c, var(--accent)); }
.area-row .flags { font-size: 12px; color: var(--mute); margin-top: 6px; display: flex; gap: 12px; }

/* Red zone */
.redzone { border-color: #5a1d1d; background: linear-gradient(180deg, #2a1213, var(--panel)); }
.redzone h3 { margin: 0 0 8px; font-family: var(--head); font-size: 17px; text-transform: lowercase; color: #ff7b7b; font-weight: 600; }
.rz-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.rz-item:first-of-type { border-top: 0; }
.rz-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 14px; background: rgba(255,59,59,.15); color: var(--bad); }
.rz-ico.w { background: rgba(255,176,32,.14); color: var(--warn); }
.rz-ico.a { background: rgba(255,106,26,.14); color: var(--accent); }
.cta { background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; width: 100%; border: 0; text-align: left; margin-top: 12px; }
.cta small { display: block; font-weight: 500; opacity: .8; }
.cta svg { width: 22px; height: 22px; flex: none; }
.sheet h3.name { text-transform: none; }

/* Tasks */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 10px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--mute); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.tag { padding: 3px 9px; font-size: 12px; font-weight: 500; }
.chip.tag.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.search { font-size: 16px; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 10px; outline: none; }
.search:focus { border-color: var(--accent); }
.group-h { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; font-family: var(--head); font-size: 16px; text-transform: lowercase; font-weight: 600; }
.group-h i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.group-h span { font-family: Inter; color: var(--mute); font-size: 12px; font-weight: 500; }
.task { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 6px; }
.task.done { opacity: .55; }
.task.done .t-title { text-decoration: line-through; text-decoration-color: var(--dim); }
.task.problem { border-color: #6a2424; }
.check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--dim); background: none; flex: none; display: grid; place-items: center; padding: 0; transition: transform .15s; }
.check:active { transform: scale(.88); }
.check svg { width: 16px; height: 16px; opacity: 0; }
.check.on { background: var(--ok); border-color: var(--ok); color: #0c1a00; }
.check.on svg { opacity: 1; }
.check.doing { border-color: var(--accent); border-style: dashed; }
.check.locked { border-color: var(--line); color: var(--dim); }
.check.locked svg { opacity: 1; width: 14px; }
.t-body { flex: 1; min-width: 0; }
.t-title { font-weight: 600; }
.t-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--mute); margin-top: 4px; align-items: center; }
.t-meta .late { color: var(--bad); font-weight: 600; }
.t-meta .soon { color: var(--warn); }
.t-meta .wait { color: var(--dim); }
.t-meta .prob { color: var(--bad); font-weight: 600; }
.t-meta .free { color: var(--accent); font-weight: 600; }
.avs { display: inline-flex; }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: #111; border: 2px solid var(--panel); margin-left: -6px; }
.av:first-child { margin-left: 0; }
.av.lg { width: 38px; height: 38px; font-size: 14px; border: 0; margin: 0; }
.take { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 13px; flex: none; align-self: center; }
.take.p { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.empty { text-align: center; color: var(--mute); padding: 40px 20px; }
.empty b { display: block; font-family: var(--head); font-size: 20px; color: var(--text); text-transform: lowercase; margin-bottom: 4px; }

/* FAB */
.fab { position: fixed; right: max(16px, calc(50% - 364px)); bottom: calc(76px + var(--safe-b)); width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); border: 0; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(255,106,26,.35); z-index: 15; }
.fab svg { width: 26px; height: 26px; }
.fab.red { background: var(--bad); color: #fff; box-shadow: 0 8px 24px rgba(255,59,59,.35); width: auto; padding: 0 18px; gap: 8px; display: flex; align-items: center; font-weight: 700; }

/* Feed */
.feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .when { color: var(--dim); font-size: 12px; white-space: nowrap; }
.feed-item .undo { background: none; border: 1px solid var(--line); color: var(--mute); border-radius: 8px; font-size: 12px; padding: 3px 8px; }

/* Team */
.person { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 6px; width: 100%; text-align: left; }
.person.off { opacity: .5; }
.role { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); font-weight: 700; }

/* Sheet */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--panel); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; z-index: 41; padding: 8px 18px calc(24px + var(--safe-b)); animation: up .25s cubic-bezier(.2,.8,.2,1); max-width: 760px; margin: 0 auto; }
.sheet .grip { width: 40px; height: 5px; background: var(--line); border-radius: 9px; margin: 2px auto 12px; }
.sheet h3 { font-family: var(--head); font-size: 22px; margin: 0 0 4px; font-weight: 600; text-transform: lowercase; }
.sheet .area-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--c); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .5px; margin: 18px 0 6px; }
.inp, select.inp, textarea.inp { font-size: 16px; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none; }
.inp:focus { border-color: var(--accent); }
textarea.inp { min-height: 80px; resize: vertical; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; background: none; border: 0; padding: 10px 6px; border-radius: 9px; font-weight: 600; color: var(--mute); }
.seg button.on { background: var(--panel2); color: var(--text); }
.seg button.on.ok { background: var(--ok); color: #0c1a00; }
.seg button.on.ac { background: var(--accent); color: var(--accent-ink); }
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.btn.p { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ok { background: var(--ok); color: #0c1a00; border-color: var(--ok); }
.btn.bad { background: transparent; color: var(--bad); border-color: #5a2020; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .4; }
.btns { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.btns .btn { flex: 1; }
.dep { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 5px; font-size: 14px; width: 100%; text-align: left; }
.dep .st { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dim); flex: none; display: grid; place-items: center; font-size: 10px; }
.dep .st.ok { background: var(--ok); border-color: var(--ok); color: #0c1a00; }
.dep .x { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 18px; padding: 0 4px; }
.pick { max-height: 50vh; overflow-y: auto; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.pick-item .bx { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--dim); flex: none; display: grid; place-items: center; }
.pick-item.on .bx { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick-item .match { font-size: 11px; color: var(--ok); font-weight: 600; }
.photo-prev { max-width: 100%; border-radius: 10px; margin-top: 8px; display: block; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; width: 100%; text-align: left; }
.toggle .sw { width: 44px; height: 26px; background: var(--line); border-radius: 99px; position: relative; flex: none; transition: background .2s; }
.toggle .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle.on .sw { background: var(--bad); }
.toggle.on .sw::after { transform: translateX(18px); }
.link-box { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; font-size: 13px; word-break: break-all; color: var(--mute); }
.hist { font-size: 13px; color: var(--mute); }
.hist div { padding: 4px 0; }

/* Toast */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(84px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); border-radius: 12px; padding: 11px 14px; font-weight: 600; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: auto; animation: up .2s; max-width: calc(100vw - 32px); }
.toast button { background: none; border: 0; color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 13px; padding: 0; }
.toast.err { background: var(--bad); color: #fff; }

/* Swipe */
.swipe { position: fixed; inset: 0; background: var(--bg); z-index: 50; display: flex; flex-direction: column; padding: calc(12px + var(--safe-t)) 16px calc(16px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.swipe-top { display: flex; align-items: center; gap: 10px; }
.swipe-top .x { background: var(--panel2); border: 0; width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.swipe-stack { flex: 1; position: relative; margin: 16px 0; }
.scard { position: absolute; inset: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; touch-action: none; user-select: none; will-change: transform; overflow: hidden; }
.scard.back { transform: scale(.95) translateY(14px); opacity: .5; }
.scard .band { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.scard .area-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--c); margin-top: 4px; }
.scard h2 { font-size: 30px; line-height: 1.12; margin: 12px 0 10px; text-transform: none; font-weight: 600; }
.scard .notes { color: var(--mute); font-size: 15px; }
.scard .facts { margin-top: auto; display: grid; gap: 8px; font-size: 14px; }
.scard .facts div { display: flex; gap: 8px; color: var(--mute); }
.scard .facts b { color: var(--text); font-weight: 600; }
.stamp { position: absolute; top: 30px; font-family: var(--head); font-weight: 700; font-size: 30px; padding: 4px 14px; border: 4px solid; border-radius: 10px; opacity: 0; text-transform: uppercase; }
.stamp.yes { left: 22px; color: var(--ok); transform: rotate(-12deg); }
.stamp.no { right: 22px; color: var(--bad); transform: rotate(12deg); }
.swipe-btns { display: flex; justify-content: center; gap: 18px; align-items: center; }
.sbtn { width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.sbtn svg { width: 28px; height: 28px; }
.sbtn.no { color: var(--bad); border-color: #5a2020; }
.sbtn.yes { color: var(--ok); border-color: #2c5200; }
.sbtn.sm { width: 48px; height: 48px; color: var(--mute); }
.sbtn.sm svg { width: 20px; height: 20px; }
.swipe-area { text-align: center; font-size: 13px; margin-top: 12px; }
.swipe-area button { background: none; border: 0; color: var(--mute); text-decoration: underline; font-size: 13px; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; padding: calc(30px + var(--safe-t)) 26px calc(24px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.intro .slide { flex: 1; display: flex; flex-direction: column; justify-content: center; animation: up .3s; }
.intro .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.intro h1 { font-family: var(--head); font-size: 40px; line-height: 1.05; margin: 10px 0 16px; text-transform: lowercase; font-weight: 700; }
.intro p { color: #cfccd4; font-size: 17px; margin: 0 0 12px; }
.intro .demo { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 14px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0; }
.dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line); transition: all .2s; }
.dots i.on { background: var(--accent); width: 22px; }

/* Setup / Login */
.center { max-width: 420px; margin: 0 auto; padding: calc(60px + var(--safe-t)) 22px 40px; }
.center h1 { font-family: var(--head); font-size: 44px; text-transform: lowercase; margin: 0 0 8px; }

@media (min-width: 700px) {
  .sheet { border-radius: 20px; bottom: 20px; border: 1px solid var(--line); }
}

/* Einklappbare Gruppen */
.grp { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 10px 12px; margin: 0 0 5px; text-align: left; }
.grp .nm { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; }
.grp .ct { font-size: 12px; color: var(--mute); white-space: nowrap; }
.grp .chev { color: var(--dim); transition: transform .2s; font-size: 12px; }
.grp.open .chev { transform: rotate(90deg); }
.grp-body { margin: 0 0 12px 6px; }
.t-meta .wait { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task { padding: 10px 12px; }
.more-link { display: block; width: 100%; background: none; border: 0; color: var(--mute); font-size: 13px; padding: 10px 0 4px; text-align: center; }
.rz-sum { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.rz-sum span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255,59,59,.14); color: #ff8a8a; }

.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.areas-grid .area-row { margin: 0; display: flex; flex-direction: column; justify-content: space-between; min-height: 58px; }
.areas-grid .area-row .top { font-size: 13px; line-height: 1.25; }
.areas-grid .area-row .top > span:first-child { font-size: 13px !important; }
@media (min-width: 640px) { .areas-grid { grid-template-columns: 1fr 1fr 1fr; } }
.areas-grid > * { min-width: 0; }
.areas-grid .area-row .top > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.areas-grid .area-row .top > span:first-child { white-space: normal; }

/* Runde 3 */
html.locked, html.locked body { overflow: hidden; }
.sheet { overscroll-behavior: contain; padding-bottom: 0; }
.sheet-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--panel2); color: var(--mute); font-size: 16px; z-index: 2; }
.sheet h3, .sheet .area-tag { padding-right: 44px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 8px; margin: 14px -18px 0; padding: 12px 18px calc(12px + var(--safe-b)); background: linear-gradient(180deg, rgba(17,23,24,0), #11171a 30%); }
.sheet-foot .btn:first-child { flex: 1; }
.sheet { background: #11171a; }
.line { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 34px; }
.line .ll { width: 72px; flex: none; font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .4px; }
.chipline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; flex: 1; }
.chip.sel { background: var(--panel2); color: var(--text); padding: 5px 6px 5px 10px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.chip.sel b { color: var(--dim); font-size: 16px; line-height: 1; padding: 0 4px; cursor: pointer; }
.chip.okc { color: var(--ok); }
.chip.add { border-style: dashed; color: var(--accent); background: transparent; padding: 5px 12px; }
.seg.mini { flex: 1; padding: 2px; }
.seg.mini button { padding: 6px 4px; font-size: 13px; }
.hist-d { margin-top: 14px; font-size: 13px; color: var(--mute); }
.hist-d summary { cursor: pointer; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.who { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.who span { color: var(--mute); font-weight: 500; }
.topbar h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin { display: inline-flex; gap: 6px; }
.pin span { width: 42px; height: 42px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; }
.pin-slots { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.pin-slots span { width: 50px; height: 50px; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 26px; }
.pin-slots span.on { border-style: solid; border-color: var(--accent); }
.pin-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pin-pad button { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 26px; }
.pin-pad button:active { transform: scale(.92); background: var(--panel2); }
.demo-b { font-size: 10px; font-weight: 700; text-transform: uppercase; background: #4a3d0d; color: #ffd43b; padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
.demo-banner { display: block; width: 100%; margin-top: 10px; background: #2e2708; border: 1px solid #5a4a10; color: #ffd43b; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; text-align: left; }
/* Zeitstrahl */
.tl { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
.tl-col { flex: 0 0 168px; scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; align-self: flex-start; }
.tl-col.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tl-col.past { opacity: .75; }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tl-head b { font-family: var(--head); font-size: 17px; font-weight: 600; text-transform: lowercase; }
.tl-head span { font-size: 11px; color: var(--mute); }
.tl-load { height: 46px; background: var(--bg); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 8px; }
.tl-load i { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; background: rgba(255,106,26,.55); border-radius: 6px 6px 0 0; }
.tl-load em { display: block; width: 100%; background: var(--ok); }
.tl-card { display: block; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 8px; padding: 6px 8px; margin-bottom: 5px; }
.tl-card.done { opacity: .5; }
.tl-card.late { border-color: #6a2424; border-left-color: var(--c); }
.tl-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.tl-m { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-m i { color: var(--accent); font-style: normal; }

/* Runde 4 */
input[type="date"], .inp, select { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85); opacity: .9; }
.ver { font-size: 10px; color: var(--dim); font-weight: 600; letter-spacing: .3px; align-self: flex-start; margin-top: 4px; margin-left: -4px; }
.dates { display: flex; gap: 8px; margin-top: 8px; }
.dt { flex: 1; display: block; min-width: 0; }
.dt span { display: block; font-size: 11px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 4px 2px; }
.dt input { min-height: 44px; }
.viewas { display: block; width: calc(100% + 32px); margin: calc(-14px - var(--safe-t)) -16px 12px; padding: calc(10px + var(--safe-t)) 16px 10px; background: #3b2a5c; color: #e5dbff; border: 0; font-size: 13px; text-align: left; }
.topbar { position: relative; }
.ver { position: absolute; top: -11px; right: 6px; margin: 0; font-size: 9.5px; }

.seg.wrap { flex-wrap: wrap; }
.seg.wrap button { flex: 1 0 30%; }

/* Einstellungen als Blöcke */
.group { background: rgba(22,34,36,.72); border: 1px solid #2c3d40; border-radius: 16px; padding: 14px; margin-top: 14px; }
.group > h3 { font-family: var(--head); font-weight: 600; font-size: 17px; text-transform: lowercase; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.group > h3 small { font-family: Inter; font-size: 12px; color: var(--mute); text-transform: none; font-weight: 500; }
.group .card { background: rgba(5,12,13,.55); }
.group .btns:first-child, .group > .btns { margin-top: 10px; }
.group .btn.full + .btn.full { margin-top: 8px; }
.cl-item { padding: 10px 0; border-top: 1px solid var(--line); }
.cl-item:first-of-type { border-top: 0; padding-top: 0; }
.cl-item b { font-family: var(--head); font-weight: 600; font-size: 15px; }
.cl-item .d { color: var(--dim); font-size: 12px; margin-left: 6px; }
.cl-item ul { margin: 6px 0 0; padding-left: 18px; color: #cfccd4; font-size: 14px; }
.cl-item li { margin: 2px 0; }
.newdot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.new-pill { font-size: 10px; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 2px 7px; border-radius: 99px; text-transform: uppercase; }
.seg button { white-space: nowrap; }
body { background: transparent; }

.intro .slide { overflow-y: auto; justify-content: flex-start; padding-top: 6vh; }
.steps { margin: 6px 0 8px; padding-left: 22px; color: #dcd9e0; font-size: 15px; }
.steps li { margin: 7px 0; }
.steps .ico { display: inline-block; background: var(--panel2); border-radius: 6px; padding: 0 6px; }
.plat { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); }
.intro .demo p { font-size: 14px; color: var(--mute); margin: 8px 0 0; }

/* v0.9 */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filters .chip span { opacity: .6; font-weight: 500; margin-left: 2px; }
.chip.all { border: 2px solid var(--accent); color: var(--text); padding: 5px 14px; }
.chip.all.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bfield { display: block; margin-top: 10px; }
.bfield > span { display: block; font-size: 12px; font-weight: 600; color: var(--mute); margin: 0 0 4px 2px; }
.bfield textarea { min-height: 44px; resize: none; overflow: hidden; }
.bfield.empty textarea { border-color: #6b5410; background: rgba(80,62,10,.18); }
.bsec-e { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.bsec-e > b { font-family: var(--head); font-size: 16px; text-transform: lowercase; font-weight: 600; }
.idea { background: rgba(5,12,13,.55); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.idea.st-gut { border-color: #2c5200; }
.idea.st-nein, .idea.st-umgesetzt { opacity: .6; }
.idea .it { font-weight: 600; font-size: 14px; }
.idea .ic { font-size: 13px; color: #cfccd4; margin-top: 4px; font-style: italic; }
.idea .im { font-size: 12px; color: var(--mute); margin-top: 4px; }
.idea .ib { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.idea .ib button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; color: var(--mute); }
.idea .ib button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.idea .ib button { padding: 4px 8px; }
.idea .im a { color: var(--dim); }

.test-b { font-size: 10px; font-weight: 700; background: #1f3a14; color: #a9e34b; padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
.test-banner { margin: calc(-14px - var(--safe-t)) -16px 12px; padding: calc(9px + var(--safe-t)) 16px 9px; background: #1f3a14; color: #d8f5a2; font-size: 13px; }

/* v0.11 Festivaltage */
.pres { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 12px 0 0; }
.pres.free { border-color: #1f6e5c; }
.pres.busy { border-color: #6b3a16; }
.pres.pause { border-color: #4b3d80; }
.pres.away { border-color: #2c5a2a; }
.pres-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pres-btns button { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; font-size: 12.5px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.help-card { background: linear-gradient(180deg, rgba(232,116,59,.12), var(--panel)); border: 1px solid #6b3a16; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.help-card.full { background: var(--panel); border-color: var(--line); }
.hc-t { font-weight: 700; font-size: 16px; }
.hc-m { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.hc-s { font-size: 13px; margin-top: 8px; display: flex; align-items: center; gap: 8px; color: #cfccd4; }
.slots { display: inline-flex; gap: 4px; }
.slots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #8a5a3a; }
.slots i.on { background: #1fae8c; border-color: #1fae8c; }
.hc-b { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hc-b .btn { padding: 9px 14px; }
.need-opt { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--bg); border: 2px solid #1f6e5c; border-radius: 16px; padding: 16px; margin-top: 12px; }
.need-opt.bad { border-color: #6a2424; }
.need-opt .ni { font-size: 32px; }
.need-opt b { font-size: 17px; }
.ring-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.ring-card svg { flex: none; }
.ring-n { font-family: var(--head); font-size: 30px; font-weight: 700; fill: var(--text); }
.ring-l { font-size: 11px; fill: var(--mute); }
.ring-leg { flex: 1; min-width: 0; font-size: 14px; }
.ring-leg > div { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.ring-leg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ring-leg b { font-weight: 700; }

/* v0.12 */
.sheet.center { top: 50%; bottom: auto; left: 14px; right: 14px; transform: translateY(-50%); border-radius: 20px; border: 1px solid var(--line); padding-bottom: 18px; animation: fade .2s; max-height: 86vh; }
.sheet.center .grip { display: none; }
.check.dis { opacity: .28; cursor: default; }
.check.dis:active { transform: none; }
.task.stack { position: relative; margin-bottom: 12px; box-shadow: 0 4px 0 -1px #141b1d, 0 4px 0 0 var(--line), 0 8px 0 -1px #10161a, 0 8px 0 0 #222c2f; }
.t-meta .next { color: var(--accent); font-weight: 600; }
.contact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 6px; cursor: pointer; }
.c-act { display: flex; gap: 6px; }
.cbtn { width: 38px; height: 38px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; font-size: 17px; flex: none; }

.area-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.area-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.area-stats b { display: block; font-family: var(--head); font-size: 24px; }
.area-stats span { font-size: 12px; color: var(--mute); }
.privacy-gate .toggle.on .sw { background: var(--ok); }
