/* ==========================================================================
   Bushfire – main.css
   Struktur:
   1. Fonts           5. Header / Navigation   9.  Feature-Sektionen
   2. Tokens          6. Buttons               10. Artikel / Ratgeber
   3. Reset / Base    7. Hero                  11. Footer
   4. Layout-Utils    8. Komponenten           12. Motion / Reduced Motion
   ========================================================================== */

/* 1. Fonts (lokal gehostet – keine Drittanbieter-Requests) --------------- */
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Flächen: warmes Kohle-Schwarz */
  --bg: #0b0807;
  --bg-2: #110d0b;
  --surface: #17110e;
  --surface-2: #1f1713;
  --border: rgb(255 214 190 / 0.08);
  --border-strong: rgb(255 214 190 / 0.16);

  /* Text */
  --text: #f4ece5;
  --text-muted: #b3a296;
  --text-faint: #7a6a5f;

  /* Glut */
  --ember: #ff6a2b;
  --ember-hot: #ffb347;
  --ember-deep: #d6321c;
  --ash: #4a3d36;
  --grad-fire: linear-gradient(120deg, var(--ember-hot) 0%, var(--ember) 45%, var(--ember-deep) 100%);

  /* Typo */
  --font-display: "Clash Display", "Switzer", system-ui, sans-serif;
  --font-body: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5.4vw, 6.25rem);

  /* Raum */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem;
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);

  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-ember: 0 0 0 1px rgb(255 106 43 / 0.25), 0 10px 40px -10px rgb(255 106 43 / 0.55);
}

/* 3. Reset / Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Feines Filmkorn über allem */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--ember); color: #160a05; }
:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  padding: var(--space-2) var(--space-4); background: var(--ember); color: #160a05; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 4. Layout-Utils --------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--border { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ember-hot);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--text-2xl); margin-top: var(--space-3); }
.section-head p { color: var(--text-muted); font-size: var(--text-lg); margin-top: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; }

.text-fire { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-muted); }

/* 5. Header / Navigation -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(11 8 7 / 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }

.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand__mark { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 8px rgb(255 106 43 / 0.35)); transition: filter 0.4s var(--ease-out); }
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { filter: drop-shadow(0 0 6px rgb(255 179 71 / 0.9)) drop-shadow(0 0 18px rgb(255 106 43 / 0.75)); }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-1); }
.nav__list { display: flex; align-items: center; gap: var(--space-1); list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.2s, background 0.2s;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item--open > .nav__link { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav__link[aria-current="page"] { color: var(--ember-hot); }
.nav__chev { width: 10px; height: 10px; transition: transform 0.25s; }
.nav__item { position: relative; }
.nav__item--open .nav__chev { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 300px;
  list-style: none; padding: var(--space-2); background: rgb(23 17 14 / 0.96); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s;
}
.nav__item--open .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; font-size: var(--text-sm); }
.nav__dropdown a:hover, .nav__dropdown a[aria-current="page"] { background: rgb(255 106 43 / 0.1); color: var(--ember-hot); }
.nav__dropdown small { display: block; color: var(--text-faint); font-size: var(--text-xs); }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--text-xs); }
.lang-switch a { padding: 5px 10px; border-radius: var(--radius-pill); text-decoration: none; color: var(--text-muted); transition: background 0.2s, color 0.2s; }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); }
.lang-switch a:not([aria-current="true"]):hover { color: var(--text); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 24px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; flex-direction: column; align-items: stretch; gap: var(--space-5);
    padding: var(--space-6) 1.25rem; background: var(--bg); overflow-y: auto; z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { font-family: var(--font-display); font-size: 1.6rem; padding: 10px 0; background: none !important; }
  .nav__chev { display: none; }
  .nav__dropdown { position: static; translate: none; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 var(--space-3) var(--space-4); border-left: 1px solid var(--border-strong); margin-left: 4px; }
  .nav .btn { justify-content: center; }
  .lang-switch { align-self: flex-start; }
}

/* 6. Buttons -------------------------------------------------------------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: var(--text-sm); text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
  transform: translate(var(--mx), var(--my));
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--fire { background: var(--grad-fire); color: #1a0903; box-shadow: var(--shadow-ember); isolation: isolate; overflow: hidden; }
.btn--fire::after { /* Glanz-Sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease-out);
}
.btn--fire:hover::after { transform: translateX(120%); }
.btn--fire:hover { box-shadow: 0 0 0 1px rgb(255 179 71 / 0.5), 0 14px 50px -8px rgb(255 106 43 / 0.8); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgb(255 255 255 / 0.02); }
.btn--ghost:hover { border-color: rgb(255 179 71 / 0.5); background: rgb(255 106 43 / 0.06); }
.btn--sm { padding: 9px 16px; font-size: var(--text-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* 7. Hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding-block: var(--space-8) var(--space-9); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + var(--space-8)); overflow: hidden; isolation: isolate; }
.hero__embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::before { /* Glut am Boden */
  content: ""; position: absolute; z-index: -2; left: 50%; bottom: -35vh; width: 140vw; height: 70vh; translate: -50% 0;
  background: radial-gradient(ellipse at center, rgb(255 106 43 / 0.35), rgb(214 50 28 / 0.12) 40%, transparent 70%);
  filter: blur(20px); animation: glow 6s ease-in-out infinite alternate;
}
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@keyframes glow { to { opacity: 0.65; transform: scaleX(1.08); } }
.hero__grid > * { min-width: 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: var(--text-hero); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; margin-block: var(--space-4) var(--space-5); }
.hero h1 .line { display: block; }
.hero__lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 54ch; margin-bottom: var(--space-6); }
.hero__lead strong { color: var(--text); font-weight: 500; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); list-style: none; padding: 0; }
.hero__meta li::before { content: "▲ "; color: var(--ember); font-size: 0.7em; }
.hero__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero__flame { width: 78%; filter: drop-shadow(0 0 60px rgb(255 106 43 / 0.55)); }
.hero__ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid var(--border-strong); }
.hero__ring--2 { inset: -4%; border-style: dashed; border-color: rgb(255 179 71 / 0.15); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(260px, 60vw); margin-inline: auto; }
}

/* Seiten-Hero für Unterseiten */
.page-hero { position: relative; padding-block: calc(var(--space-9) + var(--header-h)) var(--space-7); margin-top: calc(var(--header-h) * -1); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(ellipse at 50% 100%, rgb(255 106 43 / 0.22), transparent 60%); }
.page-hero h1 { font-size: var(--text-2xl); margin-top: var(--space-3); max-width: 20ch; }
.page-hero p { color: var(--text-muted); font-size: var(--text-lg); margin-top: var(--space-4); max-width: 60ch; }

.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--space-5); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ash); }
.breadcrumbs a { text-decoration: none; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--ember-hot); }

/* 8. Komponenten ---------------------------------------------------------- */
.card {
  --px: 50%; --py: 50%;
  position: relative; padding: var(--space-6); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.card::before { /* Cursor-Glut */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--px) var(--py), rgb(255 106 43 / 0.14), transparent 45%);
}
.card:hover { border-color: rgb(255 179 71 / 0.22); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: var(--space-5); color: var(--ember-hot); background: rgb(255 106 43 / 0.1); border: 1px solid rgb(255 106 43 / 0.2); }
.card__icon svg { width: 22px; height: 22px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-5); color: var(--ember-hot); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.card__link::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.card:hover .card__link::after, .card__link:hover::after { transform: translateX(4px); }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-4px); }

.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: #2a2a2a; box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.9); }
.shot img { width: 100%; }
.shot--light { background: #ececec; }
figure figcaption { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); }
.path { font-family: var(--font-mono); font-size: 0.88em; padding: 2px 8px; border-radius: 6px; background: rgb(255 255 255 / 0.06); border: 1px solid var(--border); color: var(--ember-hot); white-space: nowrap; }

.tag { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); color: var(--text-muted); }

.callout { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius); background: rgb(255 106 43 / 0.06); border: 1px solid rgb(255 106 43 / 0.22); }
.callout svg { flex: none; width: 22px; height: 22px; color: var(--ember-hot); margin-top: 2px; }
.callout p { color: var(--text-muted); }
.callout strong { color: var(--text); }

/* Spur-Demo: Safari-Daten "verbrennen" */
.burn { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
@media (max-width: 900px) { .burn { grid-template-columns: 1fr; } }
.terminal { border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: #0f0c0b; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.4); overflow: hidden; font-family: var(--font-mono); font-size: var(--text-sm); }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text-faint); font-size: var(--text-xs); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ash); }
.terminal__bar i:nth-child(1) { background: #ff5f57; } .terminal__bar i:nth-child(2) { background: #febc2e; } .terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: auto; }
.trace-list { list-style: none; padding: var(--space-3) 0; }
.trace { position: relative; display: flex; justify-content: space-between; gap: var(--space-4); padding: 9px 20px; color: var(--text); transition: color 0.4s; }
.trace__name::before { content: "✓ "; color: var(--ember); }
.trace__val { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.trace::after { /* Flammenfront */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(255 106 43 / 0.55) 40%, rgb(255 179 71 / 0.8) 50%, transparent 62%);
  background-size: 250% 100%; background-position: 120% 0; mix-blend-mode: screen;
}
.trace.is-burning::after { opacity: 1; animation: sweep 0.7s var(--ease-out) forwards; }
.trace.is-burnt { color: var(--ash); }
.trace.is-burnt .trace__name { text-decoration: line-through; text-decoration-color: rgb(255 106 43 / 0.4); }
.trace.is-burnt .trace__name::before { content: "✕ "; color: var(--ash); }
.trace.is-burnt .trace__val { color: var(--ash); }
@keyframes sweep { to { background-position: -60% 0; opacity: 0; } }
.terminal__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: var(--text-xs); }
.terminal__foot output { color: var(--ember-hot); font-variant-numeric: tabular-nums; }
.burn__copy h2 { font-size: var(--text-2xl); margin-block: var(--space-3) var(--space-4); }
.burn__copy p { color: var(--text-muted); font-size: var(--text-lg); }
.burn__copy .btn-row { margin-top: var(--space-6); }
.kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; border: 1px solid rgb(0 0 0 / 0.3); background: rgb(0 0 0 / 0.2); font-family: var(--font-mono); font-size: 0.8rem; }
.btn--ghost .kbd { border-color: var(--border-strong); background: rgb(255 255 255 / 0.04); }

/* Vorher/Nachher-Regler */
.compare { position: relative; --pos: 50%; user-select: none; touch-action: pan-y; border-radius: var(--radius-lg); overflow: hidden; }
.compare img { width: 100%; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: var(--grad-fire); box-shadow: 0 0 18px var(--ember); }
.compare__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ember); color: #1a0903; font-size: 20px; box-shadow: var(--shadow-ember); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; top: 9%; padding: 4px 12px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--text-xs); background: rgb(0 0 0 / 0.65); backdrop-filter: blur(6px); }
.compare__label--before { left: 9%; } .compare__label--after { right: 9%; color: var(--ember-hot); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .card { display: flex; flex-direction: column; }
.bento .card .shot { margin-top: auto; }
.bento .card h3 + p { margin-bottom: var(--space-5); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .span-3, .bento .span-4 { grid-column: auto; } }
.menu-pair { display: flex; gap: var(--space-4); justify-content: center; align-items: flex-start; margin-top: auto; }
.menu-pair img { width: min(46%, 220px); border-radius: 10px; box-shadow: 0 20px 50px -20px #000; }

/* Feature-Liste */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; list-style: none; padding: 0; }
.facts li { padding: var(--space-6) var(--space-5); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); transition: background 0.3s; }
.facts li:hover { background: var(--surface); }
.facts li:nth-child(4n) { border-right: 0; }
.facts li:nth-last-child(-n+4) { border-bottom: 0; }
.facts svg { width: 26px; height: 26px; color: var(--ember); margin-bottom: var(--space-4); }
.facts strong { display: block; font-weight: 600; margin-bottom: 4px; }
.facts span { color: var(--text-muted); font-size: var(--text-sm); }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(4n) { border-right: 1px solid var(--border); }
  .facts li:nth-child(2n) { border-right: 0; }
  .facts li:nth-last-child(-n+4) { border-bottom: 1px solid var(--border); }
  .facts li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Große Zahlen */
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.number { padding: var(--space-5); border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.number b { display: block; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1; }
.number span { color: var(--text-muted); font-size: var(--text-sm); }

/* Split-Layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { font-size: var(--text-2xl); margin-block: var(--space-3) var(--space-4); }
.split p { color: var(--text-muted); font-size: var(--text-lg); }
.split p + p { margin-top: var(--space-4); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } .split--reverse > :first-child { order: 0; } }

/* Marquee-Band */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding-block: var(--space-5); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: var(--space-7); width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; color: var(--text-faint); }
.marquee__track span { display: inline-flex; align-items: center; gap: var(--space-7); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA-Block */
.cta { position: relative; text-align: center; padding: var(--space-9) var(--space-5); border-radius: calc(var(--radius-lg) * 1.4); overflow: hidden; isolation: isolate; border: 1px solid rgb(255 106 43 / 0.25); background: radial-gradient(ellipse at 50% 120%, rgb(255 106 43 / 0.35), transparent 60%), var(--bg-2); }
.cta img { width: 96px; margin: 0 auto var(--space-5); filter: drop-shadow(0 0 30px rgb(255 106 43 / 0.6)); }
.cta h2 { font-size: var(--text-2xl); max-width: 22ch; margin-inline: auto; }
.cta p { color: var(--text-muted); margin: var(--space-4) auto var(--space-6); max-width: 52ch; }
.cta .btn-row { justify-content: center; }

/* Video-Fassade (lädt YouTube erst nach Klick) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); background: radial-gradient(ellipse at center, rgb(255 106 43 / 0.15), transparent 70%), var(--surface); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-4); padding: var(--space-5); text-align: center; }
.video__play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-fire); color: #1a0903; box-shadow: var(--shadow-ember); transition: transform 0.35s var(--ease-out); }
.video__play svg { width: 28px; height: 28px; margin-left: 4px; }
.video__btn:hover .video__play { transform: scale(1.08); }
.video__btn strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.video__btn small { color: var(--text-faint); font-size: var(--text-xs); max-width: 44ch; }

.video-alt { margin-top: var(--space-3); font-size: var(--text-sm); }
.video-alt a { color: var(--text-muted); }
.video-alt a:hover { color: var(--ember-hot); }

/* App-Liste (Ratgeber Apps) */
.app { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-5); align-items: start; }
.app img { width: 72px; height: 72px; object-fit: contain; }
.app .tag { margin-bottom: var(--space-2); }
.app h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: var(--space-2); }

/* 9. Feature-Sektionen: Open Source / Spenden ----------------------------- */
.oss { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: center; }
.oss img { width: 110px; }
@media (max-width: 640px) { .oss { grid-template-columns: 1fr; } }

/* Presse-Zitat */
.press { position: relative; max-width: 980px; margin-inline: auto; padding: var(--space-8) var(--space-7); border-radius: calc(var(--radius-lg) * 1.3); border: 1px solid var(--border); background: radial-gradient(ellipse at 0% 0%, rgb(255 106 43 / 0.12), transparent 55%), var(--bg-2); overflow: hidden; }
.press::before { content: "“"; position: absolute; right: 4%; top: -0.15em; font-family: var(--font-display); font-size: clamp(10rem, 20vw, 18rem); line-height: 1; color: rgb(255 106 43 / 0.08); pointer-events: none; }
.press blockquote { margin-top: var(--space-4); }
.press__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.press__quote { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--text-muted); max-width: 52ch; }
.press__translation { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-faint); max-width: 70ch; }
.press__points { list-style: none; padding: 0; margin-top: var(--space-6); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.press__points li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--text-muted); }
.press__points svg { flex: none; width: 20px; height: 20px; color: var(--ember); margin-top: 2px; }
.press figcaption { margin-top: var(--space-6); font-family: var(--font-body); font-size: var(--text-sm); }
.press figcaption a { color: var(--ember-hot); }
@media (max-width: 760px) { .press { padding: var(--space-6) var(--space-5); } .press__points { grid-template-columns: 1fr; } }

/* 10. Artikel / Ratgeber -------------------------------------------------- */
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-8); padding-block: var(--space-8) var(--section); }
.toc { position: sticky; top: calc(var(--header-h) + var(--space-5)); align-self: start; font-size: var(--text-sm); }
.toc p { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: var(--space-3); }
.toc ol { list-style: none; padding: 0; border-left: 1px solid var(--border-strong); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-muted); text-decoration: none; line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
.toc a:hover, .toc a.is-active { color: var(--ember-hot); border-left-color: var(--ember); }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: var(--space-5); } .toc { position: static; } }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-8); padding-top: var(--space-2); }
.prose h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-top: var(--space-6); }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn) { color: var(--ember-hot); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose ul li::marker { color: var(--ember); }
.prose figure { margin-block: var(--space-6); }
.prose .callout, .prose .steps, .prose .chips { margin-block: var(--space-5); }
.prose > :first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.chips li { margin: 0 !important; font-family: var(--font-mono); font-size: var(--text-xs); padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: var(--space-3); }
.steps li { counter-increment: step; position: relative; padding: var(--space-4) var(--space-4) var(--space-4) 3.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin: 0 !important; }
.steps li::before { content: counter(step); position: absolute; left: var(--space-4); top: var(--space-4); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 106 43 / 0.15); color: var(--ember-hot); font-family: var(--font-mono); font-size: var(--text-xs); }

.legal h2 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-top: var(--space-7); }
.legal h3 { font-size: var(--text-base); margin-top: var(--space-5); }
.legal address { font-style: normal; color: var(--text); }

/* 11. Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-8) var(--space-6); margin-top: var(--space-8); background: linear-gradient(180deg, transparent, rgb(255 106 43 / 0.03)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); }
.footer__grid p { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-4); max-width: 34ch; }
.footer__grid h2 { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: var(--space-4); }
.footer__grid ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: var(--text-sm); }
.footer__grid a { color: var(--text-muted); text-decoration: none; }
.footer__grid a:hover { color: var(--ember-hot); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); color: var(--text-faint); font-size: var(--text-xs); font-family: var(--font-mono); }
.footer__social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.footer__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); }
.footer__social a:hover { border-color: var(--ember); color: var(--ember-hot); }
.footer__social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* 12. Motion -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }
.tilt { transition: transform 0.6s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__embers { display: none; }
}
