/* ==========================================================================
   Gemeinsame Grundlage aller öffentlichen Seiten.
   Warmes Ink + Bordeaux aus dem Community-Designsystem, Barlow,
   dunkel als Standard, hell über data-theme="light".
   Regeln: DESIGN.md, Herkunft: design-preview/README.md
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Farben aus dem Community-Designsystem (ki-automatisierung-design): warme
   Neutraltöne statt kaltem Grau, Bordeaux #7C1518 als Marke, das angehobene
   Weinrot #B42127 nur für Aktionen.
   Rot-Regel: ein starker roter Moment pro Blick. Bordeaux-Fläche nur für das
   eine Band pro Seite und den Kopf der Schlüsselkarte, Aktions-Rot nur auf
   Buttons, alles andere Rote läuft über die zarte Tönung (--tint).
   Im Dunkeln nie rote Schrift. */
:root {
  color-scheme: dark;
  --red: #7c1518;            /* Bordeaux: Band, Kopf der Schlüsselkarte */
  --red-deep: #5e1013;
  --red-cta: #b42127;        /* Aktionen: Buttons, Play */
  --red-cta-deep: #961b20;

  --bg: #161311;
  --section: #1e1a17;        /* abgesetzte Abschnitte, Kopf- und Fußzeile */
  --sheet: #2a2420;          /* Karten */
  --sunk: #352d28;           /* vertiefte Flächen, Hover */
  --canvas: #1b1715;
  --ink: #f3ede4;
  --ink-soft: #e2dbd0;       /* Fließtext: fast volle Helligkeit, nie grau */
  --ink-mute: #b8ad9f;       /* nur Nebeninfos */
  --placeholder: #a39889;
  --line: #3a322c;
  --line-strong: #4f453d;
  --field-line: #857668;     /* Rahmen von Eingabefeldern, mind. 3:1 */
  --dots: rgba(238, 232, 223, .07);
  --paper-dot: rgba(30, 26, 23, .06);

  --accent: var(--red-cta);       /* Flächen von Aktionen */
  --accent-deep: var(--red-cta-deep);
  --on-accent: #ffffff;
  --accent-text: var(--ink);      /* Akzent als Schrift: im Dunkeln hell */
  --mark-line: var(--red-cta);    /* Unterstreichung des Schlüsselworts */
  --rule: var(--red-cta);         /* rote Kopflinie, Markenpunkt */
  --ring: rgba(180, 33, 39, .45);
  --tile: var(--red);
  --on-tile: #f4ede3;
  --on-tile-soft: #ead6d2;
  --band: var(--red);
  --tint: #381b1a;                /* zarte Rot-Tönung: Haken, Nummern, Etiketten */
  --tint-line: #5a2a28;
  --tint-fg: #f4d9d5;
  --select-bg: var(--ink);        /* gewählter Filter: neutral umgedreht */
  --select-fg: var(--bg);
  --ok: #7fbf8a;
  --on-ok: #10200f;
  --danger: #e07a7a;

  --sans: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 32px -20px rgba(6, 4, 3, .85);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --measure: 64ch;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ece4d6;             /* Chalk: bewusst tiefer, damit weiße Karten aufliegen */
  --section: #f5f0e8;
  --sheet: #ffffff;
  --sunk: #f1eee7;
  --canvas: #f5f0e8;
  --ink: #1e1a17;
  --ink-soft: #2b2521;
  --ink-mute: #524a43;
  --placeholder: #6e655b;
  --line: #dcd4c6;
  --line-strong: #c7bca9;
  --field-line: #8e8170;
  --dots: rgba(30, 26, 23, .1);
  --accent-text: var(--red);
  --mark-line: transparent;
  --rule: var(--red);
  --ring: rgba(180, 33, 39, .22);
  --tint: #fbe9e7;
  --tint-line: #e7cfca;
  --tint-fg: var(--red);
  --select-bg: var(--ink);
  --select-fg: #f5f0e8;
  --ok: #3d7a49;
  --on-ok: #ffffff;
  --danger: #a3262f;
  --shadow: 0 1px 2px rgba(30, 26, 23, .06), 0 14px 30px -20px rgba(30, 26, 23, .28);
}

/* ---- Grundlage ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  /* Fließtext 19 px in Barlow 500: auf warmem Grund und im Dunkeln gut lesbar */
  font: 500 1.1875rem/1.65 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
:root[data-theme="light"] body { background-image: radial-gradient(var(--paper-dot) 1px, transparent 1.2px); background-size: 18px 18px; }
html { scrollbar-color: var(--line-strong) var(--bg); }
input, textarea { caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--on-accent); }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration-color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Seitenwechsel: sanft überblenden statt kurz neu aufzubauen. Die Kopfzeile
   bleibt dabei stehen. Ohne Unterstützung im Browser bleibt es ein normaler
   Seitenwechsel, bei reduzierter Bewegung auch. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .bar { view-transition-name: site-bar; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 mark, h2 mark { background: none; color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--mark-line); text-decoration-thickness: .1em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- Kopfzeile ---- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--section); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--rule); }
a.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav-link { font: 500 .98rem var(--sans); color: var(--ink-soft); text-decoration: none; padding: 7px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover { color: var(--ink); background: var(--sunk); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--sunk); }
@media (max-width: 520px) {
  .nav-link__rest { display: none; }
  /* Alle fünf Punkte passen ab 375 px nebeneinander, darunter scrollt die Leiste */
  .nav { gap: 0; justify-content: space-between; }
  .nav-link { padding: 7px 5px; font-size: .9rem; }
}
.bar__end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .bar__end { margin-left: 0; }
.bar__when { color: var(--ink-soft); font-size: .95rem; white-space: nowrap; }
.bar__when b { color: var(--ink); font-weight: 600; }
#theme-toggle { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); cursor: pointer; transition: border-color .2s, color .2s; }
#theme-toggle:hover { border-color: var(--accent); color: var(--ink); }
#theme-toggle svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .bar__in { flex-wrap: wrap; padding-top: 12px; row-gap: 6px; gap: 12px; }
  .brand { margin-right: auto; }
  .bar__end { margin-left: 0; }
  .nav { order: 3; width: calc(100% + 12px); margin: 0 -6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) { .bar__when { display: none; } }

/* ---- Buttons ---- */
.btn {
  --bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px;
  font: 600 1.02rem/1.15 var(--sans); color: var(--on-accent); text-decoration: none; text-align: center;
  background: var(--bg); border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover { --bg: var(--accent-deep); color: var(--on-accent); }
/* Gesperrt neutral statt durchscheinendem Rot, das sonst rosa wirkt */
.btn[disabled], .btn[disabled]:hover { --bg: var(--sunk); color: var(--ink-mute); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: not-allowed; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; font-weight: 700; border-radius: 12px; }
.btn--ghost, .btn--outline-accent, .btn--secondary { --bg: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover, .btn--outline-accent:hover, .btn--secondary:hover { --bg: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--block { width: 100%; }

.link-btn { font: inherit; color: var(--accent-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.link-btn:hover { color: var(--ink); }

/* ---- Formulare ---- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.field__input {
  width: 100%; height: 52px; padding: 0 16px;
  font: 400 1.075rem var(--sans); color: var(--ink);
  background: var(--sheet); border: 1px solid var(--field-line); border-radius: var(--radius); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field__input::placeholder { color: var(--placeholder); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--ink-mute); cursor: pointer; }
.consent input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.form__footnote { font-size: .86rem; color: var(--ink-mute); }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; }
.alert--error { background: color-mix(in srgb, var(--danger) 14%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); color: var(--ink); }
.loading { padding: 40px 0; text-align: center; color: var(--ink-mute); }

/* Erfolgsmeldung nach dem Absenden */
.notice { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: var(--sunk); border: 1px solid var(--line); }
.notice h3 { font-size: 1.3rem; }
.notice p { color: var(--ink-soft); }
.notice__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tile); color: var(--on-tile); }

/* Haken aus der Server-Vorlage (src/pages.js) und den Seiten */
.cb-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--tint-fg); box-shadow: inset 0 0 0 1px var(--tint-line); margin-top: 1px; }
.cb-icon svg { width: 13px; height: 13px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }

/* ---- Abschnitte ---- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--sheet { background: var(--section); border-block: 1px solid var(--line); }
/* Abschnittskopf: Überschrift und Satz stehen zusammen, nicht auseinandergezogen */
.section__head { display: grid; gap: 14px; max-width: 780px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.028em; }
.section__head p { color: var(--ink-soft); font-size: 1.2rem; max-width: 56ch; }

.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Schlüsselkarte: die eine Karte pro Seite, die über der Seite schwebt.
   Gegenpol-Regel: sie ist in beiden Modi hell. Der Schatten ist mehrstufig:
   eng am Rand, dann breit und tief darunter. Farben werden lokal auf hell gesetzt. */
.key-card {
  --bg: #fffdf9; --section: #f5f0e8; --sheet: #fffdf9; --sunk: #f1eee7; --canvas: #f5f0e8;
  --ink: #1e1a17; --ink-soft: #2b2521; --ink-mute: #524a43; --placeholder: #6e655b;
  --line: #e3dbcd; --line-strong: #c7bca9; --field-line: #8e8170;
  --accent-text: var(--red); --mark-line: transparent; --rule: var(--red);
  --tint: #fbe9e7; --tint-line: #e7cfca; --tint-fg: var(--red);
  --select-bg: #1e1a17; --select-fg: #f5f0e8; --ring: rgba(180, 33, 39, .22); --shadow: none;
  background: var(--sheet); color: var(--ink);
  border: 0; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(243, 237, 228, .22), 0 2px 6px rgba(0, 0, 0, .5), 0 24px 44px -10px rgba(0, 0, 0, .85), 0 70px 120px -20px rgba(0, 0, 0, .95);
}
:root[data-theme="light"] .key-card {
  box-shadow: 0 0 0 1px rgba(30, 26, 23, .1), 0 3px 8px rgba(30, 26, 23, .12), 0 26px 46px -14px rgba(70, 45, 30, .45), 0 70px 120px -30px rgba(70, 45, 30, .6);
}

/* Helles Objekt auf jedem Grund (Gegenpol-Regel): lokale helle Farben wie die Schlüsselkarte,
   aber ohne deren großen Schwebeschatten. --lift legt es sichtbar auf:
   auf dunklem Grund weicher, tiefer Schatten, auf hellem Grund Ink-Rahmen mit Versatz. */
.paper {
  --bg: #fffdf9; --section: #f5f0e8; --sheet: #fffdf9; --sunk: #f1eadf; --canvas: #f5f0e8;
  --ink: #1e1a17; --ink-soft: #2b2521; --ink-mute: #524a43; --placeholder: #6e655b;
  --line: #e3dbcd; --line-strong: #c7bca9; --field-line: #8e8170;
  --accent-text: var(--red); --mark-line: transparent; --rule: var(--red);
  --tint: #fbe9e7; --tint-line: #e7cfca; --tint-fg: var(--red);
  --select-bg: #1e1a17; --select-fg: #f5f0e8; --ring: rgba(180, 33, 39, .22); --shadow: none;
  background: var(--sheet); color: var(--ink);
}
.paper--lift { border: 0; border-radius: 16px; box-shadow: 0 0 0 1px rgba(243, 237, 228, .14), 0 20px 44px -24px rgba(0, 0, 0, .95); }
:root[data-theme="light"] .paper--lift,
:root:not([data-theme="light"]) .section--invert .paper--lift { box-shadow: 0 0 0 1.5px #1e1a17, 4px 4px 0 1.5px #1e1a17; }
:root[data-theme="light"] .section--invert .paper--lift,
.band .paper--lift { box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 24px 46px -24px rgba(0, 0, 0, .9); }

/* Kleiner Hinweis im Bordeaux-Kopf einer Schlüsselkarte (ohne Puls, der gehört zu "live") */
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(247, 241, 232, .14); font: 600 .9rem/1.2 var(--sans); font-style: normal; color: #f7f1e8; }
.chip svg { width: 13px; height: 13px; }

.placeholder {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px; color: var(--ink-soft); font-size: .96rem; background: var(--sheet);
}
.placeholder strong { display: block; color: var(--accent-text); margin-bottom: 4px; font-weight: 600; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--tint); border: 1px solid var(--tint-line); color: var(--tint-fg); font-weight: 600; font-size: .86rem; }

/* Rotes Band: flaches Bordeaux, höchstens eines pro Seite. Farben werden lokal umgedreht. */
.band {
  background: var(--band); color: var(--on-tile);
  --ink: #f4ede3; --ink-soft: #ead6d2; --ink-mute: #dcc0bb;
  --line: rgba(244, 237, 227, .2); --line-strong: rgba(244, 237, 227, .34); --field-line: transparent;
  --accent-text: #f4ede3; --mark-line: rgba(244, 237, 227, .6); --rule: #f4ede3;
  --sheet: rgba(20, 8, 8, .28); --sunk: rgba(244, 237, 227, .1);
  --tint: rgba(244, 237, 227, .12); --tint-line: rgba(244, 237, 227, .3); --tint-fg: #f4ede3;
  --shadow: 0 24px 50px -28px rgba(0, 0, 0, .7);
}
.band .btn { --bg: #f4ede3; color: var(--red); box-shadow: none; }
.band .btn:hover { --bg: #ffffff; color: var(--red-deep); }
.band .btn--ghost, .band .btn--outline-accent { --bg: rgba(244, 237, 227, .1); color: #f4ede3; box-shadow: inset 0 0 0 1px rgba(244, 237, 227, .55); }
.band .btn--ghost:hover, .band .btn--outline-accent:hover { --bg: rgba(244, 237, 227, .18); color: #f4ede3; }
.band .cb-icon { background: #f4ede3; color: var(--red); box-shadow: none; }
.band .field__input { background: #fff; color: #1e1a17; border-color: transparent; }
.band .consent a, .band a:not(.btn) { color: #f4ede3; text-decoration-color: rgba(244, 237, 227, .6); }
/* Helle Karten im Band behalten ihre eigenen Farben */
.band a.paper { color: var(--ink); text-decoration: none; }
.band .paper .btn { --bg: var(--red-cta); color: #ffffff; }
.band .paper .btn:hover { --bg: var(--red-cta-deep); color: #ffffff; }

/* Umgedrehte Abschnitte: im Dunkelmodus Chalk mit Punktraster, im Hellmodus warmes Ink */
.section--invert {
  --bg: #ece4d6; --section: #ece4d6; --sheet: #ffffff; --sunk: #f1eee7; --canvas: #f5f0e8;
  --ink: #1e1a17; --ink-soft: #2b2521; --ink-mute: #524a43; --placeholder: #6e655b;
  --line: #d6cdbd; --line-strong: #c7bca9; --field-line: #8e8170;
  --accent-text: var(--red); --mark-line: transparent; --rule: var(--red);
  --tint: #fbe9e7; --tint-line: #e7cfca; --tint-fg: var(--red);
  --select-bg: #1e1a17; --select-fg: #f5f0e8;
  --shadow: 0 1px 2px rgba(30, 26, 23, .06), 0 14px 30px -20px rgba(30, 26, 23, .28);
  background: radial-gradient(var(--paper-dot) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--bg);
  color: var(--ink); border-block: 0;
}
:root[data-theme="light"] .section--invert {
  --bg: #1e1a17; --section: #1e1a17; --sheet: #2a2420; --sunk: #352d28; --canvas: #1b1715;
  --ink: #f3ede4; --ink-soft: #e2dbd0; --ink-mute: #b8ad9f; --placeholder: #a39889;
  --line: #3a322c; --line-strong: #4f453d; --field-line: #857668;
  --accent-text: #eee8df; --mark-line: var(--red-cta); --rule: var(--red-cta);
  --tint: #381b1a; --tint-line: #5a2a28; --tint-fg: #f4d9d5;
  --select-bg: #eee8df; --select-fg: #171412;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 32px -20px rgba(6, 4, 3, .85);
  background: var(--bg);
}

/* Weinroter Abschnitt: ruhiges Rot, das einen neuen Abschnitt zeigt, ohne zu stören. Text bleibt hell. */
.section--wine { background: #2a1513; color: var(--ink); --section: #2a1513; --sheet: #3a201d; --sunk: #3a201d; --line: #4d2c28; --line-strong: #6a3c37; border-block: 0; }
:root[data-theme="light"] .section--wine { background: #3a1916; --section: #3a1916; --ink: #f3ede4; --ink-soft: #e8ddd6; --ink-mute: #cdb9b0; --accent-text: #f3ede4; --mark-line: var(--red-cta); --sheet: #4a2420; --sunk: #4a2420; --line: #5e302a; --line-strong: #7a433b; }

/* ---- Häufige Fragen ---- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 1.5rem/1 var(--sans); color: var(--accent-text); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---- Countdown (Markup kommt aus public/countdown.js) ---- */
.wb-cd { display: flex; gap: 10px; }
.wb-cd__unit { display: grid; justify-items: center; min-width: 56px; padding: 10px 8px 8px; border-radius: var(--radius); background: var(--sunk); }
.wb-cd__unit strong { font: 600 1.9rem/1 var(--cond); color: var(--ink); }
.wb-cd__unit span { font-size: .78rem; color: var(--ink-mute); margin-top: 4px; }
.wb-cd__placeholder, .wb-cd__live { font-weight: 600; color: var(--ink); }
.wb-cd__live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* ---- Kalender-Buttons (Baustein aus src/pages.js) ---- */
.tq-calendar { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   Bausteine aus dem Webinar, die alle Seiten teilen (Präfix wb- bleibt):
   Punktraster mit Lichtkegel (dot-glow.js), Absenderzeile, Gesichter-Reihe,
   Ticket, Ablauf-Pipeline mit Einleitung, Passt-wenn-Karten und Etiketten,
   Stimmen-Laufband, Person mit Zahlen, Fragen.
   ========================================================================== */
main { overflow-x: clip; }

/* Punktraster auf dem ganzen Seitengrund, in beiden Modi. Farbige Abschnitte decken es ab. */
body { position: relative; --ground: #161311; --base-dot: rgba(243, 237, 228, .075); --dot-glow: rgba(243, 237, 228, .62); }
:root:not([data-theme="light"]) body { background-image: radial-gradient(var(--base-dot) 1px, transparent 1.2px); background-size: 18px 18px; }
:root[data-theme="light"] body { --ground: #ece4d6; --base-dot: var(--paper-dot); --dot-glow: rgba(30, 26, 23, .5); }
/* Lichtkegel: dot-glow.js schiebt ihn mit der Maus, die Punkte darin liegen exakt auf dem Raster */
.dot-glow { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.dot-glow.is-on { opacity: 1; }
.dot-glow__spot { position: absolute; top: 0; left: 0; width: 560px; height: 560px; will-change: transform;
  background: radial-gradient(var(--dot-glow) 1.25px, transparent 1.6px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000, rgba(0, 0, 0, .5) 45%, transparent); mask-image: radial-gradient(closest-side, #000, rgba(0, 0, 0, .5) 45%, transparent); }
/* Kleiner Text liegt vor dem Lichtkegel: eine unsichtbare Unterlage mit dem ruhigen Grundraster und weichen Kanten.
   dot-glow.js setzt --gx/--gy, damit die Punkte der Unterlage genau auf dem Seitenraster sitzen. Ohne Maus bleibt sie aus. */
.has-dot-glow .dot-shield { position: relative; }
.has-dot-glow .dot-shield::before { content: ""; position: absolute; z-index: -1; inset: -16px -22px; pointer-events: none;
  background: radial-gradient(var(--base-dot) 1px, transparent 1.2px) var(--gx, 0) var(--gy, 0) / 18px 18px, var(--ground);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent), linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent), linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-composite: intersect; }
/* Große Überschriften: ein Hof in Grundfarbe reicht */
.wb-hero h1, .wb-agenda__intro h2, .dot-halo { text-shadow: 0 0 2px var(--ground), 0 0 6px var(--ground), 0 0 12px var(--ground); }
.wb-byline { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 20px; }

.wb-crowd { display: flex; align-items: center; gap: 14px; padding-left: 4px; }
.wb-crowd__faces { display: flex; }
.wb-crowd__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg); }
.wb-crowd__faces img + img { margin-left: -12px; }
.wb-crowd__text { font-size: 1.05rem; line-height: 1.3; color: var(--ink-soft); }
.wb-crowd__text b { display: block; font: 600 1.5rem/1 var(--cond); color: var(--ink); }
.wb-byline > img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.wb-byline > p b { display: block; color: var(--ink); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.wb-byline > p span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 1.12rem; }

/* Terminkarte als Ticket: Abrisskante vor dem Countdown, schwebt über der Seite */
.wb-sheet { --notch: #161311; overflow: hidden; max-width: 460px; width: 100%; margin-top: 8px; transition: transform .4s var(--ease); }
.wb-sheet:hover { transform: translateY(-4px); }
:root[data-theme="light"] .wb-sheet { --notch: #ece4d6; }
.wb-sheet__date { position: relative; display: grid; gap: 6px; padding: 24px 26px 22px; background: var(--tile); color: var(--on-tile); }
.wb-sheet__live { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(247, 241, 232, .14); font: 600 .9rem/1.2 var(--sans); font-style: normal; color: #f7f1e8; }
.wb-sheet__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff8a80; box-shadow: 0 0 0 0 rgba(255, 138, 128, .6); animation: wb-live 1.8s ease-out infinite; }
@keyframes wb-live { 70% { box-shadow: 0 0 0 7px rgba(255, 138, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 128, 0); } }
.wb-sheet__date strong { font: 600 clamp(2rem, 3vw, 2.4rem)/1 var(--cond); letter-spacing: .005em; }
.wb-sheet__date span { color: var(--on-tile-soft); font-size: 1.06rem; }
.wb-sheet__facts { list-style: none; margin: 0; padding: 6px 26px 4px; }
.wb-sheet__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.wb-sheet__facts li:last-child { border-bottom: 0; }
.wb-sheet__facts span { color: var(--ink-mute); }
.wb-sheet__facts b { font-weight: 700; text-align: right; }
.wb-sheet__cd { position: relative; margin-top: 6px; padding: 20px 16px 16px; border-top: 2px dashed #d6cdbd; }
.wb-sheet__cd::before, .wb-sheet__cd::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--notch); }
.wb-sheet__cd::before { left: -12px; }
.wb-sheet__cd::after { right: -12px; }
.wb-sheet__cd .wb-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wb-sheet__cd .wb-cd__unit { min-width: 0; padding: 12px 6px 10px; border-radius: 11px; background: #f1eadf; }
.wb-sheet__cd .wb-cd__unit strong { color: var(--red); font-size: 2.1rem; }
.wb-sheet__cd .wb-cd__unit span { color: #524a43; }
.wb-sheet__cd .wb-cd__placeholder, .wb-sheet__cd .wb-cd__live { grid-column: 1 / -1; padding: 6px 10px 2px; }

/* ---- Ablauf: Einleitung links (bleibt beim Scrollen stehen), Schritte als Pipeline ---- */
.wb-agenda { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.wb-agenda__intro { position: sticky; top: 112px; display: grid; gap: 18px; justify-items: start; }
.wb-agenda__intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.028em; }
.wb-agenda__intro p { font-size: 1.16rem; color: var(--ink-soft); max-width: 38ch; }
.wb-agenda__intro p + p { margin-top: -6px; }
.wb-agenda__intro .btn { margin-top: 10px; }
.wb-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.wb-step { counter-increment: step; position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; padding-bottom: 20px; }
.wb-step:last-child { padding-bottom: 0; }
.wb-step::before { content: counter(step, decimal-leading-zero); position: relative; z-index: 1; margin-top: 18px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--rule); box-shadow: 0 0 0 6px var(--bg); font: 600 1.75rem/1 var(--cond); color: #ffffff; }
.wb-step::after { content: ""; position: absolute; left: 31px; top: 82px; bottom: -18px; width: 2px; background: var(--rule); opacity: .45; }
.wb-step:last-child::after { display: none; }
/* Die Karten werden von Teil zu Teil konkreter: Kreide, Sand, Rosé, Bordeaux.
   In beiden Modi helle Objekte, im Hellmodus mit Ink-Rahmen und Versatz-Schatten. */
.wb-step__card { --s-bg: #fffdf9; --s-fg: #1e1a17; --s-soft: #2b2521; padding: 24px 28px 26px; border-radius: 16px; background: var(--s-bg); border: 1.5px solid transparent; transition: transform .3s var(--ease); }
.wb-step:nth-child(2) .wb-step__card { --s-bg: #efe3d0; }
.wb-step:nth-child(3) .wb-step__card { --s-bg: #e6c4ba; }
.wb-step:nth-child(4) .wb-step__card { --s-bg: #7c1518; --s-fg: #f7f1e8; --s-soft: #f0dcd8; }
:root[data-theme="light"] .wb-step__card { border-color: #1e1a17; box-shadow: 4px 4px 0 #1e1a17; }
.wb-step h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.015em; color: var(--s-fg); }
.wb-step p { margin-top: 10px; font-size: 1.12rem; color: var(--s-soft); max-width: 58ch; }
@media (max-width: 900px) { .wb-agenda { grid-template-columns: minmax(0, 1fr); } .wb-agenda__intro { position: static; } }
@media (max-width: 560px) {
  .wb-step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
  .wb-step::before { margin-top: 20px; width: 44px; height: 44px; font-size: 1.3rem; box-shadow: 0 0 0 4px var(--bg); }
  .wb-step::after { left: 21px; top: 64px; }
  .wb-step__card { padding: 18px 18px 20px; }
  .wb-step h3 { font-size: 1.22rem; }
  .wb-agenda__intro .btn { width: 100%; }
}

/* ---- Für wen ---- */
.wb-fit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 112px); align-items: start; }
.wb-fit h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.028em; }
.wb-fit__intro p { margin-top: 20px; font-size: 1.16rem; color: var(--ink-soft); max-width: 36ch; }
.wb-fit__list { list-style: none; margin: 0; padding: 0; }
.wb-fit__list { display: grid; gap: 12px; }
.wb-fit__list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); font-size: clamp(1.2rem, 2vw, 1.38rem); line-height: 1.38; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
:root[data-theme="light"] .wb-fit__list li { background: #2f2925; border-color: #4f453d; }
/* Grün als zweite Akzentfarbe: "trifft zu" */
.wb-fit__list .cb-icon { width: 32px; height: 32px; margin-top: 1px; background: #3d7a49; color: #ffffff; box-shadow: none; }
:root[data-theme="light"] .wb-fit__list .cb-icon { background: #4c9a5b; }
.wb-fit__who { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(40px, 7vw, 112px); padding-top: 32px; border-top: 3px solid var(--rule); }
.wb-fit__who p { font-size: 1.12rem; color: var(--ink-soft); max-width: 40ch; }
.wb-fit__who b { color: var(--ink); }
.wb-tags { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
/* Branchen in fünf ruhigen Tönen, die zu Bordeaux und Kreide passen */
.wb-tags span { --t-bg: #fbe9e7; --t-fg: #7c1518; --t-line: #e7cfca; font-size: 1rem; font-weight: 600; padding: 7px 15px; border-radius: 999px; color: var(--t-fg); background: var(--t-bg); border: 1px solid var(--t-line); }
.wb-tags span:nth-child(5n+2) { --t-bg: #e4efe2; --t-fg: #2f6a3c; --t-line: #c9dfc6; }
.wb-tags span:nth-child(5n+3) { --t-bg: #f6ead0; --t-fg: #7f5310; --t-line: #ead6a8; }
.wb-tags span:nth-child(5n+4) { --t-bg: #dfeceb; --t-fg: #235b5b; --t-line: #bfd9d7; }
.wb-tags span:nth-child(5n+5) { --t-bg: #f8e4d9; --t-fg: #93401e; --t-line: #ecc9b6; }
:root[data-theme="light"] .wb-tags span { --t-bg: #3a1b1a; --t-fg: #f4c9c4; --t-line: #5a2a28; }
:root[data-theme="light"] .wb-tags span:nth-child(5n+2) { --t-bg: #1f3323; --t-fg: #b9dfbf; --t-line: #2f4d35; }
:root[data-theme="light"] .wb-tags span:nth-child(5n+3) { --t-bg: #3a2e17; --t-fg: #ecd29c; --t-line: #574524; }
:root[data-theme="light"] .wb-tags span:nth-child(5n+4) { --t-bg: #183332; --t-fg: #a9d8d4; --t-line: #27504e; }
:root[data-theme="light"] .wb-tags span:nth-child(5n+5) { --t-bg: #3b2218; --t-fg: #f1c3a8; --t-line: #5a3424; }
@media (max-width: 900px) { .wb-fit, .wb-fit__who { grid-template-columns: minmax(0, 1fr); } }

/* ---- Stimmen: Karten laufen langsam von links nach rechts durchs Bild ---- */
.wb-voices { overflow: hidden; background: #2a1513; --sheet: #3a201d; --line: #4d2c28; --line-strong: #6a3c37; }
:root[data-theme="light"] .wb-voices { background: #3a1916; color: var(--ink); --ink: #f3ede4; --ink-soft: #e8ddd6; --ink-mute: #cdb9b0; --accent-text: #f3ede4; --sheet: #4a2420; --line: #5e302a; --line-strong: #7a433b; }
.wb-marquee { overflow: hidden; padding: 6px 0 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.wb-marquee__track { display: flex; width: max-content; animation: wb-marquee 135s linear infinite; }
.wb-marquee:hover .wb-marquee__track, .wb-marquee:focus-within .wb-marquee__track { animation-play-state: paused; }
.wb-marquee__group { display: flex; gap: 22px; padding-right: 22px; }
@keyframes wb-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.wb-quote { --q-bg: #fffdf9; --q-fg: #1e1a17; --q-soft: #524a43; --q-mark: var(--red);
  margin: 0; width: 400px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: 28px 28px 24px; border-radius: 18px; background: var(--q-bg); color: var(--q-fg); border: 1.5px solid #1e1a17; }
.wb-quote:nth-child(4n+2) { --q-bg: #7c1518; --q-fg: #f7f1e8; --q-soft: #ead6d2; --q-mark: #f7f1e8; }
.wb-quote:nth-child(4n+3) { --q-bg: #ece4d6; }
.wb-quote:nth-child(4n+4) { --q-bg: #e4efe2; --q-mark: #2f6a3c; }
.wb-quote blockquote { margin: 0; font-size: 1.14rem; line-height: 1.55; font-weight: 500; }
.wb-quote blockquote::before { content: "\201C"; display: block; height: 44px; margin: -4px 0 10px; font: 800 5rem/1 var(--sans); color: var(--q-mark); }
.wb-quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--q-fg) 16%, transparent); }
.wb-quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.wb-quote figcaption b { display: block; font-size: 1.06rem; line-height: 1.25; }
.wb-quote figcaption span { font-size: .95rem; color: var(--q-soft); }
/* Kopf der Stimmen mittig, damit der Abschnitt für sich steht */
.wb-voices { padding-top: clamp(64px, 7vw, 92px); }
.wb-voices .section__head { margin-inline: auto; justify-items: center; text-align: center; gap: 26px; }
.wb-voices .section__head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.wb-voices .section__head p { max-width: 60ch; }
@media (max-width: 560px) { .wb-quote { width: 300px; padding: 22px 22px 20px; } }
/* Ohne Bewegung: Karten zum Durchwischen statt Laufband */
@media (prefers-reduced-motion: reduce) {
  .wb-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 16px; scroll-snap-type: x mandatory; }
  .wb-marquee__track { animation: none; }
  .wb-marquee__group[aria-hidden] { display: none; }
  .wb-quote { scroll-snap-align: start; }
}

/* ---- Event-Fotos (Hub, Angebot): 16:9 und 1:1 nebeneinander, gleich hoch; den Rest gleicht object-fit aus ---- */
.event-photos { display: grid; grid-template-columns: minmax(0, 16fr) minmax(0, 9fr); gap: 24px; }
.event-photo { display: grid; margin: 0; padding: 12px; background: #fffdf9; border-radius: 14px; box-shadow: 0 0 0 1px rgba(30, 26, 23, .1), 0 26px 44px -24px rgba(30, 26, 23, .55); }
:root[data-theme="light"] .event-photo { box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .95); }
.event-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
@media (max-width: 700px) { .event-photos { grid-template-columns: minmax(0, 1fr); } .event-photo { padding: 8px; } }

/* ---- Julian ---- */
.wb-host { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.wb-host__photo { width: 100%; height: auto; border-radius: 22px; }
.wb-host h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.028em; }
.wb-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 32px; border-top: 3px solid var(--rule); }
.wb-stats div { padding-top: 18px; }
.wb-stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.wb-stats b { display: block; font: 600 clamp(2.6rem, 5vw, 3.8rem)/1 var(--cond); color: var(--ink); }
.wb-stats span { font-size: .95rem; color: var(--ink-mute); }
.wb-host__text { display: grid; gap: 16px; color: var(--ink-soft); max-width: 62ch; }
.wb-host__text p:first-child { color: var(--ink); font-size: 1.2rem; font-weight: 500; }
@media (max-width: 860px) { .wb-host { grid-template-columns: minmax(0, 1fr); } .wb-host__photo { max-width: 360px; } }

/* ---- Fragen ---- */
.wb-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 7vw, 112px); align-items: start; }
.wb-faq__intro { position: sticky; top: 112px; display: grid; gap: 14px; }
.wb-faq__intro h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.028em; }
.wb-faq__intro p { font-size: 1.12rem; color: var(--ink-soft); max-width: 34ch; }
.wb-faq .faq { grid-template-columns: minmax(0, 1fr); }
.wb-faq .faq details:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .wb-faq { grid-template-columns: minmax(0, 1fr); } .wb-faq__intro { position: static; } }

/* ---- Seitenkopf von Hub und Community: Versprechen links, Karte rechts ---- */
.hub-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: start; padding: clamp(44px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hub-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; }
.hub-hero__lede { margin-top: 26px; font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); max-width: 52ch; }
.hub-hero__side { display: grid; gap: 28px; justify-items: start; width: 100%; max-width: 460px; justify-self: end; }
.hub-hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hub-textlink { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .25em; }
@media (max-width: 900px) { .hub-hero { grid-template-columns: minmax(0, 1fr); } .hub-hero__side { justify-self: start; } }
@media (max-width: 560px) { .hub-hero__actions .btn { width: 100%; } }

/* Rote, gefüllte Haken für "gehört dazu" */
.hub-gets { margin-top: 30px; gap: 14px; }
.hub-gets li { font-size: 1.14rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.hub-gets .cb-icon { width: 28px; height: 28px; background: var(--red-cta); color: #ffffff; box-shadow: none; }

/* ==========================================================================
   Community-Bausteine, geteilt von /community und /angebot
   ========================================================================== */
/* Mitgliedschaft als Ticket: Preis im Kopf, Fakten, Abriss mit Button */
.hub-ticket .wb-sheet__date strong { font-size: clamp(2.6rem, 4vw, 3.2rem); }
.hub-ticket__stub { position: relative; display: grid; gap: 14px; margin-top: 6px; padding: 20px 26px 24px; border-top: 2px dashed #d6cdbd; }
.hub-ticket__stub::before, .hub-ticket__stub::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--notch); }
.hub-ticket__stub::before { left: -12px; }
.hub-ticket__stub::after { right: -12px; }
.hub-ticket__stub p { font-size: 1rem; color: var(--ink-soft); }
.hub-ticket__stub p b { color: var(--ink); }
/* Jahresabo im Abriss: getönte Box mit Rabatt-Etikett an der Ecke */
.hub-ticket__year { position: relative; display: grid; gap: 4px; padding: 16px 18px 14px; border-radius: 12px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-line); }
.hub-ticket__year-label { font-weight: 600; font-size: .95rem; color: var(--tint-fg); }
.hub-ticket__year strong { font: 600 clamp(2rem, 3vw, 2.3rem)/1.05 var(--cond); color: var(--ink); }
.hub-ticket__year-note { font-size: .95rem; color: var(--ink-mute); }
.hub-ticket__tag { position: absolute; top: -12px; right: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 4px 8px 8px 4px; background: var(--red-cta); color: #fff; font: 700 1.05rem/1 var(--cond); letter-spacing: .02em; transform: rotate(6deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.hub-ticket__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* Blick hinein: eigener, warmer Grund. Dunkel: Sand bis Rosé mit dunklem Rahmen,
   hell: tiefes Weinrot mit hellem Rahmen (Gegenpol zu den Abschnitten davor und danach). */
.hub-blick {
  --ink: #1e1a17; --ink-soft: #2b2521; --ink-mute: #524a43; --line: rgba(30, 26, 23, .14);
  color: var(--ink);
  background: radial-gradient(rgba(30, 26, 23, .07) 1px, transparent 1.2px) 0 0 / 18px 18px, radial-gradient(120% 90% at 50% 0%, #f2e7d6 0%, #e9cfc3 55%, #dcae9f 100%);
}
:root[data-theme="light"] .hub-blick {
  --ink: #f7f1e8; --ink-soft: #f0dcd8; --ink-mute: #dcc0bb; --line: rgba(247, 241, 232, .16);
  background: radial-gradient(rgba(247, 241, 232, .07) 1px, transparent 1.2px) 0 0 / 18px 18px, radial-gradient(120% 90% at 50% 0%, #6a211d 0%, #4a1a17 55%, #2f1210 100%);
}
.hub-stage { border-radius: 22px; overflow: hidden; background: #1e1a17; color: #f3ede4; box-shadow: 0 40px 70px -40px rgba(30, 10, 8, .8); }
.hub-stage__top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: #2a2420; border-bottom: 1px solid #3d342d; font-weight: 700; }
.hub-stage__top::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red-cta); }
.hub-stage__top span { font-weight: 500; color: #c4b9ab; }
.hub-stage__body { padding: clamp(14px, 3vw, 28px); background: radial-gradient(rgba(243, 237, 228, .08) 1px, transparent 1.2px) 0 0 / 18px 18px, #1e1a17; }
.community-video-player { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.community-video-fallback { margin: 0; }
:root[data-theme="light"] .hub-stage { background: #ece4d6; color: #1e1a17; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); }
:root[data-theme="light"] .hub-stage__top { background: #ddd2c0; border-color: #cdc1ad; }
:root[data-theme="light"] .hub-stage__top span { color: #524a43; }
:root[data-theme="light"] .hub-stage__body { background: radial-gradient(rgba(30, 26, 23, .09) 1px, transparent 1.2px) 0 0 / 18px 18px, #ece4d6; }
.hub-centerhead { margin-inline: auto; justify-items: center; text-align: center; }
.hub-centerhead p { max-width: 58ch; }
@media (max-width: 560px) { .hub-stage__top span { display: none; } }

/* Was du bekommst: Kacheln in abgestuften Tönen, große Zahlen */
.hub-perks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.hub-perk { --p-bg: #fffdf9; --p-fg: #1e1a17; --p-soft: #2b2521; --p-num: var(--red);
  grid-column: span 2; display: grid; gap: 10px; align-content: start; padding: 28px 28px 30px; border-radius: 18px; background: var(--p-bg); color: var(--p-fg); }
.hub-perk b { font: 600 clamp(3rem, 5vw, 4rem)/.95 var(--cond); color: var(--p-num); letter-spacing: -.01em; }
.hub-perk h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -.015em; }
.hub-perk p { font-size: 1.08rem; color: var(--p-soft); }
.hub-perk--big { grid-column: span 4; --p-bg: #7c1518; --p-fg: #f7f1e8; --p-soft: #f0dcd8; --p-num: #f7f1e8; padding: 34px 36px 36px; }
.hub-perk--big h3 { font-size: 1.8rem; }
.hub-perk--big p { font-size: 1.16rem; max-width: 52ch; }
.hub-perk--sand { --p-bg: #efe3d0; }
.hub-perk--green { --p-bg: #e4efe2; --p-num: #2f6a3c; }
.hub-perk--rose { --p-bg: #e6c4ba; }
.hub-perk .hub-chips { margin-top: 8px; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips span { padding: 4px 12px; border-radius: 999px; font-size: .95rem; font-weight: 600; background: rgba(247, 241, 232, .14); border: 1px solid rgba(247, 241, 232, .3); color: #f7f1e8; }
:root[data-theme="light"] .hub-perk { box-shadow: 0 0 0 1.5px #1e1a17, 4px 4px 0 1.5px #1e1a17; }
@media (max-width: 900px) { .hub-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-perk { grid-column: span 1; } .hub-perk--big { grid-column: 1 / -1; } }
@media (max-width: 560px) { .hub-perks { grid-template-columns: minmax(0, 1fr); } .hub-perk { padding: 24px 22px 26px; } }

/* Community-Events (Fotos: .event-photos in site.css) */
.hub-events__head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.03em; }
.hub-events__head p { margin-top: 18px; font-size: 1.2rem; color: var(--ink-soft); max-width: 64ch; }
.hub-events__photos { margin-top: clamp(36px, 5vw, 56px); }

/* Preis: das eine rote Band */
.community-pricing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; }
.community-pricing h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.community-pricing__lede { margin-top: 18px; font-size: 1.2rem; color: var(--ink-soft); max-width: 44ch; }
.community-price-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cp-amount { font: 600 clamp(4rem, 9vw, 6rem)/1 var(--cond); }
.cp-period { font-size: 1.25rem; color: var(--ink-soft); }
.cp-notes { display: grid; gap: 6px; margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }
.community-pricing__side { display: grid; gap: 20px; padding: 30px 30px 26px; }
.community-pricing__side h3 { font-size: 1.5rem; letter-spacing: -.015em; }
.community-pricing__side .hub-gets { margin-top: 0; gap: 12px; }
.community-pricing__side .hub-gets li { font-size: 1.06rem; }
.community-pricing__side .hub-gets .cb-icon { width: 24px; height: 24px; }
.community-pricing__side p { font-size: .95rem; color: var(--ink-mute); }
@media (max-width: 860px) { .community-pricing { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .community-pricing__side { padding: 24px 20px 22px; } }

/* Bestellung: Ablauf links, Digistore-Formular rechts. Das Formular ist ein
   iframe mit weißem Grund (Custom-CSS im Digistore-Editor), daher bleibt
   seine Fläche in beiden Modi weiß. */
.ds-order { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "intro form" "alt form"; gap: 32px 56px; align-items: start; }
.ds-order__intro { grid-area: intro; display: grid; gap: 22px; }
.ds-order h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; }
.ds-order__lede { font-size: 1.15rem; color: var(--ink-soft); }
.ds-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ds-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.ds-steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--tint-fg); box-shadow: inset 0 0 0 1px var(--tint-line); font: 600 1.25rem/1 var(--cond); }
.ds-steps h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.ds-steps p { margin-top: 4px; color: var(--ink-soft); font-size: 1.02rem; }
/* Spartipp Skool: in der zarten Rot-Tönung, sichtbar, aber leiser als das Formular */
.ds-alt { grid-area: alt; display: grid; gap: 8px; justify-items: start; padding: 18px 20px 20px 22px; border-radius: 12px; border-left: 4px solid var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-line); }
.ds-alt .tag { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ds-alt h3 { font-size: 1.25rem; letter-spacing: -.01em; color: var(--tint-fg); }
.ds-alt p { color: var(--ink-soft); font-size: .98rem; }
.ds-alt .btn { margin-top: 4px; }
.ds-order__form { grid-area: form; min-height: 600px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 44px -28px rgba(0, 0, 0, .6); }
.ds-order__form my-order-form { display: block; }
@media (max-width: 860px) {
  .ds-order { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "intro" "alt" "form"; }
}
@media (max-width: 480px) { .ds-order__form { padding: 4px; margin-inline: -8px; } }

/* Typ-Karten (Community: für wen, Angebot: für wen nicht); Varianten färben nur Icon und Label */
.hub-who { --w-bg: #fffdf9; --w-fg: #1e1a17; --w-tag: #7c1518; --w-icon-bg: #7c1518; --w-icon-fg: #f7f1e8;
  position: relative; display: grid; gap: 12px; align-content: start; padding: 28px 24px 30px; border-radius: 20px; background: var(--w-bg); color: var(--w-fg); }
.hub-who__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--w-icon-bg); color: var(--w-icon-fg); margin-bottom: 8px; }
.hub-who__icon svg { width: 26px; height: 26px; }
.hub-who__ok { position: absolute; top: 24px; right: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3d7a49; color: #ffffff; }
.hub-who__ok svg { width: 15px; height: 15px; }
.hub-who__tag { font-size: 1.05rem; font-weight: 700; color: var(--w-tag); letter-spacing: -.005em; }
.hub-who p { font-size: 1.2rem; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.hub-who--green { --w-tag: #2f6a3c; --w-icon-bg: #2f6a3c; }
.hub-who--sand { --w-tag: #93401e; --w-icon-bg: #93401e; }
:root[data-theme="light"] .hub-who { box-shadow: 0 0 0 1.5px #1e1a17, 4px 4px 0 1.5px #1e1a17; }
/* Gegenstück zum grünen Haken: "passt nicht" */

/* ---- Fußzeile ---- */
.foot { border-top: 1px solid var(--line); background: var(--section); padding: 32px 0 44px; color: var(--ink-mute); font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.foot__in .brand { margin-right: auto; font-size: 1rem; }
.foot a { color: var(--ink-mute); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Cookiebot (nur mit COOKIEBOT_ID): Footer-Link und Hinweis am Bestellformular */
.foot__cookies { padding: 0; border: 0; background: none; color: var(--ink-mute); font: inherit; cursor: pointer; }
.foot__cookies:hover { color: var(--ink); }
.ds-consent { display: grid; gap: 14px; justify-items: start; padding: 28px 24px; color: #1d1a18; }
.ds-consent[hidden] { display: none; }
.ds-order__form:has(.ds-consent:not([hidden])) { min-height: 0; }
.ds-consent h3 { font-size: 1.3rem; letter-spacing: -.01em; }
.ds-consent p { color: #4a4440; }
.ds-consent .ds-consent__alt { font-size: .92rem; color: #6b635d; }
