/* ==========================================================================
   Bushfire – Download-Seite (eigenständig, ohne Navigation)
   Gleiche Tokens wie main.css der Website, nur das Nötige.
   ========================================================================== */
@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: "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: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0807; --bg-2: #110d0b; --surface: #17110e;
  --border: rgb(255 214 190 / 0.08); --border-strong: rgb(255 214 190 / 0.16);
  --text: #f4ece5; --text-muted: #b3a296; --text-faint: #7a6a5f;
  --ember: #ff6a2b; --ember-hot: #ffb347; --ember-deep: #d6321c;
  --grad-fire: linear-gradient(120deg, var(--ember-hot) 0%, var(--ember) 45%, var(--ember-deep) 100%);
  --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.0625rem, 1rem + 0.4vw, 1.3125rem);
  --text-hero: clamp(2.6rem, 1.4rem + 5vw, 5.75rem);
  --radius: 14px; --radius-pill: 999px;
  --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);
  --pad: clamp(1.25rem, 0.6rem + 3vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; isolation: isolate;
}
/* Glut am Boden */
body::before {
  content: ""; position: fixed; 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.32), rgb(214 50 28 / 0.1) 40%, transparent 70%);
  filter: blur(20px); animation: glow 6s ease-in-out infinite alternate; pointer-events: none;
}
/* Filmkorn */
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");
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2 { font-family: var(--font-display); font-weight: 600; 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: 6px; }

.embers { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Kopfzeile: nur Marke + Schließen */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--pad) var(--pad) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgb(255 106 43 / 0.45)); }

/* Buttons */
.btn {
  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: box-shadow 0.3s, background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
button.btn { font: inherit; font-weight: 600; font-size: var(--text-sm); cursor: pointer; }
button.btn--sm { font-size: var(--text-xs); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.98); }
.btn--fire { background: var(--grad-fire); color: #1a0903; box-shadow: var(--shadow-ember); isolation: isolate; overflow: hidden; }
.btn--fire::after {
  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); backdrop-filter: blur(6px); }
.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--sm svg { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero */
.hero {
  width: min(100% - 2 * var(--pad), 1240px); margin-inline: auto; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center;
}
.hero > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; 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; }
.hero h1 { font-size: var(--text-hero); line-height: 0.98; letter-spacing: -0.035em; margin-block: 1rem 1.5rem; }
.hero h1 .line { display: block; }
.text-fire { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hero__lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 52ch; margin-bottom: 2rem; }
.hero__lead strong { color: var(--text); font-weight: 500; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.75rem; padding: 0; list-style: none; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); }
.hero__meta li::before { content: "▲ "; color: var(--ember); font-size: 0.7em; }

/* Flamme mit Ringen (Flamme statisch, nur der äußere Ring dreht sich langsam) */
.hero__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.flame { width: 72%; filter: drop-shadow(0 0 60px rgb(255 106 43 / 0.55)); }
.ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid var(--border-strong); }
.ring--2 { inset: -4%; border-style: dashed; border-color: rgb(255 179 71 / 0.15); animation: spin 60s linear infinite; }

/* Nächste Schritte */
.next { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: rgb(23 17 14 / 0.6); backdrop-filter: blur(8px); max-width: 640px; }
.next h2 { font-size: 1.125rem; margin-bottom: 1rem; }
.next ol { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.next li { counter-increment: s; position: relative; padding-left: 2.4rem; font-size: var(--text-sm); color: var(--text-muted); }
.next li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; 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: 0.72rem; }
.next strong { color: var(--text); font-weight: 600; }
.next a { color: var(--ember-hot); white-space: nowrap; }
.path { font-family: var(--font-mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / 0.06); border: 1px solid var(--border); color: var(--ember-hot); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Fußzeile */
.foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; padding: 1.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom)); font-size: var(--text-xs); color: var(--text-faint); border-top: 1px solid var(--border); }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--ember-hot); }

/* Einblenden */
.hero__copy > *, .hero__visual { animation: rise 0.9s var(--ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.hero__copy > :nth-child(5) { animation-delay: 0.24s; }
.hero__copy > :nth-child(6) { animation-delay: 0.3s; }
.hero__visual { animation-duration: 1.4s; animation-delay: 0.1s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes glow { to { opacity: 0.65; transform: scaleX(1.08); } }
@keyframes spin { to { rotate: 360deg; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero__visual { order: -1; width: min(220px, 55vw); margin-inline: auto; }
}
@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .btn-row .js-close { display: none; } /* auf dem Handy reicht der Schließen-Button oben */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .embers { display: none; }
}
