/* ==========================================================================
   ASHGARD GAMES – Stylesheet
   Look: "Asche & Glut" – fast schwarzer Grund, Off-White, ein Glut-Akzent.
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: "Cinzel"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #0B0B0B;
  --bg-2: #111110;
  --bg-3: #161514;
  --bg-deep: #070707;
  --line: #222120;
  --line-2: #2E2C2A;
  --line-3: #4A4743;
  --text: #EDEAE4;
  --text-2: #D6D2CB;
  --muted: #BDB8B0;
  --dim: #A8A39B;
  --faint: #8A867F;
  --ph: #77736C;
  --accent: #E2672E;          /* Glut – hier zentral ändern */
  --on-accent: #0B0B0B;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: 32px;
  --section-y: 96px;
  --radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .band, .band + footer { border-top: 0; }
.rule-top { border-top: 1px solid var(--line); }
.center { text-align: center; }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: 0.01em; }
/* Lange deutsche Wörter dürfen umbrechen statt überzustehen (schmale Handys) */
.display, .h-card, .h-card-l, .tl-title, .job-title .h { overflow-wrap: break-word; hyphens: auto; }
.display-xl { font-size: clamp(44px, 6vw, 80px); }
.display-xxl { font-size: clamp(52px, 9vw, 128px); line-height: 0.95; letter-spacing: 0.02em; }
.display-l { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.display-m { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 600; }
.display-s { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 600; }
.h-card { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.h-card-l { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.lead { font-size: 19px; color: var(--muted); max-width: 580px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 15px; }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.eyebrow::before { content: ""; height: 1px; width: 48px; background: var(--line-3); flex: none; }
.eyebrow > * { font-size: 13px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--dim); }
.eyebrow.tight { margin-bottom: 20px; }

.badge { display: inline-block; padding: 6px 12px; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.tag.neutral { color: var(--dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #F07A42; color: var(--on-accent); }
.btn-outline { border-color: var(--line-3); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-l { min-height: 56px; padding: 0 32px; }
.btn-s { min-height: 44px; padding: 0 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); align-self: flex-start; }
.link-arrow.neutral { border-color: var(--line-3); }

/* ---------- Header / Nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand img { width: 44px; height: 36px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; color: var(--text); white-space: nowrap; }
.brand-name span { font-weight: 500; font-size: 13px; letter-spacing: 0.4em; color: var(--dim); }
.nav-links { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 10px 0; }
/* Sprachumschalter DE | EN */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 7px; color: var(--faint); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { color: var(--text); }
.lang-switch a + a { border-left: 1px solid var(--line-3); }

/* Baustellen-Modus (npm run build:wip) */
.wip-hero { min-height: calc(100svh - 83px); justify-content: center; padding-block: 56px 72px; gap: 40px; }
.wip-hero .hero-logo img { max-width: 340px; }
.wip-text { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 680px; }
.wip-text .lead { max-width: 560px; }
.forge-bar { position: relative; width: 180px; height: 2px; background: var(--line-2); overflow: hidden; }
.forge-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--accent); animation: forge-run 2.4s var(--ease, ease) infinite; }
@keyframes forge-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-links .nav-cta { padding: 10px 18px; border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: none; }
.nav-links .nav-cta.solid { background: var(--accent); color: var(--on-accent); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-3); border-radius: var(--radius); color: var(--text); cursor: pointer; }

@media (max-width: 920px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav-links .lang-switch { border-top: 1px solid var(--line); padding-top: 4px; }
  .nav-links .lang-switch a { padding: 0 12px; }
  .nav-links .lang-switch a:first-child { padding-left: 0; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; border-top: 1px solid var(--accent); }
}

/* ---------- Layout helpers ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { min-width: 0; }
.split.center-y { align-items: center; }
.split.end-y { align-items: flex-end; }
.split.between { justify-content: space-between; }
.grow-l { flex: 1 1 560px; }
.grow-m { flex: 1 1 440px; }
.grow-s { flex: 1 1 340px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 300px), 1fr)); gap: var(--gap, 24px); }
/* .fill: wenige Karten bleiben spaltenbreit statt die ganze Zeile zu füllen */
.grid-auto.fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 300px)), 1fr)); }

/* Hairline tile grid */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.tile { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.tiles.on-bg .tile { background: var(--bg-2); }
/* Keine verwaisten Kacheln: 4er-Raster nur 4/2/1 Spalten, 3er-Raster nur 3/1.
   Die Spaltenbreite springt je nach Breite des Rasters selbst (nicht des Viewports). */
.tiles:has(> :nth-child(4):last-child), .facts:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(auto-fill, minmax(calc(min(100%, max(clamp(25%, (4 * var(--min, 240px) - 100%) * 999, 50%), (2 * var(--min, 240px) - 100%) * 999)) - 1px), 1fr));
}
.tiles:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(auto-fill, minmax(calc(clamp(33.333%, (3 * var(--min, 240px) - 100%) * 999, 100%) - 1px), 1fr));
}
.tile .icon { width: 32px; height: 32px; color: var(--accent); }
.tile p { font-size: 15px; color: var(--dim); }

/* ---------- Placeholders / media ---------- */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ph);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding: 24px;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.media-img { width: 100%; height: 100%; object-fit: cover; }

/* Video (Zwei-Klick-Lösung für YouTube, DSGVO) */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3); border: 1px solid var(--line-2); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-start {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; padding: 24px; text-align: center;
  background: var(--bg-3) center / cover no-repeat; border: 0; color: var(--dim); font: inherit; cursor: pointer;
}
.video-start::before { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 11, .45); }
.video-start > * { position: relative; }
.play { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s; }
.video-start:hover .play { background: var(--accent); color: var(--on-accent); }
.video-label { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); }
.video-note { font-size: 12px; color: var(--dim); max-width: 380px; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: 96px 112px; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: 100%; max-width: 500px; }
.hero-game { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 40px; }
.hero-game .over { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.4em; color: var(--dim); margin-bottom: -16px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--dim); text-decoration: none; }

/* ---------- Lists ---------- */
.diamond-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); }
.diamond-list li { display: flex; gap: 12px; }
.diamond-list li::before { content: "◆"; color: var(--accent); flex: none; }

.rows > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.rows .row-title { font-weight: 600; font-size: 19px; }
.rows .row-date { flex: 0 0 140px; font-size: 14px; color: var(--dim); }
.rows .row-body { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line-2); background: var(--bg-2); display: flex; flex-direction: column; }
.card.dashed { border-style: dashed; border-color: #3A3835; background: transparent; }
.card-media { border: 0; border-bottom: 1px solid var(--line-2); }
.card.dashed .card-media { border-bottom: 1px dashed #3A3835; background: transparent; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body .link-arrow { margin-top: auto; }
.trailer { display: flex; flex-direction: column; gap: 16px; }
.panel { border: 1px solid var(--line-2); background: var(--bg-2); padding: 36px; }
.panel.on-band { background: var(--bg); }

/* ---------- Roadmap ---------- */
.roadmap { display: flex; flex-wrap: wrap; gap: 8px; }
.roadmap li { flex: 1 1 130px; padding: 20px 16px; border: 1px solid #3A3835; }
.roadmap .biom { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.roadmap .when { font-size: 13px; color: var(--dim); }
.roadmap li.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.roadmap li.done .when { color: var(--on-accent); font-weight: 600; }
.platforms { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-2); }

.roadmap li.active { border-color: var(--accent); }
.roadmap li.active .when { color: var(--accent); }

/* Fortschrittsbalken */
.progress { position: relative; height: 4px; background: var(--line-2); overflow: hidden; }
.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); }
.progress-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* Roadmap-Zeitleiste (Spielseite) */
.rm-aside { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 921px) { .rm-aside { position: sticky; top: 120px; align-self: flex-start; } }
.rm-stat .num { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--text); }
.rm-stat .of { margin-left: 10px; color: var(--dim); }
.rm-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.rm-legend li { display: flex; align-items: center; gap: 10px; }
.rm-legend i { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid var(--line-3); }
.rm-legend i.done { background: var(--accent); border-color: var(--accent); }
.rm-legend i.active { border-color: var(--accent); }

.timeline { display: flex; flex-direction: column; gap: 16px; padding-left: 40px; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; z-index: 1; left: -40px; top: 28px; width: 13px; height: 13px; transform: rotate(45deg); border: 1px solid var(--line-3); background: var(--bg-2); }
.tl::after { content: ""; position: absolute; left: -34px; top: 34px; bottom: -50px; width: 1px; background: var(--line-2); }
.tl:last-child::after { display: none; }
.tl.done::before { background: var(--accent); border-color: var(--accent); }
.tl.done::after { background: var(--accent); }
.tl.active::before { border-color: var(--accent); animation: forge 3.5s ease-in-out infinite; }
.tl.goal::before { width: 17px; height: 17px; left: -42px; top: 26px; border: 2px solid var(--text); }
.tl-card { border: 1px solid var(--line-2); background: var(--bg); padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.tl.done .tl-card { border-color: rgba(226, 103, 46, .45); }
.tl.active .tl-card { border-color: var(--accent); }
.tl.planned .tl-card { background: transparent; border-style: dashed; border-color: #3A3835; padding-block: 18px; }
.tl.goal .tl-card { border-color: var(--line-3); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tl-num { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.tl-status { padding: 4px 9px; border: 1px solid var(--line-3); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.tl.done .tl-status { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tl.active .tl-status { border-color: var(--accent); color: var(--accent); }
.tl.goal .tl-status { border-color: var(--text); color: var(--text); }
.tl-when { margin-left: auto; font-size: 14px; color: var(--dim); }
.tl-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.25; }
.tl.planned .tl-title { font-size: 19px; color: var(--text-2); }
.tl-card p { font-size: 16px; color: var(--muted); }

/* Kennzahlen */
.facts { --min: 150px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.facts > div { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.facts .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4vw, 48px); line-height: 1; }
.facts .lbl { font-size: 14px; color: var(--dim); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); }
.steps .t { font-weight: 600; font-size: 19px; }

/* ---------- Jobs accordion (native <details>) ---------- */
.job { border-bottom: 1px solid var(--line-2); }
.job summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 28px 0; cursor: pointer; }
.job summary::-webkit-details-marker { display: none; }
.job-title { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.job-title .h { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.25; }
.job-meta { display: flex; align-items: center; gap: 20px; color: var(--dim); font-size: 15px; }
.job-icon { width: 40px; height: 40px; border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.job-icon::before { content: "+"; font-size: 22px; line-height: 1; }
.job[open] .job-icon::before { content: "−"; }
.job-body { padding: 0 0 36px; display: flex; flex-wrap: wrap; gap: 32px 56px; }
.job-body > div { flex: 1 1 360px; min-width: 0; }
.job-body .full { flex-basis: 100%; }
.sub-h { margin-bottom: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row .field { flex: 1 1 220px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line-3); border-radius: var(--radius);
  color: var(--text); font: inherit;
}
.textarea { padding: 14px 16px; resize: vertical; min-height: 140px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A8A39B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--ph); }
.file { padding: 12px 0; color: var(--dim); font: inherit; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-3); border-radius: var(--radius); background: var(--bg); font-size: 15px; font-weight: 600; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-status { display: none; min-height: 420px; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 32px; }
.form-status img { width: 80px; }
.is-sent .form { display: none; }
.is-sent .form-status { display: flex; }
.form-error { color: #FF8A65; font-size: 14px; }

/* Newsletter inline */
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form .input { flex: 1 1 220px; width: auto; }

/* ---------- Legal text ---------- */
.legal { max-width: 760px; overflow-wrap: anywhere; hyphens: auto; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 48px 0 12px; }
.legal h3 { font-weight: 600; font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal .note { margin-top: 32px; padding: 20px 24px; border: 1px dashed var(--line-3); color: var(--dim); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-main { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-block: 72px 40px; }
.footer-main > div { flex: 1 1 220px; min-width: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.footer-main > div:first-child { flex-basis: 280px; display: flex; flex-direction: column; gap: 16px; line-height: 1.6; }
.footer-main .f-h { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.footer-main a { display: block; text-decoration: none; color: var(--muted); }
.footer-main a:hover { color: var(--text); }
.footer-logo { width: 180px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 40px; border-top: 1px solid #1C1B1A; font-size: 13px; color: var(--faint); }
.footer-bottom a { color: var(--dim); }

/* ---------- Motion ----------
   Alles hier ist Zugabe: ohne JS, in alten Browsern oder bei
   „Bewegung reduzieren“ bleibt die Seite vollständig sichtbar. */
:root { --ease: cubic-bezier(.2, .7, .2, 1); interpolate-size: allow-keywords; }

/* Seitenwechsel: weiches Überblenden, der Header bleibt stehen */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* Hero-Intro beim Laden */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes ignite { from { opacity: 0; transform: scale(.96); } }
@keyframes ember-glow { 50% { filter: drop-shadow(0 0 22px rgba(226, 103, 46, .28)); } }
.intro > * { animation: rise .9s var(--ease) both; animation-delay: calc((var(--intro-start, 0) + var(--n, 0)) * 110ms + 80ms); }
.intro > :nth-child(2) { --n: 1; }
.intro > :nth-child(3) { --n: 2; }
.intro > :nth-child(4) { --n: 3; }
.intro > :nth-child(5) { --n: 4; }
.intro > :nth-child(n+6) { --n: 5; }
.hero-logo.intro > img {
  filter: drop-shadow(0 0 0 rgba(226, 103, 46, 0));
  animation: ignite 1.4s var(--ease) .25s both, ember-glow 6s ease-in-out 1.6s infinite;
}

/* Studio-Intro (nur Startseite, nur bei Aufruf von außen).
   Das Inline-Skript im <head> setzt .splash-on vor dem ersten Paint, main.js blendet aus.
   Solange das Intro läuft, warten die Hero-Animationen darunter. */
.splash { display: none; }
.splash-on .splash {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  position: fixed; inset: 0; z-index: 200; background: var(--bg); cursor: pointer;
  animation: splash-failsafe .01s 6s forwards;
}
.splash > :not(.embers) { position: relative; z-index: 1; }
.splash img { width: min(60vw, 380px); animation: splash-logo 1.3s var(--ease) both; }
.splash::after { content: ""; position: relative; z-index: 1; width: 120px; height: 1px; background: var(--accent); transform-origin: center; animation: splash-line 1.6s var(--ease) .3s both; }
.splash.is-leaving { animation: splash-out .9s var(--ease) .1s forwards; pointer-events: none; }
.splash.is-leaving img { animation: splash-logo-out .9s var(--ease) forwards; }
.splash-on:not(.splash-leaving) .intro > * { animation-play-state: paused; }
.splash-leaving:not(.splash-flip) .hero-logo.intro > img { visibility: visible; animation: ignite 1.4s var(--ease) both, ember-glow 6s ease-in-out 1.6s infinite; }
/* Variante „Flug“: Logo gleitet an die Hero-Position, der Hintergrund blendet aus */
.splash-flip .splash.is-leaving { animation: splash-bg-out .9s var(--ease) forwards; }
.splash-flip .splash.is-leaving img { animation: none; transition: transform .9s var(--ease); }
.splash-flip .splash.is-leaving::after, .splash-flip .splash.is-leaving .embers { opacity: 0; transition: opacity .4s; }
.splash-on .hero-logo.intro > img, .splash-flipped .hero-logo.intro > img { animation: ember-glow 6s ease-in-out 1s infinite; }
.splash-on .hero-logo.intro > img { visibility: hidden; }
@keyframes splash-bg-out { to { background-color: rgba(11, 11, 11, 0); } }
@keyframes splash-logo {
  0% { opacity: 0; transform: scale(.9); filter: brightness(.25) blur(8px); }
  60% { opacity: 1; filter: brightness(1.15) blur(0) drop-shadow(0 0 34px rgba(226, 103, 46, .55)); }
  100% { opacity: 1; transform: none; filter: brightness(1) drop-shadow(0 0 18px rgba(226, 103, 46, .3)); }
}
@keyframes splash-line { from { transform: scaleX(0); opacity: 0; } }
@keyframes splash-logo-out { to { opacity: 0; transform: scale(1.08); filter: blur(4px); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Glutfunken (Canvas aus main.js) */
[data-embers] { position: relative; overflow: hidden; }
[data-embers] > :not(.embers) { position: relative; z-index: 1; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Einblenden beim Scrollen (Klasse .reveal setzt main.js) */
/* .reveal.in schlägt mit höherer Spezifität eigene Transitions (z. B. .card); main.js entfernt
   beide Klassen nach dem Einblenden, danach gelten wieder die normalen Hover-Transitions. */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.eyebrow.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .2s; }
.eyebrow.reveal.in::before { transform: none; }

/* Hover & Details */
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(226, 103, 46, .65); }
.card { transition: border-color .25s, transform .35s var(--ease); }
.card:hover { border-color: var(--line-3); transform: translateY(-4px); }
.card .card-media { overflow: hidden; }
.card .media-img { transition: transform .8s var(--ease); }
.card:hover .media-img { transform: scale(1.04); }
.tile { transition: background-color .25s; }
.tiles .tile:hover { background: var(--bg-3); }
.tile .icon { transition: transform .35s var(--ease); }
.tile:hover .icon { transform: translateY(-3px); }
.link-arrow { transition: color .2s, border-color .2s; }
.link-arrow:hover { border-color: var(--text); }
.job summary .h { transition: color .2s; }
.job summary:hover .h { color: #fff; }
.job-icon { transition: transform .35s var(--ease), border-color .2s; }
.job summary:hover .job-icon { border-color: var(--accent); }
.job[open] .job-icon { transform: rotate(180deg); }
.job::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.job[open]::details-content { height: auto; }

@keyframes forge { 50% { box-shadow: 0 0 26px -4px rgba(226, 103, 46, .55); } }
.roadmap li.done { animation: forge 3.5s ease-in-out infinite; }

@media (min-width: 921px) {
  .nav-links > a:not(.nav-cta) { position: relative; }
  .nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-links a[aria-current="page"]::after { display: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 72px; }
  .hero { padding-block: 64px 72px; }
  .panel { padding: 24px; }
  .split { gap: 40px; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition: none !important; animation: none !important; }
  .job::details-content { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
