/* =============================================================================
   Cigar Club Chur · Verwaltung (/cccadmin) — Designsystem, Entwurf 1
   Stand 30.10.2026 · MKurti.ch GmbH
   -----------------------------------------------------------------------------
   Diese Datei ist das Designsystem. Die echte Verwaltung übernimmt sie 1:1;
   designsystem.css gehört nur zur Schauseite.

   Aufbau:  1 Marke  2 Rollen  3 Masse  4 Grundlage  5 Schrift  6 Bildmarke
            7 Knöpfe  8 Felder  9 Schilder  10 Kopf  11 Seite  12 Liste
            13 Leerer Zustand  14 Schublade  15 Kurznachricht  16 Fuss (Telefon)
            17 Anmeldung  18 Kontrollkästchen  19 Telefon  20 Bewegung

   Geltung: nur die Verwaltung unter /cccadmin. Die Website bleibt, wie sie
            ist; von ihr kommen nur Farben, Schriften und die Bildmarke.

   Regeln:  Bausteine lesen nur Rollen (2), nie Markenwerte (1) direkt.
            Strenge CSP: kein style-Attribut, kein onclick, alles vom eigenen
            Server. Klassen tragen das Präfix v- (Verwaltung), damit nichts mit
            den Klassen der Website zusammenstösst.
   ========================================================================== */


/* 1 · Marke — 1:1 aus Website/src/assets/styles.css (:root) ---------------- */
:root {
  --ink: #11100e;
  --text: #2f2b26;
  --muted: #756d62;
  --paper: #f6f1e8;
  --surface: #fffaf2;
  --mist: #ece4d7;
  --line: #ded4c4;
  --forest: #173d35;
  --forest-2: #0e2824;
  --gold: #bd8d49;
  --gold-soft: #d8b878;
  --wine: #6b2530;
}


/* 2 · Rollen — die Bausteine lesen nur diese Namen ------------------------- */
:root {
  --grund: var(--paper);                 /* Seitengrund */
  --flaeche: var(--surface);             /* Liste, Schublade, Karten */
  --feld: #ffffff;                       /* Eingabefelder heben sich ab */
  --ruhig: var(--mist);                  /* Segmente, Hinweisbänder, Gruppenköpfe */
  --tinte: var(--ink);                   /* Titel, Werte */
  --tinte-sanft: var(--text);            /* Fliesstext */
  --gedaempft: var(--muted);             /* Hilfstext auf Grund und Fläche, 4.5:1 */
  --gedaempft-stark: #625a50;            /* kleine Schrift auf --ruhig, 5.4:1 */
  --linie: var(--line);                  /* Trennlinien (Schmuck) */
  --linie-feld: #8f8475;                 /* Feldränder, 3:1 gegen Fläche und Grund */
  --akzent: var(--forest);               /* der eine Arbeitsakzent: Knöpfe, Auswahl, Fokus */
  --akzent-tief: var(--forest-2);
  --auf-akzent: var(--surface);
  --akzent-flaeche: rgba(23, 61, 53, .08);
  --akzent-flaeche-stark: rgba(23, 61, 53, .14);
  --marke: var(--gold);                  /* Gold nur für Markenmomente, nie als Text */
  --marke-text: #7d5a1c;                 /* Gold als Schrift, 5.2:1 auch auf Goldfläche */
  --marke-flaeche: rgba(189, 141, 73, .16);
  --marke-hell: var(--gold-soft);        /* Gold auf dunklem Grund */
  --gefahr: var(--wine);
  --gefahr-flaeche: rgba(107, 37, 48, .08);
  --dunkel: var(--forest-2);             /* Kurznachrichten */
  --auf-dunkel: var(--surface);
  --schleier: rgba(17, 16, 14, .34);

  --schatten-s: 0 10px 28px -12px rgba(54, 34, 12, .18);
  --schatten: 0 24px 70px -18px rgba(54, 34, 12, .18), 0 4px 14px -6px rgba(54, 34, 12, .10);
  --schatten-schublade: -24px 0 60px -20px rgba(17, 16, 14, .28);

  /* Brücke zur Design Zentrale: Schnipsel lesen --mk-*, hier auf Rollen gelegt */
  --mk-canvas: var(--grund);   --mk-paper: var(--flaeche);  --mk-dim: var(--ruhig);
  --mk-ink: var(--tinte);      --mk-ink-soft: var(--tinte-sanft);
  --mk-muted: var(--gedaempft); --mk-line: var(--linie);    --mk-line-stark: var(--linie-feld);
  --mk-akzent: var(--akzent);  --mk-auf-akzent: var(--auf-akzent);
  --mk-akzent-flaeche: var(--akzent-flaeche); --mk-akzent-text: var(--akzent);
}


/* 3 · Masse, Schrift, Bewegung -------------------------------------------- */
:root {
  --schrift-titel: 'Montserrat', 'Arial', sans-serif;
  --schrift-text: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --schrift-daten: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --gr-titel-1: 28px;   --gr-titel-2: 20px;   --gr-titel-3: 17px;
  --gr-text: 15px;      --gr-klein: 13px;     --gr-feld: 16px;   --gr-marke: 11px;

  --abstand-1: 4px;  --abstand-2: 8px;  --abstand-3: 12px; --abstand-4: 16px;
  --abstand-5: 20px; --abstand-6: 24px; --abstand-7: 32px; --abstand-8: 48px;

  --rund-s: 6px;  --rund: 8px;  --rund-l: 12px;  --rund-xl: 16px;  --pille: 999px;

  --ziel: 44px;                 /* kleinste Tippfläche */
  --kopf-h: 64px;
  --fuss-h: 64px;               /* Reiterleiste auf dem Telefon */
  --spalte: 1120px;             /* Inhaltsbreite der Listen */
  --schublade-b: 560px;

  --zeit-ein: 260ms;  --zeit-aus: 180ms;  --zeit-kurz: 150ms;
  --kurve: cubic-bezier(.2, .8, .2, 1);
}


/* 4 · Grundlage ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v-app,
body.v-anmeldung {
  margin: 0;
  background: var(--grund);
  color: var(--tinte-sanft);
  font-family: var(--schrift-text);
  font-size: var(--gr-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--akzent); }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}
.v-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ic {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--s { width: 15px; height: 15px; }
.ic--l { width: 22px; height: 22px; }


/* 5 · Schrift -------------------------------------------------------------- */
.v-titel-1 {
  margin: 0; font-family: var(--schrift-titel); font-weight: 800;
  font-size: var(--gr-titel-1); line-height: 1.15; letter-spacing: -.01em;
  color: var(--tinte); text-wrap: balance;
}
.v-titel-2 {
  margin: 0; font-family: var(--schrift-titel); font-weight: 800;
  font-size: var(--gr-titel-2); line-height: 1.25; letter-spacing: -.005em;
  color: var(--tinte); text-wrap: balance;
}
.v-titel-3 {
  margin: 0; font-family: var(--schrift-titel); font-weight: 700;
  font-size: var(--gr-titel-3); line-height: 1.3; color: var(--tinte);
}
.v-augenbraue {
  margin: 0; font-family: var(--schrift-daten); font-weight: 500;
  font-size: var(--gr-marke); letter-spacing: .14em; text-transform: uppercase;
  color: var(--marke-text);
}
.v-vorspann { margin: 0; max-width: 62ch; color: var(--gedaempft); font-size: var(--gr-text); }
.v-klein { font-size: var(--gr-klein); color: var(--gedaempft); }
.v-ziffern { font-variant-numeric: tabular-nums; }


/* 6 · Bildmarke (wie im Kopf der Website, kleiner) ------------------------ */
.v-marke {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--tinte); text-decoration: none;
}
.v-marke__zeichen {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--marke);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  box-shadow: 0 6px 16px rgba(14, 40, 36, .30), inset 0 -6px 18px rgba(0, 0, 0, .32);
}
.v-marke__zeichen svg { width: 21px; height: 21px; display: block; }
.v-marke__zeichen--gross { width: 56px; height: 56px; }
.v-marke__zeichen--gross svg { width: 30px; height: 30px; }
.v-marke__wort { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.v-marke__wort strong {
  font-family: var(--schrift-titel); font-weight: 800; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--tinte);
}
.v-marke__wort em {
  font-style: normal; font-family: var(--schrift-titel); font-weight: 700;
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--marke-text);
}


/* 7 · Knöpfe — BS-AL-01 ---------------------------------------------------- */
.v-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--ziel); padding: 0 18px; border-radius: var(--rund);
  border: 1px solid transparent; background: transparent; color: var(--tinte);
  font-family: var(--schrift-text); font-weight: 600; font-size: 14.5px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--zeit-kurz), border-color var(--zeit-kurz), color var(--zeit-kurz), transform var(--zeit-kurz);
}
.v-knopf:active { transform: translateY(1px); }
.v-knopf--primaer { background: var(--akzent); color: var(--auf-akzent); }
.v-knopf--primaer:hover { background: var(--akzent-tief); }
.v-knopf--sekundaer { border-color: var(--linie-feld); background: var(--flaeche); }
.v-knopf--sekundaer:hover { background: var(--ruhig); }
.v-knopf--leise { color: var(--akzent); padding: 0 12px; }
.v-knopf--leise:hover { background: var(--akzent-flaeche); }
.v-knopf--gefahr { color: var(--gefahr); padding: 0 12px; }
.v-knopf--gefahr:hover { background: var(--gefahr-flaeche); }
.v-knopf--symbol { width: var(--ziel); padding: 0; border-radius: var(--rund); }
.v-knopf--symbol:hover { background: var(--akzent-flaeche); }
.v-knopf--breit { width: 100%; }
.v-knopf[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.v-knopf[aria-busy="true"] { cursor: progress; }
.v-knopf[aria-busy="true"]::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: v-dreh 700ms linear infinite;
}
@keyframes v-dreh { to { transform: rotate(360deg); } }


/* 8 · Felder — BS-FO-04 :1 :4 :6, BS-FO-08, BS-FO-01 ----------------------- */
.v-feld { display: grid; gap: 6px; min-width: 0; align-content: start; }   /* in Zweierreihen nicht strecken */
.v-feld__label {
  font-weight: 600; font-size: 13.5px; color: var(--tinte);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.v-feld__label small { font-weight: 500; font-size: 12.5px; color: var(--gedaempft); }
.v-feld__hilfe { margin: 0; font-size: var(--gr-klein); color: var(--gedaempft); }
.v-feld__fehler {
  margin: 0; display: flex; gap: 6px; align-items: flex-start;
  font-size: var(--gr-klein); font-weight: 600; color: var(--gefahr);
}
.v-eingabe {
  width: 100%; min-height: var(--ziel); padding: 10px 12px;
  border: 1px solid var(--linie-feld); border-radius: var(--rund);
  background: var(--feld); color: var(--tinte); font-size: var(--gr-feld); line-height: 1.4;
  transition: border-color var(--zeit-kurz), box-shadow var(--zeit-kurz);
}
.v-eingabe::placeholder { color: var(--gedaempft); }   /* 5.1:1 auf Weiss */
.v-eingabe:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-flaeche-stark); }
.v-eingabe[aria-invalid="true"] { border-color: var(--gefahr); box-shadow: 0 0 0 3px var(--gefahr-flaeche); }
.v-eingabe[readonly] { background: var(--grund); color: var(--tinte-sanft); }
textarea.v-eingabe { min-height: 132px; resize: vertical; line-height: 1.55; overflow-y: hidden; }  /* wächst mit dem Text */
.v-zaehler { justify-self: end; font-family: var(--schrift-daten); font-size: 11.5px; color: var(--gedaempft); }
.v-zaehler.ist-zuviel { color: var(--gefahr); font-weight: 600; }

/* Feld mit Vorsatz (CHF) — BS-FO-04 :3 */
.v-vorsatz { display: flex; align-items: stretch; }
.v-vorsatz__text {
  display: grid; place-items: center; padding: 0 10px;
  border: 1px solid var(--linie-feld); border-right: 0; border-radius: var(--rund) 0 0 var(--rund);
  background: var(--ruhig); color: var(--gedaempft-stark);
  font-family: var(--schrift-daten); font-size: 12.5px;
}
.v-vorsatz .v-eingabe { border-radius: 0 var(--rund) var(--rund) 0; text-align: right; font-variant-numeric: tabular-nums; }

/* Zweierreihe: was gleichrangig ist, steht nebeneinander — auch auf dem Telefon */
.v-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: var(--abstand-3); }

/* Segment (Filter, Sichtbarkeit) — BS-FO-08 */
.v-segment {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px;
  background: var(--ruhig); border: 0; margin: 0; min-width: 0;
}
.v-segment legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v-segment input { position: absolute; opacity: 0; pointer-events: none; }
.v-segment label {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px;
  border-radius: 8px; cursor: pointer; white-space: nowrap;
  font-weight: 600; font-size: 13.5px; color: var(--gedaempft-stark);
  transition: background var(--zeit-kurz), color var(--zeit-kurz);
}
.v-segment label b {
  font-family: var(--schrift-daten); font-weight: 500; font-size: 11px;
  padding: 1px 6px; border-radius: var(--pille); background: rgba(17, 16, 14, .07);
}
.v-segment input:checked + label { background: var(--flaeche); color: var(--tinte); box-shadow: 0 1px 3px rgba(54, 34, 12, .16); }
.v-segment input:focus-visible + label { outline: 2px solid var(--akzent); outline-offset: 1px; }

/* Wahlkarten (Radio als Karte, in Zweierreihen) */
.v-wahlkarten { display: grid; grid-template-columns: 1fr 1fr; gap: var(--abstand-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.v-wahlkarten input { position: absolute; opacity: 0; pointer-events: none; }
.v-wahlkarten label {
  display: grid; gap: 2px; padding: 10px 12px; min-height: var(--ziel); cursor: pointer;
  border: 1px solid var(--linie-feld); border-radius: var(--rund); background: var(--feld);
  font-weight: 600; font-size: 14px; color: var(--tinte);
}
.v-wahlkarten label small { font-weight: 500; font-size: 12.5px; color: var(--gedaempft); }
.v-wahlkarten input:checked + label { border-color: var(--akzent); background: var(--akzent-flaeche); box-shadow: inset 0 0 0 1px var(--akzent); }
.v-wahlkarten input:focus-visible + label { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* Suchfeld — BS-FO-14 */
.v-suche { position: relative; min-width: 0; }
.v-suche .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gedaempft); pointer-events: none; }
.v-suche .v-eingabe { padding-left: 38px; }


/* 9 · Schilder — BS-DA-09, Schrift wie .evt-tag der Website ---------------- */
.v-schild {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 4px 9px; border-radius: var(--pille); border: 1px solid transparent;
  font-family: var(--schrift-daten); font-weight: 500; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
}
.v-schild .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.v-schild--kommend { background: var(--akzent-flaeche); color: var(--akzent); border-color: rgba(23, 61, 53, .22); }
.v-schild--heute,
.v-schild--naechstes { background: var(--marke-flaeche); color: var(--marke-text); border-color: rgba(189, 141, 73, .45); }
.v-schild--heute { background: var(--marke); color: #1c140a; border-color: var(--marke); }
.v-schild--archiviert { background: var(--ruhig); color: var(--gedaempft-stark); border-color: var(--linie); }
.v-schild--entwurf { background: transparent; color: var(--gedaempft-stark); border: 1px dashed var(--linie-feld); }
.v-schild--veroeffentlicht { background: var(--akzent-flaeche); color: var(--akzent); border-color: rgba(23, 61, 53, .22); }


/* 10 · Kopf (klebt oben) --------------------------------------------------- */
.v-kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 232, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 212, 196, .78);
}
.v-kopf__innen {
  max-width: calc(var(--spalte) + 48px); margin: 0 auto; height: var(--kopf-h);
  padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: var(--abstand-6);
}
.v-reiter { display: flex; gap: 4px; height: 100%; }
.v-reiter a {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 100%;
  font-weight: 600; font-size: 14.5px; color: var(--gedaempft); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.v-reiter a b { font-family: var(--schrift-daten); font-weight: 500; font-size: 11px; color: var(--gedaempft); }
.v-reiter a:hover { color: var(--tinte); }
.v-reiter a[aria-current="page"] { color: var(--tinte); border-bottom-color: var(--akzent); }
.v-kopf__rechts { margin-left: auto; display: flex; align-items: center; gap: var(--abstand-2); }
.v-kopf__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--ziel); padding: 0 10px;
  font-size: 13.5px; font-weight: 600; color: var(--tinte-sanft); text-decoration: none; border-radius: var(--rund);
}
.v-kopf__link:hover { background: var(--akzent-flaeche); color: var(--akzent); }

/* Nutzer-Menü ohne Skript: <details> */
.v-nutzer { position: relative; }
.v-nutzer summary {
  list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
  min-height: var(--ziel); padding: 0 6px 0 4px; border-radius: var(--pille);
}
.v-nutzer summary::-webkit-details-marker { display: none; }
.v-nutzer summary:hover { background: var(--akzent-flaeche); }
.v-kreis {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--akzent-flaeche-stark); color: var(--akzent);
  font-family: var(--schrift-titel); font-weight: 800; font-size: 11.5px; letter-spacing: .03em;
}
.v-nutzer__name { font-size: 13.5px; font-weight: 600; color: var(--tinte); }
.v-nutzer__menue {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; width: 260px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-l);
  box-shadow: var(--schatten); padding: 8px;
}
.v-nutzer__menue p { margin: 4px 8px 8px; font-size: var(--gr-klein); color: var(--gedaempft); }
.v-nutzer__menue a, .v-nutzer__menue button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 8px;
  border: 0; background: none; border-radius: var(--rund-s); text-align: left;
  font-size: 14px; color: var(--tinte); text-decoration: none; cursor: pointer;
}
.v-nutzer__menue a:hover, .v-nutzer__menue button:hover { background: var(--akzent-flaeche); }


/* 11 · Seite, Seitenkopf, Werkzeugleiste ---------------------------------- */
.v-seite {
  max-width: calc(var(--spalte) + 48px); margin: 0 auto;
  padding: 36px max(24px, env(safe-area-inset-right, 0px)) 64px max(24px, env(safe-area-inset-left, 0px));
}
.v-seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--abstand-6); margin-bottom: var(--abstand-6); }
.v-seitenkopf__text { display: grid; gap: 8px; min-width: 0; }
.v-werkzeugleiste { display: flex; align-items: center; justify-content: space-between; gap: var(--abstand-4); margin-bottom: var(--abstand-4); flex-wrap: wrap; }
.v-werkzeugleiste .v-suche { width: min(320px, 100%); }


/* 12 · Liste — eine Fläche, Zeilen mit Haarlinie --------------------------- */
.v-liste {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-l);
  overflow: hidden; box-shadow: var(--schatten-s);
}
.v-gruppe__titel {
  margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 18px; background: var(--ruhig); border-top: 1px solid var(--linie);
  font-family: var(--schrift-daten); font-weight: 500; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gedaempft-stark);
}
.v-liste > .v-gruppe__titel:first-child { border-top: 0; }
.v-zeile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--abstand-4);
  width: 100%; min-height: 76px; padding: 12px 18px; text-align: left;
  border: 0; border-top: 1px solid var(--linie); background: transparent; cursor: pointer;
  transition: background var(--zeit-kurz);
}
.v-liste > .v-zeile:first-child, .v-gruppe__titel + .v-zeile { border-top: 0; }
.v-zeile:hover { background: rgba(23, 61, 53, .035); }
.v-zeile:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.v-zeile.ist-offen { background: var(--akzent-flaeche); }

/* Datumsblock — das Zeichen der Website-Agenda */
.v-datum { display: grid; justify-items: center; width: 52px; line-height: 1; gap: 3px; }
.v-datum__tag-w, .v-datum__monat { font-family: var(--schrift-daten); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.v-datum__tag-w { color: var(--gedaempft); }
.v-datum__monat { color: var(--marke-text); }
.v-datum__tag { font-family: var(--schrift-titel); font-weight: 800; font-size: 24px; color: var(--tinte); font-variant-numeric: tabular-nums; }
.v-zeile.ist-archiviert .v-datum__tag { color: var(--gedaempft); }
.v-zeile.ist-archiviert .v-datum__monat { color: var(--gedaempft); }

.v-zeile__haupt { display: grid; gap: 4px; min-width: 0; }
.v-zeile__titel { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: 15.5px; color: var(--tinte); }
.v-zeile__titel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-zeile.ist-archiviert .v-zeile__titel { color: var(--tinte-sanft); }
.v-zeile__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--gr-klein); color: var(--gedaempft); }
.v-zeile__meta span { display: inline-flex; align-items: center; gap: 5px; }
.v-zeile__meta .ic { width: 14px; height: 14px; }
.v-zeile__auszug { font-size: var(--gr-klein); color: var(--gedaempft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-zeile__rand { display: flex; align-items: center; gap: var(--abstand-3); color: var(--gedaempft); }
.v-zeile__stand { font-size: 12px; white-space: nowrap; }
.v-zeile__bild { width: 76px; aspect-ratio: 4 / 3; border-radius: var(--rund-s); object-fit: cover; background: var(--ruhig); }


/* 13 · Leerer Zustand — BS-DA-15 :1 :2 ------------------------------------ */
.v-leer { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 24px; }
.v-leer__zeichen { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ruhig); color: var(--gedaempft-stark); }
.v-leer p { margin: 0; max-width: 46ch; color: var(--gedaempft); }
.v-leer .v-knopf { margin-top: 8px; }


/* 14 · Schublade — BS-RM-04, Vorbilder Time2book, Calendly ----------------- */
.v-schleier {
  position: fixed; inset: 0; z-index: 40; background: var(--schleier);
  opacity: 0; visibility: hidden; transition: opacity var(--zeit-aus), visibility 0s linear var(--zeit-aus);
}
.v-schublade {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(var(--schublade-b), calc(100vw - 48px));
  display: flex; flex-direction: column;
  background: var(--flaeche); box-shadow: var(--schatten-schublade);
  transform: translateX(104%); visibility: hidden;
  transition: transform var(--zeit-aus) ease-in, visibility 0s linear var(--zeit-aus);
}
body.ist-schublade-offen .v-schleier { opacity: 1; visibility: visible; transition: opacity var(--zeit-ein); }
body.ist-schublade-offen .v-schublade { transform: none; visibility: visible; transition: transform var(--zeit-ein) var(--kurve); }
html.ist-gesperrt { overflow: hidden; }

.v-schublade__kopf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 18px 20px 16px 24px; border-bottom: 1px solid var(--linie);
}
.v-schublade__oben { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.v-schublade__titel { overflow-wrap: anywhere; }
.v-schublade__zurueck { display: none; }
.v-schublade__inhalt { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 32px; }
.v-schublade__fuss {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px 14px 16px; border-top: 1px solid var(--linie); background: var(--flaeche);
}
.v-schublade__fuss-rechts { display: flex; gap: 10px; margin-left: auto; }
.v-bestaetigung { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.v-bestaetigung p { margin: 0 auto 0 8px; font-weight: 600; color: var(--tinte); }

/* Abschnitt in der Schublade */
.v-abschnitt { border: 0; margin: 0; padding: 22px 0 0; display: grid; gap: var(--abstand-4); min-width: 0; }
.v-abschnitt + .v-abschnitt { border-top: 1px solid var(--linie); margin-top: 24px; }
.v-abschnitt > legend {
  padding: 0; margin-bottom: 2px; float: left; width: 100%;
  font-family: var(--schrift-daten); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--marke-text);
}
.v-abschnitt > legend + * { clear: both; }

/* Hinweisband: archiviert, Vorlage übernommen */
.v-hinweisband {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start;
  margin-top: 18px; padding: 12px 14px; border-radius: var(--rund);
  background: var(--ruhig); color: var(--tinte-sanft); font-size: 13.5px;
}
.v-hinweisband p { margin: 0; }
.v-hinweisband strong { color: var(--tinte); }
.v-hinweisband .v-knopf { min-height: 36px; padding: 0 12px; margin-top: 8px; font-size: 13.5px; }
.v-hinweisband--marke { background: var(--marke-flaeche); }
/* Angebot «Passkey einrichten»: zuoberst in der Seite, zwei Knöpfe nebeneinander */
.v-hinweisband--angebot { margin: 0 0 var(--abstand-6); }
.v-hinweisband__knoepfe { display: flex; flex-wrap: wrap; gap: 0 8px; }

/* Bildwahl — BS-FO-13 :5 */
.v-bildwahl { display: grid; gap: 10px; }
.v-bildwahl__aktuell { position: relative; border-radius: var(--rund-l); overflow: hidden; background: var(--ruhig); aspect-ratio: 16 / 9; }
.v-bildwahl__aktuell img { width: 100%; height: 100%; object-fit: cover; }
.v-bildwahl__aktuell .v-knopf { position: absolute; right: 10px; bottom: 10px; min-height: 38px; background: rgba(255, 250, 242, .94); }
.v-bildwahl__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-bildwahl__raster button {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: var(--rund);
  overflow: hidden; aspect-ratio: 4 / 3; background: var(--ruhig); cursor: pointer;
}
.v-bildwahl__raster img { width: 100%; height: 100%; object-fit: cover; }
.v-bildwahl__raster button[aria-pressed="true"] { border-color: var(--akzent); }
/* Haken aus zwei Pseudo-Elementen, ohne data:-Bild (strenge CSP) */
.v-bildwahl__raster button[aria-pressed="true"]::after {
  content: ""; position: absolute; right: 6px; top: 6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--akzent);
}
.v-bildwahl__raster button[aria-pressed="true"]::before {
  content: ""; position: absolute; z-index: 1; right: 13px; top: 10px; width: 6px; height: 10px;
  border: solid var(--auf-akzent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.v-bildwahl__raster .v-bildwahl__hochladen {
  display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; padding: 8px;
  border: 1px dashed var(--linie-feld); background: var(--feld);
  font-size: 12px; font-weight: 600; color: var(--akzent);
}

/* Adresse auf der Website (Slug) */
.v-adresse {
  display: block; padding: 10px 12px; border-radius: var(--rund); background: var(--grund);
  border: 1px solid var(--linie); font-family: var(--schrift-daten); font-size: 12.5px;
  color: var(--gedaempft); overflow-wrap: anywhere;
}
.v-adresse b { color: var(--tinte); font-weight: 500; }


/* 15 · Kurznachricht — BS-RM-08 :1 :2 :3 ----------------------------------- */
.v-meldungen {
  position: fixed; z-index: 60; left: 24px; bottom: 24px;
  display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none;
}
.v-meldung {
  pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 10px 12px 14px; border-radius: var(--rund-l);
  background: var(--dunkel); color: var(--auf-dunkel); box-shadow: var(--schatten);
  font-size: 14px; animation: v-meldung-ein var(--zeit-ein) var(--kurve);
}
.v-meldung > .ic { color: var(--marke-hell); }
.v-meldung p { margin: 0; }
.v-meldung__aktionen { display: flex; align-items: center; gap: 2px; }
.v-meldung__aktionen a, .v-meldung__aktionen button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: var(--rund-s); background: transparent; cursor: pointer;
  color: var(--marke-hell); font-weight: 700; font-size: 13.5px; text-decoration: none;
}
.v-meldung__aktionen a:hover, .v-meldung__aktionen button:hover { background: rgba(255, 250, 242, .08); }
.v-meldung__aktionen .v-meldung__zu { color: var(--auf-dunkel); width: 36px; justify-content: center; padding: 0; }
.v-meldung--fehler { background: var(--gefahr); }
.v-meldung--fehler > .ic { color: var(--auf-dunkel); }
@keyframes v-meldung-ein { from { opacity: 0; transform: translateY(8px); } }


/* 16 · Fuss: Reiterleiste auf dem Telefon (klebt unten) -------------------- */
.v-fuss { display: none; }


/* 17 · Anmeldung — AM-01 :1, AM-05 :1 -------------------------------------- */
body.v-anmeldung {
  min-height: 100svh;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(189, 141, 73, .14), transparent 70%),
    var(--grund);
}
.v-anmeldung__buehne {
  min-height: 100svh; display: grid; place-items: center;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px));
}
.v-anmeldung__spalte { width: 100%; max-width: 420px; display: grid; gap: 20px; }
.v-anmeldung__marke { justify-self: center; display: grid; justify-items: center; gap: 12px; text-decoration: none; color: var(--tinte); }
.v-karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund-xl);
  box-shadow: var(--schatten-s); padding: 28px;
  display: grid; gap: 18px;
}
.v-karte__kopf { display: grid; gap: 6px; }
.v-karte form { display: grid; gap: 16px; }
.v-trenner { display: flex; align-items: center; gap: 12px; color: var(--gedaempft); font-size: 12.5px; }
.v-trenner::before, .v-trenner::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
/* «oder» und «Mit Passkey anmelden» unter dem Formular der Anmeldung */
.v-passkey-weg { display: grid; gap: 16px; }
.v-code {
  font-family: var(--schrift-daten); font-size: 26px; letter-spacing: .5em; text-align: center;
  min-height: 56px; padding-left: calc(12px + .5em); font-variant-numeric: tabular-nums;
}
.v-anmeldung__fuss { text-align: center; font-size: var(--gr-klein); }
.v-anmeldung__fuss a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--ziel); font-weight: 600; text-decoration: none; }

/* Anmeldemail — Vorschau, wie sie im Postfach ankommt */
.v-mail { max-width: 560px; border: 1px solid var(--linie); border-radius: var(--rund-l); overflow: hidden; background: #ffffff; }
.v-mail__kopf { display: grid; gap: 2px; padding: 12px 16px; background: var(--grund); border-bottom: 1px solid var(--linie); font-size: 12.5px; color: var(--gedaempft); }
.v-mail__kopf b { color: var(--tinte); font-weight: 600; }
.v-mail__inhalt { padding: 28px 28px 24px; display: grid; gap: 16px; color: var(--tinte-sanft); }
.v-mail__inhalt p { margin: 0; }
.v-mail__code { justify-self: start; padding: 10px 16px; border-radius: var(--rund); background: var(--grund); border: 1px solid var(--linie); font-family: var(--schrift-daten); font-size: 22px; letter-spacing: .3em; color: var(--tinte); }
.v-mail__klein { font-size: 12.5px; color: var(--gedaempft); border-top: 1px solid var(--linie); padding-top: 14px; }


/* 18 · Kontrollkästchen — BS-FO-01 (nicht Schalter: gespeichert wird erst mit «Speichern») */
.v-wahl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--tinte); }
.v-wahl input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 22px; height: 22px; flex: 0 0 auto;
  border: 1.5px solid var(--linie-feld); border-radius: var(--rund-s); background: var(--feld); cursor: pointer;
  display: grid; place-items: center;
}
.v-wahl input::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--auf-akzent); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.v-wahl input:checked { background: var(--akzent); border-color: var(--akzent); }
.v-wahl input:checked::after { opacity: 1; }
.v-wahl small { display: block; margin-top: 2px; font-weight: 500; font-size: var(--gr-klein); color: var(--gedaempft); }


/* 19 · Telefon (< 720 px): Dokument scrollt, Kopf und Fuss kleben ---------- */
@media (max-width: 719px) {
  :root { --kopf-h: 56px; --gr-titel-1: 22px; --gr-titel-2: 18px; }

  .v-kopf__innen { gap: 12px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .v-kopf .v-reiter, .v-kopf__link, .v-nutzer__name { display: none; }
  .v-marke__zeichen { width: 34px; height: 34px; }
  .v-marke__zeichen svg { width: 19px; height: 19px; }

  .v-seite { padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(var(--fuss-h) + 32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .v-seitenkopf { margin-bottom: 16px; }
  .v-seitenkopf .v-knopf--primaer { display: none; }          /* «Neu» sitzt in der Reiterleiste */
  .v-werkzeugleiste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .v-werkzeugleiste .v-segment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-werkzeugleiste .v-segment label { justify-content: center; gap: 5px; padding: 0 4px; font-size: 13px; }
  .v-werkzeugleiste .v-suche { width: 100%; }

  .v-zeile { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 14px; align-items: start; }
  .v-zeile__rand { grid-column: 2; justify-content: flex-start; }
  .v-zeile__stand, .v-zeile__rand > .ic, .v-zeile__meta .v-zeile__neben { display: none; }
  .v-zeile__titel span { white-space: normal; }
  .v-zeile__bild { width: 64px; }

  /* Reiterleiste */
  .v-fuss {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
    background: rgba(255, 250, 242, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--linie);
  }
  .v-fuss a, .v-fuss button {
    height: var(--fuss-h); display: grid; place-items: center; align-content: center; gap: 3px;
    border: 0; background: none; text-decoration: none; cursor: pointer;
    font-size: 11px; font-weight: 600; color: var(--gedaempft);
  }
  .v-fuss [aria-current="page"] { color: var(--akzent); }
  .v-fuss__neu span:first-child {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--akzent); color: var(--auf-akzent); box-shadow: 0 6px 16px rgba(14, 40, 36, .28);
  }
  .v-fuss .v-fuss__neu { color: var(--akzent); }

  /* Schublade wird auf dem Telefon zur eigenen Ansicht im Dokument */
  .v-schleier { display: none; }
  .v-schublade { display: none; }
  body.ist-schublade-offen .v-kopf,
  body.ist-schublade-offen .v-seite,
  body.ist-schublade-offen .v-fuss { display: none; }
  body.ist-schublade-offen .v-schublade {
    display: block; position: static; width: auto; transform: none; visibility: visible;
    box-shadow: none; transition: none; min-height: 100svh;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .v-schublade__kopf {
    position: sticky; top: 0; z-index: 5; grid-template-columns: auto minmax(0, 1fr);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 12px max(8px, env(safe-area-inset-left, 0px));
    background: rgba(255, 250, 242, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .v-schublade__zurueck { display: inline-flex; grid-row: 1 / span 2; }
  .v-schublade__zu { display: none; }
  .v-schublade__inhalt { overflow: visible; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
  .v-schublade__fuss {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -8px 24px -12px rgba(54, 34, 12, .18);
  }
  .v-schublade__fuss-rechts { flex: 1; }
  .v-schublade__fuss-rechts .v-knopf { flex: 1; }
  .v-schublade__fuss .v-knopf--sekundaer { display: none; }  /* Abbrechen = Zurück oben */
  html.ist-gesperrt { overflow: visible; }

  .v-meldungen { left: 16px; right: 16px; width: auto; bottom: calc(var(--fuss-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  body.ist-schublade-offen .v-meldungen { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  .v-karte { padding: 22px; }
  .v-bildwahl__raster { grid-template-columns: repeat(3, 1fr); }
}


/* 20 · Bewegung nur, wenn erwünscht --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
