/* find-a-date – Gestaltung. Hell/Dunkel über prefers-color-scheme oder data-theme. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F6F4; --surface: #FFFFFF; --sunken: #EEEEEB; --seg: #FFFFFF;
  --border: #E4E4E0; --strong: #C9C9C2; --switch-off: #8E8E96; --knob-off: #6B6B74;
  --text: #111113; --muted: #5A5A63;
  --primary: #111113; --on-primary: #FFFFFF;
  --accent: #4338CA; --on-accent: #FFFFFF; --accent-soft: #EEEEFF; --accent-text: #3730A3;
  --ok: #0D7240; --ok-soft: #E6F4EC;
  --bad: #B42318; --bad-soft: #FCEBE9; --on-bad: #FFFFFF;
  --warn: #8A5300; --warn-soft: #FFF3D6;
  --shadow: 0 1px 2px rgba(17,17,19,.05), 0 12px 32px -18px rgba(17,17,19,.18);
  --radius: 18px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090B; --surface: #131316; --sunken: #1C1C21; --seg: #2E2E36;
    --border: #26262C; --strong: #3B3B44; --switch-off: #4A4A54; --knob-off: #A6A6B2;
    --text: #F4F4F6; --muted: #A6A6B2;
    --primary: #F4F4F6; --on-primary: #09090B;
    --accent: #A5A0FF; --on-accent: #09090B; --accent-soft: rgba(165,160,255,.14); --accent-text: #C9C6FF;
    --ok: #4ADE80; --ok-soft: rgba(74,222,128,.12);
    --bad: #FF8E80; --bad-soft: rgba(255,142,128,.12); --on-bad: #09090B;
    --warn: #F7C754; --warn-soft: rgba(247,199,84,.12);
    --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 16px 40px -20px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090B; --surface: #131316; --sunken: #1C1C21; --seg: #2E2E36;
  --border: #26262C; --strong: #3B3B44; --switch-off: #4A4A54; --knob-off: #A6A6B2;
  --text: #F4F4F6; --muted: #A6A6B2;
  --primary: #F4F4F6; --on-primary: #09090B;
  --accent: #A5A0FF; --on-accent: #09090B; --accent-soft: rgba(165,160,255,.14); --accent-text: #C9C6FF;
  --ok: #4ADE80; --ok-soft: rgba(74,222,128,.12);
  --bad: #FF8E80; --bad-soft: rgba(255,142,128,.12); --on-bad: #09090B;
  --warn: #F7C754; --warn-soft: rgba(247,199,84,.12);
  --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 16px 40px -20px rgba(0,0,0,.9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent-text); }
h1, h2, h3, .h1, .h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1, .h1 { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; margin-top: 20px; }
.h3 { font-size: 18px; font-weight: 600; }
hr { border: 0; height: 1px; background: var(--border); margin: 0; }
code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--sunken); word-break: break-all; }
small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lg { font-size: 18px; }
.block { display: block; }
.strong { font-weight: 600; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* ---------------- Layout */

.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: none; position: sticky; top: 0; height: 100vh;
  padding: 24px 16px; background: var(--surface); border-right: 1px solid var(--border);
  display: none; flex-direction: column; gap: 4px;
}
body.logged-in .sidebar { display: flex; }
@media (min-width: 861px) { body.logged-in .layout { background: linear-gradient(to right, var(--surface) 247px, var(--border) 247px, var(--border) 248px, transparent 248px); } }
main { flex: 1; min-width: 0; padding: 40px clamp(16px, 4vw, 48px) 80px; }
main:focus { outline: none; }
.page { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.page.narrow { max-width: 860px; }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head p { margin: 0; max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.loading { padding: 64px 0; text-align: center; color: var(--muted); }

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 24px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.brand.big { padding: 0 0 8px; font-size: 20px; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; }
.logo .ic { stroke-width: 2.6; }
.nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500; text-decoration: none;
}
.nav-item:hover { background: var(--sunken); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--sunken); color: var(--text); font-weight: 600; }
.nav-item span:first-of-type { flex: 1; }
.nav-logout { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; margin-top: 8px; }
.nav-logout small { color: var(--muted); font-size: 12px; font-weight: 400; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.nav-foot { margin-top: auto; padding: 16px 12px 0; display: flex; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.nav-foot .ic { margin-top: 2px; }

.tabbar { display: none; }

@media (max-width: 860px) {
  body.logged-in .sidebar { display: none; }
  main { padding: 24px 16px calc(100px + env(safe-area-inset-bottom)); }
  body.logged-in .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border);
  }
  .tabbar button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; background: none; border: 0; cursor: pointer; }
  .tabbar a { position: relative; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--text); font-weight: 600; }
  .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  h1, .h1 { font-size: 28px; }
}

/* ---------------- Karten und Spalten */

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
@media (max-width: 560px) { .card { padding: 18px; border-radius: 16px; } }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 3 1 520px; gap: 24px; }
.col-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1100px) { .col-side { position: sticky; top: 24px; } }
.block { display: flex; flex-direction: column; gap: 12px; }
.card p, .block p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.grid4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .grid3 > .btn, .grid4 > .btn { grid-column: 1 / -1; }
  .grid4 > .field:first-child { grid-column: 1 / -1; }
}
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-between.wrap { flex-wrap: wrap; }
.row-between.top { align-items: flex-start; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.summary { margin: 0; font-size: 16px; line-height: 1.55; }
.empty { margin: 0; padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--strong); color: var(--muted); }

/* ---------------- Formularfelder */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  height: 48px; width: 100%; padding: 0 14px; border-radius: 12px; border: 1px solid var(--strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; min-width: 0;
}
input[type="date"], input[type="time"] { font-variant-numeric: tabular-nums; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px); background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: var(--muted); opacity: .8; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; height: 44px; }

/* ---------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .06s ease, opacity .15s ease, background-color .15s ease;
}
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn[disabled] { cursor: not-allowed; background: var(--sunken) !important; color: var(--muted) !important; border-color: var(--border) !important; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover:not([disabled]) { opacity: .88; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--strong); }
.btn.secondary:hover { border-color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--sunken); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: var(--on-bad); }
.btn.danger-outline { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger-solid { background: var(--bad); color: var(--on-bad); }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 16px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.icon-only { width: 44px; padding: 0; flex: none; }
.icon-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--sunken); color: var(--text); }
.link-btn { border: 0; background: transparent; color: var(--accent-text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px 4px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.tight { gap: 8px; }
.actions > label.btn { position: relative; }
@media (max-width: 560px) { .main-proposal .actions .btn { flex: 1 1 100%; } }

/* ---------------- Segmente, Chips, Schalter */

.seg { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--sunken); }
.seg button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 0 8px; line-height: 1.2; }
.seg button[aria-pressed="true"] { background: var(--seg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.small-gap { gap: 4px; margin-top: -4px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip.on.dark { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip.dashed { border-style: dashed; background: transparent; min-height: 36px; font-size: 13px; }
.chip .count { opacity: .75; font-variant-numeric: tabular-nums; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { height: 48px; border-radius: 12px; border: 1px solid var(--strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.day.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 400px) { .days { gap: 5px; } .day { height: 44px; border-radius: 10px; font-size: 14px; } }

.switch { flex: none; width: 48px; height: 28px; padding: 3px; border-radius: 999px; border: 1.5px solid var(--switch-off); background: transparent; cursor: pointer; display: flex; justify-content: flex-start; }
.switch span { width: 19px; height: 19px; border-radius: 999px; background: var(--knob-off); transition: transform .15s ease; }
.switch[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.switch[aria-checked="true"] span { background: var(--on-primary); transform: translateX(20px); }

/* ---------------- Hinweise */

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--sunken); color: var(--text); }
.alert > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.alert .ic { margin-top: 1px; }
.alert span { font-size: 14px; }
.alert strong { font-weight: 600; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--sunken); color: var(--text); }
.alert .btn { align-self: flex-start; margin-top: 6px; }
.alert a { color: inherit; font-weight: 600; }
.banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.banner span { flex: 1 1 260px; font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--sunken); color: var(--text); white-space: nowrap; }
.pill.st-gefunden, .pill.st-ok, .pill.st-festgelegt { background: var(--ok-soft); color: var(--ok); }
.pill.st-kein { background: var(--sunken); color: var(--muted); }
.pill.st-abgebrochen { background: var(--bad-soft); color: var(--bad); }
.pill.st-offen { background: var(--warn-soft); color: var(--warn); }
.pill.st-new { background: var(--accent); color: var(--on-accent); }
.pill.st-neutral { background: transparent; border: 1px solid var(--strong); }

/* ---------------- Teilnehmer, Listen */

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.people li:first-child { border-top: 0; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.grow strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow small { color: var(--muted); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 999px; background: var(--sunken); color: var(--text); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.avatar.sq { border-radius: 9px; width: 34px; height: 34px; }
.tag { flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sunken); color: var(--text); border: 1px solid transparent; font-family: inherit; min-height: 32px; cursor: default; }
button.tag { cursor: pointer; }
.tag.outline { background: transparent; color: var(--muted); border-color: var(--strong); }
.pstat { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pstat.ps-beantwortet { color: var(--ok); font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-row {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font: inherit; text-align: left; cursor: pointer; width: 100%;
}
.list-row:hover { border-color: var(--strong); }
.list-row.static { cursor: default; }
.list-row.strong { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.list.plain .list-row { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 10px 0; }
.list.plain .list-row:first-child { border-top: 0; }
.range-row { padding: 6px 0; border-bottom: 1px solid var(--border); }
.progress { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

details.more { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--accent-text); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; }
details.more > summary::before { content: '+'; font-size: 18px; width: 18px; text-align: center; }
details.more[open] > summary::before { content: '–'; }
details.more[open] > :not(summary) { margin-top: 12px; }

/* ---------------- Ergebnis */

.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-weight: 500; text-decoration: none; }
.hero { display: flex; align-items: center; gap: 16px; }
.hero-ic { width: 56px; height: 56px; flex: none; border-radius: 999px; background: var(--sunken); display: inline-flex; align-items: center; justify-content: center; }
.hero-ic.ok { background: var(--ok-soft); color: var(--ok); }
.hero .h1 { font-size: 28px; }
.main-proposal { border: 1.5px solid var(--text); padding: 32px; gap: 24px; }
@media (max-width: 560px) { .main-proposal { padding: 20px; } }
.big-date { font-size: 38px; line-height: 1.1; font-weight: 650; letter-spacing: -.035em; margin-top: 6px; }
@media (max-width: 560px) { .big-date { font-size: 26px; } .hero .h1 { font-size: 24px; } }
.alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.alt { padding: 20px; gap: 6px; box-shadow: none; }
.alt-date { font-size: 18px; letter-spacing: -.02em; }
.alt .actions { margin-top: 8px; gap: 8px; }

.answer { border: 1.5px solid var(--accent); }
.src-list { display: flex; flex-direction: column; }
.report { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.slots { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.slot { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.slot .slot-state { font-weight: 600; color: var(--bad); }
.slot.free .slot-state { color: var(--ok); }

/* ---------------- Anfragen */

.req { gap: 14px; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.notes li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--border); }
.notes li:first-child { border-top: 0; }
.notes li.unread { font-weight: 600; }
.notes a { color: var(--text); text-decoration: none; }
.notes small { color: var(--muted); font-weight: 400; }

/* ---------------- Einstellungen */

.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.set-row select { width: auto; min-width: 160px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tile { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tile strong { font-size: 14px; line-height: 1.25; white-space: normal; }
.tile small { font-size: 12px; }
.tile.on { border: 2px solid var(--text); padding: 9px 11px; }
.detail { padding: 18px; border-radius: 14px; background: var(--sunken); display: flex; flex-direction: column; gap: 12px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.detail details.more { border-color: var(--strong); }
.matrix { display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 8px; align-items: center; min-height: 52px; border-top: 1px solid var(--border); }
.mrow > span:not(:first-child) { display: flex; justify-content: center; }
.mrow.head { font-size: 13px; font-weight: 600; color: var(--muted); border-top: 0; min-height: 32px; }
.danger-zone { border: 1.5px solid var(--bad); box-shadow: none; }
.danger-zone h2 { color: var(--bad); }

/* ---------------- Anmeldung */

.auth { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.auth-card h1 { font-size: 28px; }
.row-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
.row-links a { font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }

/* ---------------- Dialog und Meldungen */

dialog { border: 0; border-radius: 20px; padding: 28px; max-width: min(480px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(9,9,11,.55); }
dialog h2 { font-size: 20px; }
dialog p { margin: 0; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
@media (max-width: 860px) { body.logged-in .toasts { bottom: calc(88px + env(safe-area-inset-bottom)); } }
.toast { background: var(--primary); color: var(--on-primary); padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); animation: tfin .2s ease; pointer-events: auto; }
.toast.bad { background: var(--bad); color: var(--on-bad); }
.toast.out { opacity: 0; transition: opacity .4s ease; }
@keyframes tfin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.page > p { margin: 0; }

/* Erlaubnis, Freunde */
.consent { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }
.consent .ic { margin-top: 1px; }
.consent strong { color: inherit; }
.block.tight, .stack.tight { gap: 6px; }
.friend-auto { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.friend-auto small { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .people li.wrap-row { flex-wrap: wrap; } .people li.wrap-row .grow { flex-basis: calc(100% - 60px); } }

/* Bestimmte Tage */
.date-rows { display: flex; flex-direction: column; gap: 10px; }
.date-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 40px; gap: 10px; align-items: end; }
.date-row .icon-btn { margin-bottom: 4px; }
.date-row .icon-btn[disabled] { opacity: .35; cursor: default; }
@media (max-width: 560px) { .date-row { grid-template-columns: 1fr 1fr 40px; padding-bottom: 10px; border-bottom: 1px solid var(--border); } .date-row > .field:first-child { grid-column: 1 / -1; } }

/* Anfragetext */
.invite-text { display: flex; flex-direction: column; gap: 8px; }
.invite-text p { margin: 0; }
.invite-text dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 14px; }
.invite-text dt { color: var(--muted); font-weight: 600; }
.invite-text dd { margin: 0; }
@media (max-width: 420px) { .invite-text dl { grid-template-columns: 1fr; gap: 0; } .invite-text dd { margin-bottom: 6px; } }

/* Schlüsselbegriffe */
.grid-kw { display: grid; grid-template-columns: 1fr 140px auto; gap: 12px; align-items: end; margin-top: 8px; }
.kw-act { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .grid-kw { grid-template-columns: 1fr 1fr; }
  .grid-kw > .field:first-child, .grid-kw > .btn { grid-column: 1 / -1; }
}
.kw-row > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kw-mode { border: 0; cursor: pointer; font-family: inherit; min-height: 32px; }
.kw-mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sprache */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lang-btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface, transparent); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.lang-btn span { font-size: 20px; line-height: 1; }
.lang-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-switch { display: flex; justify-content: center; margin-top: 12px; }
.lang-switch select { width: auto; min-width: 180px; }

/* Nutzername: Live-Prüfung */
.uname-hint ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.uname-hint li { display: flex; align-items: flex-start; gap: 6px; }
.uname-hint li .ic { flex: none; margin-top: 2px; }
.uname-hint li.ok { color: var(--ok); }
.uname-hint li.bad { color: var(--bad); font-weight: 500; }
.uname-preview { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--sunken); font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .02em; word-break: break-all; }
.uname-preview mark { background: var(--bad-soft); color: var(--bad); border-bottom: 2px solid var(--bad); border-radius: 3px; padding: 0 1px; font-weight: 700; }
input.invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-soft); }

/* Bester Wochentag */
.kind-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; }
.kind-note .ic { flex: none; margin-top: 3px; }
.wd-rank { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.wd-rank li { display: grid; grid-template-columns: 150px 1fr 110px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.wd-rank li:first-child { border-top: 0; }
.wd-rank .wd-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wd-rank .wd-bar { height: 12px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.wd-rank .wd-bar span { display: block; height: 100%; border-radius: 99px; background: var(--switch-off); }
.wd-rank li.best .wd-bar span { background: var(--ok); }
.wd-rank .wd-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.wd-rank .wd-val strong { color: var(--text); }
.wd-rank .wd-block { grid-column: 1 / -1; color: var(--muted); margin-top: -4px; }
@media (max-width: 560px) {
  .wd-rank li { grid-template-columns: 1fr auto; }
  .wd-rank .wd-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Auswahlleisten mit vielen Optionen: auf schmalen Bildschirmen in zwei Reihen */
.seg button { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 720px) {
  .seg[style*="--n:5"], .seg[style*="--n:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mehrfachauswahl (Gruppen-Mitglieder) */
fieldset.pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.pick legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
fieldset.pick small { display: flex; gap: 6px; align-items: flex-start; }
fieldset.pick small .ic { flex: none; margin-top: 2px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--strong); font-weight: 600; font-size: 14px; color: var(--text); }
.chip-check span .ic { display: none; }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-check input:checked + span .ic { display: inline; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Manuelle Auswahl */
.mpick { display: grid; gap: 14px; margin-top: 8px; }
.mp-count { display: grid; gap: 6px; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 8px 0; }
.mp-bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.mp-bar > span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.mp-filters { display: grid; gap: 10px; }
.mp-row { display: grid; gap: 6px; }
.mp-row.two { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mp-row .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.mp-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.mp-abs summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.mp-abs .grid3 { margin-top: 8px; }
.mp-list { max-height: 520px; }
.mp-week { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 10px 2px 4px; font-size: 14px; position: sticky; top: 0; background: var(--surface); z-index: 1; border-bottom: 1px solid var(--border); }
.mp-wk-act { display: flex; gap: 4px; }
.mp-wk-act .link-btn { min-height: 32px; padding: 4px 6px; font-size: 13px; }
.slot.pick { gap: 10px; }
.slot.pick .grow { flex: 1; text-align: left; }
.slot.pick .box { width: 22px; height: 22px; flex: none; border: 2px solid var(--border-strong, var(--muted)); border-radius: 6px; display: inline-grid; place-items: center; }
.slot.pick.free .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Schlüsselbegriffe testen */
.kw-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.kw-hit { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.kw-hit .pill { flex: none; }

/* Warum „kann nicht“? */
.slot-line { display: flex; gap: 6px; align-items: stretch; }
.slot-line > .slot { flex: 1; min-width: 0; }
.slot-why { flex: none; width: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--accent-text); display: grid; place-items: center; cursor: pointer; }
.slot-why:hover, .slot-why:focus-visible { border-color: var(--accent); background: var(--sunken); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 50vh; overflow-y: auto; }
.why-list li { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; border-left: 4px solid var(--bad); }

/* Freunde & Gruppen, Gruppenkalender, Zu-/Absagen */
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px; background: var(--sunken); }
.icon-btn.flip svg { transform: rotate(180deg); }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
.mc-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.mc-day { min-height: 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 2px; }
.mc-day.empty { border: 0; background: transparent; }
.mc-day:disabled { color: var(--muted); cursor: default; }
.mc-day.has { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; cursor: pointer; }
.mc-day.today { outline: 2px solid var(--text); outline-offset: -2px; }
.mc-day.sel { background: var(--accent); color: var(--on-accent); }
.mc-day i { font-style: normal; font-size: 10px; line-height: 1; letter-spacing: 1px; }
.list-row.muted-row strong { text-decoration: line-through; color: var(--muted); }
.event-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.event-form textarea, .stack textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--strong); border-radius: 12px; background: var(--surface); color: var(--text); resize: vertical; }
.rsvp-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.rsvp { min-height: 64px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.rsvp b { font-size: 20px; line-height: 1; }
.rsvp.yes.on { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.rsvp.maybe.on { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.rsvp.no.on { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.rsvp-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.join-card h1 { margin: 6px 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.meta-line a { color: var(--accent-text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.meta-line span { display: inline-flex; align-items: center; gap: 4px; }
.why { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.why strong { color: var(--text); }
.why.small { margin-top: 4px; font-size: 13px; }
.near .list-row { gap: 8px; }
.team-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.g-connect { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 8px 0 12px; background: var(--sunken); }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.pref-btns { display: flex; gap: 4px; flex: none; }
.pref { width: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 16px; cursor: pointer; filter: grayscale(1); opacity: .55; }
.pref.on { filter: none; opacity: 1; }
.pref.on.like { border-color: var(--ok); background: var(--ok-soft); }
.pref.on.dislike { border-color: var(--warn); background: var(--warn-soft); }
.steps.small li { font-size: 14px; }
@media (max-width: 520px) {
  .slot-line { gap: 4px; }
  .slot-line > .slot { padding: 0 10px; gap: 8px; }
  .pref { width: 34px; font-size: 14px; }
  .slot-why { width: 36px; }
  .mc-day { min-height: 40px; font-size: 13px; }
}

/* Startseite & Registrierung */
.auth-intro { margin: 4px 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font-size: 15px; line-height: 1.55; }
.spam-hint { margin: 12px 0; }
.spam-hint strong { font-size: 16px; }
.card.req.archived { opacity: .8; }
.arch-btn { margin-left: auto; }
.near-row { flex-direction: column; align-items: stretch !important; gap: 8px; }
.near-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.near-row .actions { flex-wrap: wrap; justify-content: flex-start; }

/* Mit Google anmelden */
.btn.google-btn { display: flex !important; flex-direction: row; min-height: 48px; align-items: center; justify-content: center; gap: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--strong); font-weight: 600; }
.google-btn:hover { border-color: var(--text); }
.google-note { margin: 6px 0 0; text-align: center; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Einstellungen: Registerkarten */
.set-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 4px; scrollbar-width: thin; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.set-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.set-tab.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.tab-intro { margin: 0 0 12px; }

/* Einführung */
.tour { max-width: 520px; }
.tour-head { display: flex; align-items: center; justify-content: space-between; }
.tour-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.tour-dots i.done { background: var(--accent-soft); outline: 1px solid var(--accent); }
.tour-dots i.on { background: var(--accent); width: 22px; border-radius: 4px; }
.tour h2 { margin: 6px 0 0; }
.tour p { line-height: 1.6; }
.tour-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tour-checks .link-btn { text-align: left; align-items: flex-start; font-weight: 500; color: var(--text); min-height: 0; padding: 6px 4px; }
.tour-checks .link-btn svg { flex: none; margin-top: 3px; color: var(--accent); }
.tour-actions { justify-content: space-between; flex-wrap: wrap; }
[hidden] { display: none !important; }

/* ---------------- Rechtliches: Fußzeile, Impressum, Datenschutz */
.legal-foot { margin: 48px auto 0; max-width: 1120px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); opacity: .8; }
.legal-foot a { color: inherit; text-decoration: none; }
.legal-foot a:hover, .legal-foot a:focus-visible { text-decoration: underline; opacity: 1; }
.legal { line-height: 1.6; font-size: 15px; overflow-wrap: anywhere; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 15px; margin: 18px 0 6px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal .table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.legal th { font-weight: 600; color: var(--muted); }
.legal td:first-child { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------------- Startseite (Anmelden/Registrieren) zweispaltig */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1180px; margin: 0 auto; min-height: calc(100vh - 140px); }
.auth-split > * { justify-self: stretch; }
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }
.hero > * { align-self: stretch; }
.hero-demo { align-self: flex-start; width: 100%; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero .brand.big { padding: 0; }
.hero-title { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.07; letter-spacing: -.035em; font-weight: 700; margin: 6px 0 0; max-width: 16ch; text-wrap: balance; }
.hero-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.hero-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.hero-feats li { display: flex; gap: 12px; align-items: flex-start; }
.hero-feats strong { display: block; font-size: 15px; font-weight: 600; }
.hero-feats small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.hf-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.hero-demo { margin-top: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; max-width: 520px; position: relative; }
.hero-demo::before { content: ''; position: absolute; inset: -18px -18px auto auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); z-index: -1; }
.hd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hd-title { font-weight: 650; font-size: 15px; }
.hd-avatars { display: flex; }
.hd-avatars i { font-style: normal; width: 26px; height: 26px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--surface); background: hsl(var(--h) 65% 88%); color: hsl(var(--h) 45% 28%); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.hd-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto; gap: 4px 12px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--sunken); font-size: 13.5px; }
.hd-row.best { background: var(--ok-soft); }
.hd-when { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.hd-bar b { display: block; height: 100%; background: var(--muted); border-radius: 3px; }
.hd-row.best .hd-bar b { background: var(--ok); }
.hd-n { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.hd-badge { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ok); }
.auth-card.prominent { max-width: none; padding: 28px 30px; gap: 16px; border-radius: 24px; box-shadow: 0 1px 2px rgba(17,17,19,.06), 0 30px 70px -30px rgba(17,17,19,.35); }
.auth-card.prominent h1 { font-size: 26px; }
.auth-card.prominent .stack { gap: 12px; }
.auth-card.prominent .btn.primary { min-height: 50px; font-size: 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sunken); }
.auth-tabs a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 650; font-size: 15px; color: var(--muted); text-decoration: none; }
.auth-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.auth-tabs a:not([aria-current]):hover { color: var(--text); }
.auth-split + .legal-foot { margin-top: 16px; }
@media (max-height: 820px) and (min-width: 861px) {
  .auth-split { min-height: calc(100vh - 110px); }
  .hero { gap: 14px; }
  .hero-demo .hd-row:nth-child(4) { display: none; }
  .auth-card.prominent { padding: 22px 26px; gap: 12px; }
  .auth-card.prominent small.muted { display: none; }
  .auth-card.prominent input:not([type="checkbox"]), .auth-card.prominent select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .hero { display: contents; }
  .hero .brand { order: 1; } .hero-title { order: 2; font-size: 30px; margin: 0; } .hero-lead { order: 3; font-size: 15.5px; }
  .auth-card.prominent { order: 4; }
  .hero-feats { order: 5; grid-template-columns: 1fr; margin: 8px 4px 0; }
  .hero-demo { display: none; }
  .reg-row { grid-template-columns: 1fr; }
  .auth-card.prominent { padding: 22px 20px; }
}
.terms-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; text-align: center; }

/* ---------------- Startseite: rechte Spalte kompakt (passt auch mit Google-Button auf eine Bildschirmseite) */
body:not(.logged-in) main:has(.auth-split) { padding-top: 24px; padding-bottom: 24px; }
.auth-split { min-height: calc(100vh - 100px); }
.auth-card.prominent { padding: 22px 26px; gap: 12px; }
.auth-card.prominent h1 { font-size: 22px; margin: 2px 0 0; }
.auth-card.prominent .auth-tabs a { min-height: 40px; }
.auth-card.prominent .stack { gap: 10px; }
.auth-card.prominent .field { gap: 4px; }
.auth-card.prominent input:not([type="checkbox"]), .auth-card.prominent select { height: 44px; min-height: 0; }
.auth-card.prominent .btn.primary, .auth-card.prominent .google-btn { min-height: 46px; }
.auth-card.prominent .google-note { display: none; }
.auth-card.prominent .or-line { margin: 2px 0; }
.auth-card.prominent .uname-hint ul { margin-top: 4px; gap: 2px; font-size: 12.5px; }
.auth-card.prominent .terms-note { font-size: 12px; margin: 0; }
.auth-foot { align-items: center; flex-wrap: nowrap; }
.auth-foot .lang-switch { margin: 0; }
.auth-foot .lang-switch select { min-width: 0; height: 36px; font-size: 14px; }
@media (max-height: 820px) and (min-width: 861px) {
  .auth-card.prominent h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .auth-card.prominent input:not([type="checkbox"]), .auth-card.prominent select { height: 40px; }
  .auth-card.prominent .btn.primary, .auth-card.prominent .google-btn { min-height: 42px; }
  .auth-card.prominent { padding: 18px 24px; gap: 10px; }
  .auth-split { min-height: calc(100vh - 84px); }
}
