/* Traffic Spike · Website. Farben und Schriften wie docs/marketing-material/brand.css (Solarized hell, Gruvbox dunkel). */

@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("assets/fonts/Nunito-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("assets/fonts/Nunito-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("assets/fonts/Nunito-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #fdf6e3; --panel: #fffdf6; --panel2: #eee8d5; --line: #d3cbb7;
  --text: #073642; --text2: #586e75; --muted: #93a1a1;
  --lit: #b58900; --read: #b58900; --write: #cb4b16; --hot: #dc322f; --hotbg: #fff1ec; --ok: #859900;
  --btn: #073642; --onbtn: #fdf6e3;
  --grid: rgba(7, 54, 66, 0.10); --shadow: rgba(88, 110, 117, 0.16);
  --sans: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #282828; --panel: #32302f; --panel2: #3c3836; --line: #504945;
    --text: #ebdbb2; --text2: #a89984; --muted: #928374;
    --lit: #fabd2f; --read: #fabd2f; --write: #83a598; --hot: #fb4934; --hotbg: #3d2622; --ok: #b8bb26;
    --btn: #fabd2f; --onbtn: #282828;
    --grid: rgba(235, 219, 178, 0.075); --shadow: rgba(0, 0, 0, 0.22);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #282828; --panel: #32302f; --panel2: #3c3836; --line: #504945;
  --text: #ebdbb2; --text2: #a89984; --muted: #928374;
  --lit: #fabd2f; --read: #fabd2f; --write: #83a598; --hot: #fb4934; --hotbg: #3d2622; --ok: #b8bb26;
  --btn: #fabd2f; --onbtn: #282828;
  --grid: rgba(235, 219, 178, 0.075); --shadow: rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--bg); color: var(--text);
  font: 600 17px/1.55 var(--sans);
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.6px); background-size: 40px 40px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--lit); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--lit); }
:focus-visible { outline: 3px solid var(--lit); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.8em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
code { font-family: var(--mono); font-weight: 500; font-size: 0.86em; background: var(--panel2); border: 1.5px solid var(--line); border-radius: 6px; padding: 0 5px; }
.accent { color: var(--lit); }
.sub { color: var(--text2); }
.kicker { font: 500 0.85rem var(--mono); color: var(--text2); margin-bottom: 12px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; background: var(--panel2); border-bottom: 2px solid var(--line); }
.top-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 9px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--lit); }
.brand:hover { color: inherit; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 5px 11px; border-radius: 9px; font-weight: 700; font-size: 0.93rem; color: var(--text2); border: 2px solid transparent; }
.nav a:hover { color: var(--text); border-color: var(--line); }
.lang { flex: none; font: 700 0.84rem var(--mono); color: var(--text); background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 7px 8px; cursor: pointer; }
.lang:hover { border-color: var(--lit); }
.sw { position: relative; flex: none; width: 72px; height: 40px; padding: 0; border: 2px dashed var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.sw-thumb { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 8px; background: var(--panel); border: 1.5px solid var(--line); transition: transform 0.18s ease-out, border-color 0.18s; }
.sw.anim .sw-thumb { transition: left 0.18s ease-out, transform 0.18s ease-out, border-color 0.18s; }
.sw[aria-checked="true"] .sw-thumb { left: 35px; }
.sw:hover .sw-thumb { border-color: var(--read); transform: scale(1.06); }
.sw-ico { position: absolute; top: 9px; width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sw-moon { left: 9px; }
.sw-sun { left: 41px; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } .brand span { display: none; } }

main { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }
section { padding-top: 84px; }
section > header { max-width: 44em; margin-bottom: 26px; }
section > header h2 { margin-bottom: 10px; }
section > header p { color: var(--text2); font-size: 1.08rem; }

/* Fenster-Baustein wie im Spiel */
.win { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; box-shadow: 0 5px 0 var(--shadow); overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--panel2); border-bottom: 2px solid var(--line); font: 500 0.8rem var(--mono); color: var(--text2); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); flex: none; }
.win-bar i:nth-child(2) { background: var(--lit); }
.win-bar i:nth-child(3) { background: var(--ok); margin-right: 6px; }
.win-body { padding: 18px 20px; }
.win-body h3 { margin-bottom: 6px; }
.win-body p { color: var(--text2); font-size: 0.97rem; }
.win.lit { border-color: var(--lit); }

/* Hero */
.hero { display: grid; gap: 34px; align-items: center; padding-top: 56px; }
.hero > * { min-width: 0; }
@media (min-width: 940px) { .hero { grid-template-columns: 1fr 1.08fr; padding-top: 80px; } }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.16rem; color: var(--text2); max-width: 34em; margin-bottom: 26px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--btn); color: var(--onbtn); font: 800 1rem var(--sans); border-radius: 11px; padding: 11px 20px; text-decoration: none; border: 2px solid var(--btn); cursor: pointer; flex-wrap: wrap; max-width: 100%; }
.btn:hover { color: var(--onbtn); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--lit); color: var(--text); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.75; filter: none; }
.btn .soon { font: 500 0.72rem var(--mono); border: 1.5px solid currentColor; border-radius: 999px; padding: 0 7px; opacity: 0.8; }
.facts { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-block; font: 500 0.76rem var(--mono); border: 1.5px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--text2); background: var(--panel); white-space: nowrap; }

/* Animierte Szene */
.scene svg { width: 100%; height: auto; display: block; }
.scene .caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-top: 2px solid var(--line); font: 500 0.8rem var(--mono); color: var(--text2); min-height: 40px; }
.scene .caption b { color: var(--text); font-weight: 700; }
.leds { display: flex; gap: 5px; flex: none; }
.leds i { width: 10px; height: 10px; border-radius: 50%; background: var(--lit); transition: background 0.3s; }
.leds i.off { background: var(--line); }
.s-line { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s-node { fill: var(--panel2); stroke: var(--line); stroke-width: 2; transition: stroke 0.3s, fill 0.3s; }
.s-node.hot { stroke: var(--hot); fill: var(--hotbg); }
.s-node.new { stroke: var(--lit); }
.s-ico { fill: none; stroke: var(--text2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s-bar { fill: var(--line); }
.s-fill { fill: var(--ok); transition: fill 0.3s; }
.s-fill.hot { fill: var(--hot); }
.s-crowd { fill: var(--panel2); stroke: var(--line); stroke-width: 2; }
.s-person { fill: var(--text2); opacity: 0.75; }
.s-label { font: 500 11px var(--mono); fill: var(--text2); }
.s-warn { font: 700 12px var(--sans); fill: var(--hot); }
.p-read { fill: var(--read); }
.p-write { fill: var(--write); }
.fade { transition: opacity 0.4s; }

/* Ablauf in drei Schritten */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); counter-reset: step; }
.step .win-body { padding-top: 14px; }
.step h3::before { counter-increment: step; content: counter(step) " "; font-family: var(--mono); color: var(--lit); margin-right: 4px; }
.shot { border-bottom: 2px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Zweispaltige Blöcke */
.split { display: grid; gap: 30px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.25fr; } .split.flip > :first-child { order: 2; } }
.split h2 { margin-bottom: 12px; }
.split p { color: var(--text2); font-size: 1.06rem; max-width: 40em; }
.code { font: 500 0.88rem/1.7 var(--mono); background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 18px 0 0; overflow-x: auto; color: var(--text); }
.code .c { color: var(--muted); }
.code .k { color: var(--lit); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }

/* Inhalt */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.num { font: 700 1.9rem/1 var(--mono); color: var(--lit); display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 26px; }
.gallery figure { margin: 0; }
.gallery figcaption { padding: 10px 14px; font-size: 0.92rem; color: var(--text2); }

/* Zielgruppen */
.who .win-body { display: flex; flex-direction: column; gap: 4px; }
.who .lab { font: 500 0.78rem var(--mono); color: var(--lit); }

/* Abschluss */
.signup { text-align: center; }
.signup .win-body { padding: 40px 22px; }
.signup h2 { margin-bottom: 12px; }
.signup p { max-width: 36em; margin-left: auto; margin-right: auto; }
.signup .ctas { justify-content: center; margin: 24px 0 0; }

.foot { max-width: 1160px; margin: 60px auto 0; padding: 22px 16px 40px; border-top: 2px solid var(--line); color: var(--text2); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Rechtstexte */
.legal { max-width: 46em; padding-top: 50px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 22px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text2); }
.todo { background: var(--hotbg); border: 1.5px dashed var(--hot); border-radius: 6px; padding: 0 6px; color: var(--text); font-family: var(--mono); font-size: 0.85em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
