/* YOU DANCE – Design-System „Modern Luxury“
   - Marke: Tiefschwarz + Gold, Montserrat für Überschriften/Buttons, Open Sans für Text
   - Flächen: Glas-Karten mit 1px-Haarlinie statt harter Kästen; Radien 12px (Bedienelemente) bis 24px (Karten)
   - Lesbarkeit zuerst: Text 17px, Bedienelemente mind. 52px hoch (Empfang/Tablet), Navigation reinweiß auf Schwarz
   - Farbe mit Bedeutung nur für die drei Tanzstile (Salsa, Bachata, Kizomba) und für Status (grün = ok, rot = gesperrt)
   - Standard ist dunkel wie die Website; hell bleibt über den Umschalter verfügbar */

/* Schriften liegen lokal (keine Verbindung zu Google, DSGVO). Lizenz: SIL Open Font License */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/montserrat-latin-wght.057478083c1d.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/open-sans-latin-wght.015c126a3520.woff2") format("woff2");
}

/* ───────────── Tokens ───────────── */
:root {
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Marke */
  --gold: #c9a45c;          /* Hauptgold: etwas heller als das Website-Gold, damit es auf Schwarz leuchtet */
  --gold-deep: #9c7a3c;
  --gold-light: #ecd6a4;
  --gold-grad: linear-gradient(135deg, #ecd6a4 0%, #c9a45c 45%, #a8823f 100%);
  --on-gold: #0b0b0b;
  --accent: #dcbd7e;        /* Gold für Links/Text auf Dunkel */
  --accent-strong: #c9a45c;

  /* Flächen */
  --bg: #060607;
  --bg-ambient: radial-gradient(1200px 600px at 85% -10%, rgba(201, 164, 92, .10), transparent 60%),
                radial-gradient(900px 500px at -10% 110%, rgba(201, 164, 92, .06), transparent 60%);
  --surface: rgba(255, 255, 255, .035);
  --surface-solid: #111113;  /* für Flächen, die nicht durchscheinen dürfen (Tabellenkopf, Menüs) */
  --surface-2: rgba(255, 255, 255, .065);
  --surface-hover: rgba(255, 255, 255, .055);
  --text: #ffffff;
  --text-2: #ece8df;        /* fast weiß: Navigation, Labels */
  --muted: #b3ada2;         /* Nebentext: Kontrast > 8:1 auf Schwarz */
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .16);
  --gold-line: rgba(201, 164, 92, .38);
  --field-line: rgba(255, 255, 255, .16);
  --input-bg: rgba(255, 255, 255, .04);
  --glass-blur: saturate(140%) blur(18px);

  /* Status */
  --ok: #3ccf7f;
  --ok-bg: rgba(60, 207, 127, .10);
  --on-ok: #04140b;
  --bad: #ff7a6e;
  --bad-bg: rgba(255, 122, 110, .10);
  --on-bad: #1d0503;
  --warn: #f5c35a;
  --warn-bg: rgba(245, 195, 90, .11);
  --tag-bg: rgba(255, 255, 255, .06);
  --tag-text: #f1ece2;
  --heat: 201, 164, 92;     /* Gold als RGB für Heatmap-Zellen */

  /* Tanzstile (bestehende Farbcodes) */
  --salsa: #ea6a3c;
  --bachata: #8a5cf0;
  --kizomba: #1fa39a;

  /* Form */
  --radius: 22px;           /* Karten */
  --radius-md: 16px;        /* innere Kacheln */
  --radius-btn: 12px;       /* Buttons, Felder */
  --radius-pill: 999px;     /* Pills, Etiketten, Navigation */
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 50px -20px rgba(0, 0, 0, .7);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 28px 60px -22px rgba(0, 0, 0, .85);
  --ring: 0 0 0 4px rgba(201, 164, 92, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --gold: #b08a45;
  --gold-deep: #8a6a2e;
  --accent: #7a5c22;        /* dunkles Gold für Text auf Hell (Kontrast) */
  --accent-strong: #8a6a2e;
  --bg: #f5f3ee;
  --bg-ambient: radial-gradient(1200px 600px at 85% -10%, rgba(201, 164, 92, .14), transparent 60%),
                radial-gradient(900px 500px at -10% 110%, rgba(201, 164, 92, .08), transparent 60%);
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: rgba(11, 11, 11, .04);
  --surface-hover: rgba(11, 11, 11, .035);
  --text: #0b0b0b;
  --text-2: #1c1b19;
  --muted: #57524a;
  --line: rgba(11, 11, 11, .09);
  --line-strong: rgba(11, 11, 11, .16);
  --gold-line: rgba(160, 125, 60, .45);
  --field-line: rgba(11, 11, 11, .18);
  --input-bg: #ffffff;
  --ok: #157a42;
  --ok-bg: #e5f4ea;
  --on-ok: #ffffff;
  --bad: #b3261e;
  --bad-bg: #fbe8e6;
  --on-bad: #ffffff;
  --warn: #7f5300;
  --warn-bg: #fff2d9;
  --tag-bg: rgba(11, 11, 11, .05);
  --tag-text: #2b2924;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(40, 30, 10, .25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .05), 0 26px 50px -24px rgba(40, 30, 10, .32);
  --ring: 0 0 0 4px rgba(176, 138, 69, .22);
  color-scheme: light;
}

/* ───────────── Grundlagen ───────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 17px/1.6 var(--font-body);
  background: var(--bg-ambient), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--gold-light); }
:root[data-theme="light"] a:hover { color: var(--gold-deep); }
h1, h2, h3 { margin: 0 0 .75rem; line-height: 1.15; font-family: var(--font-head); font-weight: 700; }
h1 { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
h3 { font-size: 1.12rem; letter-spacing: -.005em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); opacity: 1; }
::selection { background: color-mix(in srgb, var(--gold) 40%, transparent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ───────────── Navigation ─────────────
   Immer dunkles Glas (in beiden Modi), Text reinweiß, Active-State = gefüllte Gold-Pill */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap;
  min-height: 72px; padding: .75rem clamp(1rem, 3vw, 2rem);
  background: rgba(8, 8, 9, .78); color: #fff;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 1px 0 rgba(201, 164, 92, .18);
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em;
}
.topbar .brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto;
  font-size: 1rem; font-weight: 800; letter-spacing: .22em; color: #fff; text-transform: uppercase; white-space: nowrap; }
.topbar .brand::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: #000 url("logo-yd.6e7e868387e9.png") center / cover no-repeat;   /* YD-Monogramm der Website */
  border: 1px solid rgba(201, 164, 92, .35); box-shadow: 0 0 22px rgba(201, 164, 92, .22); }
.topbar .brand span { color: #c9a45c; font-weight: 600; letter-spacing: .16em; margin-left: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; padding: 4px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-pill); }
.nav-links a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem 1rem;
  border-radius: var(--radius-pill); color: #f4f1ea; text-decoration: none; text-transform: uppercase;
  letter-spacing: .1em; font-size: .74rem; font-weight: 700; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-links a.active { color: #0b0b0b; background: var(--gold-grad);
  box-shadow: 0 6px 20px -6px rgba(201, 164, 92, .65), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.nav-links a.active:hover { color: #0b0b0b; }
.nav-links a.active .nav-count { background: #0b0b0b; color: #ecd6a4; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-actions form { margin: 0; }
.nav-user { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .3rem .4rem .3rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-pill); color: #f4f1ea;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; background: rgba(255, 255, 255, .03); }
.nav-user .who { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user button { min-height: 32px; padding: .25rem .8rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff;
  font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.nav-user button:hover { border-color: #c9a45c; background: rgba(201, 164, 92, .16); }
.topbar button.linklike { text-transform: inherit; letter-spacing: inherit; font-weight: inherit; color: #f4f1ea; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; cursor: pointer; font-size: 1rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 50%;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .3s var(--ease); }
.theme-toggle:hover { border-color: #c9a45c; color: #ecd6a4; transform: rotate(18deg); }
main { padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 3.5rem; max-width: 1440px; margin: 0 auto; }
@media (max-width: 1400px) {
  /* Laptop/Tablet: Links in eigener Zeile, horizontal wischbar statt umzubrechen */
  .nav-links { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: max-content; }
  .nav-links::-webkit-scrollbar { display: none; }
}
@media (max-width: 1180px) {
  /* Tablet/iPad: Leiste scrollt mit (nimmt sonst zu viel Höhe weg) */
  .topbar { position: static; }
}
@media (max-width: 480px) {
  .topbar { min-height: 60px; gap: .6rem; }
  .topbar .brand { font-size: .82rem; letter-spacing: .16em; gap: .55rem; }
  .topbar .brand::before { width: 28px; height: 28px; border-radius: 8px; }
  .nav-user .who { display: none; }
  .nav-user { padding: .3rem; }
}

/* ───────────── Bausteine ───────────── */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.15rem, 2.4vw, 1.75rem); box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
/* feiner Lichtrand oben – wirkt wie geschliffenes Glas */
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask-composite: exclude; }
:root[data-theme="light"] .card::before { display: none; }
.row { display: flex; gap: .75rem 1rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head .kicker { display: block; margin-bottom: .35rem; font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .6rem 1.4rem; border-radius: var(--radius-btn); border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); cursor: pointer; text-decoration: none;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease),
              transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn:hover { border-color: var(--gold-line); color: var(--text); background: var(--surface-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary { background: var(--ok); border-color: transparent; color: var(--on-ok);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--ok) 70%, transparent); }
.btn-primary:hover { background: var(--ok); color: var(--on-ok); filter: brightness(1.08); border-color: transparent; }
.btn-brand { background: var(--gold-grad); border-color: transparent; color: var(--on-gold);
  box-shadow: 0 10px 28px -10px rgba(201, 164, 92, .7), 0 1px 0 rgba(255, 255, 255, .45) inset; }
.btn-brand:hover { background: var(--gold-grad); border-color: transparent; color: var(--on-gold); filter: brightness(1.07); }
.btn-danger { background: var(--bad); border-color: transparent; color: var(--on-bad); }
.btn-danger:hover { background: var(--bad); color: var(--on-bad); filter: brightness(1.08); border-color: transparent; }
.btn-small { min-height: 40px; padding: .35rem 1rem; font-size: .7rem; border-radius: 10px; }
.btn.is-active { border-color: var(--gold); color: var(--text); background: color-mix(in srgb, var(--gold) 18%, transparent);
  box-shadow: 0 0 0 1px var(--gold) inset; }

/* ───────────── Listen-Seiten (Anmeldungen): Aktionen, Filter, Empty State ───────────── */
.head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .75rem; }
.act-group { display: inline-flex; align-items: center; gap: 3px; padding: 3px 3px 3px .9rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); background: var(--input-bg); }
.act-label { margin-right: .35rem; font-family: var(--font-head); font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); }
.act-pill { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .95rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-2); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.act-pill:hover { background: var(--gold-grad); color: var(--on-gold); }
.act-sep { width: 1px; height: 1.6rem; background: var(--line-strong); }
.btn-ghost { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .3rem .7rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); text-decoration: none; transition: color .2s var(--ease), background-color .2s var(--ease); }
.btn-ghost:hover { color: var(--text); background: var(--surface-hover); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.filter-seg { display: inline-flex; gap: 3px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--input-bg); }
.filter-seg::-webkit-scrollbar { display: none; }
.filter-seg a { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: .3rem 1rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap;
  color: var(--text-2); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.filter-seg a:hover { background: var(--surface-hover); color: var(--text); }
.filter-seg a.is-active { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 6px 16px -8px rgba(201, 164, 92, .8); }
.filter-seg .count { font-size: .68rem; font-variant-numeric: tabular-nums; opacity: .6; }
.filter-seg a.is-active .count { opacity: .75; }
.btn-export { margin-left: auto; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center;
  min-height: 15rem; padding: 2rem 1rem; }
.empty-state .ring { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: .5rem; border-radius: 50%; color: var(--gold);
  border: 1px dashed var(--line-strong); background: radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%); }
.empty-state .btn { margin-top: .9rem; }

input[type=text], input[type=search], input[type=email], input[type=tel], input[type=date], input[type=number],
input[type=password], select, textarea {
  font: inherit; font-size: 1.02rem; min-height: 54px; padding: .75rem 1.05rem; border: 1px solid var(--field-line);
  border-radius: var(--radius-btn); background: var(--input-bg); color: var(--text); width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
textarea { min-height: 0; }
select option, select optgroup { background: var(--surface-solid); color: var(--text); }
select:disabled { opacity: .55; cursor: not-allowed; }
:is(input[type=text], input[type=search], input[type=email], input[type=tel], input[type=date], input[type=number],
    input[type=password], select, textarea):hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--field-line)); }
:is(input[type=text], input[type=search], input[type=email], input[type=tel], input[type=date], input[type=number],
    input[type=password], select, textarea):focus {
  outline: none; border-color: var(--gold); box-shadow: var(--ring);
  background-color: color-mix(in srgb, var(--gold) 4%, var(--input-bg));
}
select { appearance: none; -webkit-appearance: none; padding-right: 2.8rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23c9a45c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; }
/* iOS Safari gibt Datumsfeldern eine eigene Mindestbreite (ignoriert width: 100%) – so breit wie Telefon & Co. */
input[type=date] { color-scheme: inherit; -webkit-appearance: none; appearance: none; display: block;
  min-width: 0; max-width: 100%; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
input[type=date]::-webkit-calendar-picker-indicator { margin-left: auto; }
label { font-weight: 600; font-size: .95rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 1.2rem; height: 1.2rem; vertical-align: -.2rem; margin-right: .35rem; }

/* Gruppen-Etiketten: neutrale Pills, Unterscheidung über Text */
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  background: var(--tag-bg); color: var(--tag-text); border: 1px solid var(--line-strong); vertical-align: middle; }
.tag-override { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }

/* Tanzstil-Farben: Punkt mit leichtem Glow und Stil-Pill */
.style-dot { display: inline-block; width: .62rem; height: .62rem; border-radius: 50%; margin-right: .5rem; vertical-align: middle;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent), 0 0 12px currentColor; color: inherit; }
.style-pill { --c: var(--gold); display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .65rem .18rem .5rem;
  border-radius: var(--radius-pill); font-family: var(--font-head); font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 55%, var(--text)); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.style-pill::before { content: ""; width: .48rem; height: .48rem; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 10px var(--c); }

/* ───────────── Check-in-Screen ───────────── */
.sessions { display: flex; gap: .75rem; overflow-x: auto; padding: .25rem 0 .9rem; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.session-chip {
  --c: var(--gold);
  position: relative; flex: 1 1 0; display: grid; gap: .15rem; min-width: 7.5rem; padding: 1rem 1.15rem 1rem 1.3rem;
  border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--text); scroll-snap-align: start; overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.session-chip::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--c); box-shadow: 0 0 14px var(--c); opacity: .9; }
.session-chip:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--text); transform: translateY(-2px);
  background: var(--surface-hover); }
.session-chip.active { border-color: color-mix(in srgb, var(--c) 70%, transparent);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--surface);
  box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--c) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent) inset; }
.session-chip .time { font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; }
.session-chip .name { font-weight: 600; line-height: 1.3; }
.session-chip.active .time { color: color-mix(in srgb, var(--c) 45%, var(--text)); }
.search-box label { display: block; color: var(--text-2); margin-bottom: .7rem; }
.search-box input { font-size: 1.45rem; min-height: 68px; padding: .9rem 1.3rem .9rem 3.4rem; border-radius: var(--radius-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23c9a45c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 1.15rem center; }
.search-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.search-tools .group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.kbd { display: inline-block; padding: .05rem .45rem; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  font-family: var(--font-head); font-size: .7rem; font-weight: 700; color: var(--text-2); }
.checkin-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); margin-top: 1rem; align-items: start; }
@media (max-width: 900px) { .checkin-layout { grid-template-columns: 1fr; } }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.result-list li a { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius-btn); text-decoration: none; color: var(--text);
  font-size: 1.05rem; font-weight: 600; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.result-list li a:hover { background: var(--surface-hover); border-color: var(--gold-line); color: var(--text); }
/* Kontingent-Ampel: Bedeutung steht immer auch im Text */
.quota { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .75rem; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 700; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.quota::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 8px currentColor; }
.quota-ok { color: var(--ok); background: var(--ok-bg); }
.quota-last { color: var(--warn); background: var(--warn-bg); }
.quota-bad { color: var(--bad); background: var(--bad-bg); }
.quota-done { color: var(--muted); background: var(--surface-2); }

/* Ergebnis-Karte: Status nie nur über Farbe (Symbol + Wort) */
.verdict { --c: var(--line-strong); position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--c); background: var(--surface); box-shadow: var(--shadow-lift);
  animation: verdict-in .35s var(--ease); }
.verdict::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); }
.verdict > * { position: relative; z-index: 1; }
@keyframes verdict-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.verdict.ok { --c: var(--ok); background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.verdict.bad { --c: var(--bad); background: color-mix(in srgb, var(--bad) 6%, var(--surface)); }
.verdict.warn { --c: var(--warn); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.verdict.done { --c: var(--ok); background: var(--ok); color: var(--on-ok); }
.verdict.done::after { background: radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .25), transparent 60%); }
.status-line { display: flex; align-items: center; gap: .85rem; font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.verdict-course { margin-left: auto; align-self: flex-start; font-family: var(--font-body, inherit); font-size: .8rem;
  font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted, #8d877a); opacity: .85; white-space: nowrap; }
.status-icon { display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; color: var(--on-ok);
  font-size: 1.55rem; flex: none; }
.verdict.ok .status-line { color: var(--ok); }
.verdict.ok .status-icon { background: var(--ok); color: var(--on-ok); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 18%, transparent), 0 0 30px color-mix(in srgb, var(--ok) 60%, transparent); }
.verdict.warn .status-line { color: var(--warn); }
.verdict.warn .status-icon { background: var(--warn); color: #1c1403; box-shadow: 0 0 0 6px color-mix(in srgb, var(--warn) 18%, transparent), 0 0 30px color-mix(in srgb, var(--warn) 55%, transparent); }
.verdict.bad .status-line { color: var(--bad); }
.verdict.bad .status-icon { background: var(--bad); color: var(--on-bad); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bad) 18%, transparent), 0 0 30px color-mix(in srgb, var(--bad) 55%, transparent); }
.verdict.done .status-icon { background: var(--on-ok); color: var(--ok); }
.verdict .big { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-top: .6rem;
  letter-spacing: -.01em; line-height: 1.12; }
.verdict .reason { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.15rem; font-weight: 600; margin: .55rem 0; }
.verdict input[type=text] { min-height: 52px; }
/* Profilfoto: rechte Spalte, Höhe folgt der Karte (Zeile), Breite proportional */
.verdict-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(5rem, 26%, 9.5rem); gap: 1rem clamp(.9rem, 2.5vw, 1.6rem); align-items: stretch; }
.verdict-main { min-width: 0; overflow-wrap: anywhere; }
.photo-col { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.verdict-photo { --pc: var(--c); position: relative; flex: 1 1 auto; margin: 0; min-height: 6.5rem; overflow: hidden; isolation: isolate;
  border: 1px solid var(--pc); border-radius: var(--radius); background: color-mix(in srgb, var(--pc) 8%, var(--surface));
  box-shadow: inset 0 0 36px color-mix(in srgb, var(--pc) 20%, transparent), 0 10px 26px -14px color-mix(in srgb, var(--pc) 60%, transparent); }
.verdict-photo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 55%, transparent), transparent); }
.verdict-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verdict-photo .monogram { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: .04em; color: var(--pc);
  background: radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 70%); }
/* ganzes Foto ist der Kamera-Trigger; Overlay nur bei Maus-Hover */
.verdict-photo .photo-hit { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(0, 0, 0, 0); transition: background-color .2s var(--ease); }
.verdict-photo .photo-hit .cam { opacity: 0; transition: opacity .2s var(--ease); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
@media (hover: hover) { .verdict-photo .photo-hit:hover { background: rgba(0, 0, 0, .5); } .verdict-photo .photo-hit:hover .cam { opacity: 1; } }
.verdict-photo .photo-hit:focus-within, .photo-col input:focus-visible ~ .verdict-photo .photo-error { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: .3rem .5rem; font-size: .72rem; font-weight: 600;
  background: var(--bad); color: var(--on-bad); }
.verdict.done .verdict-photo { --pc: var(--on-ok); }
@media (max-width: 480px) { .verdict-body { grid-template-columns: minmax(0, 1fr) 4.6rem; gap: .75rem; } .verdict-photo { min-height: 5.5rem; } }

.role-toggle { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn); background: var(--input-bg); }
.role-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.role-toggle label { display: grid; place-items: center; min-height: 46px; padding: .5rem 1.35rem; cursor: pointer; border-radius: 9px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2);
  transition: background-color .2s var(--ease), color .2s var(--ease); }
.role-toggle label:hover { background: var(--surface-hover); }
.role-toggle input:checked + label { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 6px 16px -8px rgba(201, 164, 92, .8); }
.role-toggle input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.error { background: var(--bad-bg); color: var(--bad); padding: .85rem 1.1rem; border-radius: var(--radius-btn);
  border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); font-weight: 600; }
/* Feed „Zuletzt eingecheckt“: füllt die Zeilenhöhe der linken Spalte, ohne sie selbst zu vergrößern */
.recent-card { align-self: stretch; min-height: 22rem; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.recent-card #recent { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.recent-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.15rem 1.25rem .85rem; }
.recent-head h2 { margin: 0; }
.live-count { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .7rem; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); color: var(--ok); font-size: .8rem; white-space: nowrap; }
.live-count strong { font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums; }
.live-count .split { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.live-count .dot { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.recent-wrap { position: relative; flex: 1 1 auto; min-height: 12rem; border-top: 1px solid var(--line); }
.recent { list-style: none; padding: .35rem .65rem; margin: 0; position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent; }
.recent li { display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent .avatar { position: relative; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--gold); font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.recent .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recent .who { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.25; }
.recent .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .meta { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.recent .meta .tag { padding: .05rem .45rem; font-size: .6rem; }
.role-badge { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; font-family: var(--font-head);
  font-size: .72rem; font-weight: 800; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--input-bg); }
.undo { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.2rem -.3rem -.2rem 0; padding: 0; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; opacity: .6; transition: opacity .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease); }
.recent li:hover .undo, .undo:focus-visible { opacity: 1; }
.undo:hover { color: var(--bad); background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
@media (hover: none) { .undo { opacity: 1; } }
.recent li.is-reverted { opacity: .5; }
.recent li.is-reverted .nm { text-decoration: line-through; }
.recent-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 1rem; }
.recent-empty .ring { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: .4rem; border-radius: 50%; color: var(--gold);
  border: 1px dashed var(--line-strong); background: radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%); }
@media (max-width: 900px) { .recent-card { min-height: 0; } .recent-wrap { min-height: 0; max-height: 26rem; } .recent { position: static; max-height: 26rem; } .recent-empty { position: static; padding: 2rem 1rem; } }
.reverted { text-decoration: line-through; color: var(--muted); }

/* ───────────── Board ───────────── */
.tile { --tile-color: var(--gold); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--tile-color) 20%, transparent), transparent 70%),
              linear-gradient(90deg, transparent, var(--tile-color), transparent) top / 100% 1px no-repeat; }
.tile > * { position: relative; z-index: 1; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--tile-color) 40%, transparent); }
.tile h3 { font-size: 1.15rem; margin-top: .55rem; }
.tile .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.bignum { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; }
.roles { display: flex; gap: .5rem; flex-wrap: wrap; font-weight: 600; }
.roles span { padding: .2rem .7rem; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.balance-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--radius-btn); padding: .4rem .75rem; font-size: .9rem; font-weight: 700; }
details summary { cursor: pointer; font-weight: 600; margin-top: .4rem; }
.breakdown { list-style: none; padding: 0; margin: .4rem 0 0; }
.breakdown > li { margin: .3rem 0; }
.breakdown ul { list-style: none; padding-left: 1.2rem; margin: .15rem 0; color: var(--muted); font-size: .92rem; }

/* ───────────── Dashboard ───────────── */
.kpis { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi { overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.kpi .value { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.filters { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.quick-range { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 3px; padding: 3px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); background: var(--input-bg); }
.seg button { border: 0; background: transparent; color: var(--text-2); font-family: var(--font-head); font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: .55rem 1rem; cursor: pointer; border-radius: var(--radius-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg button:hover { background: var(--surface-hover); }
.seg button[aria-pressed="true"] { background: var(--gold-grad); color: var(--on-gold); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-head); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
thead th { position: sticky; top: 0; background: var(--surface-solid); border-bottom: 1px solid var(--line-strong); }
tbody tr { transition: background-color .15s var(--ease); }
tbody tr:hover td { background: var(--surface-hover); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.heat { background: rgba(var(--heat), calc(var(--h, 0) * .5)); }
tbody tr:hover td.heat { background: rgba(var(--heat), calc(var(--h, 0) * .5 + .08)); }
.chart-box { position: relative; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-btn); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ───────────── Meldungen ───────────── */
.messages { margin-bottom: 1.25rem; display: grid; gap: .6rem; }
.msg { margin: 0; padding: .9rem 1.15rem .9rem 2.6rem; position: relative; border-radius: var(--radius-btn);
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; }
.msg::before { content: ""; position: absolute; left: 1.1rem; top: 50%; width: .55rem; height: .55rem; margin-top: -.275rem;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.msg-success { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); color: var(--text); }
.msg-success::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.msg-error { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-bg); color: var(--text); }
.msg-error::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }

/* ───────────── Special Events ───────────── */
.result-card { border: 1px solid var(--line-strong); }
.result-card.minus { border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.result-card.plus { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.result-value { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.result-card.minus .result-value { color: var(--bad); }
.result-card.plus .result-value { color: var(--ok); }
.meter { height: 10px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: .7rem 0 .35rem; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); box-shadow: 0 0 12px rgba(201, 164, 92, .5); }
.meter.lead > span { background: var(--gold-light); }
:root[data-theme="light"] .meter.lead > span { background: var(--accent); }
.needed { font-size: 1.3rem; font-weight: 700; }
.needed strong { font-family: var(--font-head); font-size: 1.7rem; }
.quota-row { display: grid; grid-template-columns: 6.5rem 1fr 5.5rem; gap: .6rem; align-items: center; margin: .4rem 0; }
.quota-row .meter { margin: 0; }
.event-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); margin-top: 1.25rem; }
.event-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.event-card a.title { color: var(--text); text-decoration: none; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.event-card a.title:hover { color: var(--accent); }

/* Navigation: Zähler für neue Anmeldungen */
.nav-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem;
  border-radius: var(--radius-pill); background: var(--gold-grad); color: #0b0b0b; font-size: .68rem; font-weight: 800;
  letter-spacing: 0; box-shadow: 0 0 12px rgba(201, 164, 92, .55); }

/* ───────────── Öffentliche Anmeldung (Webseite und iPad) ───────────── */
.public .topbar { justify-content: center; }
.public .topbar .brand { margin-right: 0; }
.public-main { max-width: 820px; }
.public .lead { font-size: 1.05rem; }
.signup { display: grid; gap: 1rem; }
.grid-2, .grid-3 { display: grid; gap: 1rem; margin-bottom: .8rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-3 { grid-template-columns: minmax(0, 2fr) minmax(90px, .7fr) minmax(0, 1.3fr); }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .3rem; }
.check { display: flex; gap: .85rem; align-items: flex-start; margin: .7rem 0; font-weight: 500; }
.choice .promo, .promo { display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; font-size: .8rem; font-weight: 700;
  color: var(--text); background: color-mix(in srgb, var(--gold) 18%, transparent); border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill); padding: .22rem .75rem; width: fit-content; }
.promo::before { content: "✦"; color: var(--gold); font-size: .75rem; }
.promo-inline { font-weight: 600; background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: var(--radius-pill);
  padding: .2rem .6rem; }
.switch-form { text-align: center; margin: 1.75rem 0 2rem; font-size: 1rem; color: var(--muted); }
.switch-form a { font-weight: 700; }
.field-error { color: var(--bad); font-weight: 600; font-size: .88rem; margin: .1rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sig-wrap { position: relative; }
.sig-wrap canvas { width: 100%; height: 210px; background: #fff; border: 1px dashed color-mix(in srgb, var(--gold) 70%, #999);
  border-radius: var(--radius-md); touch-action: none; display: block; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent); }
.sig-wrap::after { content: "Hier unterschreiben"; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 2.6rem; pointer-events: none;
  border-top: 1px solid #d9d2c3; padding-top: .35rem; font-family: var(--font-head); font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: #a59c8a; }
.sig-wrap .btn { position: absolute; right: .7rem; top: .7rem; background: #fff; color: #0b0b0b; border-color: #ddd; z-index: 1; }
.btn-big { min-height: 62px; font-size: .9rem; width: 100%; letter-spacing: .14em; border-radius: var(--radius-md); }
.contract { font-size: .95rem; }
.contract h3 { margin-top: 1rem; }
.contract h4 { margin: 1rem 0 .3rem; font-size: 1rem; }
.contract-version { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }
details summary { cursor: pointer; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.thanks { text-align: center; padding: 3rem 1.5rem; }
.thanks h1 { color: var(--gold); }
.kiosk .public-main { max-width: 900px; font-size: 1.05rem; }

/* Öffentliche Formulare: Vertrag (.reg-form) und Probetraining (.trial-form)
   Aufbau: nummerierte Abschnitte als eigene Kacheln, Blickführung strikt von oben nach unten */
.reg-page .public-main { max-width: 720px; }
.trial-page .public-main { max-width: 600px; }
.form-card, .trial-card { padding: clamp(1.25rem, 4vw, 2.25rem); }
.reg-form, .trial-form { display: grid; gap: 1.25rem; }
@media (max-width: 560px) {
  /* Handy: äußere Karte auflösen – die Abschnitts-Kacheln tragen die Struktur, Felder bekommen die volle Breite */
  .form-card { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .form-card::before { display: none; }
  .reg-form select[name="tariff"] { font-size: .92rem; }
}
@media (max-width: 420px) {
  .topbar .brand { font-size: .76rem; letter-spacing: .12em; }
  .topbar .brand span { letter-spacing: .06em; }
}
.form-head, .trial-head { text-align: center; margin: .4rem 0 .5rem; }
.form-head .lead { margin: .9rem auto 0; max-width: 34rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font-family: var(--font-head); font-size: .7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .28em; color: var(--accent); }
.eyebrow::before, .eyebrow::after { content: ""; width: 1.6rem; height: 1px; background: var(--gold-line); }
.form-title, .trial-title { margin: 0; color: var(--text); font-size: clamp(1.7rem, 6.5vw, 2.4rem); line-height: 1.1;
  font-weight: 800; letter-spacing: -.015em; }
.form-title::after, .trial-title::after { content: ""; display: block; width: 48px; height: 2px; margin: 1rem auto 0;
  border-radius: 2px; background: var(--gold-grad); }
.form-section { counter-increment: step; display: grid; gap: 1.1rem; padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.form-section:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line) inset; }
.reg-form { counter-reset: step; }
.section-title { display: flex; align-items: center; gap: .8rem; margin: 0; color: var(--text); font-size: .86rem; letter-spacing: .14em; }
.reg-form .section-title::before { content: counter(step); display: inline-grid; place-items: center; flex: none;
  width: 1.85rem; height: 1.85rem; border-radius: 50%; border: 1px solid var(--gold-line);
  background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--accent);
  font-size: .78rem; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums;
  transition: background .25s var(--ease), color .25s var(--ease); }
.reg-form .form-section:focus-within .section-title::before { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
:is(.reg-form, .trial-form) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:is(.reg-form, .trial-form) .field { display: grid; gap: .45rem; align-content: start; }
:is(.reg-form, .trial-form) .field > label, :is(.reg-form, .trial-form) .q {
  font-size: .9rem; font-weight: 600; color: var(--text-2); padding: 0; margin: 0 0 .1rem; letter-spacing: .01em; }
:is(.reg-form, .trial-form) select { font-weight: 600; }
.field-grid { display: grid; gap: 1.1rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid > .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.grid-zip { display: grid; grid-template-columns: minmax(7.5rem, 1fr) minmax(0, 1.8fr); gap: 1.1rem 1rem; align-items: end; }
@media (max-width: 340px) { .grid-zip { grid-template-columns: 1fr; } }
.hint { margin: .1rem 0 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.form-note, .trial-note { margin: -.4rem 0 0; text-align: center; font-size: .84rem; color: var(--muted); }
.info-box { background: color-mix(in srgb, var(--gold) 7%, transparent); border: 1px solid var(--gold-line);
  border-radius: var(--radius-btn); padding: 1rem 1.15rem; }
.info-box p { margin: 0 0 .6rem; }
.info-box details summary { margin: 0; color: var(--accent); }

/* Auswahl: Optionen als große, antippbare Kacheln */
.opt-list { display: grid; gap: .6rem; margin-top: .35rem; }
.opt { position: relative; display: flex; align-items: center; gap: .9rem; min-height: 58px; padding: .75rem 1.1rem; cursor: pointer;
  font-size: 1.04rem; font-weight: 600; color: var(--text); border: 1px solid var(--field-line); border-radius: var(--radius-btn);
  background: var(--input-bg);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease); }
.opt:hover { border-color: color-mix(in srgb, var(--c, var(--gold)) 60%, transparent); }
.opt:active { transform: scale(.99); }
.opt:has(input:checked) { border-color: var(--c, var(--gold));
  background: color-mix(in srgb, var(--c, var(--gold)) 12%, var(--input-bg));
  box-shadow: 0 0 0 1px var(--c, var(--gold)) inset, 0 10px 24px -14px var(--c, var(--gold)); }
/* Tanzstile als Farb-Kacheln nebeneinander */
.dance-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .dance-opts { grid-template-columns: 1fr; } }
.opt:has(input[value="Salsa"]) { --c: var(--salsa); }
.opt:has(input[value="Bachata"]) { --c: var(--bachata); }
.opt:has(input[value="Kizomba"]) { --c: var(--kizomba); }
.dance-opts .opt { gap: .7rem; padding: .75rem .9rem; }
:is(.reg-form, .trial-form) input[type=radio], :is(.reg-form, .trial-form) input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; margin: 0;
  width: 1.45rem; height: 1.45rem; border: 1.5px solid var(--line-strong); background: transparent;
  cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
:is(.reg-form, .trial-form) input[type=radio] { border-radius: 50%; }
:is(.reg-form, .trial-form) input[type=checkbox] { border-radius: 7px; }
:is(.reg-form, .trial-form) input[type=radio]:hover, :is(.reg-form, .trial-form) input[type=checkbox]:hover { border-color: var(--gold); }
:is(.reg-form, .trial-form) input[type=radio]:checked, :is(.reg-form, .trial-form) input[type=checkbox]:checked {
  border-color: var(--c, var(--gold)); background: var(--c, var(--gold)); }
:is(.reg-form, .trial-form) input[type=radio]:checked::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #0b0b0b; }
:is(.reg-form, .trial-form) input[type=checkbox]:checked::before { content: ""; width: .36rem; height: .72rem; margin-top: -.15rem;
  border: solid #0b0b0b; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.dance-opts input:checked::before { border-color: #fff !important; }
.dance-opts input[type=radio]:checked::before { background: #fff !important; }
:is(.reg-form, .trial-form) .checks { display: grid; gap: .35rem; }
:is(.reg-form, .trial-form) .check { margin: 0; padding: .7rem .8rem; gap: .9rem; font-size: .98rem; line-height: 1.5; cursor: pointer;
  border-radius: var(--radius-btn); transition: background-color .2s var(--ease); }
:is(.reg-form, .trial-form) .check:hover { background: var(--surface-hover); }
:is(.reg-form, .trial-form) .check input { margin-top: .05rem; }
:is(.reg-form, .trial-form) .has-error input[type=radio], :is(.reg-form, .trial-form) .has-error input[type=checkbox] { border-color: var(--bad); }
:is(.reg-form, .trial-form) .has-error .opt { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
:is(.reg-form, .trial-form) .has-error :is(input[type=text], input[type=email], input[type=tel], input[type=date], select) {
  border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
:is(.reg-form, .trial-form) .btn-big { margin-top: .4rem; }
.sig-wrap.has-error canvas { border-color: var(--bad); }

/* Tarif: Dropdown + Infokarte des gewählten Tarifs */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reg-form select[name="tariff"] { min-height: 60px; font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .01em; border-color: var(--gold-line); }
.tariff-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1.25rem; align-items: center;
  padding: 1.2rem 1.3rem; border: 1px solid var(--gold-line); border-radius: var(--radius-md); position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%), var(--input-bg);
  box-shadow: 0 16px 36px -22px rgba(201, 164, 92, .55); animation: verdict-in .3s var(--ease); }
.tariff-card[hidden] { display: none; }
.tariff-main { display: grid; gap: .2rem; min-width: 0; }
.tariff-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.tariff-desc { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.tariff-price { display: grid; justify-items: end; text-align: right; line-height: 1.1; }
.tariff-price strong { font-family: var(--font-head); font-size: 1.85rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.tariff-price small { font-size: .74rem; color: var(--muted); margin-top: .25rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 420px) {
  .tariff-card { grid-template-columns: minmax(0, 1fr); }
  .tariff-price { justify-items: start; text-align: left; margin-top: .45rem; display: flex; gap: .45rem; align-items: baseline; }
}

/* Segment-Auswahl (Tanzrolle) und Reiter (Probetraining) */
.seg-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--field-line);
  border-radius: var(--radius-btn); background: var(--input-bg); }
.seg-choice label { position: relative; display: grid; place-items: center; min-height: 50px; padding: .4rem; cursor: pointer;
  border-radius: 9px; font-family: var(--font-head); font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg-choice label:hover { background: var(--surface-hover); }
.seg-choice input { position: absolute !important; opacity: 0; pointer-events: none; }
.seg-choice label:has(input:checked) { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 6px 16px -8px rgba(201, 164, 92, .8); }
.seg-choice label:has(input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.seg-choice-2 { grid-template-columns: repeat(2, 1fr); }
.trial-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--field-line);
  border-radius: var(--radius-pill); background: var(--input-bg); }
.trial-tab { position: relative; display: grid; place-items: center; min-height: 50px; padding: .5rem; cursor: pointer;
  border-radius: var(--radius-pill); font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.trial-tab:hover { color: var(--text); background: var(--surface-hover); }
.trial-tab input { position: absolute; opacity: 0; pointer-events: none; }
.trial-tab.is-active, .trial-tab:has(input:checked) { background: var(--gold-grad); color: var(--on-gold);
  box-shadow: 0 6px 18px -8px rgba(201, 164, 92, .85); }
.trial-tab:has(input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Sichtbarkeit je nach Auswahl (Reiter, Tarif, Einstieg) */
.trial-form[data-kind="week"] .only-hour, .trial-form[data-kind="hour"] .only-week,
.reg-form[data-fixed="1"] .not-fixed, .reg-form:not([data-fixed="1"]) .only-fixed,
.reg-form[data-entry=""] .entry-fields, .reg-form:not([data-entry="quer"]) .only-quer, .reg-form[data-entry="quer"] .only-neu,
.reg-form[data-member="1"] .only-nonmember, .reg-form:not([data-member="1"]) .only-member { display: none !important; }
.reg-form .not-fixed { display: grid; gap: 1.1rem; }
.entry-fields { display: grid; gap: 1.1rem; margin-top: .6rem; padding: 1.1rem 0 0 1.1rem; border-left: 2px solid color-mix(in srgb, var(--gold) 45%, transparent); }

/* ───────────── Anmeldungen in der Verwaltung ───────────── */
.detail-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 800px) { .detail-layout { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.2rem; margin: 0 0 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
img.signature { max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-btn); }
.print-only { display: none; }
@media print {
  /* Druck immer hell, sonst landet weißer Text auf weißem Papier */
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --bg: #fff; --bg-ambient: none; --surface: #fff; --surface-2: #fff; --surface-solid: #fff; --text: #000; --text-2: #000;
    --muted: #555; --line: #ccc; --accent: #000; --input-bg: #fff; --shadow: none; color-scheme: light;
  }
  body { background: #fff; }
  .topbar, .no-print, .messages { display: none !important; }
  .print-only { display: block; margin-top: 1rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .card { border: none; padding: 0; backdrop-filter: none; }
  .card::before { display: none; }
}

/* Kündigung (§ 312k BGB) und Fußzeile der öffentlichen Seiten */
.cancel-form:not([data-kind="fristlos"]) .only-fristlos, .cancel-form:not([data-when="date"]) .only-date { display: none !important; }
.cancel-form textarea { width: 100%; min-height: 6rem; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; padding: 1.5rem 16px 2.5rem; font-size: .88rem; }
.public-footer a { color: var(--muted); text-decoration: none; }
.public-footer a:hover { color: var(--text); }
.public-footer .cancel-link { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.receipt { width: 100%; margin: 1.2rem 0; }
.receipt th { text-align: left; font-weight: 600; width: 40%; vertical-align: top; padding-right: 1rem; }
@media print { .public-footer, .cancel-receipt .btn, .topbar { display: none !important; } }

/* Bootcamp/Workshop-Formular: Info-Box zum Termin */
.event-box { display: grid; gap: .35rem; padding: 1.3rem 1.35rem 1.35rem; border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%), var(--input-bg); }
.event-kicker { margin: 0; font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); }
.event-title { margin: 0; font-family: var(--font-head); font-size: clamp(1.35rem, 5.5vw, 1.75rem); font-weight: 800;
  letter-spacing: -.005em; line-height: 1.15; color: var(--text); }
.event-sub { margin: 0; font-family: var(--font-head); font-size: .86rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); }
.event-facts { list-style: none; margin: .6rem 0 .3rem; padding: 0; display: grid; gap: .55rem; }
.event-facts li { display: flex; align-items: center; gap: .75rem; font-size: 1rem; }
.event-facts svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.event-price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .45rem;
  padding: .85rem 1.05rem; border: 1px solid var(--gold-line); border-radius: var(--radius-btn); background: var(--input-bg); }
.event-price span { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.event-price strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.event-form .section-title { margin-top: .3rem; }

/* SEPA-Lastschrift: Mandatstext und IBAN-Prüfung beim Tippen */
.mandate-text p { margin: 0 0 .55rem; font-size: .9rem; line-height: 1.55; }
.mandate-text p:last-child { margin-bottom: 0; }
.iban-check { margin: .25rem 0 0; min-height: 1.2em; color: var(--muted); }
.iban-check.ok { color: var(--ok, #2e8b57); font-weight: 600; }
.iban-check.bad { color: var(--bad); font-weight: 600; }
#id_iban { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.run-total td { font-weight: 700; border-top: 2px solid var(--gold-line); }
