/* Roadlands Website
   Keine externen Fonts, Tracker oder Frameworks.
*/
:root {
    --bg: #090a0b;
    --bg-soft: #101214;
    --panel: #141719;
    --panel-2: #191c1f;
    --text: #f0eee9;
    --muted: #9b9d9b;
    --line: rgba(255,255,255,.12);
    --line-strong: rgba(255,255,255,.22);
    --accent: #aa241e;
    --accent-bright: #d63a31;
    --green: #6b8b62;
    --amber: #bb853d;
    --container: 1220px;
    --header-height: 88px;
    --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 70% 18%, rgba(170,36,30,.08), transparent 28rem),
        var(--bg);
    font-family: var(--body);
    line-height: 1.6;
}
/* WICHTIG: overflow-x bewusst NICHT auf body/html, sondern hier auf einem
   eigenen Wrapper. Auf iOS Safari ist es ein bekanntes Problem, dass
   position:fixed-Elemente (unser mobiles Menü/Header) beim Scrollen
   "hinterherhinken" bzw. sich sichtbar verschieben, sobald body oder html
   selbst eine overflow-Eigenschaft ungleich "visible" gesetzt haben. Der
   Wrapper übernimmt das horizontale Clipping stattdessen, body/html bleiben
   "sauber", damit fixed-Elemente sich zuverlässig am echten Viewport
   orientieren. */
.page-shell { overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: white; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.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: fixed; top: 8px; left: 8px; z-index: 999;
    transform: translateY(-160%); padding: 10px 14px;
    background: white; color: black;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease;
    /* WICHTIG: backdrop-filter absichtlich NICHT direkt auf .site-header,
       sondern unten auf einem eigenen ::before-Layer dahinter. Ein Element
       mit aktivem backdrop-filter wird selbst zum "containing block" für
       seine fixed/absolut positionierten NACHKOMMEN. Da das mobile
       .main-nav-Vollbildmenü ein Nachkomme von .site-header ist, würde es
       nach dem Scrollen (sobald .is-scrolled greift) nicht mehr relativ
       zum Viewport, sondern nur noch relativ zur schmalen Header-Leiste
       positioniert - das Menü würde zusammenschrumpfen/abgeschnitten
       wirken. Der Blur-Effekt bleibt optisch identisch, ohne dieses Risiko. */
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(8,9,10,.88);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    backdrop-filter: blur(18px);
    transition: opacity .25s ease;
}
.site-header.is-scrolled {
    border-color: var(--line);
}
.site-header.is-scrolled::before {
    opacity: 1;
}
.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    gap: 32px;
}
.brand { width: 220px; text-decoration: none; }
.brand img, .footer-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
}
.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.5vw, 38px);
}
.main-nav a {
    position: relative;
    color: #d4d3cf;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.main-nav a::after {
    content: "";
    position: absolute; left: 0; right: 100%; bottom: -9px;
    height: 2px; background: var(--accent-bright);
    transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-switch {
    display: flex; gap: 5px; color: #777;
    font-size: .75rem; font-weight: 800; letter-spacing: .08em;
}
.language-switch a { color: #777; text-decoration: none; }
.language-switch a.active, .language-switch a:hover { color: white; }
.menu-toggle { display: none; }

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid transparent;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .1em;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 40px; padding: 0 18px; font-size: .72rem; }
.button-primary { background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.button-outline { border-color: var(--line-strong); background: rgba(255,255,255,.03); }
.button-outline:hover { border-color: white; }
.button-ghost { border-color: transparent; color: #cbc9c4; }
.button-ghost::after { content: "→"; font-size: 1.2rem; }
.button-disabled {
    color: #747674; border-color: var(--line); background: rgba(255,255,255,.025);
    cursor: not-allowed;
}
.button-disabled:hover { transform: none; }

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(4,5,6,.98) 0%, rgba(4,5,6,.83) 44%, rgba(4,5,6,.2) 75%),
        radial-gradient(circle at 75% 40%, rgba(171,39,31,.2), transparent 25%),
        linear-gradient(145deg, #111416, #070808 70%);
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 129px, rgba(255,255,255,.025) 130px),
        repeating-linear-gradient(0deg, transparent 0 129px, rgba(255,255,255,.02) 130px);
    mask-image: linear-gradient(to right, transparent, black 50%);
    z-index: -3;
}
.hero-noise {
    position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .18;
    background-image: url("../img/noise.svg");
}
.hero-ridge {
    position: absolute; left: 35%; right: -8%; bottom: -8%;
    height: 76%;
    clip-path: polygon(0 78%, 9% 68%, 16% 72%, 28% 53%, 35% 58%, 47% 34%, 55% 42%, 63% 24%, 72% 37%, 82% 20%, 100% 52%, 100% 100%, 0 100%);
    z-index: -2;
}
.hero-ridge-back {
    background: linear-gradient(145deg, #292d2e, #101314 70%);
    opacity: .7;
    transform: translate(8%, -8%);
}
.hero-ridge-front {
    background:
        linear-gradient(130deg, transparent 0 24%, rgba(255,255,255,.06) 25%, transparent 26%),
        linear-gradient(145deg, #181b1c, #090a0b 72%);
}
.hero-ridge-front::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(155deg, rgba(255,255,255,.14), transparent 20% 70%, rgba(170,36,30,.12));
    clip-path: polygon(15% 70%, 48% 35%, 37% 72%, 64% 26%, 56% 68%, 82% 21%, 100% 52%, 100% 100%, 0 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    padding-top: var(--header-height);
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 22px;
    color: #b6b5b1;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent-bright); }
.hero h1 {
    max-width: 830px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4rem, 8vw, 8.4rem);
    font-weight: 900;
    line-height: .89;
    letter-spacing: .012em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.hero-copy {
    max-width: 690px;
    margin: 32px 0 0;
    color: #bbbcb9;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin-top: 36px;
    color: #868885;
    font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright);
    box-shadow: 0 0 0 0 rgba(214,58,49,.5);
    animation: pulse 2s infinite;
}
.separator { color: #444; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(214,58,49,0); } }
.scroll-cue {
    position: absolute; bottom: 28px; left: 50%; z-index: 12;
    width: 32px; height: 52px; border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
}
.scroll-cue span {
    position: absolute; top: 10px; left: 50%;
    width: 3px; height: 8px; border-radius: 5px; background: white;
    transform: translateX(-50%);
    animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,18px); } }

.section { position: relative; padding: clamp(90px, 11vw, 150px) 0; }
.section-dark { background: #0c0e0f; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: start;
}
.section-heading h2, .world-content h2, .status-intro h2, .gallery-heading h2, .alpha-panel h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3rem, 5.5vw, 5.9rem);
    line-height: .94;
    font-weight: 900;
    text-transform: uppercase;
    text-wrap: balance;
}
.section-heading.narrow { max-width: 870px; }
.lead-copy > p, .world-content > p, .status-intro > p, .gallery-heading > p, .alpha-panel > div > p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.8;
}
.coordinate-line {
    display: flex; align-items: center; gap: 18px; margin-top: 40px;
    color: #707370; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem; letter-spacing: .1em;
}
.coordinate-line i { flex: 1; height: 1px; background: var(--line); }

.features-section { padding-top: 0; background: #0c0e0f; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.feature-card {
    min-height: 410px;
    display: flex; flex-direction: column;
    padding: 34px 28px 38px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
    transition: background .3s ease, transform .3s ease;
}
.feature-card:hover { background: rgba(255,255,255,.04); transform: translateY(-6px); }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 110px; }
.feature-number { color: #555956; font: 700 .75rem ui-monospace, monospace; }
.feature-icon { width: 72px; height: 72px; position: relative; opacity: .75; }
.icon-inventory {
    border: 2px solid #777;
    background:
        linear-gradient(90deg, transparent 31%, #777 32% 34%, transparent 35% 65%, #777 66% 68%, transparent 69%),
        linear-gradient(0deg, transparent 31%, #777 32% 34%, transparent 35% 65%, #777 66% 68%, transparent 69%);
}
.icon-vehicle::before {
    content: ""; position: absolute; left: 4px; right: 4px; top: 26px; height: 24px;
    border: 2px solid #777; transform: skewX(-10deg);
}
.icon-vehicle::after {
    content: ""; position: absolute; left: 13px; right: 13px; top: 12px; height: 25px;
    border: 2px solid #777; border-bottom: 0; transform: perspective(40px) rotateX(15deg);
    box-shadow: -5px 42px 0 -1px #0c0e0f, -5px 42px 0 1px #777, 47px 42px 0 -1px #0c0e0f, 47px 42px 0 1px #777;
}
.icon-base::before, .icon-base::after { content: ""; position: absolute; }
.icon-base::before {
    left: 6px; right: 6px; bottom: 6px; height: 46px; border: 2px solid #777;
    border-top: 0;
}
.icon-base::after {
    width: 48px; height: 48px; left: 12px; top: 6px;
    border-left: 2px solid #777; border-top: 2px solid #777; transform: rotate(45deg);
}
.icon-multi {
    background:
        radial-gradient(circle at 25% 30%, transparent 0 8px, #777 9px 10px, transparent 11px),
        radial-gradient(circle at 75% 30%, transparent 0 8px, #777 9px 10px, transparent 11px);
}
.icon-multi::after {
    content: ""; position: absolute; left: 2px; right: 2px; bottom: 7px; height: 30px;
    border: 2px solid #777; border-radius: 50% 50% 0 0;
    clip-path: polygon(0 0, 46% 0, 46% 100%, 54% 100%, 54% 0, 100% 0, 100% 100%, 0 100%);
}
.feature-card h3 {
    margin: auto 0 13px;
    font-family: var(--display);
    font-size: 2rem; letter-spacing: .02em; text-transform: uppercase;
}
.feature-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.world-section {
    min-height: 850px; display: flex; align-items: center; overflow: hidden;
    background: #111315;
}
.world-section::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 70% 60%, rgba(170,36,30,.12), transparent 25rem),
        linear-gradient(90deg, #111315 0 48%, rgba(17,19,21,.4) 74%, #111315);
    z-index: 1;
}
.world-content { position: relative; z-index: 5; max-width: 640px; margin-left: 0; }
.world-content > p { max-width: 590px; margin-top: 30px; }
.world-stats { list-style: none; padding: 0; margin: 45px 0 0; display: grid; gap: 0; }
.world-stats li {
    display: grid; grid-template-columns: 54px 1fr; align-items: center;
    min-height: 62px; border-top: 1px solid var(--line);
}
.world-stats li:last-child { border-bottom: 1px solid var(--line); }
.world-stats strong { color: var(--accent-bright); font: 700 .7rem ui-monospace, monospace; }
.world-stats span { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .84rem; }
.world-map {
    position: absolute; z-index: 0; width: 65vw; height: 900px; right: -5vw; top: 0;
    opacity: .55;
    background:
        repeating-radial-gradient(ellipse at 60% 50%, transparent 0 18px, rgba(255,255,255,.07) 19px 20px, transparent 21px 39px);
    transform: rotate(-8deg) scale(1.1);
    mask-image: linear-gradient(90deg, transparent 0, black 35%);
}
.map-road { position: absolute; width: 5px; background: #8e2d28; box-shadow: 0 0 16px rgba(170,36,30,.6); border-radius: 50%; }
.road-a { height: 720px; top: 80px; left: 52%; transform: rotate(23deg); }
.road-b { height: 500px; top: 190px; left: 69%; transform: rotate(-38deg); }
.road-c { height: 350px; top: 410px; left: 45%; transform: rotate(72deg); }
.map-marker { position: absolute; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 7px rgba(255,255,255,.07); }
.marker-a { top: 40%; left: 57%; }
.marker-b { top: 59%; left: 75%; }
.marker-c { top: 69%; left: 43%; }
.map-label {
    position: absolute; top: 43%; left: 60%;
    color: white; font: 800 1rem ui-monospace, monospace; letter-spacing: .3em;
}

.systems-section { background: var(--bg); }
.system-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; }
.system-step { position: relative; padding-right: 36px; }
.step-index { color: #666965; font: 700 .72rem ui-monospace, monospace; }
.step-line { height: 1px; margin: 22px 0 28px; background: var(--line); position: relative; }
.step-line::before {
    content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px;
    background: var(--accent);
    transform: rotate(45deg);
}
.system-step h3 {
    margin: 0 0 14px; font: 400 2rem/1 var(--display); text-transform: uppercase;
}
.system-step p { margin: 0; color: var(--muted); font-size: .9rem; }

.status-section {
    background:
        linear-gradient(135deg, rgba(255,255,255,.025), transparent 40%),
        #101214;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.status-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: center; }
.status-intro > p { margin-top: 28px; }
.build-label {
    display: inline-flex; align-items: center; gap: 16px; margin-top: 38px;
    padding: 12px 16px; border: 1px solid var(--line);
    font: 800 .72rem ui-monospace, monospace; letter-spacing: .12em;
}
.build-label span { color: #666; }
.build-label strong { color: var(--accent-bright); }
.roadmap { border-top: 1px solid var(--line); }
.roadmap-item {
    min-height: 72px;
    display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 18px;
    border-bottom: 1px solid var(--line);
}
.roadmap-state { width: 11px; height: 11px; border-radius: 50%; }
.state-done { background: var(--green); box-shadow: 0 0 0 4px rgba(107,139,98,.12); }
.state-progress { background: var(--amber); box-shadow: 0 0 0 4px rgba(187,133,61,.12); }
.state-planned { border: 1px solid #5b5d5b; }
.roadmap-label { font-size: .92rem; font-weight: 700; }
.roadmap-tag {
    padding: 5px 9px; border: 1px solid var(--line);
    color: #8e908e; font-size: .63rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.tag-done { color: #98ad91; }
.tag-progress { color: #d3a25f; }

.gallery-section { background: #0b0c0d; }
.gallery-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 8vw; }
.gallery-heading > p { font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 60px; }
.gallery-placeholder {
    position: relative; min-height: 360px; padding: 24px; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    color: #858785; text-align: left;
    border: 1px solid var(--line); background:
        linear-gradient(145deg, rgba(255,255,255,.04), transparent 48%),
        repeating-linear-gradient(45deg, transparent 0 15px, rgba(255,255,255,.015) 16px 17px),
        var(--panel);
}
.gallery-placeholder:first-child { min-height: 470px; grid-row: span 2; }
.gallery-placeholder::before {
    content: ""; position: absolute; width: 230px; height: 230px; right: -50px; top: -70px;
    border: 1px solid rgba(255,255,255,.05); transform: rotate(45deg);
}
.gallery-placeholder span {
    position: absolute; top: 20px; left: 22px;
    font: 700 .7rem ui-monospace, monospace; color: #575a57;
}
.gallery-placeholder strong { color: #a0a29f; font: 400 1.5rem var(--display); text-transform: uppercase; }
.gallery-placeholder small { margin-top: 4px; font: .65rem ui-monospace, monospace; letter-spacing: .08em; }

.faq-section { background: #101214; border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9vw; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    min-height: 86px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    cursor: pointer; list-style: none; font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 18px; height: 18px; position: relative; flex: 0 0 auto; }
.faq-item summary i::before, .faq-item summary i::after {
    content: ""; position: absolute; top: 8px; left: 1px; width: 16px; height: 2px; background: var(--accent-bright);
}
.faq-item summary i::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item p { max-width: 760px; margin: -5px 0 28px; color: var(--muted); }

.alpha-section { background: var(--accent); padding: 70px 0; }
.alpha-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.alpha-panel .eyebrow { color: rgba(255,255,255,.75); }
.alpha-panel .eyebrow::before { background: white; }
.alpha-panel h2 { font-size: clamp(2.7rem, 4.8vw, 5rem); }
.alpha-panel > div > p { max-width: 720px; margin-top: 20px; color: rgba(255,255,255,.75); font-size: 1rem; }
.alpha-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.alpha-section .button-outline { background: rgba(0,0,0,.12); border-color: rgba(255,255,255,.42); }
.alpha-section .button-primary { background: #080909; border-color: #080909; }

.site-footer { padding: 70px 0 24px; background: #070808; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .6fr .6fr; gap: 9vw; }
.footer-grid > div:first-child { max-width: 470px; }
.footer-logo { width: 260px; margin-bottom: 20px; }
.footer-grid p { margin: 0; color: #717471; font-size: .88rem; }
.footer-grid h2 {
    margin: 0 0 18px; color: #858885;
    font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.footer-grid a { display: block; width: fit-content; margin: 9px 0; color: #b4b5b2; text-decoration: none; font-size: .84rem; }
.footer-grid a:hover { color: white; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--line);
    color: #555855; font: .65rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase;
}

.legal-page { min-height: 80vh; }
.legal-hero {
    padding: calc(var(--header-height) + 85px) 0 65px;
    background: linear-gradient(145deg, #151819, #090a0b);
    border-bottom: 1px solid var(--line);
}
.legal-hero h1 { margin: 0; font: 400 clamp(3.5rem, 7vw, 7rem)/.9 var(--display); text-transform: uppercase; }
.legal-content { max-width: 850px; }
.legal-content h2 { margin: 46px 0 10px; font: 400 1.8rem var(--display); text-transform: uppercase; }
.legal-content p { color: #a6a7a4; }
.legal-content a { color: white; }
.legal-warning {
    padding: 18px 20px;
    border-left: 3px solid var(--amber);
    background: rgba(187,133,61,.08);
    color: #d6c09f;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1050px) {
    .header-inner { grid-template-columns: 210px 1fr auto; gap: 18px; }
    .brand { width: 190px; }
    .header-actions .button { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card { min-height: 330px; }
    .status-layout { gap: 6vw; }
    .gallery-grid { grid-template-columns: 1.2fr 1fr; }
    .gallery-placeholder:nth-child(3) { grid-column: 2; }
}

@media (max-width: 900px) {
    :root { --header-height: 76px; }
    .header-inner {
        grid-template-columns: 1fr auto auto;
        /* Der Header löst sich hier bewusst vom zentrierten .container-Gutter:
           Der Menü-Button soll spürbar näher am echten Bildschirmrand sitzen
           als der übrige Seiteninhalt, statt symmetrisch mittig zu kleben. */
        width: 100%;
        margin-inline: 0;
        padding-inline: 12px 2px;
    }
    .brand { width: 180px; }
    .menu-toggle {
        display: grid; grid-template-columns: 1fr; justify-items: center; align-content: center;
        gap: 5px; width: 44px; height: 44px;
        border: 1px solid var(--line); background: rgba(0,0,0,.2); color: white;
    }
    .menu-toggle span:not(.sr-only) {
        width: 20px; height: 2px; background: currentColor;
        transition: transform .25s ease, opacity .25s ease;
    }
    /* Balken morphen beim Öffnen zu einem X, damit der Zustand auch ohne
       Blick auf das Overlay klar erkennbar ist. */
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
        opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(4) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .main-nav {
        position: fixed; inset: var(--header-height) 0 0 0;
        width: 100vw;
        display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0;
        padding: 40px;
        background: rgba(8,9,10,.98);
        transform: translateX(100%);
        /* Doppelt abgesichert: Neben der Verschiebung per transform wird das
           geschlossene Menü zusätzlich per visibility/pointer-events komplett
           deaktiviert. Falls die Breite, auf der translateX(100%) beruht, aus
           irgendeinem Grund (Browser-Eigenheit, verschachtelter Kontext) nicht
           exakt der vollen Viewport-Breite entspricht, bleibt das Panel trotzdem
           unsichtbar und nicht klickbar, statt teilweise durchzuscheinen.
           Die Verzögerung von .3s beim Schließen lässt die Slide-Animation
           erst zu Ende laufen, bevor visibility greift. */
        visibility: hidden;
        pointer-events: none;
        transition: transform .3s ease, visibility 0s linear .3s;
    }
    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform .3s ease, visibility 0s linear 0s;
    }
    .main-nav a { width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); font: 400 2.2rem var(--display); }
    .header-actions { grid-column: 2; grid-row: 1; }
    .menu-toggle { grid-column: 3; grid-row: 1; }
    .split-layout, .status-layout, .faq-layout, .gallery-heading, .alpha-panel { grid-template-columns: 1fr; }
    .split-layout, .faq-layout { gap: 45px; }
    .world-section::before { background: linear-gradient(90deg, #111315 0 25%, rgba(17,19,21,.58)); }
    .world-map { width: 100vw; right: -20vw; opacity: .35; mask-image: linear-gradient(90deg, transparent, black 15%); }
    .world-content { max-width: 650px; }
    .system-flow { grid-template-columns: repeat(2, 1fr); gap: 50px 0; }
    .gallery-heading > p { max-width: 650px; }
    .alpha-actions { justify-content: flex-start; }
}

@media (max-width: 650px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-actions { display: none; }
    .header-inner {
        grid-template-columns: 1fr auto;
        width: 100%;
        margin-inline: 0;
        padding-inline: 12px 2px;
    }
    .menu-toggle { grid-column: 2; }
    .hero { min-height: 850px; align-items: flex-start; }
    .hero-content { padding-top: 190px; }
    .hero h1 { font-size: clamp(3.3rem, 16vw, 5.3rem); }
    .hero-copy { font-size: .96rem; line-height: 1.7; }
    .hero-ridge { left: 10%; opacity: .55; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-meta { font-size: .64rem; }
    .scroll-cue { display: none; }
    .section { padding: 82px 0; }
    .section-heading h2, .world-content h2, .status-intro h2, .gallery-heading h2, .alpha-panel h2 { font-size: 3.1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 300px; }
    .world-section { min-height: 820px; }
    .world-map { right: -45vw; width: 150vw; }
    .system-flow { grid-template-columns: 1fr; gap: 42px; }
    .system-step { padding-right: 0; }
    .roadmap-item { grid-template-columns: 20px 1fr; padding: 13px 0; }
    .roadmap-tag { grid-column: 2; justify-self: start; margin-top: -10px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-placeholder, .gallery-placeholder:first-child { min-height: 300px; grid-row: auto; grid-column: auto; }
    .alpha-panel { gap: 35px; }
    .alpha-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; }
}
