/* ==========================================================================
   Magic Directory | Stylesheet
   Struktur: 1 Tokens, 2 Basis, 3 Layout, 4 Komponenten, 5 Seiten, 6 Responsive
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --bg: #0a0912;
  --bg-2: #0f0d1b;
  --surface: #151228;
  --surface-2: #1c1836;
  --surface-3: #251f47;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eeeaf7;
  --muted: #9d98b4;
  --faint: #6f6a89;
  --gold: #e3bf6e;
  --gold-2: #f7dfa6;
  --gold-deep: #b98f3c;
  --violet: #8d70ff;
  --violet-2: #b5a1ff;
  --ok: #6fe0a8;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(227, 191, 110, 0.35), 0 12px 40px -12px rgba(227, 191, 110, 0.35);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --maxw: 1240px;
}

/* 2. BASIS -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(141, 112, 255, 0.18), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(227, 191, 110, 0.09), transparent 60%),
    var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #1b1405; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.fill { fill: currentColor; stroke: none; }

#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .85; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); backdrop-filter: blur(16px) saturate(140%); background: rgba(10, 9, 18, 0.72); border-bottom: 1px solid var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.brand span em { font-style: normal; color: var(--gold); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 8px 14px; border-radius: var(--radius-pill); font-size: .92rem; color: var(--muted); transition: .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.header-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch button { background: none; border: 0; padding: 4px 11px; border-radius: var(--radius-pill); font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: #1b1405; font-weight: 600; }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.kbd { font-size: .72rem; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; color: var(--muted); }

/* 4. KOMPONENTEN -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); font-weight: 500; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--text); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep)); color: #1b1405; border-color: transparent; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(227, 191, 110, 0.6); }
.btn-gold:hover { color: #1b1405; box-shadow: 0 14px 40px -8px rgba(227, 191, 110, 0.8); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

.chip, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: .8rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); line-height: 1.3; }
.chip { cursor: pointer; transition: .2s; user-select: none; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip.active { background: rgba(227, 191, 110, 0.14); border-color: var(--gold); color: var(--gold-2); }
.tag.gold { color: var(--gold-2); border-color: rgba(227, 191, 110, 0.4); background: rgba(227, 191, 110, 0.08); }
.tag.violet { color: var(--violet-2); border-color: rgba(141, 112, 255, 0.45); background: rgba(141, 112, 255, 0.1); }
.tag.ok { color: var(--ok); border-color: rgba(111, 224, 168, 0.4); background: rgba(111, 224, 168, 0.08); }

.card { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 191, 110, 0.14), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-3px); border-color: rgba(227, 191, 110, 0.4); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.input, .select { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227, 191, 110, 0.12); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.select option { background: var(--surface); }
input[type="range"] { width: 100%; accent-color: var(--gold); }
input[type="date"] { color-scheme: dark; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; color: var(--text); padding: 5px 0; }
.check input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); display: grid; place-items: center; flex: none; cursor: pointer; transition: .15s; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 8px; height: 8px; background: #1b1405; border-radius: 2px; }
.check input[type="radio"]:checked::after { border-radius: 50%; }
.check .count { margin-left: auto; font-size: .78rem; color: var(--faint); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; font-size: .92rem; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; transition: .2s; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked { background: var(--gold-deep); }
.switch input:checked::after { left: 21px; background: #fff; }

/* Fake-Avatar / Cover (Platzhalter ohne Bilder) */
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #1b1405; background: conic-gradient(from 200deg, var(--gold-2), var(--gold), var(--violet-2), var(--gold-2)); flex: none; }
.avatar.xl { width: 128px; height: 128px; font-size: 3rem; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold); }
.thumb { aspect-ratio: 16 / 10; border-radius: 12px; background: radial-gradient(circle at 30% 20%, rgba(227, 191, 110, 0.35), transparent 50%), radial-gradient(circle at 80% 80%, rgba(141, 112, 255, 0.45), transparent 55%), var(--surface-2); display: grid; place-items: center; color: var(--gold-2); margin-bottom: 16px; overflow: hidden; position: relative; }
.thumb .icon { width: 44px; height: 44px; stroke-width: 1.2; opacity: .9; }

/* Hero */
.hero { padding: clamp(60px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); text-align: center; position: relative; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero h1 em { font-style: italic; background: linear-gradient(120deg, var(--gold-2), var(--gold), var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 58ch; margin: 18px auto 36px; color: var(--muted); font-size: 1.15rem; }
.hero-stats { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: 48px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-2); line-height: 1; }
.hero-stats span { font-size: .82rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* Suchbox */
.searchbox { position: relative; max-width: 940px; margin: 0 auto; background: rgba(21, 18, 40, 0.8); border: 1px solid var(--line-strong); border-radius: 24px; padding: 14px; box-shadow: var(--shadow), 0 0 80px -30px rgba(141, 112, 255, 0.5); backdrop-filter: blur(10px); text-align: left; }
.searchbox-row { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 10px; align-items: stretch; }
.sfield { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; transition: .2s; }
.sfield:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227, 191, 110, 0.12); }
.sfield .icon { color: var(--gold); }
.sfield input { background: none; border: 0; outline: none; width: 100%; padding: 6px 0; font-size: 1rem; }
.sfield input::placeholder { color: var(--faint); }
.searchbox .chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 6px 4px; }
.suggest { position: absolute; left: 14px; right: 14px; top: calc(100% - 4px); z-index: 20; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; max-height: 420px; overflow: auto; }
.suggest h6 { margin: 10px 12px 4px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.suggest a:hover, .suggest a.hl { background: rgba(227, 191, 110, 0.12); color: var(--text); }
.suggest small { color: var(--muted); margin-left: auto; }
.suggest mark { background: none; color: var(--gold-2); font-weight: 600; }

/* Kategorien */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; }
.cat .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(227, 191, 110, 0.1); color: var(--gold); border: 1px solid rgba(227, 191, 110, 0.25); transition: .3s; }
.cat:hover .ico { background: var(--gold); color: #1b1405; transform: rotate(-6deg) scale(1.05); }
.cat h3 { font-size: 1.35rem; margin: 6px 0 0; }
.cat p { margin: 0; color: var(--muted); font-size: .9rem; }
.cat .n { margin-top: auto; font-size: .8rem; color: var(--faint); }

/* Listing-Karten */
.listing { display: flex; flex-direction: column; gap: 14px; }
.listing-top { display: flex; gap: 14px; align-items: center; }
.listing h3 { font-size: 1.35rem; margin: 0; }
.listing .meta { color: var(--muted); font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.listing .desc { color: var(--muted); font-size: .92rem; margin: 0; }
.listing .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); }
.verified { color: var(--gold); display: inline-flex; }
.results.list { grid-template-columns: 1fr; }
.results.list .listing { flex-direction: row; align-items: center; flex-wrap: wrap; }
.results.list .listing > .listing-top { flex: 1 1 300px; }
.results.list .listing .desc { flex: 2 1 280px; }
.results.list .listing-foot { border: 0; padding: 0; margin: 0; }

/* Events */
.event-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px; }
.date-box { text-align: center; border: 1px solid rgba(227, 191, 110, 0.35); border-radius: 14px; padding: 10px 0; background: rgba(227, 191, 110, 0.06); }
.date-box b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold-2); }
.date-box span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.event-row h3 { font-size: 1.3rem; margin: 0 0 4px; }
.event-row .meta { color: var(--muted); font-size: .88rem; display: flex; gap: 14px; flex-wrap: wrap; }
.event-row .meta span { display: inline-flex; gap: 6px; align-items: center; }
.stack { display: grid; gap: 14px; }

/* News */
.news-card { display: flex; flex-direction: column; }
.news-card h3 { font-size: 1.4rem; }
.news-card p { color: var(--muted); font-size: .93rem; }
.news-card .meta { margin-top: auto; font-size: .8rem; color: var(--faint); display: flex; gap: 10px; align-items: center; }
.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; padding: 0; }
.news-feature .thumb { aspect-ratio: auto; height: 100%; min-height: 280px; margin: 0; border-radius: 0; }
.news-feature .body { padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.news-feature h3 { font-size: 2rem; }

/* CTA / Badge */
.cta { text-align: center; border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: radial-gradient(600px 300px at 50% 0%, rgba(141, 112, 255, 0.35), transparent 70%), radial-gradient(500px 300px at 50% 120%, rgba(227, 191, 110, 0.22), transparent 70%), var(--surface); border: 1px solid var(--line-strong); }
.cta p { color: var(--muted); max-width: 56ch; margin: 0 auto 28px; }
.badge-demo { display: inline-block; padding: 18px 26px; border-radius: 16px; background: var(--bg-2); border: 1px dashed var(--line-strong); }
.badge-demo img { height: 56px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; background: #07060d; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--violet-2); overflow: auto; white-space: pre; text-align: left; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 56px 0 36px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-grid h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; font-size: .92rem; }
.footer-grid a.brand { display: flex; padding: 0; color: var(--text); font-size: 1.55rem; }
.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; }

/* 5. SEITEN ------------------------------------------------------------- */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.crumbs { font-size: .82rem; color: var(--faint); margin-bottom: 14px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--gold-2); }

/* Suche */
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > .label { display: block; margin-bottom: 10px; }
.filter-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.range-val { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.result-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.result-bar .count { color: var(--muted); }
.result-bar .count b { color: var(--gold-2); font-size: 1.1rem; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 3px; }
.seg button { background: none; border: 0; padding: 6px 14px; border-radius: var(--radius-pill); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--gold-2); }
.map { position: relative; height: 340px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(141, 112, 255, 0.18), transparent 60%), #0c0a18; }
.map svg.grid-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(227, 191, 110, 0.22), 0 0 18px var(--gold); border: 0; padding: 0; animation: pulse 2.6s infinite; }
.pin:hover, .pin.on { background: #fff; transform: scale(1.5); z-index: 3; }
.pin .tip { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 8px; font-size: .75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s; color: var(--text); }
.pin:hover .tip, .pin.on .tip { opacity: 1; }
.map-note { position: absolute; left: 14px; bottom: 10px; font-size: .72rem; color: var(--faint); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty .icon { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 12px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(227, 191, 110, 0.22), 0 0 18px var(--gold); } 50% { box-shadow: 0 0 0 9px rgba(227, 191, 110, 0.06), 0 0 24px var(--gold); } }

/* Profil */
.profile-cover { height: 220px; border-radius: 0 0 28px 28px; background: radial-gradient(circle at 20% 30%, rgba(227, 191, 110, 0.4), transparent 45%), radial-gradient(circle at 80% 60%, rgba(141, 112, 255, 0.5), transparent 50%), var(--surface-2); position: relative; overflow: hidden; }
.profile-head { display: flex; gap: 28px; align-items: end; margin-top: -64px; position: relative; flex-wrap: wrap; }
.profile-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; }
.profile-head .sub { color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.profile-head .sub span { display: inline-flex; gap: 6px; align-items: center; }
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 36px; align-items: start; }
.panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.panel h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.panel h3 .icon { color: var(--gold); }
.facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts li:last-child { border: 0; padding: 0; }
.facts li span:first-child { color: var(--muted); }
.book { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.book + .book { border-top: 1px solid var(--line); }
.book .cover { width: 52px; height: 74px; border-radius: 4px 8px 8px 4px; background: linear-gradient(135deg, var(--violet), #2b1f66); flex: none; display: grid; place-items: center; box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.5); color: var(--gold-2); }
.book small { color: var(--muted); }
.link-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.link-item + .link-item { border-top: 1px solid var(--line); }
.link-item .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(227, 191, 110, 0.1); color: var(--gold); display: grid; place-items: center; flex: none; }
.link-item small { display: block; color: var(--muted); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 16px); }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 18px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--gold-2); border-bottom-color: var(--gold); }

/* Kalender */
.cal-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h3 { margin: 0; font-size: 1.7rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 6px 0; }
.cal-day { aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: .95rem; color: var(--text); padding: 0; transition: .2s; }
.cal-day:hover { border-color: var(--line-strong); }
.cal-day.muted { opacity: .3; pointer-events: none; }
.cal-day.today { border-color: var(--violet); }
.cal-day.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.cal-day.sel { background: rgba(227, 191, 110, 0.16); border-color: var(--gold); }

/* Forum */
.forum-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.thread { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 22px; }
.thread h3 { font-size: 1.2rem; margin: 0 0 4px; }
.thread .meta { color: var(--muted); font-size: .84rem; display: flex; gap: 12px; flex-wrap: wrap; }
.thread .stat { text-align: center; font-size: .78rem; color: var(--faint); min-width: 60px; }
.thread .stat b { display: block; font-size: 1.2rem; color: var(--text); font-family: var(--font-display); }
.thread .avatar { width: 48px; height: 48px; font-size: 1.1rem; }

/* Trick */
.trick-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); background: radial-gradient(circle at 50% 50%, rgba(141, 112, 255, 0.45), transparent 60%), var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.play { width: 84px; height: 84px; border-radius: 50%; background: rgba(227, 191, 110, 0.95); color: #1b1405; display: grid; place-items: center; border: 0; box-shadow: 0 0 0 10px rgba(227, 191, 110, 0.2); transition: .3s; }
.play:hover { transform: scale(1.08); }
.reveal-box { position: relative; padding: 26px; border-radius: var(--radius); border: 1px dashed var(--gold); background: rgba(227, 191, 110, 0.05); }
.reveal-box .veil { position: absolute; inset: 0; z-index: 2; border-radius: inherit; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: rgba(10, 9, 18, 0.88); backdrop-filter: blur(8px); text-align: center; padding: 20px; transition: opacity .5s; }
.reveal-box.open .veil { opacity: 0; pointer-events: none; }
.qr { width: 150px; height: 150px; background: #fff; border-radius: 14px; padding: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-2); font-family: var(--font-display); font-size: 1.1rem; }

/* Reveal-Animation */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .08s; }
.rv[data-d="2"] { transition-delay: .16s; }
.rv[data-d="3"] { transition-delay: .24s; }

.spark { position: fixed; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; z-index: 999; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); animation: spark .8s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

/* 6. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .profile-layout, .cal-layout, .trick-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: rgba(10, 9, 18, 0.97); padding: 16px 20px 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; margin: 0; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px; font-size: 1.05rem; }
  .burger { display: inline-flex; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .news-feature { grid-template-columns: 1fr; }
  .searchbox-row { grid-template-columns: 1fr; }
  .thread { grid-template-columns: 48px 1fr; }
  .thread .stat { display: none; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .cat-grid, .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 64px 1fr; }
  .event-row .btn { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-tools .btn { display: none; }
  .profile-head { align-items: start; }
}
@media (hover: none) { .card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ProcessWire Ergänzungen */
.lang-switch a { padding: 4px 11px; border-radius: var(--radius-pill); font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.lang-switch a[aria-pressed="true"] { background: var(--gold); color: #1b1405; font-weight: 600; }
a.pin { display: block; }
a.chip[aria-pressed="true"], label.chip[aria-pressed="true"] { background: rgba(227, 191, 110, 0.14); border-color: var(--gold); color: var(--gold-2); }
label.chip { cursor: pointer; }
.seg a { display: inline-flex; }
.tabs a { display: inline-flex; }
a.cal-day { text-decoration: none; }
.map .pin { position: absolute; }
.panel a:not(.btn):not(.tag):hover { color: var(--gold-2); }
.sub a:hover { color: var(--gold-2); }

/* Events im Verzeichnis: Datum sofort sichtbar */
.listing .date-box { width: 64px; flex: none; padding: 9px 0; }
.listing .date-box b { font-size: 1.7rem; }
.listing .ev-date { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; color: var(--gold-2); font-weight: 600; font-size: .95rem; }
.listing .ev-date svg { width: 15px; height: 15px; }

/* Ergebnislisten immer sichtbar, auch wenn das Einblend Skript nicht läuft */
.results .rv, .event-row.rv, .news-card.rv { opacity: 1; transform: none; }

.ev-perf { color: var(--muted); font-size: .9rem; margin: 2px 0 4px; }
.event-row .tag { vertical-align: middle; }

/* Footer: klar abgesetzt, edel */
.site-footer { position: relative; margin-top: 110px; padding: 76px 0 0; border-top: 0; background: linear-gradient(180deg, #0c0a1a 0%, #06050d 100%); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 191, 110, .6) 22%, rgba(141, 112, 255, .6) 78%, transparent); }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; background: radial-gradient(60% 100% at 50% 0, rgba(141, 112, 255, .13), transparent 70%); pointer-events: none; }
.footer-orn { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg, #0a0912); color: var(--gold); border: 1px solid rgba(227, 191, 110, .45); z-index: 1; }
.footer-orn .icon { width: 12px; height: 12px; }
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { gap: 44px; padding-bottom: 56px; }
.footer-grid h4 { position: relative; padding-bottom: 12px; margin-bottom: 16px; }
.footer-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.footer-grid a { transition: color .2s ease, transform .2s ease; }
.footer-grid a:not(.brand):hover { color: var(--gold-2, var(--gold)); transform: translateX(3px); }
.footer-base { position: relative; z-index: 1; background: rgba(0, 0, 0, .38); border-top: 1px solid var(--line); }
.footer-base .footer-bottom { margin: 0; padding: 22px 0; border-top: 0; }
@media (max-width: 620px) { .site-footer { margin-top: 80px; padding-top: 60px; } .footer-grid { padding-bottom: 36px; } }

/* ==========================================================================
   7. UPGRADE v3 | ruhigere Palette, besserer Kontrast, klarere Bedienung
   ========================================================================== */
:root {
  --bg: #0b0e1a;
  --bg-2: #0f1322;
  --surface: #141a2d;
  --surface-2: #1a2138;
  --surface-3: #242d4b;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f3f0ea;
  --muted: #bdbacd;
  --faint: #9a97b0;
  --gold: #e6c477;
  --violet: #9a82ff;
  --shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.75);
  --header-h: 68px;
}
body { font-size: 16.5px; line-height: 1.65; }
body::before {
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(141, 112, 255, 0.09), transparent 62%),
    radial-gradient(800px 520px at -12% 12%, rgba(227, 191, 110, 0.04), transparent 62%),
    var(--bg);
}
#stars { opacity: .4 !important; }
p, li { max-width: 75ch; }
a:hover { color: var(--gold-2); }

/* Fokus und Skip-Link */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--gold); color: #1b1405; padding: 12px 20px; border-radius: 10px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; color: #1b1405; }

/* Header */
.site-header { background: rgba(11, 14, 26, 0.94); }
.main-nav a { color: var(--muted); font-weight: 500; padding: 10px 15px; }
.main-nav a[aria-current="page"] { color: var(--gold-2); background: rgba(227, 191, 110, 0.12); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

/* Buttons und Chips: grosse Zielflaechen */
.btn { min-height: 46px; padding: 11px 24px; background: rgba(255, 255, 255, 0.06); font-weight: 600; }
.btn-sm { min-height: 40px; padding: 8px 18px; }
.btn-gold { box-shadow: 0 8px 22px -10px rgba(227, 191, 110, 0.55); }
.btn-gold:hover { box-shadow: 0 10px 28px -8px rgba(227, 191, 110, 0.7); }
.chip, .tag { color: var(--muted); font-size: .84rem; padding: 6px 13px; }
.chip { min-height: 38px; padding: 8px 15px; }
.tag { padding: 4px 11px; font-size: .8rem; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.active { background: rgba(227, 191, 110, 0.2); color: #fff3d0; font-weight: 600; }

/* Karten: ruhiger, einheitlicher */
.card { background: var(--surface); border-color: var(--line); }
.card:hover { transform: translateY(-2px); border-color: rgba(227, 191, 110, 0.5); }
.card::before { opacity: 0 !important; }
.avatar { background: linear-gradient(145deg, var(--gold-2), var(--gold-deep)); box-shadow: none; }
.avatar.sq { border-radius: 14px; background: var(--surface-3); color: var(--gold-2); border: 1px solid var(--line-strong); }
.avatar.sq svg { width: 26px; height: 26px; }
.listing h3 { font-size: 1.28rem; line-height: 1.25; }
.listing .desc { color: var(--muted); }
.listing .meta { color: var(--muted); }
.listing-foot { color: var(--muted); }

/* Formulare */
.field label, .label { color: var(--muted); font-size: .76rem; font-weight: 600; }
.input, .select { background: var(--bg-2); min-height: 46px; border-color: var(--line-strong); color: var(--text); }
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { box-shadow: 0 0 0 4px rgba(227, 191, 110, 0.2); }
.check { padding: 8px 0; min-height: 40px; }
.check input { width: 22px; height: 22px; border-width: 2px; }
.check .count { color: var(--faint); }
.switch { min-height: 44px; }
.switch input { width: 46px; height: 26px; }
.switch input::after { top: 3px; width: 20px; height: 20px; background: var(--muted); }
.switch input:checked::after { left: 23px; }
.switch input:checked { background: var(--gold-deep); }

/* Verzeichnis */
.filters { background: var(--surface); padding: 22px; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group .label { display: block; margin-bottom: 10px; }
.result-bar { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.result-bar .count { font-size: 1rem; }
.seg button { min-width: 42px; min-height: 40px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 18px; }
.af { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: rgba(227, 191, 110, 0.14); border: 1px solid rgba(227, 191, 110, 0.5); color: #fff3d0; font-size: .86rem; font-weight: 500; }
.af span { font-size: 1.1rem; line-height: 1; opacity: .8; }
.af:hover { background: rgba(227, 191, 110, 0.26); color: #fff; }
.af-reset { color: var(--muted); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; padding: 6px 8px; }
.empty { background: var(--surface); border-style: solid; }

/* Seitenkoepfe, Abschnitte */
.page-head { padding: 40px 0 24px; }
.page-head p, .section-head p { color: var(--muted); }
.crumbs { color: var(--muted); }
.section { padding: clamp(48px, 6.5vw, 88px) 0; }
.section-head { margin-bottom: 30px; }
.hero .lead { color: var(--muted); }
.hero-stats span { color: var(--muted); }

/* Footer */
.site-footer, .site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }

/* Mobil */
@media (max-width: 900px) {
  .main-nav { background: rgba(11, 14, 26, 0.99); }
  .main-nav a { padding: 15px 14px; border-radius: 10px; }
  .burger { min-width: 46px; min-height: 46px; }
  .filters { max-height: none; position: static; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .btn { width: auto; }
  .result-bar { padding: 10px 12px; }
  .page-head { padding: 28px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.btn.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep)); color: #1b1405; border-color: transparent; }
.btn.btn-gold:hover { color: #1b1405; }
.btn.btn-ghost { background: transparent; }

/* 8. EVENTS v3: schlanke Terminliste */
.ev-bar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 14px; }
.ev-bar:not(:has(select:nth-of-type(3))) { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(130px, 1fr)) auto; }
.ev-search { position: relative; }
.ev-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gold); pointer-events: none; }
.ev-search .input { padding-left: 42px; }
.ev-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ev-tabs .chip b { font-weight: 600; color: var(--faint); margin-left: 2px; }
.ev-tabs .chip[aria-pressed="true"] b { color: var(--gold-2); }
.ev-count { display: flex; align-items: center; gap: 16px; color: var(--muted); margin-bottom: 4px; }
.ev-count b { color: var(--gold-2); }
.ev-count a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.ev-month { font-size: 1.7rem; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-transform: capitalize; }
.evl-group { display: flex; flex-direction: column; gap: 8px; }
.evl { display: grid; grid-template-columns: 62px 1fr auto; gap: 18px; align-items: center; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s, transform .2s; color: var(--text); }
.evl:hover { border-color: rgba(227, 191, 110, 0.55); background: var(--surface-2); color: var(--text); transform: translateX(2px); }
.evl h3 { font-size: 1.2rem; margin: 0 0 4px; line-height: 1.25; }
.evl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: .88rem; }
.evl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.evl-meta svg { width: 14px; height: 14px; }
.evl-perf { color: var(--gold-2); }
.evl-side { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.evl-go { color: var(--gold); display: grid; place-items: center; }
.evl .date-box { margin: 0; }
@media (max-width: 900px) { .ev-bar, .ev-bar:not(:has(select:nth-of-type(3))) { grid-template-columns: 1fr 1fr; } .ev-search { grid-column: 1 / -1; } .ev-bar .btn { grid-column: 1 / -1; } }
@media (max-width: 620px) { .evl { grid-template-columns: 54px 1fr; gap: 12px; } .evl-side { display: none; } .ev-month { font-size: 1.4rem; } }

/* 9. Aktives Menue: feiner Goldstrich wie im Footer */
@media (min-width: 901px) {
  .main-nav a { position: relative; }
  .main-nav a[aria-current="page"], .main-nav a:hover { background: transparent; box-shadow: none; }
  .main-nav a[aria-current="page"] { color: var(--gold-2); }
  .main-nav a::after { content: ""; position: absolute; left: 15px; bottom: 2px; width: 0; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); transition: width .25s; }
  .main-nav a[aria-current="page"]::after { width: 34px; }
  .main-nav a:hover::after { width: 24px; }
}
@media (max-width: 900px) {
  .main-nav a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--gold-2); border-left: 2px solid var(--gold); border-radius: 0; }
}

/* ==========================================================================
   10. THEMES: Umschalter Hell / Dunkel (html[data-theme])
   ========================================================================== */
.theme-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); display: grid; place-items: center; transition: color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--gold-2); border-color: var(--gold); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fb;
  --bg-2: #e6edf8;
  --surface: #ffffff;
  --surface-2: #f4f7fd;
  --surface-3: #e3eaf7;
  --line: rgba(27, 36, 64, 0.12);
  --line-strong: rgba(27, 36, 64, 0.26);
  --text: #18213d;
  --muted: #45506e;
  --faint: #667090;
  --gold: #a87a1f;
  --gold-2: #7a5410;
  --gold-deep: #8a6016;
  --violet: #5a45d6;
  --violet-2: #4a37b8;
  --ok: #17794c;
  --shadow: 0 14px 34px -18px rgba(27, 36, 64, 0.35);
}
/* Kopfzeile und Fuss bleiben dunkel (Menue), mit den dunklen Tokens */
:root[data-theme="light"] .site-header,
:root[data-theme="light"] .site-footer {
  --bg: #0b0e1a; --bg-2: #0f1322; --surface: #141a2d; --surface-2: #1a2138; --surface-3: #242d4b;
  --line: rgba(255, 255, 255, 0.10); --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f3f0ea; --muted: #bdbacd; --faint: #9a97b0; --gold: #e6c477; --gold-2: #f7dfa6; --gold-deep: #b98f3c;
  color: var(--text);
}
:root[data-theme="light"] .site-header { background: rgba(11, 14, 26, 0.97); border-bottom-color: rgba(255, 255, 255, 0.08); }
:root[data-theme="light"] .site-footer { background: linear-gradient(180deg, #0f1730 0%, #0a0e1c 100%); }
:root[data-theme="light"] body::before { background: radial-gradient(900px 520px at 90% -12%, rgba(90, 69, 214, 0.07), transparent 62%), radial-gradient(800px 520px at -10% 8%, rgba(168, 122, 31, 0.06), transparent 62%), var(--bg); }
:root[data-theme="light"] #stars { display: none; }
:root[data-theme="light"] ::selection { background: #f2d38a; color: #1b1405; }

/* Flaechen, die im dunklen Theme mit Weiss getoent sind */
:root[data-theme="light"] .btn { background: #fff; color: var(--text); }
:root[data-theme="light"] .btn:hover { color: var(--gold-2); border-color: var(--gold); }
:root[data-theme="light"] .btn.btn-gold { background: linear-gradient(135deg, #f7dfa6, #e6c477 50%, #cf9f3e); color: #1b1405; box-shadow: 0 8px 20px -10px rgba(168, 122, 31, 0.6); }
:root[data-theme="light"] .btn.btn-gold:hover { color: #1b1405; }
:root[data-theme="light"] .btn.btn-ghost { background: transparent; }

:root[data-theme="light"] .chip, :root[data-theme="light"] .tag { background: rgba(27, 36, 64, 0.05); color: var(--muted); }
:root[data-theme="light"] .chip[aria-pressed="true"], :root[data-theme="light"] .chip.active { background: #f6e6bd; border-color: var(--gold); color: #5c3f08; }
:root[data-theme="light"] .tag.gold { background: #fbf0d4; color: #6b4a0b; border-color: rgba(168, 122, 31, 0.5); }
:root[data-theme="light"] .tag.violet { background: #ece9fb; color: #43309e; border-color: rgba(90, 69, 214, 0.4); }
:root[data-theme="light"] .tag.ok { background: #e1f4ea; color: #145f3c; border-color: rgba(23, 121, 76, 0.4); }
:root[data-theme="light"] .card, :root[data-theme="light"] .filters, :root[data-theme="light"] .result-bar, :root[data-theme="light"] .ev-bar, :root[data-theme="light"] .evl, :root[data-theme="light"] .cal { background: var(--surface); box-shadow: 0 1px 2px rgba(27, 36, 64, 0.05); }
:root[data-theme="light"] .card:hover, :root[data-theme="light"] .evl:hover { background: #fff; box-shadow: var(--shadow); }
:root[data-theme="light"] .input, :root[data-theme="light"] .select { background: #fff; color: var(--text); }
:root[data-theme="light"] .select option { background: #fff; color: var(--text); }
:root[data-theme="light"] .avatar { color: #1b1405; }
:root[data-theme="light"] .avatar.sq { background: #eef3fb; color: var(--gold-2); }
:root[data-theme="light"] .date-box { background: #fbf3dc; border-color: rgba(168, 122, 31, 0.45); }
:root[data-theme="light"] .date-box b { color: #6b4a0b; }
:root[data-theme="light"] .check input { background: #fff; }
:root[data-theme="light"] .check input:checked { background: var(--gold); border-color: var(--gold); }
:root[data-theme="light"] .switch input { background: #cfd8ea; }
:root[data-theme="light"] .switch input::after { background: #fff; }
:root[data-theme="light"] .af { background: #fbf0d4; color: #5c3f08; border-color: rgba(168, 122, 31, 0.55); }
:root[data-theme="light"] .af:hover { background: #f6e0a6; color: #3d2904; }
:root[data-theme="light"] .seg button[aria-pressed="true"] { background: #f6e6bd; color: #5c3f08; }
:root[data-theme="light"] .cal-day { background: rgba(27, 36, 64, 0.04); }
:root[data-theme="light"] .evl-perf { color: #7a5410; }
:root[data-theme="light"] .ev-tabs .chip[aria-pressed="true"] b { color: #5c3f08; }
:root[data-theme="light"] .hero h1 em { background: linear-gradient(120deg, #8a6016, #b8861f 50%, #5a45d6); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .hero-stats strong { color: #7a5410; }
:root[data-theme="light"] .map { background: linear-gradient(180deg, #e3ecf9, #d5e1f4); }
:root[data-theme="light"] .empty { background: #fff; }
:root[data-theme="light"] .site-footer a:hover, :root[data-theme="light"] .main-nav a:hover { color: var(--gold-2); }
:root[data-theme="light"] .site-header .btn:not(.btn-gold) { background: transparent; }
:root[data-theme="light"] .site-header .btn.btn-gold { background: linear-gradient(135deg, #f7dfa6, #e6c477 50%, #cf9f3e); color: #1b1405; }
:root[data-theme="light"] .searchbox { background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); }
:root[data-theme="light"] .searchbox .input, :root[data-theme="light"] .searchbox-row > * { color: var(--text); }
:root[data-theme="light"] .avatar.xl, :root[data-theme="light"] .avatar.sq.xl { background: linear-gradient(145deg, #f7dfa6, #cf9f3e); color: #1b1405; border: 0; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold); }
