/* =========================================================
   CARDES.XYZ – Stylesheet (Startseite, Download, Changelog, 404, Wartung)
   ========================================================= */
:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: rgba(255,255,255,.07);
  --line-hi: rgba(255,255,255,.12);
  --text: #f5f5f4;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --accent: #ff7a1a;          /* Orange */
  --accent-hover: #ff8f3d;
  --accent-soft: rgba(255,122,26,.12);
  --new: #46a758;
  --improved: #3e9bff;
  --fix: #ff7a1a;
  --radius: 18px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { margin: 0; letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.accent { color: var(--accent); }
.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 0; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em;
  background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s, transform .2s, opacity .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,122,26,.5); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 14px; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(12,12,12,.75);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  font-weight: 500; font-size: .92rem; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { background: var(--surface); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { padding: 9px 16px; font-size: .88rem; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.3rem; cursor: pointer; padding: 8px; }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; padding: 96px 0 120px; }
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 480px at 80% 10%, rgba(255,122,26,.10), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; gap: 24px; margin-top: 40px; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.hero-trust i { color: var(--accent); margin-right: 6px; }

.hero-art { position: relative; }
.art-frame {
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 4 / 4.5;
  background: #e9dcae url("samp.jpg") center 30% / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(255,122,26,.35);
}

/* GTA-HUD (dezent) */
/* sitzt über der oberen rechten Bildecke, damit das GTA-Logo frei bleibt */
.hud {
  position: absolute; top: -22px; right: -22px; z-index: 2;
  background: rgba(12,12,12,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-hi); border-radius: 14px;
  padding: 10px 14px; width: 160px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.8);
}
.hud-row { display: flex; justify-content: space-between; align-items: baseline; }
.hud-time { font-weight: 800; font-size: 1.15rem; }
.hud-stars { color: var(--accent); font-size: .7rem; letter-spacing: 2px; }
.hud-stars .off { color: #444; }
.hud-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 8px; overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 86%; background: #e5484d; border-radius: 99px; }
.hud-bar.armor span { width: 62%; background: #d4d4d4; }
.hud-money { font-weight: 800; color: #46a758; margin-top: 8px; font-size: 1rem; font-variant-numeric: tabular-nums; }

.art-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(12,12,12,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; display: flex; gap: 12px; align-items: center;
}
.art-badge .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.art-badge strong { display: block; font-size: .9rem; }
.art-badge small { color: var(--muted); font-size: .8rem; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--muted); max-width: 42ch; margin: 0; }

/* Link-Karten */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, background .25s, transform .25s;
}
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover { border-color: rgba(255,122,26,.45); background: var(--surface-2); transform: translateY(-3px); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.2rem;
  transition: background .25s, color .25s;
}
.card:hover .ic { background: var(--accent); color: #fff; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin: 22px 0 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0 0 24px; font-size: .95rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.card .more i { transition: transform .25s; font-size: .8rem; }
.card:hover .more i { transform: translateX(4px); }
.card.featured { background: linear-gradient(160deg, rgba(255,122,26,.14), var(--surface) 60%); border-color: rgba(255,122,26,.3); }
.card-top { display: flex; justify-content: space-between; align-items: start; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 99px; }

/* Statistiken */
.stats-sec { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-block: 1px solid var(--line); }
.stat { padding: 44px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; display: block; line-height: 1; }
.stat b small { color: var(--accent); font-size: .7em; }
.stat > span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* Features */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.features h2 { margin: 12px 0 20px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature i { color: var(--accent); font-size: 1.15rem; }
.feature h4 { margin: 14px 0 6px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,122,26,.5); color: var(--accent); font-weight: 700; font-size: .9rem;
  margin-bottom: 20px;
}
.step small { color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.step h4 { font-size: 1.2rem; font-weight: 700; margin: 6px 0 8px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); }
.faq a { color: var(--accent); }

/* CTA */
.cta {
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, #ff7a1a, #e85d04);
}
.cta-text { padding: 64px 56px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 40ch; margin: 16px 0 0; }
.cta .btn-dark { background: #0c0c0c; color: #fff; }
.cta .btn-dark:hover { background: #222; }
.cta .btn-light { background: rgba(255,255,255,.18); color: #fff; }
.cta .btn-light:hover { background: rgba(255,255,255,.28); }
.cta-img { background: url("samp.jpg") center 25% / cover no-repeat; min-height: 280px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot img { height: 30px; width: auto; margin-bottom: 16px; }
.foot p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin: 0; }
.foot h5 { font-size: .8rem; font-weight: 600; color: var(--text); margin: 4px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.foot a { color: var(--muted); transition: color .2s; }
.foot a:hover { color: var(--accent); }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: .85rem; }

/* "Mission Passed"-Overlay */
.mission {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mission.show { opacity: 1; }
.mission div { text-align: center; transform: translateY(10px); transition: transform .4s ease; }
.mission.show div { transform: none; }
.mission h3 { color: var(--accent); font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin: 0; }
.mission p { color: #fff; font-weight: 600; font-size: 1.2rem; margin: 6px 0 0; }

/* =========================================================
   Unterseiten: gemeinsamer Seitenkopf
   ========================================================= */
.page-head { position: relative; padding: 80px 0 40px; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 16px 0 18px; }

/* =========================================================
   Download
   ========================================================= */
.dl { position: relative; padding: 80px 0 100px; }
.dl::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 480px at 75% 20%, rgba(255,122,26,.12), transparent 65%);
  pointer-events: none;
}
.dl .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.dl h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 16px 0 18px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; padding: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.facts dt { color: var(--faint); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: .98rem; }
.facts dd b { color: var(--accent); }

.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.dl-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.dl-note i { color: var(--accent); }
.dl-note a { color: var(--accent); }

/* App-Fenster */
.window {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-hi); background: #161616;
  box-shadow: 0 50px 100px -30px rgba(255,122,26,.35), 0 20px 40px -20px rgba(0,0,0,.8);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.window:hover { transform: none; }
.window img { width: 100%; height: auto; }

/* Was ist neu – Teaser */
.whatsnew {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 44px;
}
.whatsnew h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 12px 0 14px; }
.whatsnew p { color: var(--muted); margin: 0 0 24px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  font-size: .95rem;
}
.news-list .pill { flex: none; margin-top: 2px; }

/* Typ-Pills (neu / verbessert / fix) */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; white-space: nowrap; font-style: normal;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.new { color: var(--new); background: rgba(70,167,88,.12); }
.pill.improved { color: var(--improved); background: rgba(62,155,255,.12); }
.pill.fix { color: var(--fix); background: var(--accent-soft); }
.pill.change { color: var(--muted); background: rgba(255,255,255,.06); }

/* Anforderungen */
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* =========================================================
   Changelog
   ========================================================= */
.cl { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; padding-bottom: 110px; }

/* Zeitstrahl */
.rail {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; max-height: calc(100vh - 120px); overflow: auto;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.rail-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.rail-head b { font-size: .95rem; }
.rail-head span { color: var(--faint); font-size: .78rem; }
.tl, .g-list { list-style: none; margin: 0; padding: 0; }
.g-btn, .v-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  border-radius: 10px;
}
.g-btn { padding: 10px 8px; }
.g-btn:hover { background: rgba(255,255,255,.04); }
.g-num { font-weight: 800; font-size: 1rem; }
.g-num::before { content: "v"; color: var(--faint); font-weight: 600; margin-right: 1px; }
.g-meta { color: var(--faint); font-size: .74rem; }
.g-list { display: none; margin: 2px 0 8px 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.grp.open .g-list { display: block; }
.grp.open .g-num { color: var(--accent); }
.v-btn { padding: 7px 10px; font-size: .9rem; color: var(--muted); position: relative; }
.v-btn small { color: var(--faint); font-size: .74rem; }
.v-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.v-btn[aria-current="true"] { color: var(--text); background: var(--accent-soft); font-weight: 700; }
.v-btn[aria-current="true"]::before {
  content: ""; position: absolute; left: -16.5px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg);
}

/* Release-Panel */
.release { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.r-head { padding: 32px 36px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,122,26,.10), transparent 55%); }
.r-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.r-ver { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.r-ver small { color: var(--faint); font-size: .5em; font-weight: 700; margin-right: 2px; }
.r-meta { color: var(--muted); font-size: .9rem; margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.r-meta i { color: var(--faint); margin-right: 6px; }
.r-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 36px; border-bottom: 1px solid var(--line); }
.chip {
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.r-body { padding: 12px 36px 28px; }
.sec { padding: 0; }
.cl > * { min-width: 0; }
.sec h3 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 24px 0 8px; }
.sec.new h3 { color: var(--new); }
.sec.improved h3 { color: var(--improved); }
.sec.fix h3 { color: var(--fix); }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.item:last-child { border-bottom: 0; }
.item.sub { padding-left: 22px; color: var(--muted); font-size: .92rem; }
.item.sub span::before { content: "↳ "; color: var(--faint); }
.item .pill { margin-top: 3px; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }

.r-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 36px; border-top: 1px solid var(--line); }
.r-foot .hint { color: var(--faint); font-size: .8rem; text-align: center; }
.r-foot .btn { padding: 9px 16px; font-size: .88rem; }

/* =========================================================
   Startseite: "Neu in vX"-Hinweis
   ========================================================= */
.hero-news {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .86rem;
  transition: border-color .2s, color .2s;
}
.hero-news:hover { border-color: rgba(255,122,26,.5); color: var(--text); }
.hero-news b { background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.hero-news span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-news i { font-size: .75rem; color: var(--accent); }

/* =========================================================
   404 & Wartung
   ========================================================= */
.err-page { position: relative; min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 64px 0; overflow: hidden; }
.err-page::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 420px at 50% 30%, rgba(255,122,26,.12), transparent 65%);
  pointer-events: none;
}
.err-page .wrap { position: relative; text-align: center; }
.err-code { font-size: clamp(6rem, 22vw, 12rem); font-weight: 900; letter-spacing: -.06em; line-height: .9; color: var(--accent); }
.err-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 18px 0 12px; }
.err-page .lead { margin: 0 auto; }
.err-page .hero-actions { justify-content: center; }
.err-ic { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 24px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 2rem; }

/* ---------- Wartungsmodus (inc/maintenance.php) ---------- */
.mt-body { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.mt-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.mt-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(1.1); }
.mt-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 15% 20%, rgba(255,122,26,.18), transparent 60%),
    linear-gradient(90deg, rgba(12,12,12,.96) 0%, rgba(12,12,12,.86) 45%, rgba(12,12,12,.55) 100%),
    linear-gradient(0deg, rgba(12,12,12,.95), transparent 40%);
}
.mt {
  position: relative; z-index: 1; flex: 1 0 auto;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: 1.3fr minmax(300px, 400px); gap: 56px; align-items: center;
}
.mt-logo { width: 150px; height: auto; margin-bottom: 40px; }
.mt-copy h1 { margin: 14px 0 18px; }
.mt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mt-box {
  background: rgba(20,20,20,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-hi); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.mt-box h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.mt-box h2 i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: .95rem; }
.mt-box p { color: var(--muted); font-size: .92rem; margin: 10px 0 20px; }
.mt-field { display: block; margin-bottom: 16px; }
.mt-field span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.mt-field input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-hi); color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.mt-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mt-full { width: 100%; justify-content: center; }
.mt-error {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 12px; border-radius: 10px;
  background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.35); color: #ff8a8d; font-size: .88rem; font-weight: 600;
}
.mt-foot { position: relative; z-index: 1; text-align: center; color: var(--faint); font-size: .8rem; padding: 20px 24px 28px; }
@media (max-width: 860px) {
  .mt { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 40px 16px; }
  .mt-copy h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .mt-logo { width: 120px; margin-bottom: 28px; }
  .mt-bg::after { background: linear-gradient(0deg, rgba(12,12,12,.97) 30%, rgba(12,12,12,.75)); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .window { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .features, .dl .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 480px; width: 100%; }
  .window { transform: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4) { grid-column: span 1; }
  .card:nth-child(5) { grid-column: span 2; }
  /* 4 Zahlen -> 2×2, sonst nebeneinander lassen */
  .stats.n4 { grid-template-columns: 1fr 1fr; }
  .stats.n4 .stat:nth-child(3) { border-left: 0; }
  .stats.n4 .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat { padding: 32px 12px; }
  .cta { grid-template-columns: 1fr; }
  .cta-img { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .whatsnew { grid-template-columns: 1fr; gap: 24px; }
  .reqs { grid-template-columns: 1fr 1fr; }
  .cl { grid-template-columns: 1fr; }
  .rail { position: static; max-height: none; }
}
/* Navigation: "Control Panel"-Button wandert auf schmalen Laptops ins Menü */
.nav-links .nav-cp { display: none; }
.btn { white-space: nowrap; }
@media (max-width: 1080px) {
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links .nav-cp { display: block; }
  .burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(12,12,12,.97); padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
  .dl { padding: 48px 0 72px; }
  .page-head { padding: 48px 0 28px; }
  .cards, .feature-list, .reqs { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: span 1; }
  .facts { grid-template-columns: 1fr; }
  .cta-text { padding: 44px 24px; }
  .whatsnew { padding: 28px 20px; }
  .foot { grid-template-columns: 1fr; }
  .nav-cta .btn-accent span { display: none; }
  .hud { width: 140px; top: -14px; right: -8px; padding: 8px 12px; }
  .art-badge { left: 12px; bottom: 12px; }
  .r-head, .r-body, .filters, .r-foot { padding-left: 20px; padding-right: 20px; }
  .r-foot .hint { display: none; }
  .item { flex-direction: column; gap: 6px; }
}
