/* Dabei · Prototyp. Flyer-/Collage-Optik, mobile-first.
   Aufbau der Farben: Palette (Rohwerte) → semantische Rollen → Bausteine.
   Bausteine greifen nur auf die semantischen Rollen zu. */

@font-face {
  font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("fonts/montserrat.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("fonts/dm-sans.woff2") format("woff2");
}

:root {
  /* ---- Palette ---- */
  --paper-0: #FFFFFF;
  --paper-1: #F5F1E9;
  --paper-2: #EBE5D9;
  --ink-900: #15120F;
  --ink-600: #4F4942;
  --ink-500: #655E55;
  --coral-500: #FF5A36;
  --coral-700: #B23312;
  --green-700: #0B6E44;
  --amber-800: #7A4E00;
  --red-700: #AD241C;
  --blue-700: #1D46B0;

  /* ---- Semantische Rollen ---- */
  --color-bg: var(--paper-1);
  --color-surface: var(--paper-0);
  --color-surface-sunken: var(--paper-2);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-600);
  --color-text-subtle: var(--ink-500);
  --color-border: rgba(21, 18, 15, .14);
  --color-border-strong: rgba(21, 18, 15, .32);
  --color-inverse: var(--ink-900);
  --color-on-inverse: var(--paper-1);

  --color-action: var(--coral-500);
  --color-on-action: var(--ink-900);
  --color-action-text: var(--coral-700);

  --color-success: var(--green-700);
  --color-success-bg: #DDF1E6;
  --color-warning: var(--amber-800);
  --color-rating: #D98E04;
  --color-warning-bg: #FBECC8;
  --color-danger: var(--red-700);
  --color-danger-bg: #FBE1DE;
  --color-info: var(--blue-700);
  --color-info-bg: #E1E9FB;

  --color-skeleton: rgba(21, 18, 15, .09);
  --color-skeleton-shine: rgba(255, 255, 255, .7);
  --color-scrim: rgba(21, 18, 15, .5);
  --color-focus: var(--blue-700);

  --shadow-raised: 0 1px 2px rgba(21, 18, 15, .12), 0 4px 12px rgba(21, 18, 15, .1);
  --shadow-sheet: 0 -1px 0 rgba(21, 18, 15, .08), 0 -12px 32px rgba(21, 18, 15, .16);

  /* ---- Abstände (4er-Raster) ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;

  /* ---- Form & Schrift ---- */
  --r-sheet: 20px;
  --r-card: 14px;
  --r-ctl: 12px;
  --r-pill: 999px;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  /* Schmale Schrift für Zahlen und kleine Etiketten (Räder, Karte, Sticker) */
  --font-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --tabbar: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-total: calc(var(--tabbar) + var(--safe-b));
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121110;
    --color-surface: #1D1B18;
    --color-surface-sunken: #2A2723;
    --color-text: #F5F1E9;
    --color-text-muted: #C4BCB0;
    --color-text-subtle: #A59D92;
    --color-border: rgba(245, 241, 233, .14);
    --color-border-strong: rgba(245, 241, 233, .34);
    --color-inverse: #F5F1E9;
    --color-on-inverse: #15120F;

    --color-action-text: #FF8D70;

    --color-success: #6FD8A3;
    --color-success-bg: #16301F;
    --color-warning: #F3C557;
    --color-rating: #F3C557;
    --color-warning-bg: #33280F;
    --color-danger: #FF9085;
    --color-danger-bg: #3A1B18;
    --color-info: #9DB8FF;
    --color-info-bg: #1A2440;

    --color-skeleton: rgba(245, 241, 233, .1);
    --color-skeleton-shine: rgba(245, 241, 233, .1);
    --color-scrim: rgba(0, 0, 0, .64);
    --color-focus: #9DB8FF;

    --shadow-raised: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .4);
    --shadow-sheet: 0 -1px 0 rgba(245, 241, 233, .08), 0 -12px 32px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; margin: 0; }
/* Die App füllt genau den Bildschirm. Das Dokument selbst rollt nie, sonst
   verrutscht auf dem Handy alles, sobald die Tastatur auf- und zugeht. */
.is-app, .is-app body { overflow: hidden; }
body {
  font: 100%/1.45 var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
.ic { flex: none; display: block; }
.stk-defs { position: absolute; }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Bühne / App-Rahmen ---------- */
.stage { height: 100dvh; display: grid; place-items: center; }
.app {
  position: relative; width: 100%; height: 100dvh;
  /* clip statt hidden: Sheets liegen verschoben unterhalb des Rahmens. Mit hidden
     könnte der Browser den Rahmen dorthin rollen (Fokus, Tastatur), mit clip nicht. */
  overflow: hidden; overflow: clip;
  background: var(--color-bg); isolation: isolate;
}
@media (min-width: 640px) {
  body { background: var(--color-surface-sunken); }
  .app {
    width: 412px; height: min(880px, calc(100dvh - 40px));
    border-radius: 36px;
    box-shadow: 0 0 0 10px var(--ink-900), 0 24px 64px rgba(21, 18, 15, .3);
  }
}

/* ---------- Sticker ---------- */
.stk { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 0 rgba(21, 18, 15, .22)) drop-shadow(0 6px 8px rgba(21, 18, 15, .16)); }
.stk-pos { position: absolute; transform: rotate(var(--r, 0deg)); }
.tape {
  position: absolute; transform: rotate(var(--r, 0deg));
  padding: var(--s-1) var(--s-2);
  font: 700 .875rem/1 var(--font-cond); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: var(--color-inverse); color: var(--color-on-inverse);
}

/* ---------- Karte ---------- */
.map-holder { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
#map { width: 100%; height: 100%; background: var(--color-surface-sunken); }
.maplibregl-map { font: inherit; }
.maplibregl-canvas:focus { outline: 0; }
/* Pins: Element sitzt mit der linken oberen Ecke auf dem Punkt, der Pin selbst verschiebt sich (translate) */
.maplibregl-marker { width: 0; height: 0; }
.maplibregl-marker .pin { position: absolute; }
.pin-wrap { background: none; border: 0; }

.pin {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -100%);
  display: grid; justify-items: center; gap: var(--s-1);
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.pin-dot {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c); color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 0 rgba(21, 18, 15, .25), 0 4px 8px rgba(21, 18, 15, .22);
}
.pin-label {
  padding: var(--s-1) var(--s-2);
  font: 700 .8125rem/1 var(--font-cond); letter-spacing: .03em; white-space: nowrap;
  background: var(--color-inverse); color: var(--color-on-inverse);
}
.pin.is-soon .pin-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--c); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
.pin-cluster .pin-dot {
  width: 48px; height: 48px; color: var(--ink-900);
  background: radial-gradient(circle, #fff 0 16px, transparent 16.5px), var(--ring);
}
.pin-cluster .pin-dot b { font: 800 1.125rem/1 var(--font-cond); font-variant-numeric: tabular-nums; }
.pin.is-joined .pin-dot { border-color: var(--ink-900); }
.pin.is-active { transform: translate(-50%, -100%) scale(1.16); z-index: 5; }
.pin.is-active .pin-label { background: var(--color-action); color: var(--color-on-action); }
@keyframes pulse {
  0% { transform: scale(.8); opacity: .7; }
  70%, 100% { transform: scale(1.3); opacity: 0; }
}

.me-dot {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-700); border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(29, 70, 176, .25);
}

/* ---------- Kopf & Filter ---------- */
.top {
  position: absolute; z-index: 10; left: 0; right: 0; top: 0;
  padding: calc(var(--safe-t) + var(--s-3)) 0 var(--s-5);
  background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 30%, transparent 100%);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top-row { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-4); }
.brand { display: flex; align-items: center; gap: var(--s-2); }
.brand-mark { flex: none; width: 38px; margin: -8px -4px -8px -6px; transform: rotate(-8deg); }
.brand-name { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.city {
  display: flex; align-items: center; gap: var(--s-1);
  font: 700 .75rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted);
}

.when, .cats {
  display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-1) var(--s-4);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.when::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
.when { margin-top: var(--s-3); }
.cats { margin-top: var(--s-1); }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: var(--s-2);
  height: 36px; padding: 0 var(--s-3); border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; white-space: nowrap;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  transition: transform 100ms ease-out;
}
.chip:active { transform: scale(.96); }
.chip .n { font-weight: 600; color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--color-inverse); color: var(--color-on-inverse); border-color: var(--color-inverse); }
.chip[aria-selected="true"] .n { color: inherit; opacity: .7; }
.chip-cat { padding-left: var(--s-2); }
.chip-cat .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }

/* ---------- Bausteine ---------- */
.fab {
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-raised);
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--color-text);
  transition: transform 100ms ease-out;
}
.icon-btn:active { transform: scale(.93); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-ctl);
  font: 700 .9375rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase;
  transition: transform 100ms ease-out;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--color-action); color: var(--color-on-action); }
.btn-dark { background: var(--color-inverse); color: var(--color-on-inverse); }
.btn-soft { background: var(--color-surface-sunken); color: var(--color-text); }
.btn-outline { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border-strong); }
.btn-joined { background: var(--color-success-bg); color: var(--color-success); }
.btn-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-square { padding: 0 var(--s-4); }
.btn-sm { min-height: 40px; padding: 0 var(--s-3); font-size: .8125rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--color-border-strong); margin: 0 auto; }

.avatars { display: inline-flex; }
.av {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .6875rem; font-weight: 700; color: #fff; background: var(--a, #777);
  border: 2px solid var(--color-surface);
}
.avatars .av + .av { margin-left: -8px; }
.av-me { background: var(--color-inverse); color: var(--color-on-inverse); }
.av-rest { background: var(--color-surface-sunken); color: var(--color-text-muted); }
.av-lg { width: 44px; height: 44px; font-size: 1rem; border-width: 0; }

.tag {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-1) var(--s-2); border-radius: 4px;
  font-size: .75rem; font-weight: 700;
  background: var(--color-surface-sunken); color: var(--color-text-muted);
}
.tag-success { background: var(--color-success-bg); color: var(--color-success); }
.tag-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.tag-danger { background: var(--color-danger-bg); color: var(--color-danger); }

.facts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.facts li {
  padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 600; color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
}

/* ---------- Skeleton ---------- */
.sk {
  display: block; position: relative; overflow: hidden;
  border-radius: 4px; background: var(--color-skeleton);
}
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--color-skeleton-shine), transparent);
  animation: sk 1.3s ease-in-out infinite;
}
.sk + .sk { margin-top: var(--s-2); }
.sk-dot { width: 32px; height: 32px; border-radius: 50%; }
.sk-chip { flex: none; width: 104px; height: 36px; border-radius: var(--r-pill); }
.sk-chip + .sk-chip { margin-top: 0; }
.sk-btn { height: 52px; border-radius: var(--r-ctl); }
.sk-pad { padding: var(--s-5) var(--s-4); }
@keyframes sk { to { transform: translateX(100%); } }

/* ---------- Listen-Sheet ---------- */
.sheet-area { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(var(--safe-t) + 64px);
  background: var(--color-surface);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
  pointer-events: auto; will-change: transform;
}
.sheet-float {
  position: absolute; left: 0; right: 0; bottom: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 var(--s-3) var(--s-3); pointer-events: none;
  transition: opacity 140ms ease;
}
.sheet.is-full .sheet-float { opacity: 0; }
.sheet-float > * { pointer-events: auto; }
/* Quellenangabe der Karte: erst sichtbar, klappt dann zum (i) ein */
.attribution {
  display: flex; align-items: center; gap: var(--s-1); height: 28px; padding-right: var(--s-2);
  border-radius: var(--r-pill); background: var(--color-surface); border: 1px solid var(--color-border-strong);
  font-size: .75rem; color: var(--color-text-muted);
}
.attribution a { color: var(--color-text); text-decoration: none; }
.attribution.is-collapsed { padding-right: 0; }
.attribution.is-collapsed #attrText { display: none; }
.attr-i {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%;
  font: 700 .875rem/1 Georgia, "Times New Roman", serif; color: var(--color-text);
}
.attr-i::before { content: ""; position: absolute; inset: -9px; }

.sheet-head { padding: var(--s-2) var(--s-5) var(--s-3); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.sheet-head:active { cursor: grabbing; }
.sheet-title { margin-top: var(--s-3); }
.sheet-title h2 { font: 800 1.1875rem/1.1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.sheet-title p { margin-top: var(--s-1); font-size: .875rem; color: var(--color-text-muted); }
.sheet-title p:empty { display: none; }

.sheet-scroll {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--s-3) calc(var(--tabbar-total) + var(--s-5));
  touch-action: none;
}
.sheet.is-full .sheet-scroll { touch-action: pan-y; }

.day-head {
  padding: var(--s-4) var(--s-2) var(--s-1);
  font: 700 .6875rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-subtle);
}
.day-head:first-child { padding-top: var(--s-1); }

.ev {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s-3); align-items: start;
  padding: var(--s-3) var(--s-2); border-radius: var(--r-ctl);
}
.ev + .ev::before { content: ""; position: absolute; left: var(--s-2); right: var(--s-2); top: 0; height: 1px; background: var(--color-border); }
button.ev:active { background: var(--color-surface-sunken); }
.ev-time b { display: block; font: 800 1.0625rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ev-time span { display: block; margin-top: var(--s-1); font-size: .75rem; font-weight: 600; color: var(--color-text-subtle); }
.ev-title { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.ev-place { display: block; margin-top: var(--s-1); font-size: .8125rem; color: var(--color-text-muted); }
.ev-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); }
.ev-cat { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.ev-thumb { flex: none; width: 48px; height: 48px; border-radius: var(--r-ctl); overflow: hidden; background: var(--color-surface-sunken); }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row .ev-cat, .row .ev-thumb { flex: none; }

.empty { padding: var(--s-4) var(--s-4) var(--s-3); text-align: center; }
.empty .stk { width: 96px; margin: 0 auto var(--s-3); transform: rotate(-6deg); }
.empty h3 + .btn { margin-top: var(--s-4); }
.empty h3 { font-size: 1.0625rem; font-weight: 700; text-wrap: balance; }
.empty p { margin: var(--s-2) auto var(--s-4); max-width: 30ch; font-size: .875rem; color: var(--color-text-muted); }

/* ---------- Treffpunkt wählen ---------- */
.pick { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.pick-cross { position: absolute; left: 50%; top: 50%; }
.pick-pin {
  position: absolute; left: -16px; top: -44px; width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--color-action); border: 3px solid #fff; box-shadow: 0 4px 8px rgba(21, 18, 15, .35);
}
.pick-shadow { position: absolute; left: -4px; top: -2px; width: 8px; height: 4px; border-radius: 50%; background: rgba(21, 18, 15, .4); }
.pick-bar {
  position: absolute; left: var(--s-3); right: var(--s-3); bottom: calc(var(--safe-b) + var(--s-4));
  padding: var(--s-4); border-radius: var(--r-card);
  background: var(--color-surface); border: 1px solid var(--color-border-strong); box-shadow: var(--shadow-raised); pointer-events: auto;
}
.pick-bar p { font-size: .9375rem; font-weight: 600; text-align: center; }
.pick-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s-2); margin-top: var(--s-4); }

.app.picking .top,
.app.picking .sheet-area,
.app.picking .tabbar { display: none; }

/* ---------- Seiten ---------- */
.page {
  position: absolute; inset: 0; z-index: 25;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--safe-t) + var(--s-6)) var(--s-4) calc(var(--tabbar-total) + var(--s-8));
  background: var(--color-bg);
}
.app:not(.tab-map) .top,
.app:not(.tab-map) .sheet-area { display: none; }
.page .back { display: inline-flex; align-items: center; gap: var(--s-1); margin-bottom: var(--s-2); font: 700 .6875rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.page .back .ic { transform: rotate(180deg); }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: 0 var(--s-1) var(--s-5); }
.page-head h1 { font: 800 2rem/.95 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.page-head p { margin-top: var(--s-3); font-size: .9375rem; color: var(--color-text-muted); max-width: 32ch; }
.page-head .stk { flex: none; width: 88px; margin-top: calc(var(--s-2) * -1); transform: rotate(9deg); }

.card { background: var(--color-surface); border-radius: var(--r-card); border: 1px solid var(--color-border); }
.section-title { padding: var(--s-6) var(--s-1) var(--s-2); font: 700 .6875rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-subtle); }

/* Clubs */
.club { margin-bottom: var(--s-4); }
.club-top { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4) var(--s-4) 0; }
.club-top .stk { flex: none; width: 76px; transform: rotate(-7deg); }
.club h2 { font: 800 1.1875rem/1.05 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.club-claim { margin-top: var(--s-1); font-size: .875rem; color: var(--color-text-muted); }
.club-desc { padding: var(--s-3) var(--s-4) 0; font-size: .9375rem; color: var(--color-text-muted); }
.club .facts { padding: var(--s-3) var(--s-4) 0; }
.club-stats { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-4) var(--s-4) 0; font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); }
.club-next { margin: var(--s-4) var(--s-4) 0; border-top: 1px solid var(--color-border); }
.row {
  width: 100%; display: flex; align-items: center; gap: var(--s-3); text-align: left;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--color-border);
}
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: .9375rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span { font-size: .8125rem; color: var(--color-text-muted); }
.row > .ic { color: var(--color-text-subtle); }
.club-actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-2); padding: var(--s-4); }

.how { padding: var(--s-4); }
.how h3 { font: 800 1rem/1.1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.how ol { margin-top: var(--s-4); counter-reset: s; display: grid; gap: var(--s-3); }
.how li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); font-size: .875rem; color: var(--color-text-muted); }
.how li::before { content: counter(s); font: 800 1.5rem/1 var(--font-cond); color: var(--color-action-text); }

/* Zusagen / Profil */
.mine-list { padding: var(--s-1) var(--s-2); }
.list-card { padding: 0 var(--s-4); }
.profile-top { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); }
.profile-top h2 { font: 800 1.1875rem/1.05 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.profile-top p { margin-top: var(--s-1); font-size: .875rem; color: var(--color-text-muted); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  transition: transform 100ms ease-out;
}
.choice:active { transform: scale(.96); }
.choice .ic { color: var(--color-text-muted); }
.choice[aria-pressed="true"] { background: var(--color-inverse); color: var(--color-on-inverse); border-color: var(--color-inverse); }
.choice[aria-pressed="true"] .ic { color: inherit; }
.note { padding: var(--s-4) var(--s-1) 0; font-size: .8125rem; color: var(--color-text-subtle); }
.host-card { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); background: var(--color-success-bg); border-color: transparent; }
.host-card > .ic { color: var(--color-success); }
.host-card b { display: block; font-size: .9375rem; font-weight: 700; }
.host-card span { font-size: .8125rem; color: var(--color-text-muted); }

/* ---------- Tab-Leiste ---------- */
.tabbar {
  position: absolute; z-index: 40; left: 0; right: 0; bottom: 0;
  height: var(--tabbar-total); padding-bottom: var(--safe-b);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-strong);
}
.tab {
  position: relative; height: var(--tabbar); display: grid; place-content: center; justify-items: center; gap: var(--s-1);
  font: 700 .625rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-subtle);
  transition: transform 100ms ease-out;
}
.tab:active { transform: scale(.94); }
.tab[aria-current="page"] { color: var(--color-text); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; background: var(--color-action); }
/* Sticker in der Leiste: die nicht gewählten liegen blass da, der gewählte ist farbig und leicht gedreht */
.tab .stk {
  width: 36px; margin: -3px 0 -2px;
  filter: grayscale(1) contrast(1.15) brightness(.88) drop-shadow(0 1px 0 rgba(21, 18, 15, .2));
  opacity: .8; transform: rotate(-3deg);
}
.tab[aria-current="page"] .stk {
  filter: drop-shadow(0 2px 0 rgba(21, 18, 15, .22)) drop-shadow(0 4px 5px rgba(21, 18, 15, .16));
  opacity: 1; transform: rotate(4deg) scale(1.14);
}
.tab-add .stk { width: 62px; margin: 0; filter: drop-shadow(0 2px 0 rgba(21, 18, 15, .22)) drop-shadow(0 5px 7px rgba(21, 18, 15, .18)); opacity: 1; transform: rotate(-6deg); }
.tab .badge {
  position: absolute; top: var(--s-2); left: 50%; margin-left: var(--s-2);
  min-width: 16px; height: 16px; padding: 0 var(--s-1); border-radius: 8px;
  display: grid; place-items: center;
  font: 700 .6875rem/1 var(--font-body); letter-spacing: 0; background: var(--color-action); color: var(--color-on-action);
}

/* ---------- Modale Sheets ---------- */
.modals { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.modal-wrap { position: absolute; inset: 0; pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: var(--color-scrim); opacity: 0; }
.modal {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(100% - var(--safe-t) - 44px);
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
  will-change: transform;
}
.modal-grab { flex: none; padding: var(--s-2) 0 var(--s-4); cursor: grab; touch-action: none; }
.modal-close {
  position: absolute; z-index: 2; right: var(--s-3); top: var(--s-3); width: 40px; height: 40px;
  background: var(--color-surface-sunken); color: var(--color-text);
}
.modal-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s-5) var(--s-5); }
.modal-foot {
  flex: none; display: flex; gap: var(--s-2);
  padding: var(--s-3) var(--s-5) calc(var(--safe-b) + var(--s-4));
  border-top: 1px solid var(--color-border); background: var(--color-surface);
}
.modal-foot .btn-primary, .modal-foot .btn-joined { flex: 1; }

/* Detail */
.d-title { padding-right: 48px; font: 800 1.375rem/1.1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.d-kind { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); }
.d-kind i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.d-kind span { color: var(--color-text-subtle); }
.d-top { display: flex; align-items: flex-start; gap: var(--s-4); padding-right: 44px; }
.d-top > div { flex: 1; min-width: 0; }
.d-top .d-title { padding-right: 0; }
.d-photo {
  flex: none; width: 132px; padding: 5px 5px 16px; margin: var(--s-1) 0 0;
  background: #fff; box-shadow: 0 1px 0 rgba(21, 18, 15, .2), 0 6px 10px rgba(21, 18, 15, .16);
  transform: rotate(4deg);
}
.d-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.d-rows { margin-top: var(--s-4); border-radius: var(--r-card); background: var(--color-surface-sunken); }
.d-host { width: 100%; text-align: left; }
.d-host > .ic:last-child { color: var(--color-text-subtle); }
.d-host span .ic, .host-rating .ic { display: inline-block; vertical-align: -2px; color: var(--color-rating); }
.host-top { display: flex; align-items: center; gap: var(--s-4); padding-right: 48px; }
.host-top .f-title { padding-right: 0; }
.host-rating { margin-top: var(--s-1); font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); }
.av-xl { flex: none; width: 72px; height: 72px; font-size: 1.5rem; border-width: 0; }
.stars { display: flex; gap: var(--s-1); margin-top: var(--s-3); }
.star { width: 44px; height: 44px; display: grid; place-items: center; color: var(--color-border-strong); }
.star.on { color: var(--color-rating); }
.club-next.is-flush { margin: var(--s-2) 0 0; border-top: 0; }
.host-form { padding: var(--s-4); }
.host-form .field { margin-top: var(--s-4); }
.btn.is-gap { margin-top: var(--s-4); }
.photo-pick { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; border-radius: var(--r-ctl); border: 1px dashed var(--color-border-strong); font-size: .9375rem; font-weight: 600; color: var(--color-text-muted); cursor: pointer; overflow: hidden; }
.photo-pick.has-photo { aspect-ratio: 16 / 9; border-style: solid; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.input-code { font: 800 1.125rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.d-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.d-row + .d-row { border-top: 1px solid var(--color-border); }
.d-row > .ic { color: var(--color-text-muted); }
.d-row div { flex: 1; min-width: 0; }
.d-row b { display: block; font-size: .9375rem; font-weight: 700; }
.d-row span { font-size: .8125rem; color: var(--color-text-muted); }
.d-row a { flex: none; text-decoration: none; }
.cal-row {
  width: 100%; display: flex; align-items: center; gap: var(--s-3); text-align: left;
  margin-top: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-card);
  border: 1px solid var(--color-border-strong); background: var(--color-surface);
  transition: transform 100ms ease-out;
}
.cal-row:active { transform: scale(.985); background: var(--color-surface-sunken); }
.cal-row > .ic { color: var(--color-text-muted); }
.cal-row > span { flex: 1; min-width: 0; }
.cal-row b { display: block; font-size: .9375rem; font-weight: 700; }
.cal-row span span { font-size: .8125rem; color: var(--color-text-muted); }
.cal-row.is-flush { margin-top: 0; }
a.cal-row { text-decoration: none; }
.club-chat { padding: var(--s-2) var(--s-4) 0; }
.d-desc { margin-top: var(--s-4); font-size: .9375rem; color: var(--color-text-muted); }
.d-spot {
  display: flex; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-card);
  background: var(--color-surface-sunken); color: var(--color-text); font-size: .9375rem;
}
.d-spot > .ic { flex: none; margin-top: 2px; color: var(--c, var(--color-text-muted)); }
.d-spot b { display: block; margin-bottom: var(--s-1); font: 700 .6875rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-subtle); }
.d-spot.is-success { background: var(--color-success-bg); }
.d-spot.is-success > .ic, .d-spot.is-success b { color: var(--color-success); }
.modal .facts { margin-top: var(--s-4); }
.d-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); }
.d-h h3 { font: 800 1rem/1.1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.d-h span { font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); }
.meter { height: 8px; margin-top: var(--s-3); background: var(--color-surface-sunken); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--color-inverse); transition: width 240ms ease; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: var(--s-4) var(--s-2); margin-top: var(--s-4); }
.person { display: grid; justify-items: center; gap: var(--s-1); font-size: .75rem; font-weight: 600; color: var(--color-text-muted); text-align: center; }
.person small { font-size: .6875rem; font-weight: 700; color: var(--color-success); }
.d-solo { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: .875rem; font-weight: 600; color: var(--color-text-muted); }
.d-solo .ic { color: var(--color-success); }

/* Formular */
.f-title { padding-right: 48px; font: 800 1.375rem/1.1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.f-title.is-center { padding: 0 48px; }
.f-sub { margin-top: var(--s-2); font-size: .875rem; color: var(--color-text-muted); }
.field { margin-top: var(--s-5); }
.field > label, .field .lbl { display: block; margin-bottom: var(--s-2); font-size: .8125rem; font-weight: 700; color: var(--color-text-muted); }
.lbl-opt { font-weight: 500; color: var(--color-text-subtle); }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 0 var(--s-4); border-radius: var(--r-ctl);
  font-size: 1rem; background: var(--color-surface); border: 1px solid var(--color-border-strong); outline: 0;
}
.textarea { min-height: 88px; padding: var(--s-3) var(--s-4); resize: none; }
.input:focus, .textarea:focus { border-color: var(--color-focus); box-shadow: 0 0 0 1px var(--color-focus); }
.input::placeholder, .textarea::placeholder { color: var(--color-text-subtle); }
.hscroll { display: flex; gap: var(--s-2); overflow-x: auto; margin: 0 calc(var(--s-5) * -1); padding: 0 var(--s-5) var(--s-1); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .choice { flex: none; }
.hscroll.is-gap { margin-top: var(--s-3); }
.day {
  flex: none; width: 56px; height: 64px; border-radius: var(--r-ctl);
  display: grid; place-content: center; justify-items: center; gap: var(--s-1);
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  font-size: .75rem; font-weight: 600; color: var(--color-text-muted);
  transition: transform 100ms ease-out;
}
.day b { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; color: var(--color-text); }
.day:active { transform: scale(.95); }
.day[aria-pressed="true"] { background: var(--color-inverse); color: var(--color-on-inverse); border-color: var(--color-inverse); }
.day[aria-pressed="true"] b { color: inherit; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
.two > * { min-width: 0; }
.time-btn { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.time-btn b { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.time-btn .ic { color: var(--color-text-muted); transform: rotate(90deg); transition: transform 160ms ease; }
.time-btn[aria-expanded="true"] { border-color: var(--color-focus); box-shadow: 0 0 0 1px var(--color-focus); }
.time-btn[aria-expanded="true"] .ic { transform: rotate(-90deg); }
.stepper { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--s-1); border-radius: var(--r-ctl); border: 1px solid var(--color-border-strong); }
.stepper b { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stepper .icon-btn { background: var(--color-surface-sunken); }
.loc {
  width: 100%; min-height: 52px; display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4); margin-top: var(--s-2);
  border-radius: var(--r-ctl); border: 1px dashed var(--color-border-strong); font-size: .9375rem; font-weight: 600; color: var(--color-text-muted); text-align: left;
}
.loc.is-set { border-style: solid; border-color: transparent; background: var(--color-success-bg); color: var(--color-success); }
.switch { display: flex; align-items: center; gap: var(--s-3); width: 100%; text-align: left; padding: var(--s-4); border-radius: var(--r-card); background: var(--color-surface); border: 1px solid var(--color-border); }
.switch.is-gap { margin-top: var(--s-2); }
.switch div { flex: 1; }
.switch b { display: block; font-size: .9375rem; font-weight: 700; }
.switch span { font-size: .8125rem; color: var(--color-text-muted); }
.switch i { flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--color-border-strong); position: relative; transition: background-color 140ms ease; }
.switch i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 180ms cubic-bezier(.3, 1.3, .5, 1); }
.switch[aria-pressed="true"] i { background: var(--color-success); }
.switch[aria-pressed="true"] i::after { transform: translateX(20px); }

/* Einladen */
.qr { width: 196px; margin: var(--s-5) auto 0; padding: var(--s-3); background: #fff; border: 1px solid var(--color-border-strong); }
.qr svg { display: block; width: 100%; height: auto; }
.link-box { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4); border-radius: var(--r-ctl); background: var(--color-surface-sunken); }
.link-box span { flex: 1; min-width: 0; font-size: .8125rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; }
.share-when { margin-top: var(--s-2); font-size: .9375rem; font-weight: 600; color: var(--color-text-muted); }
.ask-stk { width: 112px; margin: 0 auto var(--s-4); transform: rotate(-7deg); }
.modal-foot .btn-soft + .btn-primary { flex: 1.6; }

/* ---------- Onboarding ---------- */
.ob {
  position: absolute; inset: 0; z-index: 60; background: var(--color-bg);
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + var(--s-6)) var(--s-6) calc(var(--safe-b) + var(--s-6));
  overflow-x: hidden; overflow-y: auto;
}
.ob.is-moving { overflow: hidden; }
.ob-step { flex: 1; display: flex; flex-direction: column; }
.ob-dots { display: flex; gap: var(--s-1); margin-bottom: var(--s-6); }
.ob-dots i { width: 24px; height: 4px; background: var(--color-border-strong); }
.ob-dots i.on { background: var(--color-action); }
.ob-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: var(--s-5); }
.ob-top .ob-dots { margin-bottom: 0; }
.ob-lang { display: flex; gap: var(--s-1); }
.flag-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-ctl); border: 2px solid transparent; opacity: .55; }
.flag-btn[aria-pressed="true"] { border-color: var(--color-inverse); opacity: 1; }
.invite-banner.is-top { margin: 0 0 var(--s-5); }
.ob h1 { font: 800 2.25rem/.95 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.ob h1 em { font-style: normal; color: var(--color-action-text); }
.ob .lead { margin-top: var(--s-4); font-size: 1.0625rem; color: var(--color-text-muted); max-width: 32ch; }
.ob-art { flex: 1; min-height: 220px; position: relative; margin: var(--s-4) calc(var(--s-6) * -1) 0; overflow: hidden; }
.ob-body { flex: 1; margin-top: var(--s-6); }
.ob-foot { margin-top: var(--s-5); }
.invite-banner { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: var(--color-info-bg); font-size: .875rem; font-weight: 600; }
.invite-banner .ic { color: var(--color-info); }
.stack { display: grid; gap: var(--s-2); }
.stack.is-gap { margin-top: var(--s-5); }
.opt {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; text-align: left;
  min-height: 56px; padding: 0 var(--s-4); border-radius: var(--r-ctl);
  font-size: .9375rem; font-weight: 600;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  transition: transform 100ms ease-out;
}
.opt:active { transform: scale(.985); }
.opt::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--color-text-subtle); }
.opt-hint { margin-left: auto; font-size: .75rem; font-weight: 500; color: var(--color-text-subtle); }
.opt[aria-pressed="true"] { border-color: var(--color-inverse); box-shadow: 0 0 0 1px var(--color-inverse); }
.opt[aria-pressed="true"]::before { border: 6px solid var(--color-action); }

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 70; left: var(--s-4); right: var(--s-4); top: calc(var(--safe-t) + var(--s-3));
  width: fit-content; max-width: calc(100% - var(--s-8)); margin: 0 auto; padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-2);
  font-size: .875rem; font-weight: 700; line-height: 1.3; text-align: left;
  background: var(--color-inverse); color: var(--color-on-inverse); box-shadow: 0 2px 0 rgba(21, 18, 15, .25), 0 10px 18px rgba(21, 18, 15, .2);
  transform: translateY(-24px) rotate(-1.5deg); opacity: 0; pointer-events: none;
  transition: transform 260ms cubic-bezier(.2, 1.2, .3, 1), opacity 160ms ease;
}
.toast .ic { flex: none; }
.toast.on { transform: translateY(0) rotate(-1.5deg); opacity: 1; }
.toast-error { background: var(--color-action); color: var(--color-on-action); }
.toast-success .ic { color: #5BE09A; }

/* ---------- Einwilligung, Melden, Rechtstexte ---------- */
.check { display: flex; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-5); font-size: .875rem; color: var(--color-text-muted); cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ink-900); }
.check a, .note a, .legal a { color: var(--color-text); text-decoration: underline; text-underline-offset: 2px; }
.link-btn {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-top: var(--s-5);
  font-size: .8125rem; font-weight: 600; color: var(--color-text-subtle); text-decoration: underline; text-underline-offset: 2px;
}
.d-h + .tag { margin-top: var(--s-2); }
a.row { text-decoration: none; }

.legal { max-width: 680px; margin: 0 auto; padding: calc(var(--safe-t) + var(--s-6)) var(--s-5) var(--s-8); }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; font: 700 .8125rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.legal h1 { margin-top: var(--s-4); font: 800 2rem/.95 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.legal h2 { margin-top: var(--s-8); font: 800 1.125rem/1.15 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.legal p, .legal li { margin-top: var(--s-3); font-size: .9375rem; line-height: 1.6; color: var(--color-text-muted); }
.legal ul { padding-left: var(--s-5); list-style: disc; }
.legal li { margin-top: var(--s-2); }
.legal strong { color: var(--color-text); }
.legal-draft { margin-top: var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: var(--color-warning-bg); color: var(--color-warning); font-size: .875rem; font-weight: 600; }
.legal mark { padding: 0 var(--s-1); background: var(--color-warning-bg); color: var(--color-warning); font-weight: 700; }
.legal-foot { margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--color-border); font-size: .8125rem; color: var(--color-text-subtle); }

/* ---------- Datumsrad ---------- */
.wheels {
  position: relative; display: grid; grid-template-columns: 1fr 1.7fr 1.2fr; gap: var(--s-1);
  height: 220px; padding: 0 var(--s-2); overflow: hidden;
  border-radius: var(--r-card); background: var(--color-surface); border: 1px solid var(--color-border-strong);
}
.wheels::before {
  content: ""; position: absolute; left: var(--s-2); right: var(--s-2); top: 88px; height: 44px;
  border-radius: var(--r-ctl); background: var(--color-surface-sunken); pointer-events: none;
}
.wheel {
  position: relative; height: 100%; padding: 88px 0; overflow-y: auto;
  scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36%, #000 64%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 36%, #000 64%, transparent 100%);
  outline-offset: -4px;
}
.wheel::-webkit-scrollbar { display: none; }
.wheel-item {
  height: 44px; display: grid; place-items: center; scroll-snap-align: center;
  font: 700 1.375rem/1 var(--font-cond); letter-spacing: .03em; text-transform: uppercase;
  color: var(--color-text-subtle); cursor: pointer; user-select: none; -webkit-user-select: none;
}
.wheel-item.is-sel { font-size: 1.75rem; font-weight: 800; color: var(--color-text); }
/* Uhrzeit: zwei Räder, drei Zeilen hoch */
.wheels.is-time { grid-template-columns: 1fr auto 1fr; height: 132px; margin-top: var(--s-3); }
.wheels.is-time::before { top: 44px; }
.wheels.is-time .wheel { padding: 44px 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%); }
.wheels-sep { position: relative; align-self: center; font: 800 1.75rem/1 var(--font-cond); }

/* ---------- Profilbild ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.avatar-pick { display: flex; align-items: center; gap: var(--s-4); }
.avatar-btn {
  position: relative; flex: none; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--color-surface); border: 1px dashed var(--color-border-strong); color: var(--color-text-muted);
  transition: transform 100ms ease-out;
}
.avatar-btn:active { transform: scale(.96); }
.avatar-btn.has-photo { border-style: solid; }
.avatar-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-plus {
  position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-action); color: var(--color-on-action); border: 3px solid var(--color-bg);
}
.profile-top .avatar-plus { border-color: var(--color-surface); }
.sr-only:focus-visible + .avatar-btn { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.avatar-side { flex: 1; min-width: 0; }
.avatar-side label { display: block; margin-bottom: var(--s-2); font-size: .8125rem; font-weight: 700; color: var(--color-text-muted); }
.link-btn.is-tight { margin-top: var(--s-1); }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av:has(img) { background: none; }

/* ---------- Strecke ---------- */
.route-card {
  display: block; width: 100%; margin-top: var(--s-3); border-radius: var(--r-card);
  background: var(--color-surface-sunken); transition: transform 100ms ease-out;
}
.route-card:active { transform: scale(.985); }
.route-card svg { display: block; width: 100%; height: auto; }
.route-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.route-actions a { text-decoration: none; }
.route { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.route-title { font: 800 1.125rem/1.1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.route-meta { margin: var(--s-2) 0 var(--s-4); font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); text-align: left !important; }
.app.routing .top,
.app.routing .sheet-area,
.app.routing .tabbar { display: none; }

/* ---------- Sprache ---------- */
.flag {
  flex: none; width: 34px; height: 23px; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--color-border-strong);
}
.flag svg { display: block; width: 100%; height: 100%; }
.opt-flag { min-height: 64px; font-size: 1.0625rem; }

/* ---------- Bewegung ---------- */
/* Wörter einer Überschrift laufen aus einer Maske heraus ein */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .04em .06em; margin: -.14em -.04em -.06em; }
.w > span { display: inline-block; will-change: transform; }
.confetti { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; will-change: transform; }

/* ---------- Als App installieren ---------- */
.seg { display: flex; gap: var(--s-2); }
.steps { margin-top: var(--s-4); display: grid; gap: var(--s-2); counter-reset: st; }
.steps li {
  counter-increment: st; display: grid; grid-template-columns: 24px 44px 1fr; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-card);
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
}
.steps li::before { content: counter(st); font: 800 1.75rem/1 var(--font-cond); color: var(--color-action-text); }
.steps-ic { width: 44px; height: 44px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--color-surface-sunken); color: var(--color-text); }
.steps b { display: block; font-size: .9375rem; font-weight: 700; }
.steps li span span { display: block; margin-top: var(--s-1); font-size: .8125rem; color: var(--color-text-muted); }
.install .btn { margin-top: var(--s-4); }
.modal .install { margin-top: var(--s-4); }

/* ---------- Bedienungshilfen ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sk::after { display: none; }
}
@media (prefers-contrast: more) {
  :root { --color-border: var(--color-border-strong); --color-text-subtle: var(--color-text-muted); }
}

/* ---------- Metriken (admin.html) ---------- */
.adm-body { overflow: auto !important; }
.adm { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + var(--s-5)) var(--s-4) var(--s-8); }
.adm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.adm-head h1 { margin-top: var(--s-2); font: 800 2rem/.95 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.adm-head .stk { width: 84px; transform: rotate(9deg); }
.adm-filters { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); }
.adm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-5); }
.adm-kpi { padding: var(--s-3) var(--s-3) var(--s-3); }
.adm-kpi > span:first-child { display: block; font-size: .75rem; font-weight: 600; color: var(--color-text-muted); }
.adm .legal-back .ic { transform: rotate(180deg); }
.adm-kpi b { display: block; margin-top: var(--s-1); font: 800 1.75rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.adm-delta { display: inline-block; margin-top: var(--s-2); padding: 2px 6px; border-radius: 4px; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--color-surface-sunken); color: var(--color-text-muted); }
.adm-delta.is-up { background: var(--color-success-bg); color: var(--color-success); }
.adm-delta.is-down { background: var(--color-danger-bg); color: var(--color-danger); }
.adm-card { margin-top: var(--s-4); padding: var(--s-4); }
.adm-card h2 { font: 800 1rem/1.1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.adm-note { margin-top: var(--s-3); font-size: .8125rem; color: var(--color-text-subtle); }
.adm-empty { margin-top: var(--s-4); font-size: .9375rem; color: var(--color-text-muted); }
.adm-foot { margin-top: var(--s-6); font-size: .8125rem; color: var(--color-text-subtle); }
.adm-foot .link-btn { margin: 0 0 0 var(--s-2); min-height: 0; }
/* Chart */
.adm-chart { position: relative; margin-top: var(--s-3); }
.adm-svg { display: block; width: 100%; height: auto; touch-action: none; }
.adm-grid { stroke: var(--color-border); stroke-width: 1; }
.adm-tick { font: 500 11px var(--font-body); fill: var(--color-text-subtle); }
.adm-val { font: 700 12px var(--font-body); fill: var(--color-text); }
.adm-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adm-line.is-a, .adm-dot.is-a, .adm-legend .is-a, .adm-tip .is-a { stroke: #FF5A36; }
.adm-line.is-b, .adm-dot.is-b, .adm-legend .is-b, .adm-tip .is-b { stroke: #2F6BFF; }
.adm-dot { stroke-width: 2; }
.adm-dot.is-a { fill: #FF5A36; } .adm-dot.is-b { fill: #2F6BFF; }
.adm-dot { stroke: var(--color-surface); }
.adm-cross { stroke: var(--color-text-subtle); stroke-width: 1; }
.adm-legend { display: flex; gap: var(--s-4); margin-top: var(--s-2); font-size: .8125rem; font-weight: 600; color: var(--color-text-muted); }
.adm-legend span, .adm-tip span { display: inline-flex; align-items: center; gap: var(--s-2); }
.adm-legend i, .adm-tip i { width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.adm-legend .is-a, .adm-tip .is-a { background: #FF5A36; } .adm-legend .is-b, .adm-tip .is-b { background: #2F6BFF; }
.adm-tip { position: absolute; top: 0; display: grid; gap: 2px; padding: var(--s-2) var(--s-3); border-radius: var(--r-ctl); background: var(--color-inverse); color: var(--color-on-inverse); font-size: .75rem; white-space: nowrap; pointer-events: none; }
.adm-tip b { font-weight: 700; }
/* Balken */
.adm-bars { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.adm-bar { display: grid; grid-template-columns: minmax(96px, 36%) 1fr auto; align-items: center; gap: var(--s-3); font-size: .875rem; }
.adm-bar-l { display: flex; align-items: center; gap: var(--s-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.adm-bar-t { display: block; height: 14px; border-radius: 0 4px 4px 0; background: var(--color-surface-sunken); overflow: hidden; }
.adm-bar-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.adm-bar-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-bar-v small { font-weight: 600; color: var(--color-text-subtle); }
.adm-cat { flex: none; display: inline-block; width: 10px; height: 10px; margin-right: var(--s-2); border-radius: 50%; background: var(--c); vertical-align: 0; }
/* Tabelle */
.adm-table { width: 100%; margin-top: var(--s-3); border-collapse: collapse; font-size: .8125rem; }
.adm-table th { padding: var(--s-2) var(--s-1); text-align: left; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-subtle); border-bottom: 1px solid var(--color-border); }
.adm-table td { padding: var(--s-2) var(--s-1); border-bottom: 1px solid var(--color-border); font-variant-numeric: tabular-nums; vertical-align: middle; }
.adm-table td:first-child { max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.adm-table th:not(:first-child), .adm-table td:not(:first-child) { text-align: right; }
.adm-table .adm-delta { margin-top: 0; }
.adm-table tr.is-test td { color: var(--color-text-muted); }
.adm-table .tag { margin-left: var(--s-1); vertical-align: 1px; }
/* Zugang */
.adm-lock { max-width: 360px; margin: 10vh auto 0; text-align: center; }
.adm-lock-stk { width: 96px; margin: 0 auto var(--s-4); transform: rotate(-8deg); }
.adm-lock h1 { font: 800 2rem/.95 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.adm-lock p { margin-top: var(--s-2); color: var(--color-text-muted); }
.adm-lock-form { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.adm-bad { color: var(--color-danger); font-weight: 600; }
.adm-lock .legal-back { margin-top: var(--s-5); }
@media (max-width: 480px) { .adm-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .adm-bar { grid-template-columns: 1fr auto; }
  .adm-bar-l { grid-column: 1 / -1; white-space: normal; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody { display: block; }
  .adm-table tr { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 2px var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--color-border); }
  .adm-table td { display: block; padding: 0; border: 0; }
  .adm-table td:first-child { grid-column: 1 / -1; max-width: none; white-space: normal; }
  .adm-table td[data-l]::before { content: attr(data-l) " "; font-size: .6875rem; font-weight: 600; color: var(--color-text-subtle); }
  .adm-table td:last-child { justify-self: end; }
}
