/* EventFilter.io – gemeinsames Design für Startseite, Wizard und Verwaltung
   Design-System: Navy, Liquid Glass, eckig (max. 6px Radius), kaum Verläufe, keine Emojis.
   Tag-Theme (Wizard, Verwaltung, Inhaltsseiten) auf :root, Nacht-Theme über .theme-night
   sowie automatisch für Navigation, Fußzeile und dunkle Bänder. */

/* ---------- Schriften (selbst gehostet, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/archivo-latin-var.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin-var.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }

/* ---------- Tokens: Tag ---------- */
:root {
  --c-ground: #ecf0f5;
  --c-raised: #ffffff;
  --c-sunken: #dfe5ec;
  --c-ink: #0a1729;
  --c-muted: #4a5a6e;
  --c-line: #d3dbe4;
  --c-line-strong: #6f7f94;
  --c-blue: #1a55c7;
  --c-on-blue: #ffffff;
  --c-blue-text: #1a55c7;
  --c-blue-soft: #dbe6fb;
  --c-amber: #e89a2e;
  --c-on-amber: #1a1206;
  --c-amber-text: #8a4f00;
  --c-teal: #0b6e63;
  --c-danger: #b0301a;
  --c-glass: rgba(255, 255, 255, .52);
  --c-glass-strong: rgba(255, 255, 255, .80);
  --c-glass-edge: rgba(255, 255, 255, .85);
  --c-glass-sheen: rgba(255, 255, 255, .55);
  --c-focus: #1a55c7;
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(10, 23, 41, .06), 0 10px 30px rgba(10, 23, 41, .12);
  --shadow-raised: 0 1px 2px rgba(10, 23, 41, .08), 0 4px 12px rgba(10, 23, 41, .06);
  --blur-glass: blur(20px) saturate(160%);
  --blur-glass-strong: blur(32px) saturate(140%);
  --navy: #07111f;
  --navy-2: #0e1b2d;
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Tokens: Nacht ---------- */
.theme-night, .nav, footer.site, .dark, .cta-band, .hero-done {
  --c-ground: #07111f;
  --c-raised: #0e1b2d;
  --c-sunken: #040b15;
  --c-ink: #e8eef5;
  --c-muted: #8fa1b6;
  --c-line: #1c2b40;
  --c-line-strong: #5a6e87;
  --c-blue: #2766e0;
  --c-blue-text: #5b9bff;
  --c-blue-soft: #10284d;
  --c-amber: #f0a53c;
  --c-amber-text: #f0a53c;
  --c-teal: #4fc2b4;
  --c-danger: #ff7e66;
  --c-glass: rgba(160, 190, 230, .09);
  --c-glass-strong: rgba(9, 20, 36, .72);
  --c-glass-edge: rgba(200, 220, 255, .18);
  --c-glass-sheen: rgba(255, 255, 255, .07);
  --c-focus: #f0a53c;
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .30), 0 10px 30px rgba(0, 4, 12, .45);
  --shadow-raised: 0 1px 0 rgba(255, 255, 255, .04), 0 4px 12px rgba(0, 4, 12, .40);
  color-scheme: dark;
}

/* Alte Variablennamen bleiben gültig (werden in Seiten-Styles noch verwendet) */
:root, .theme-night, .nav, footer.site, .dark, .cta-band, .hero-done {
  --ink: var(--navy);
  --ink-2: var(--navy-2);
  --text: var(--c-ink);
  --muted: var(--c-muted);
  --line: var(--c-line);
  --bg: var(--c-ground);
  --card: var(--c-raised);
  --brand: var(--c-blue);
  --brand-2: var(--c-blue-text);
  --hot: var(--c-amber);
  --ok: var(--c-teal);
  --danger: var(--c-danger);
  --radius: var(--r-md);
  --shadow: var(--shadow-raised);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--c-ink); background: var(--c-ground); -webkit-font-smoothing: antialiased; }
body.theme-night { background: var(--c-ground); color: var(--c-ink); }
img { max-width: 100%; }
a { color: var(--c-blue-text); text-underline-offset: 3px; }
code { background: var(--c-blue-soft); color: var(--c-ink); padding: 1px 5px; border-radius: var(--r-xs); font: 500 .86em var(--font-mono); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-weight: 800; letter-spacing: -.03em; }

/* ---------- Glas ---------- */
.glass, .glass-strong { position: relative; isolation: isolate; background: var(--c-glass); -webkit-backdrop-filter: var(--blur-glass); backdrop-filter: var(--blur-glass); border: 1px solid var(--c-glass-edge); border-radius: var(--r-md); box-shadow: var(--shadow-glass); }
.glass-strong { background: var(--c-glass-strong); -webkit-backdrop-filter: var(--blur-glass-strong); backdrop-filter: var(--blur-glass-strong); }
.glass::before, .glass-strong::before { content: ""; position: absolute; inset: 0 0 45% 0; border-radius: inherit; background: linear-gradient(180deg, var(--c-glass-sheen), rgba(255, 255, 255, 0)); pointer-events: none; z-index: -1; }

/* Bühnenlicht-Flächen hinter Glas, solange kein Foto da ist */
.stage-bg { position: absolute; inset: 0; overflow: hidden; background: var(--c-ground); pointer-events: none; }
.stage-bg i { position: absolute; display: block; }
.stage-bg i:nth-child(1) { left: 18%; top: 8%; width: 64%; height: 38%; background: var(--c-blue); }
.stage-bg i:nth-child(2) { left: 22%; top: 50%; width: 56%; height: 5%; background: var(--c-teal); }
.stage-bg i:nth-child(3) { right: 6%; top: 0; width: 7%; height: 62%; background: var(--c-amber); transform: skewX(-10deg); }
.stage-bg i:nth-child(4) { left: 0; bottom: 0; width: 100%; height: 28%; background: var(--c-sunken); }

/* ---------- Icons (Inline-SVG, Strichstärke 1.5, eckige Enden) ---------- */
.ico-svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- Barrierefreiheit ---------- */
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--c-raised); color: var(--c-ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Basis-Bausteine ---------- */
.ef-logo { font: 800 1.2rem/1 var(--font-display); color: var(--c-ink); text-decoration: none; letter-spacing: -.03em; }
.ef-logo span { color: var(--c-muted); }
.ef-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--c-blue); color: var(--c-on-blue); font: 600 .95rem/1.2 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); transition: background-color .15s, border-color .15s, filter .15s, transform .1s; }
.ef-btn:hover { filter: brightness(1.08); }
.ef-btn:active { transform: translateY(1px); }
.ef-btn:disabled { opacity: .5; cursor: wait; }
.ef-btn-accent { background: var(--c-blue); }
.ef-btn-ghost { background: transparent; color: var(--c-blue-text); border-color: var(--c-line-strong); box-shadow: none; }
.ef-btn-ghost:hover { filter: none; border-color: var(--c-blue-text); background: var(--c-blue-soft); }
.ef-btn-light, .ef-btn-glass { background: var(--c-glass); color: var(--c-ink); border-color: var(--c-glass-edge); -webkit-backdrop-filter: var(--blur-glass); backdrop-filter: var(--blur-glass); box-shadow: var(--shadow-glass); }
.ef-btn-light:hover, .ef-btn-glass:hover { filter: none; background: var(--c-glass-strong); }
.ef-btn-danger { background: var(--c-danger); color: #fff; box-shadow: none; }
.ef-btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.ef-btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.ef-link { background: none; border: 0; padding: 0; color: var(--c-blue-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.ef-link:hover { text-decoration: underline; }
.ef-muted { color: var(--c-muted); }
.ef-small { font-size: .86rem; color: var(--c-muted); }
.ef-eyebrow { margin: 0 0 8px; font: 600 .75rem/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue-text); }
.ef-card { background: var(--c-raised); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-raised); }
.ef-card h2 { font-size: 1.05rem; margin: 0 0 12px; }
.ef-alert { background: var(--c-raised); color: var(--c-danger); border: 1px solid var(--c-danger); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 20px; }
.ef-alert-ok { color: var(--c-teal); border-color: var(--c-teal); }
.ef-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); font: 600 .7rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--c-blue-soft); color: var(--c-blue-text); }
.tag-amber { background: var(--c-amber); color: var(--c-on-amber); }
.data { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.ef-field { display: block; margin-bottom: 18px; font-weight: 600; font-size: .9rem; }
.ef-field input[type=text], .ef-field input[type=url], .ef-field input[type=email], .ef-field input[type=datetime-local], .ef-prefix {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); font: 400 1rem var(--font); color: var(--c-ink); background: var(--c-raised); transition: border-color .15s;
}
.ef-field input:focus, .ef-prefix:focus-within { outline: 2px solid var(--c-focus); outline-offset: 2px; border-color: var(--c-blue-text); }
.ef-field input.invalid { border-color: var(--c-danger); }
.ef-prefix { display: flex; align-items: center; padding: 0 0 0 12px; }
.ef-prefix span { color: var(--c-muted); font: 500 .85rem var(--font-mono); white-space: nowrap; }
.ef-prefix input { flex: 1; min-width: 0; border: 0; padding: 11px 12px 11px 2px; font: 500 .9rem var(--font-mono); outline: none; background: transparent; color: var(--c-ink); }
.ef-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ef-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .ef-row, .ef-row-3 { grid-template-columns: 1fr; } }
.ef-color input { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 3px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-raised); cursor: pointer; }

/* ---------- App-Rahmen (Wizard, Verwaltung) ---------- */
.ef-app { background: var(--c-ground); min-height: 100vh; }
.ef-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px 16px; }
.ef-topbar .ef-muted { font-size: .9rem; }
@media (max-width: 560px) { .ef-topbar .ef-muted { display: none; } }
.ef-plain .ef-narrow { max-width: 560px; margin: 10vh auto; padding: 0 16px; }

/* ---------- Wizard ---------- */
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 8px 16px 64px; align-items: start; }
@media (max-width: 960px) { .wiz { grid-template-columns: 1fr; } .wiz-preview { order: -1; } }
.wiz-form { background: var(--c-raised); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 32px; box-shadow: var(--shadow-raised); position: relative; }
@media (max-width: 560px) { .wiz-form { padding: 20px; } }
.wiz-form h1 { margin: 8px 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.wiz-form h1 + .ef-muted { margin-top: 0; margin-bottom: 24px; }
.wiz-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; overflow-x: auto; }
.wiz-steps li { flex: 1; min-width: 74px; counter-increment: s; font-size: .8rem; font-weight: 600; color: var(--c-muted); cursor: pointer; padding-top: 10px; border-top: 3px solid var(--c-line); transition: border-color .2s, color .2s; }
.wiz-steps li::before { content: counter(s) "  "; font-family: var(--font-mono); font-weight: 500; }
.wiz-steps li.done { border-color: var(--c-blue-soft); color: var(--c-ink); }
.wiz-steps li.active { border-color: var(--c-blue); color: var(--c-blue-text); }
.wiz-panel { animation: rise .2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c-line); }

.frame-list { display: grid; gap: 12px; }
.frame-item { position: relative; display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); transition: border-color .15s; }
.frame-item.active { border-color: var(--c-blue-text); box-shadow: inset 0 0 0 1px var(--c-blue-text); }
.frame-thumb { width: 96px; height: 96px; flex: 0 0 96px; border-radius: var(--r-sm); cursor: pointer; object-fit: contain; background: repeating-conic-gradient(#e3e8ee 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.frame-body { flex: 1; min-width: 0; }
.frame-name { width: 100%; border: 0; border-bottom: 1px solid var(--c-line-strong); padding: 4px 0; font: 600 1rem var(--font); color: var(--c-ink); background: transparent; outline: none; }
.frame-name:focus { border-color: var(--c-blue-text); }
.frame-templates { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip { border: 1px solid var(--c-line-strong); background: var(--c-raised); border-radius: var(--r-xs); padding: 5px 10px; font: 600 .8rem var(--font); color: var(--c-muted); cursor: pointer; }
.chip:hover { color: var(--c-ink); }
.chip.on { border-color: var(--c-blue); background: var(--c-blue); color: var(--c-on-blue); }
.frame-del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-raised); color: var(--c-muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.frame-del:hover { border-color: var(--c-danger); color: var(--c-danger); }
.frame-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.frame-add .ef-btn { min-height: 38px; padding: 0 16px; font-size: .9rem; }

.swatches { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: var(--r-sm); border: 3px solid var(--c-raised); box-shadow: 0 0 0 1px var(--c-line-strong); cursor: pointer; transition: box-shadow .15s; }
.swatch:hover { box-shadow: 0 0 0 2px var(--c-ink); }
.logo-pick { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-weight: 400; }
.logo-pick img { max-height: 56px; max-width: 160px; padding: 6px; border: 1px solid var(--c-line); border-radius: var(--r-sm); }

.text-list { display: grid; gap: 12px; }
.text-item { position: relative; }
.text-item textarea { width: 100%; padding: 12px 40px 12px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); font: 400 .95rem/1.5 var(--font); color: var(--c-ink); background: var(--c-raised); resize: vertical; }
.text-item textarea:focus { outline: 2px solid var(--c-focus); outline-offset: 2px; border-color: var(--c-blue-text); }

.summary { list-style: none; padding: 0; margin: 20px 0 0; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--c-line); }
.summary li:first-child { border-top: 0; }
.summary span { color: var(--c-muted); }
.summary strong { text-align: right; overflow-wrap: anywhere; }

/* Telefon-Vorschau (zeigt die Gäste-Seite im Branding des Veranstalters) */
.wiz-preview { position: sticky; top: 16px; }
@media (max-width: 960px) { .wiz-preview { position: static; } .phone { max-width: 300px; margin: 0 auto; } }
.phone { position: relative; border-radius: 40px; padding: 11px; background: #0b1424; box-shadow: 0 24px 48px -20px rgba(4, 11, 21, .55), inset 0 0 0 1px #2a3a52; }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #0b1424; z-index: 2; }
.phone-screen { --main: #1a55c7; --accent: #e89a2e; border-radius: 30px; padding: 50px 16px 20px; min-height: 560px; overflow: hidden; transition: background .3s; }
.pv-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.pv-head img { max-height: 28px; max-width: 100px; object-fit: contain; align-self: flex-start; margin-bottom: 4px; }
.pv-head strong { font: 700 1.1rem/1.2 var(--font-display); letter-spacing: -.02em; }
.pv-head span { font-size: .78rem; color: #64748b; }
#pvCanvas { width: 100%; border-radius: 12px; display: block; box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
.pv-chips { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; }
.pv-chip { flex: 0 0 auto; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; color: #475569; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pv-chip.on { background: var(--main); color: #fff; }
.pv-btn { text-align: center; padding: 10px; border-radius: 999px; background: var(--main); color: #fff; font-weight: 700; font-size: .85rem; }
.pv-text { margin-top: 10px; padding: 10px; border-radius: 12px; background: #fff; font-size: .72rem; line-height: 1.45; color: #334155; white-space: pre-line; max-height: 120px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pv-text:empty { display: none; }
.pv-tools { text-align: center; margin-top: 14px; font-size: .9rem; }

/* ---------- Verwaltung ---------- */
.dash { max-width: 1180px; margin: 0 auto; padding: 8px 16px 64px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 12px 0 24px; }
.dash-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.dash-head .ef-muted { margin: 6px 0 0; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); font: 500 .85rem var(--font-mono); background: var(--c-sunken); color: var(--c-ink); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.kpis div { background: var(--c-ground); border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 12px; }
.kpis b { display: block; font: 500 1.8rem/1.1 var(--font-mono); letter-spacing: -.02em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.kpis span { font-size: .78rem; color: var(--c-muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; border-bottom: 1px solid var(--c-line); }
.bar { flex: 1; height: max(var(--h), 3px); background: var(--c-blue); border-radius: 1px 1px 0 0; position: relative; }
.bar span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font: 500 .66rem var(--font-mono); color: var(--c-muted); }
.bars-legend { display: flex; justify-content: space-between; font: 500 .72rem var(--font-mono); color: var(--c-muted); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 2fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: .9rem; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar div { height: 8px; background: var(--c-blue-soft); border-radius: 1px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--c-blue); }
.hbar b, .hbar strong { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; margin-bottom: 16px; }
.thumbs figure { margin: 0; text-align: center; font-size: .78rem; color: var(--c-muted); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: repeating-conic-gradient(#e3e8ee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.danger { margin-top: 32px; color: var(--c-muted); }
.danger summary { cursor: pointer; font-size: .9rem; }
.danger form { margin-top: 12px; max-width: 480px; }
.hero-done { position: relative; overflow: hidden; isolation: isolate; text-align: left; padding: 40px 32px; margin-bottom: 8px; border-radius: var(--r-md); background: var(--c-ground); color: var(--c-ink); }
.hero-done::before { content: ""; position: absolute; z-index: -1; right: 6%; top: 0; width: 120px; height: 100%; background: var(--c-blue); transform: skewX(-12deg); }
.hero-done::after { content: ""; position: absolute; z-index: -1; right: calc(6% + 150px); top: 0; width: 24px; height: 62%; background: var(--c-amber); transform: skewX(-12deg); }
.hero-done h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 5vw, 2.6rem); max-width: 70%; }
.hero-done p { max-width: 560px; margin: 0; color: var(--c-muted); }
@media (max-width: 560px) { .hero-done::before, .hero-done::after { opacity: .35; } .hero-done h1 { max-width: none; } }
.confetti { display: none; }
@keyframes fall { to { top: 110%; } }

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

/* =====================================================================
   Website-Rahmen (Startseite + Inhaltsseiten): Navigation, Fußzeile
   ===================================================================== */
.nav { position: sticky; top: 0; z-index: 50; -webkit-backdrop-filter: var(--blur-glass); backdrop-filter: var(--blur-glass); background: rgba(7, 17, 31, .62); border-bottom: 1px solid var(--c-glass-edge); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3); color: var(--c-ink); transition: background .2s; }
.nav.scrolled { background: rgba(7, 17, 31, .86); }
.nav-in { display: flex; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 12px 16px; }
.nav .ef-logo { color: var(--c-ink); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { position: relative; color: var(--c-muted); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-blue-text); transform: scaleX(0); transform-origin: left; transition: transform .15s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--c-ink); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--c-glass-edge); border-radius: var(--r-sm); background: var(--c-glass); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--c-ink); transition: transform .2s, opacity .15s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px; background: rgba(7, 17, 31, .97); border-bottom: 1px solid var(--c-glass-edge); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .15s, visibility .15s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); }
  .nav-links a::after { display: none; }
}
@media (max-width: 400px) { .nav-cta { padding: 0 12px; font-size: .82rem; } .nav-in { gap: 12px; } }

footer.site { background: var(--c-ground); color: var(--c-muted); padding: 56px 16px 24px; border-top: 1px solid var(--c-line); }
footer.site .in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { footer.site .in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer.site .in { grid-template-columns: 1fr; } }
footer.site .ef-logo { color: var(--c-ink); }
footer.site .ef-small { color: var(--c-muted); max-width: 280px; }
footer.site nav { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
footer.site nav strong { color: var(--c-ink); margin-bottom: 4px; }
footer.site a { color: var(--c-muted); text-decoration: none; }
footer.site a:hover { color: var(--c-ink); }
.foot-copy { max-width: 1180px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: .85rem; color: var(--c-muted); }

/* =====================================================================
   Inhaltsseiten: Kopfbereich, Artikel, Karten
   ===================================================================== */
.ef-site { background: var(--c-ground); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; max-width: 1180px; margin: 0 auto; padding: 18px 16px 0; font-size: .85rem; color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-blue-text); }
.page-hero { position: relative; isolation: isolate; max-width: 1180px; margin: 0 auto; padding: 40px 16px 48px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 16px; max-width: 900px; }
.page-hero .lead { font-size: 1.18rem; color: var(--c-muted); max-width: 720px; margin: 0 0 18px; }
.page-hero .cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; padding: 0 16px 80px; }
.link-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-md); background: var(--c-raised); border: 1px solid var(--c-line); box-shadow: var(--shadow-raised); color: inherit; text-decoration: none; transition: border-color .15s; }
.link-card:hover { border-color: var(--c-blue-text); }
.link-card .tag { align-self: flex-start; }
.link-card .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--c-blue-soft); color: var(--c-blue-text); font-size: 1.2rem; line-height: 1; }
.link-card h2, .link-card h3 { margin: 0; font-size: 1.2rem; }
.link-card p { margin: 0; color: var(--c-muted); }
.link-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--c-blue-text); }
.link-card .more::after { content: " \2192"; display: inline-block; transition: transform .15s; }
.link-card:hover .more::after { transform: translateX(3px); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; max-width: 1100px; margin: 0 auto; padding: 0 16px 64px; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.prose { font-size: 1.06rem; line-height: 1.75; max-width: 700px; }
.prose h2 { font-size: 1.65rem; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.22rem; margin: 1.8em 0 .4em; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--c-blue-text); font-weight: 700; }
.prose a { color: var(--c-blue-text); }
.prose .note { margin: 1.6em 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--c-blue-soft); border: 1px solid var(--c-line); font-size: 1rem; }
.prose .note.tip { background: var(--c-raised); border-color: var(--c-teal); }
.prose .note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border-radius: var(--r-md); border: 1px solid var(--c-line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--c-raised); }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose th { background: var(--c-ground); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.prose tr:last-child td { border-bottom: 0; }
.prose .tldr { padding: 20px 22px; border-radius: var(--r-md); background: var(--c-raised); border: 1px solid var(--c-line); font-size: 1rem; margin-bottom: 1.6em; }
.prose .tldr > strong { display: block; margin-bottom: 6px; color: var(--c-blue-text); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.prose .tldr ul { margin: 0; padding-left: 1.2em; }
.template { position: relative; margin: 1.2em 0; padding: 20px 120px 20px 20px; border-radius: var(--r-md); background: var(--c-raised); border: 1px solid var(--c-line); white-space: pre-line; font-size: .98rem; line-height: 1.6; }
.template .copy { position: absolute; top: 12px; right: 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); padding: 6px 12px; background: var(--c-raised); color: var(--c-blue-text); font: 600 .8rem var(--font); cursor: pointer; }
.template .copy:hover { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-on-blue); }
@media (max-width: 520px) { .template { padding: 52px 18px 18px; } }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--c-muted); margin: 0; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; }
.toc > strong { display: block; margin-bottom: 10px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--c-line-strong); color: var(--c-muted); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.on { color: var(--c-blue-text); border-color: var(--c-blue-text); }
.toc .toc-cta { margin-top: 24px; padding: 18px; border-radius: var(--r-md); background: var(--navy); color: #e8eef5; }
.toc .toc-cta p { margin: 0 0 12px; font-weight: 600; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--c-blue-text); }
.related { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.related > h2 { font-size: 1.5rem; margin: 0 0 20px; }
.related .card-grid { padding: 0 0 64px; }
.section-title { max-width: 1180px; margin: 0 auto; padding: 0 16px 20px; font-size: 1.6rem; }

.cta-band { position: relative; overflow: hidden; isolation: isolate; max-width: 1148px; margin: 0 auto 72px; padding: 64px 32px; border-radius: var(--r-md); text-align: left; color: var(--c-ink); background: var(--c-ground); }
.cta-band::before { content: ""; position: absolute; z-index: -1; right: 8%; top: 0; width: 160px; height: 100%; background: var(--c-blue); transform: skewX(-12deg); }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: calc(8% + 200px); top: 0; width: 28px; height: 60%; background: var(--c-amber); transform: skewX(-12deg); }
@media (max-width: 1180px) { .cta-band { margin-inline: 16px; } }
@media (max-width: 700px) { .cta-band::before, .cta-band::after { opacity: .3; } }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; max-width: 620px; }
.cta-band p { max-width: 520px; margin: 0 0 28px; color: var(--c-muted); font-size: 1.08rem; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--c-raised); border: 1px solid var(--c-line); border-radius: var(--r-md); margin-bottom: 8px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; font-size: 1.03rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--c-blue-text); border-bottom: 1.5px solid var(--c-blue-text); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--c-muted); }

/* =====================================================================
   Bewegung: kurz und ruhig. Keine Scroll-Einblendungen, kein Schwanken.
   Die Klassen bleiben, weil site.js sie setzt.
   ===================================================================== */
.js .reveal, .js .reveal-scale, .reveal, .reveal-scale { opacity: 1; transform: none; }
.split .w { display: inline; opacity: 1; transform: none; animation: none; }
.grad { color: var(--c-blue-text); background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none; }
.ef-btn::after { content: none; }

.marquee { overflow: hidden; padding: 20px 0; background: var(--c-raised); border-block: 1px solid var(--c-line); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { white-space: nowrap; font-weight: 600; font-size: 1rem; color: var(--c-muted); }
.marquee span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 40px 2px 0; background: var(--c-amber); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

.pulse-dot { width: 8px; height: 8px; border-radius: var(--r-xs); background: var(--c-teal); display: inline-block; }
.tilt, .tilt:hover { transform: none; }
.ai-img img { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}
