/* zugbindungfrei – Stylesheet
   Schriftskala 13 / 15 / 17 / 22 / 28 px, Raster 4 px, Tap-Ziele ≥ 44 px.
   Systemschriften (keine externen Fonts, keine Übermittlung an Dritte). */

:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #edf2f0;
  --text: #0f1a19;
  --muted: #55625e;
  --line: #dbe3e0;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --on-accent: #ffffff;
  --ok: #0f766e;
  --warn: #a15c07;
  --bad: #b42318;
  --info: #1d4ed8;
  --neutral: #5b6670;
  --shadow: 0 1px 2px rgba(15, 26, 25, .05), 0 1px 1px rgba(15, 26, 25, .03);
  --shadow-lg: 0 8px 24px rgba(15, 26, 25, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1413;
    --surface: #151d1c;
    --surface-2: #1d2826;
    --text: #e6eeec;
    --muted: #9cada9;
    --line: #28352f;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --on-accent: #04201d;
    --ok: #2dd4bf;
    --warn: #fbbf24;
    --bad: #f87171;
    --info: #93c5fd;
    --neutral: #a6b3b0;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.2; }
.num, .countdown, .kv-value { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.dot { color: var(--muted); margin: 0 6px; }
.ic { flex: none; display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top-inner { max-width: 720px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; min-height: 44px; }
.wordmark { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.wordmark b, .login-h b { font-weight: 750; color: var(--accent); }
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 10px; }
.nav-desktop a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav-desktop a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-desktop .btn { margin-left: 8px; }
.logout { margin: 0; }

/* ---------- Layout ---------- */
main { max-width: 720px; margin: 0 auto; padding: 20px 16px 8px; }
section { margin-bottom: 28px; }
.page-h { font-size: 28px; font-weight: 700; margin: 4px 0 16px; }
.section-h { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.section-h .count { background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: 12px; letter-spacing: 0; }
.section-note { color: var(--muted); font-size: 15px; margin: -4px 0 12px; }
.foot { max-width: 720px; margin: 0 auto; padding: 8px 16px calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
.foot { column-gap: 16px; row-gap: 4px; }
.foot-out { padding-bottom: 40px; }
.nav-icon { display: inline-grid !important; place-items: center; width: 44px; height: 44px; padding: 0 !important; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 15px; min-height: 44px; margin: -8px 0 0 -4px; padding-right: 8px; }
.back:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--text) 8%); }
.btn-ghost-danger { background: transparent; color: var(--bad); }
.btn-ghost-danger:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn-danger:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }

/* ---------- Status-Pillen ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; --c: var(--neutral); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pill-ok { --c: var(--ok); }
.pill-warn { --c: var(--warn); }
.pill-bad { --c: var(--bad); }
.pill-info { --c: var(--info); }
.pill-neutral { --c: var(--neutral); }

/* ---------- Hero & Leerzustand ---------- */
.hero { margin: 8px 0 20px; }
.hero-figure { font-size: 28px; font-weight: 700; margin: 0; }
.hero-figure .num { color: var(--accent); }
.hero-sub { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.hero-sub .num { color: var(--text); font-weight: 650; }
.empty-hero { padding: 16px 0 8px; }
.empty-hero h1 { font-size: 28px; font-weight: 750; margin: 8px 0 12px; max-width: 18ch; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; max-width: 56ch; }
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); font-size: 15px; color: var(--muted); }
.steps strong { color: var(--text); font-size: 16px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; font-size: 14px; }
.empty { text-align: center; padding: 32px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Streckenprüfung ---------- */
.routecheck { margin-bottom: 28px; display: grid; gap: 10px; }
.rc-box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rc-row { display: flex; align-items: center; min-height: 56px; padding: 0 60px 0 16px; cursor: text; }
.rc-row + .rc-row { border-top: 1px solid var(--line); }
.rc-label { flex: none; width: 48px; font-size: 14px; font-weight: 600; color: var(--muted); }
.rc-row input { border: 0; background: transparent; min-height: 54px; padding: 0; border-radius: 0; font-size: 17px; font-weight: 500; }
.rc-row input:focus { box-shadow: none; }
.rc-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.rc-swap { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.rc-swap:hover { color: var(--accent); border-color: var(--accent); }
.rc-box-form { box-shadow: none; background: var(--bg); }
.rc-box-form .rc-swap { background: var(--surface); }
.swap { width: 44px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.swap:hover { color: var(--text); }

/* ---------- Antwortbox ---------- */
.answer { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; --c: var(--neutral); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.answer strong { display: block; font-size: 17px; }
.answer span { color: var(--muted); font-size: 15px; }
.answer-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--surface) !important; }
.answer-ok { --c: var(--ok); }
.answer > div { flex: 1; min-width: 0; }
.answer-btn { margin-top: 12px; min-height: 48px; }
.answer .answer-btn, .answer .answer-btn span { color: var(--on-accent); }
.answer .btn-secondary, .answer .btn-secondary span { color: var(--text); }
.answer-no { --c: var(--neutral); }

/* ---------- Ticketkarte ---------- */
.cards { display: grid; gap: 10px; }
.card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
  color: inherit; text-decoration: none; min-height: 72px;
  transition: border-color .15s, transform .05s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card:active { transform: scale(.995); }
.card-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.route { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 650; min-width: 0; }
.route span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route .ic { color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.meta-warn { color: var(--warn); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.card-side { flex: none; text-align: right; }
.countdown { font-size: 14px; color: var(--muted); white-space: nowrap; }
.countdown strong { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.ton-warn .countdown strong { color: var(--warn); }
.countdown-muted strong { font-size: 17px; }
.countdown-sub { font-size: 13px; color: var(--muted); }
.cards-dim .card { box-shadow: none; background: transparent; }
.cards-dim .route { color: var(--muted); font-weight: 600; }

/* ---------- Detail ---------- */
.detail-head { margin-bottom: 16px; }
.detail-route { font-size: 22px; font-weight: 700; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.detail-route .ic { color: var(--muted); }
.detail-meta { margin: 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; column-gap: 6px; }
.detail-meta + .detail-meta { margin-top: 2px; }
.detail-meta > span { white-space: nowrap; }
.detail-meta > span:not(:last-child)::after { content: "·"; margin-left: 6px; }
.nowrap { white-space: nowrap; }
.status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 8px; justify-items: start; margin-bottom: 16px; --c: var(--neutral); border-top: 4px solid var(--c); }
.status.ton-ok { --c: var(--ok); }
.status.ton-warn { --c: var(--warn); }
.status.ton-bad { --c: var(--bad); }
.status.ton-info { --c: var(--info); }
.status-line { margin: 4px 0 0; font-size: 17px; }
.status-line strong { font-weight: 700; }
.status-sub { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.status .btn { margin-top: 6px; }
.callout { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; --c: var(--info); background: color-mix(in srgb, var(--c) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.callout-warn { --c: var(--warn); }
.callout-info { --c: var(--info); }
.callout-head { display: flex; align-items: center; gap: 8px; color: var(--c); }
.callout-head strong { color: var(--text); font-size: 16px; }
.callout p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.upload-inline { margin-top: 12px; display: grid; gap: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kv > div { display: grid; gap: 2px; min-width: 0; }
.kv-value { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.note { margin: 4px 0 0; white-space: pre-wrap; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.list-row { display: flex; gap: 14px; align-items: center; padding: 12px 8px 12px 12px; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.thumb { width: 72px; height: 96px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.thumb-link { flex: none; border-radius: 10px; }
.thumb-empty { flex: none; border-style: dashed; }
.danger-zone { display: flex; justify-content: center; margin-top: 24px; }

/* Aufklapper */
.disclosure { padding: 0; }
.disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 600; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.disclosure[open] > summary::after { transform: rotate(-135deg); }
.disclosure-primary { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.disclosure-primary > summary { color: var(--accent); }
.disclosure-primary:not([open]) > summary { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: calc(var(--radius) - 1px); }
.disclosure > .form { padding: 0 16px 16px; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label { font-size: 14px; font-weight: 600; color: var(--text); }
legend.label { margin-bottom: 6px; padding: 0; }
.hint { font-size: 13px; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--text);
  width: 100%; min-height: 48px; padding: 11px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 72px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input[aria-invalid="true"] { border-color: var(--bad); }
.error { color: var(--bad); margin: -6px 0 0; font-size: 14px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.input-affix { position: relative; display: block; }
.input-affix input { padding-right: 48px; }
.affix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.more { border-top: 1px solid var(--line); padding-top: 4px; }
.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; list-style: none; flex-wrap: wrap; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.more[open] > summary::before { content: "–"; }
.more > summary .muted { font-weight: 400; font-size: 14px; }
.more-body { display: grid; gap: 16px; padding-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 500; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.min-field { display: none; }
.stoerung-form:has(input[name="art"][value="verspaetung"]:checked) .min-field { display: grid; }
.file-btn { cursor: pointer; justify-self: start; position: relative; }
.file-preview { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.file-preview[hidden] { display: none; }
.file-preview img { width: 48px; height: 64px; object-fit: cover; object-position: top; border-radius: 6px; }
.file-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Navigation mobil ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.fab {
  position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 31;
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-lg);
}
.fab:active { transform: scale(.96); }

@media (min-width: 760px) {
  .nav-desktop { display: flex; }
  .tabbar, .fab { display: none; }
  .foot { padding-bottom: 40px; }
  .page-h, .hero-figure, .empty-hero h1 { font-size: 32px; }
  .routecheck { grid-template-columns: 1fr auto; align-items: stretch; }
  .rc-submit { width: auto; min-height: 0; padding: 0 24px; }
}
@media (max-width: 420px) {
  .field-route { grid-template-columns: 1fr; }
  .swap { justify-self: end; height: 36px; margin: -6px 0; }
  .countdown strong { font-size: 22px; }
}

/* ---------- Spezialansichten ---------- */
.login-mode .tabbar, .login-mode .fab, .login-mode .nav-desktop, .login-mode .top { display: none; }
.login { max-width: 380px; margin: 8vh auto 0; text-align: center; display: grid; justify-items: center; gap: 8px; }
.login-h { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin: 8px 0 0; }
.login .panel { width: 100%; text-align: left; margin-top: 16px; }
.proof-mode .top, .proof-mode .tabbar, .proof-mode .fab, .proof-mode .foot { display: none; }
.proof-mode { background: #fff; color: #0f1a19; }
.proof-mode main { max-width: 100%; padding: 0; }
.proof { min-height: 100vh; display: flex; flex-direction: column; }
.proof-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: #fff; border-bottom: 1px solid #e3e8e6; }
.proof-bar .icon-btn { color: #0f1a19; }
.proof-title { display: grid; font-size: 15px; }
.proof-title span { color: #55625e; font-size: 13px; }
.proof-stage { flex: 1; display: grid; gap: 16px; padding: 16px; justify-items: center; }
.proof-stage img { width: auto; height: calc(100vh - 170px); max-width: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 0 0 1px #e3e8e6; }
.proof-tip { font-size: 13px; }
.proof-foot { text-align: center; color: #55625e; font-size: 14px; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); margin: 0; }

/* ---------- Fließtext (Info) ---------- */
.prose h2 { font-size: 17px; margin: 24px 0 6px; }
.prose p { margin: 0 0 12px; color: var(--text); max-width: 62ch; }
.prose .muted { color: var(--muted); }

/* ---------- Konto, Anmeldung, Admin ---------- */
.auth-mode .tabbar, .auth-mode .fab { display: none; }
.auth { max-width: 400px; margin: 4vh auto 0; }
.auth-head { display: grid; justify-items: center; text-align: center; gap: 6px; margin-bottom: 20px; }
.auth-head .muted { margin: 0; }
.auth-h { font-size: 24px; font-weight: 700; margin: 10px 0 0; }
.auth .panel { margin-bottom: 12px; }
.auth-alt { text-align: center; font-size: 15px; margin: 16px 0 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--accent); }
input.readonly, input[readonly] { background: var(--surface-2); color: var(--muted); }
.msg { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px 20px; display: grid; justify-items: center; gap: 8px; --c: var(--info); }
.msg-ok { --c: var(--ok); }
.msg-warn { --c: var(--warn); }
.msg p { color: var(--muted); margin: 0 0 8px; }
.msg-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.row-link { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; min-height: 64px; }
.row-link > span { flex: 1; display: grid; }
.row-link > .ic:first-child { color: var(--accent); }
.row-link > .ic:last-child { color: var(--muted); }
.disclosure-danger > summary { color: var(--bad); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 85%, #000); }
.admin-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; min-width: 0; }
.user-row { padding-right: 4px; }
.menu { position: relative; flex: none; }
.menu > summary { list-style: none; font-size: 20px; font-weight: 700; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: 46px; z-index: 10; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.menu-body form { margin: 0; }
.menu-body button { width: 100%; text-align: left; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.menu-body button:hover { background: var(--surface-2); }
.menu-body button.danger { color: var(--bad); }
.link-copy { display: flex; gap: 8px; align-items: center; margin-top: 6px; min-width: 0; }
.link-copy code { flex: 1; font-size: 12px; background: var(--surface-2); padding: 6px 8px; border-radius: 6px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
@media (max-width: 420px) { .invite-row { grid-template-columns: 1fr; } }
.auth-mode .top-inner > .btn { display: none; }

.detail-head { position: relative; }
.detail-edit { float: right; margin: 0 0 8px 12px; }
.foot-version { flex-basis: 100%; text-align: center; font-variant-numeric: tabular-nums; opacity: .8; }
