/* Emberwrath – Startseite, Welt, Support und Rechtliches (Thread „Startseite“).
   Farben aus dem Spiel (src/ui/theme.css). Schriften selbst gehostet (fonts/, SIL OFL): Cinzel für Titel,
   Inter für Text. Alle Bilder sind echte Spielgrafik; Figuren, Bosse und Symbole werden nur ganzzahlig
   und pixelgenau vergrößert (Breite/Höhe im HTML = Originalgröße × Faktor). */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #05020a;
  --bg-2: #0d0714;
  --panel: rgba(18, 10, 26, 0.92);
  --edge: #6a4526;
  --edge-hi: #b8862a;
  --gold: #e8c25a;
  --ember: #ff8a2a;
  --legend: #ff9a2a;
  --text: #efe6d2;
  --soft: #d6c9ae;
  --muted: #a89a7c;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-title: "Cinzel", Georgia, serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff0b0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #120a04; padding: 8px 14px; }
.skip:focus { left: 8px; }
section { position: relative; }

/* ---------- Kopfleiste */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.25s, box-shadow 0.25s; }
.top.solid, .page .top { background: rgba(6, 3, 10, 0.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(184, 134, 42, 0.22); }
.top-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; flex: none; transition: opacity 0.25s; }
.brand img { width: 146px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: 14px; }
.nav a { color: var(--text); text-decoration: none; font: 600 13px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.nav .nav-extra { display: none; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold); }
.menu-btn { display: none; width: 42px; height: 42px; padding: 0; background: none; border: 2px solid var(--edge); color: var(--text); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: currentColor; position: relative; transition: transform 0.2s, background 0.2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px;
  font: 700 13px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); text-decoration: none;
  background: rgba(12, 6, 16, 0.7); border: 2px solid var(--edge); box-shadow: 0 0 0 2px #0b0710;
  cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--edge-hi); color: #fff; }
.btn.primary {
  background: linear-gradient(180deg, #a8481a 0 50%, #86320f 50% 100%); border-color: #ffb050; color: #fff6e6;
  box-shadow: 0 0 0 2px #1a0604, 0 0 30px rgba(255, 110, 30, 0.32), inset 0 2px 0 rgba(255, 220, 160, 0.35), inset 0 -3px 0 rgba(60, 14, 4, 0.5);
  text-shadow: 0 2px 0 #3a1004;
}
.btn.primary:hover { box-shadow: 0 0 0 2px #1a0604, 0 0 44px rgba(255, 110, 30, 0.55), inset 0 2px 0 rgba(255, 220, 160, 0.4), inset 0 -3px 0 rgba(60, 14, 4, 0.5); transform: translateY(-1px); }
.btn.big { min-height: 58px; padding: 0 36px; font-size: 15px; letter-spacing: 0.18em; }
.textlink { font: 700 13px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 2px solid rgba(232, 194, 90, 0.4); padding-bottom: 5px; }
.textlink:hover { color: #fff0b0; border-bottom-color: var(--gold); }

/* ---------- Überschriften */
.title { font: 700 clamp(32px, 4.4vw, 58px)/1.05 var(--font-title); margin: 0 0 14px; color: #fbe9c6; letter-spacing: 0.01em; text-wrap: balance; text-shadow: 0 0 30px rgba(255, 120, 40, 0.18); }
.sec-line { margin: 0; max-width: 34em; color: var(--soft); font-size: clamp(16px, 1.4vw, 18px); }

/* ---------- Titelbild: randlos, Text links im Dunkel, Kampf rechts */
.hero { min-height: clamp(560px, 56.25vw, 100svh); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: #000; }

/* ---------- Spielszenen: native Auflösung (960 × 540), nur ganzzahlig vergrößert (--f), Ausschnitt um --fx/--fy.
   site.js rundet den Faktor auf ganze Bildschirmpunkte und stellt sicher, dass der Rahmen gefüllt ist. */
.hero-bg, .strip figure, .pair figure, .lore-bg { --f: 2; overflow: hidden; }
.shot { position: absolute; max-width: none; image-rendering: pixelated;
  width: calc(960px * var(--f)); height: calc(540px * var(--f));
  left: clamp(calc(100% - 960px * var(--f)), calc(var(--ax, 0.5) * 100% - var(--fx, 0.5) * 960px * var(--f)), 0px);
  top: clamp(calc(100% - 540px * var(--f)), calc(var(--ay, 0.5) * 100% - var(--fy, 0.5) * 540px * var(--f)), 0px); }
.hero-bg { --ax: 0.73; }   /* Kampf rechts neben den Text */
.pair figure { --ay: 0.42; }   /* Geschehen über der Bildunterschrift */
@media (min-width: 1921px) { .hero-bg, .strip figure, .pair figure, .lore-bg { --f: 3; } }
/* Titelbild und großer Streifen enger: Helden und Boss tragen das Bild */
@media (min-width: 1200px) { .hero-bg { --f: 4; --ax: 0.77; } .strip .strip-a { --f: 3; } }
@media (min-width: 1700px) { .hero-bg { --ax: 0.7; } }
@media (min-width: 2000px) { .hero-bg { --f: 5; } }
@media (min-width: 2400px) { .hero-bg { --f: 6; } .strip .strip-a { --f: 4; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(5, 2, 10, 0.95) 0%, rgba(5, 2, 10, 0.86) 32%, rgba(5, 2, 10, 0.4) 50%, rgba(5, 2, 10, 0) 66%),
    linear-gradient(180deg, rgba(5, 2, 10, 0.55) 0%, rgba(5, 2, 10, 0) 18%, rgba(5, 2, 10, 0) 80%, var(--bg) 100%); }
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-content { width: 100%; max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter) 90px; }
.hero-logo { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 110, 30, 0.22), transparent 75%); margin-left: -18px; }
.hero h1 { font: 700 clamp(34px, 4.2vw, 60px)/1.05 var(--font-title); margin: 26px 0 0; color: #fff1d6; text-shadow: 0 3px 20px #000; max-width: 11em; }
.hero-sub { font-size: clamp(16px, 1.35vw, 18px); color: #e4d6b8; margin: 14px 0 0; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }

/* ---------- Action-Streifen: randlos, ein großes Bild und zwei kleine */
.strip { display: grid; grid-template-columns: 1fr; height: clamp(420px, 40vw, 780px); background: #000; }
.strip figure { position: relative; margin: 0; overflow: hidden; cursor: zoom-in; }
.strip figcaption { position: absolute; left: 0; bottom: 0; padding: 40px 22px 16px; width: 100%; font: 600 clamp(15px, 1.3vw, 19px)/1.2 var(--font-title); color: #fbe9c6; background: linear-gradient(180deg, transparent, rgba(5, 2, 10, 0.8)); letter-spacing: 0.04em; }
.strip-a figcaption { font-size: clamp(18px, 1.8vw, 26px); padding: 60px 30px 24px; }

/* ---------- Klassen: große Figur links, Auswahl und Fähigkeiten rechts */
.classes { --res: #e0503a; padding: clamp(80px, 9vw, 130px) 0; overflow: hidden;
  background: radial-gradient(ellipse 40% 55% at 26% 70%, color-mix(in srgb, var(--res) 22%, transparent), transparent 70%),
    linear-gradient(180deg, #0a0510, #120818 60%, #0a0510); transition: background 0.4s; }
.cls-layout { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 0 clamp(24px, 5vw, 80px); align-items: start; }
.cls-side { grid-column: 2; grid-row: 1; }
.cls-panel { display: contents; }
.hero-fig { grid-column: 1; grid-row: 1 / 3; align-self: end; justify-self: center;
  /* Leuchten und Bodenschatten hinter der Figur (kein Filter auf Pixelgrafik) */
  background: radial-gradient(ellipse 34% 5% at 50% 98%, rgba(0, 0, 0, 0.45), transparent 100%), radial-gradient(ellipse 50% 50% at 50% 55%, color-mix(in srgb, var(--res) 30%, transparent), transparent 72%); }
.cls-info { grid-column: 2; grid-row: 2; padding-top: 26px; }
.cls-tabs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.cls-tabs button { background: none; border: 0; padding: 8px 0 10px; cursor: pointer; font: 600 clamp(16px, 1.45vw, 20px)/1 var(--font-title); color: var(--muted); border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; }
.cls-tabs button:hover { color: var(--text); }
.cls-tabs button[aria-selected="true"] { color: #fff1d6; border-bottom-color: var(--res); }
.cls-desc { margin: 0 0 26px; font-size: clamp(17px, 1.45vw, 19px); color: var(--soft); max-width: 30em; }
.skills { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.skills li { width: 96px; text-align: center; font: 600 14px/1.3 var(--font); color: #f3e8d0; }
.skills img { margin: 0 auto 10px; border: 2px solid #3a2a40; box-shadow: 0 0 0 2px #06030a, 0 8px 18px rgba(0, 0, 0, 0.4); }
.legend { display: inline-flex; gap: 14px; align-items: center; margin: 0; font: 600 18px/1.25 var(--font-title); color: var(--legend); }
.legend img { border: 2px solid var(--legend); background: #1a0c08; box-shadow: 0 0 0 2px #1a0604, 0 0 18px rgba(255, 140, 40, 0.45); }

/* ---------- Bosse: Aufstellung auf einem Arenaboden */
.bosses { padding: clamp(80px, 9vw, 130px) 0 0; overflow: hidden;
  background: radial-gradient(ellipse 55% 45% at 72% 78%, rgba(160, 50, 14, 0.35), transparent 70%), linear-gradient(180deg, #07030a, #10070a); }
/* Alle Bosse im selben Faktor: ×2, auf breiten Bildschirmen ×3 */
@media (min-width: 1500px) {
  .bosses .arena { max-width: 1400px; gap: 30px; }
  .boss img[src$="boss-ulgrim.png"] { width: 177px; height: 324px; }
  .boss img[src$="boss-rotmother.png"] { width: 330px; height: 366px; }
  .boss img[src$="boss-skalvyr.png"] { width: 333px; height: 309px; }
  .boss img[src$="boss-malgareth.png"] { width: 336px; height: 387px; }
}
.arena { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; gap: clamp(20px, 4vw, 70px); max-width: var(--max); margin: -40px auto 0; padding: 0 var(--gutter); }
.arena::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, rgba(40, 18, 14, 0.0), #1a0c0a 40%, #0c0506), repeating-linear-gradient(90deg, transparent 0 62px, rgba(0, 0, 0, 0.35) 62px 64px); }
.boss { position: relative; flex: none; margin: 0; display: flex; flex-direction: column; align-items: center; }
.boss::before { content: ""; position: absolute; inset: 0 -20% 100px; z-index: -1; background: radial-gradient(ellipse 50% 45% at 50% 60%, rgba(var(--glow), 0.3), transparent 72%); }
.boss figcaption { height: 124px; padding-top: 22px; text-align: center; }
.boss b { display: block; font: 700 clamp(22px, 2.2vw, 30px)/1 var(--font-title); color: #fbe9c6; }
.boss span { display: block; margin: 6px auto 0; white-space: nowrap; font: 600 14px/1.2 var(--font); letter-spacing: 0.06em; color: color-mix(in srgb, rgb(var(--glow)) 45%, #fff4e0); }

/* ---------- Reiten und Mitspieler: Reiter-Aufstellung links, Text rechts */
.ride { padding: clamp(80px, 9vw, 130px) 0; overflow: hidden;
  background: radial-gradient(ellipse 45% 60% at 25% 70%, rgba(255, 120, 40, 0.16), transparent 70%), linear-gradient(180deg, #10070a, #0a0510); }
.ride-grid { display: flex; flex-direction: column-reverse; gap: clamp(40px, 5vw, 70px); }
.ride-text { max-width: 40em; }
.ride-text .sec-line + .sec-line { margin-top: 12px; }
.riders { list-style: none; margin: 0; padding: 0 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px 24px; }
.riders li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.riders li:nth-child(even) { transform: translateY(30px); }
.riders img { background: radial-gradient(ellipse 42% 6% at 50% 97%, rgba(0, 0, 0, 0.45), transparent 100%); }
.riders span { font: 600 14px/1.2 var(--font); color: #e4d6b8; }

/* ---------- Schlussaufruf */
.final { padding: clamp(90px, 11vw, 150px) 0; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(255, 100, 20, 0.28), transparent 70%), #07030b; }
.world-page .endgame { padding-bottom: clamp(40px, 5vw, 70px); }
.world-page .final { padding-top: clamp(60px, 7vw, 100px); }
.final .title { font-size: clamp(38px, 5.4vw, 72px); }
.final .sec-line { margin: 0 auto 34px; }
.final .socials { margin-top: 44px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
  background: rgba(14, 7, 18, 0.8); border: 2px solid rgba(106, 69, 38, 0.8); box-shadow: 0 0 0 2px #06030a; }
.social svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
a.social:hover { border-color: var(--ember); color: #fff; }

/* ---------- Welt: Geschichte */
.world-page main { background: var(--bg); }
.lore { padding: clamp(130px, 14vw, 200px) 0 clamp(80px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.lore-bg { position: absolute; inset: 0; z-index: -2; }
.lore::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 2, 10, 0.95) 0%, rgba(5, 2, 10, 0.82) 50%, rgba(5, 2, 10, 0.6) 100%), linear-gradient(180deg, transparent 70%, var(--bg)); }
.lore-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.lore-text p { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--soft); margin: 0 0 16px; max-width: 32em; }
.voices { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.voices li { display: flex; gap: 18px; align-items: center; }
.voices li:nth-child(2) { margin-left: clamp(0px, 4vw, 56px); }
.voices img { flex: none; border: 2px solid var(--edge); box-shadow: 0 0 0 2px #0b0710, 0 10px 24px rgba(0, 0, 0, 0.5); }
.voices blockquote { margin: 0; font: 400 clamp(16px, 1.3vw, 18px)/1.5 var(--font); color: #f3e3c0; }
.voices cite { display: block; margin-top: 6px; font: normal 600 14px/1.3 var(--font); color: var(--gold); }

/* ---------- Welt: Regionen – je Zeile ein offenes Gebiet und sein Dungeon, randlos, ungleich breit */
.regions { padding: clamp(70px, 8vw, 110px) 0 0; background: var(--bg); }
.act { width: 100%; max-width: var(--max); margin: clamp(40px, 5vw, 70px) auto 18px; padding: 0 var(--gutter); font: 700 clamp(22px, 2.2vw, 30px)/1 var(--font-title); color: var(--ember); }
.region-list { list-style: none; margin: 0; padding: 0; }
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4px; }
.pair + .pair { margin-top: 4px; }
.pair:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.pair figure { position: relative; margin: 0; height: clamp(300px, 30vw, 520px); overflow: hidden; cursor: zoom-in; background: #000; }
.pair .frame { position: absolute; inset: 0; overflow: hidden; }
.pair figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, rgba(5, 2, 10, 0.9)); }
.pair figcaption { position: absolute; z-index: 1; left: clamp(18px, 2.4vw, 36px); right: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 2.4vw, 32px); max-width: 30em; }
.pair h4 { margin: 0; font: 700 clamp(22px, 2.2vw, 32px)/1.1 var(--font-title); color: #fff1d6; text-shadow: 0 2px 14px #000; }
.pair span { display: block; margin-top: 7px; font: 700 13px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.pair p { margin: 8px 0 0; color: #eadfc6; font-size: 15.5px; text-shadow: 0 1px 8px #000; }

/* ---------- Welt: Völker */
.races { padding: clamp(70px, 8vw, 110px) 0; background: radial-gradient(ellipse 50% 60% at 70% 60%, rgba(90, 40, 110, 0.22), transparent 70%), #0a0510; }
.races-grid { display: grid; grid-template-columns: 0.8fr 2.2fr; gap: 40px; align-items: end; }
.races ul { list-style: none; margin: 0; padding: 0 0 56px; display: grid; grid-template-columns: 1.1fr 1fr 0.9fr 1fr; gap: 22px; }
.races li:nth-child(even) { transform: translateY(56px); }
.races li:nth-child(3) { transform: translateY(-18px); }
.races li { display: grid; grid-template-rows: 206px auto auto; justify-items: center; text-align: center; }
.races img { align-self: end; margin-bottom: 14px; background: radial-gradient(ellipse 45% 6% at 50% 97%, rgba(0, 0, 0, 0.45), transparent 100%); }
.races b { font: 700 20px/1.2 var(--font-title); color: #fbe0b0; }
.races span { font-size: 15px; color: #c9bca2; margin-top: 6px; }

/* ---------- Welt: Endgame */
.endgame { padding: clamp(70px, 8vw, 110px) 0; background: radial-gradient(ellipse 45% 60% at 80% 50%, rgba(160, 70, 10, 0.2), transparent 70%), var(--bg); }
.end-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.loot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 36px; align-items: center; }
.loot li { display: flex; align-items: center; gap: 16px; }
.loot li:first-child { grid-row: 1 / 6; flex-direction: column; text-align: center; gap: 18px; }
.loot img { flex: none; background: radial-gradient(circle, #3a1a0c, #140806 72%); border: 2px solid var(--legend); box-shadow: 0 0 0 2px #1a0604, 0 0 22px rgba(255, 140, 40, 0.35); }
.loot li:first-child img { padding: 14px; box-shadow: 0 0 0 2px #1a0604, 0 0 60px rgba(255, 140, 40, 0.5); box-sizing: content-box; }
.loot span { font: 600 17px/1.3 var(--font-title); color: var(--legend); }
.loot li:first-child span { font-size: 22px; max-width: 9em; }

/* ---------- Fußzeile */
.foot { border-top: 1px solid rgba(106, 69, 38, 0.45); padding: 40px 0 34px; background: #040208; font-size: 14px; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot img { width: 292px; height: 60px; }   /* ×2 */
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--text); text-decoration: none; opacity: 0.8; }
.foot nav a:hover { opacity: 1; color: var(--gold); }
.foot-socials { display: flex; gap: 10px; }
.foot-socials a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--muted); border: 1px solid rgba(106, 69, 38, 0.6); border-radius: 50%; }
.foot-socials a:hover { color: var(--gold); border-color: var(--edge-hi); }
.foot-socials svg { width: 16px; height: 16px; fill: currentColor; }
.foot small { display: block; width: 100%; font-size: 13px; }

/* ---------- Bildbetrachter */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(3, 1, 6, 0.92); }
.lightbox img { display: block; width: min(960px, 96vw); height: auto; border: 2px solid var(--edge); image-rendering: pixelated; }
.lightbox p { margin: 10px 0 0; text-align: center; color: var(--text); font: 600 18px var(--font-title); }
.lightbox button { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: var(--text); background: rgba(20, 10, 24, 0.8); border: 1px solid var(--edge); border-radius: 3px; cursor: pointer; }

/* ---------- Unterseiten (Support, Impressum, Datenschutz) */
h2 { font: 700 clamp(26px, 3.4vw, 38px)/1.15 var(--font-title); color: #fbe9c6; margin: 0 0 16px; text-wrap: balance; }
h3 { font: 700 20px/1.25 var(--font-title); color: var(--gold); margin: 0 0 8px; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: #d9ccb2; max-width: 40em; margin: 0; }
.page main { padding: 110px 0 80px; min-height: 70vh; }
.page h1 { font: 700 clamp(32px, 5vw, 52px)/1.1 var(--font-title); color: #fbe9c6; margin: 0 0 14px; }
.page h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 48px; }
.prose { max-width: 760px; }
.prose p, .prose li { color: #d9ccb2; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 34px 0 10px; }
.card { padding: 22px; background: var(--panel); border: 1px solid rgba(106, 69, 38, 0.7); border-radius: 2px; }
.card h3 { font-size: 19px; }
.card p { margin: 0 0 14px; font-size: 14.5px; color: #cfc2a8; }
.faq details { border-bottom: 1px solid rgba(106, 69, 38, 0.45); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 18px/1.35 var(--font-title); color: #fbe0b0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 26px var(--font); color: var(--ember); transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 0 18px; color: #d9ccb2; }
.faq details > div p { margin: 0 0 10px; }
kbd { display: inline-block; min-width: 1.7em; padding: 1px 6px; font: 600 13px/1.5 var(--font); text-align: center; color: #fbe9c6; background: #1a1024; border: 1px solid var(--edge); border-bottom-width: 2px; border-radius: 3px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 8px 0 0; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; }
.note { padding: 14px 18px; border-left: 3px solid var(--ember); background: rgba(40, 18, 14, 0.45); color: #e7d8bc; font-size: 15px; }
.note.todo { border-left-color: var(--gold); background: rgba(60, 46, 14, 0.35); }
.legal dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 18px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }


/* ---------- Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsiv */
@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr; }
  .lore-grid, .end-grid, .races-grid { grid-template-columns: 1fr; }
  .races ul { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .arena { justify-content: center; }
}
@media (max-width: 820px) {
  .top-inner { height: 58px; gap: 12px; }
  .menu-btn { display: grid; place-items: center; order: 3; }
  .top-actions { margin-left: auto; }
  .top-actions .btn.ghost { display: none; }
  .nav { display: none; position: fixed; inset: 58px 0 0; z-index: 60; margin: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; background: #06030a; }
  .menu-open { overflow: hidden; }
  .menu-open .top-actions { visibility: hidden; }   /* „Jetzt spielen“ steht unten im Menü */
  .menu-open .top { background: #06030a; box-shadow: 0 1px 0 rgba(184, 134, 42, 0.22); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 16px 0; font-size: 15px; opacity: 0.9; border-bottom: 1px solid rgba(106, 69, 38, 0.35); }
  .nav .nav-extra { display: block; }
  .nav .nav-extra.btn { display: flex; margin-top: auto; border-bottom: 2px solid #ffb050; padding: 0 20px; font-size: 15px; opacity: 1; color: #fff6e6; }
  .top-actions .btn { min-height: 38px; padding: 0 12px; font-size: 12px; letter-spacing: 0.1em; }
  .hero { align-items: end; }
  .hero-logo { width: 292px; height: 60px; margin-left: -12px; }   /* ×2 */
  .hero::before { background: linear-gradient(180deg, rgba(5, 2, 10, 0.5) 0%, rgba(5, 2, 10, 0) 16%, rgba(5, 2, 10, 0.15) 42%, rgba(5, 2, 10, 0.9) 66%, var(--bg) 100%); }
  .hero-logo { display: none; }   /* Kopfleiste zeigt den Namen schon */
  .hero h1 { margin-top: 0; }
  /* Handy: zwei große Szenen untereinander */
  .strip { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .strip figure { aspect-ratio: 4 / 5; --f: 1.67; }   /* hochkant, eigener Ausschnitt (--mx/--my) */
  .cls-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cls-side, .hero-fig, .cls-info { grid-column: 1; grid-row: auto; }
  .hero-fig { margin: 30px 0 0; }
  #p-krieger .hero-fig { width: 222px; height: 252px; }
  #p-schurke .hero-fig { width: 174px; height: 162px; }
  #p-waldlaeufer .hero-fig { width: 114px; height: 186px; }
  #p-magier .hero-fig { width: 195px; height: 198px; }
  .classes { background: radial-gradient(ellipse 70% 30% at 50% 45%, color-mix(in srgb, var(--res) 22%, transparent), transparent 70%), linear-gradient(180deg, #0a0510, #120818 60%, #0a0510); }
  .arena { justify-content: flex-start; gap: 0; margin-top: 30px; padding: 0 0 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .arena::-webkit-scrollbar { display: none; }
  .boss { flex: none; width: 62vw; justify-content: flex-end; scroll-snap-align: center; }
  .boss.main { order: -1; }
  .arena::before { content: ""; flex: none; width: 11vw; order: -2; }
  .boss figcaption { height: auto; padding: 16px 0 34px; }
  .arena::after { position: static; flex: none; width: 11vw; height: 1px; background: none; order: 9; }
  .pair, .pair:nth-child(even) { grid-template-columns: 1fr; gap: 0; }
  .pair figure { height: auto; --f: 1; --ay: 0.5; }
  .pair .frame { position: relative; display: block; aspect-ratio: 16 / 10; }
  .pair figure::after { display: none; }
  .pair figcaption { position: static; max-width: none; padding: 14px var(--gutter) 30px; }
  .loot { grid-template-columns: 1fr; }
  .loot li:first-child { grid-row: auto; }
}
@media (max-width: 600px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; inset: auto; height: 66svh; min-height: 380px; max-height: 620px; z-index: -3; --f: 1.67; --ax: 0.5; }   /* 5 Gerätepixel bei 3×, 3 bei 2× */
  .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 66%, rgba(5, 2, 10, 0.6) 86%, var(--bg) 100%); }
  .hero::before { background: linear-gradient(180deg, rgba(5, 2, 10, 0.55) 0%, rgba(5, 2, 10, 0) 14%); }
  .hero-content { padding-top: 0; margin-top: -60px; padding-bottom: 56px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { justify-content: center; }
  .cls-tabs { flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .cls-tabs button { font-size: 14.5px; white-space: nowrap; }
  .skills { gap: 16px 10px; }
  .skills li { width: calc(25% - 8px); font-size: 13px; }
  .races li { grid-template-rows: 146px auto auto; }
  .races ul { padding-bottom: 30px; }
  .races li:nth-child(even) { transform: translateY(30px); }
  .races li:nth-child(3) { transform: none; }
  .races img[src$="volk-human.png"] { width: 82px; height: 126px; }   /* ×2 je Volk */
  .races img[src$="volk-dwarf.png"] { width: 86px; height: 114px; }
  .races img[src$="volk-elf.png"] { width: 64px; height: 132px; }
  .races img[src$="volk-emberborn.png"] { width: 64px; height: 130px; }
  .riders { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .riders li:nth-child(even) { transform: none; }
  .riders li:nth-child(1) img { width: 138px; height: 123px; }   /* ×3 */
  .riders li:nth-child(2) img { width: 114px; height: 126px; }
  .riders li:nth-child(3) img { width: 108px; height: 129px; }
  .riders li:nth-child(4) img { width: 117px; height: 111px; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: 8px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
