/*
 * landing.css — marketing landing page styles (index2.html, en/index2.html, impressum.html)
 *
 * Standalone — does NOT load game-app.css. The game-app stylesheet locks
 * html/body to `overflow: hidden; touch-action: none` for the Pixi canvas,
 * which would break a scrolling marketing page. We re-declare the design
 * tokens we share with the game so the look stays continuous.
 *
 * Type pairing: Orbitron (display) + EB Garamond (body, editorial prose).
 * Both self-hosted, both OFL, credited in NOTICES.md.
 */

/* ── Fonts ────────────────────────────────────────────────────────────── */

@font-face {
    font-family: "Orbitron";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../assets/fonts/ui/Orbitron/Orbitron-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-family: "EB Garamond";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../assets/fonts/ui/EBGaramond/EBGaramond-VariableFont_wght.ttf") format("truetype");
}

/* ── Tokens (shared with game-app, plus the editorial-warm accent) ────── */

:root {
    --ga-bg: #0d1117;
    --ga-text: #e6edf3;
    --ga-text-muted: rgba(230, 237, 243, 0.68);
    --ga-card: rgba(13, 17, 23, 0.82);
    --ga-card-border: rgba(148, 163, 184, 0.4);
    --ga-accent: #33a8ff;
    --ga-accent-dim: rgba(51, 168, 255, 0.18);
    --landing-warm: #f4b942;
    --landing-warm-dim: rgba(244, 185, 66, 0.22);

    --safe-top:    env(safe-area-inset-top,    0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left,   0px);
    --safe-right:  env(safe-area-inset-right,  0px);

    --type-display: "Orbitron", "Arial Black", sans-serif;
    --type-body: "EB Garamond", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--ga-bg);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    background: var(--ga-bg);
    color: var(--ga-text);
    font-family: var(--type-body);
    font-size: 19px;
    line-height: 1.62;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--ga-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 140ms ease, color 140ms ease;
}

a:hover {
    color: #6ec0ff;
    border-bottom-color: currentColor;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ── Typography ────────────────────────────────────────────────────────── */

h1, h2, h3 {
    font-family: var(--type-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ga-text);
    margin: 0;
}

h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

p {
    margin: 0 0 1.1em;
}

em {
    font-style: italic;
    color: var(--landing-warm);
    font-weight: 500;
}

/* ── Sticky NavBar (all pages) ─────────────────────────────────────────────
 *
 * Sits on every landing-family page. On the landing pages it boots in
 * `data-state="hero"` (transparent, only the lang-switcher visible). Once
 * the user has scrolled past the hero, JS flips it to `data-state="scrolled"`
 * and the links + brand fade in. On subpages (FAQ, Anleitung, Impressum)
 * the HTML sets `data-state="scrolled"` from the start so the bar is solid
 * from page load.
 *
 * The DE/EN switcher is in its rightful place inside the bar from the very
 * first paint — it just sits on a transparent background while the hero is
 * still in view, then gets the dark-glass surface under it when the bar
 * "lands" at the top.
 */

.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background-color 280ms ease,
                backdrop-filter 280ms ease,
                -webkit-backdrop-filter 280ms ease,
                border-color 280ms ease;
    padding-top: var(--safe-top);
}

.page-nav[data-state="scrolled"] {
    background-color: rgba(11, 15, 21, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

.page-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem max(1.5rem, var(--safe-right)) 0.85rem max(1.5rem, var(--safe-left));
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
    align-items: center;
}

.page-nav__brand {
    font-family: var(--type-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    color: var(--ga-text);
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 320ms ease 60ms, transform 320ms ease 60ms, color 140ms ease;
    border-bottom: 1px solid transparent !important;
    pointer-events: none;
}

.page-nav__brand:hover {
    color: var(--landing-warm);
    border-bottom-color: transparent !important;
}

.page-nav[data-state="scrolled"] .page-nav__brand {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.page-nav__links {
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 320ms ease 100ms, transform 320ms ease 100ms;
    pointer-events: none;
}

.page-nav[data-state="scrolled"] .page-nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.page-nav__links a {
    font-family: var(--type-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ga-text-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 0.22em;
    transition: color 140ms ease, border-color 140ms ease;
}

.page-nav__links a:hover {
    color: var(--ga-text);
    border-bottom-color: var(--ga-accent);
}

.page-nav__links a[aria-current="page"] {
    color: var(--ga-text);
    border-bottom-color: var(--landing-warm);
}

.page-nav__lang {
    display: flex;
    align-items: center;
    gap: 0.55em;
    font-family: var(--type-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.page-nav__lang a {
    color: var(--ga-text-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 0.22em;
    transition: color 140ms ease, border-color 140ms ease;
}

.page-nav__lang a:hover {
    color: var(--ga-text);
    border-bottom-color: var(--ga-accent);
}

.page-nav__lang a.is-active {
    color: var(--ga-text);
    border-bottom-color: var(--landing-warm);
    pointer-events: none;
}

.page-nav__sep {
    opacity: 0.4;
    color: var(--ga-text-muted);
}

@media (max-width: 520px) {
    .page-nav__inner {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
    }
    .page-nav__brand {
        display: none;
    }
    .page-nav__links {
        gap: 1.2rem;
        justify-content: flex-start;
    }
    .page-nav__links a {
        font-size: 0.72rem;
        letter-spacing: 0.18em;
    }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 92dvh;
    padding: calc(3.2rem + var(--safe-top)) 1.5rem 3.6rem;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../assets/backgrounds/menu/MenuBG - 3.jpeg");
    background-size: cover;
    background-position: center 30%;
    filter: saturate(0.92) brightness(0.55);
    z-index: -3;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 17, 23, 0.42) 0%,
        rgba(13, 17, 23, 0.66) 55%,
        rgba(13, 17, 23, 0.92) 100%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.42;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0.16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
}

.hero-laser {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.hero-laser path {
    fill: none;
    stroke: var(--landing-warm);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(244, 185, 66, 0.65)) drop-shadow(0 0 14px rgba(244, 185, 66, 0.35));
    /* Initial state — the path itself and its dash/offset/opacity are
       set by js/landing.js once fonts are ready. */
    opacity: 0;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 920px;
    width: 100%;
}

.hero-title {
    position: relative;
    margin: 0 auto 1.4rem;
    line-height: 1;
    font-family: var(--type-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 11vw, 8rem);
    letter-spacing: 0.06em;
}

.hero-title-glow,
.hero-title-main {
    display: block;
    position: absolute;
    inset: 0;
    color: transparent;
    background-image: linear-gradient(100deg,
        #f8fbff 0%, #dbeafe 18%, #bfdbfe 35%,
        #f8fbff 52%, #ddd6fe 70%, #e0f2fe 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 18px rgba(191, 219, 254, 0.34),
        0 0 28px rgba(59, 130, 246, 0.22);
    animation: heroTitlePulse 9.4s ease-in-out infinite;
}

.hero-title-glow {
    color: #3b82f6;
    background: none;
    -webkit-text-fill-color: #3b82f6;
    opacity: 0.32;
    filter: blur(14px);
    text-shadow: none;
    animation: heroTitleGlow 11s ease-in-out infinite;
}

.hero-title > span:first-child {
    position: relative;
    visibility: hidden;   /* reserves layout space */
}

@keyframes heroTitlePulse {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes heroTitleGlow {
    0%, 100% { opacity: 0.28; transform: scale(1); }
    50%      { opacity: 0.40; transform: scale(1.012); }
}

.hero-tagline {
    font-family: var(--type-body);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.4;
    color: var(--ga-text);
    margin: 0 auto 2.4rem;
    max-width: 38ch;
}

.hero-tagline em {
    color: var(--landing-warm);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CTAs ──────────────────────────────────────────────────────────────── */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.85em 1.45em;
    font-family: var(--type-display);
    font-weight: 600;
    font-size: 0.94rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 220ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    text-decoration: none;
    border-bottom: 1px solid transparent;   /* override global a underline */
}

.cta:hover {
    transform: translateY(-1px);
    border-bottom-color: transparent;
}

.cta-primary {
    background: var(--ga-accent);
    color: #02121f;
    border-color: var(--ga-accent);
}

.cta-primary:hover {
    background: #5ab8ff;
    box-shadow: 0 8px 22px -8px rgba(51, 168, 255, 0.6);
    color: #02121f;
}

.cta-secondary {
    background: transparent;
    color: var(--ga-text);
    border-color: rgba(230, 237, 243, 0.35);
}

.cta-secondary:hover {
    border-color: var(--ga-text);
    color: var(--ga-text);
    background: rgba(230, 237, 243, 0.06);
}

.cta-disabled {
    background: transparent;
    color: var(--ga-text-muted);
    border-color: var(--ga-card-border);
    cursor: not-allowed;
    pointer-events: none;
}

.cta-disabled::before {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--landing-warm);
    box-shadow: 0 0 8px var(--landing-warm);
    margin-right: 0.4em;
    animation: ctaSoonBlink 2.4s ease-in-out infinite;
}

@keyframes ctaSoonBlink {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 1; transform: scale(1.05); }
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--ga-accent);
    font-family: var(--type-display);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ga-accent-dim);
    padding-bottom: 0.18em;
}

.cta-link:hover {
    color: #6ec0ff;
    border-bottom-color: currentColor;
}

/* ── Sections (shared rhythm) ──────────────────────────────────────────── */

main {
    display: flex;
    flex-direction: column;
}

.section {
    position: relative;
    padding: 6rem 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    scroll-margin-top: calc(3.6rem + var(--safe-top));
}

.section:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-1.4deg);
    width: clamp(120px, 22vw, 220px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--landing-warm-dim), transparent);
}

.section-heading {
    text-align: center;
    margin-bottom: 0.4em;
}

.section-subhead {
    text-align: center;
    color: var(--ga-text-muted);
    font-family: var(--type-body);
    font-size: 1.05rem;
    margin: 0 auto 3rem;
    max-width: 50ch;
}

.section-cta {
    text-align: center;
    margin-top: 2.6rem;
}

/* ── About section (editorial paragraph + visual prop) ─────────────────── */

.section-about {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.section-about > .section-heading {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.about-lead {
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--ga-text);
}

.about-lead em {
    font-style: italic;
    color: var(--landing-warm);
}

.about-visual {
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin-left: auto;
    border: 1px solid var(--ga-card-border);
    background:
        radial-gradient(circle at 30% 30%, rgba(51, 168, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(13, 17, 23, 0.6), rgba(13, 17, 23, 0.95));
    position: relative;
    overflow: hidden;
}

.about-visual svg {
    position: absolute;
    inset: 8%;
    width: 84%;
    height: 84%;
}

.about-visual .beam {
    fill: none;
    stroke: var(--ga-accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(51, 168, 255, 0.6));
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: aboutBeamLoop 6.5s ease-in-out infinite;
}

.about-visual .mirror {
    stroke: var(--ga-text);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.85;
}

.about-visual .crystal {
    fill: var(--landing-warm);
    opacity: 0.92;
    filter: drop-shadow(0 0 6px rgba(244, 185, 66, 0.7));
}

@keyframes aboutBeamLoop {
    0%   { stroke-dashoffset: 600; }
    35%  { stroke-dashoffset: 0; }
    65%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -600; }
}

/* ── How-to-Play tile grid ─────────────────────────────────────────────── */

.play-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    counter-reset: tile;
}

.play-tile {
    position: relative;
    padding: 1.6rem 1.6rem 1.6rem 1.6rem;
    background: var(--ga-card);
    border: 1px solid var(--ga-card-border);
    border-radius: 2px;
    counter-increment: tile;
}

.play-tile:nth-child(odd)  { transform: translateY(0); }
.play-tile:nth-child(even) { transform: translateY(1.6rem); }

.play-tile-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.play-tile-num {
    font-family: var(--type-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--landing-warm);
    letter-spacing: 0.08em;
    min-width: 2.1rem;
}

.play-tile-glyph {
    width: 42px;
    height: 42px;
    color: var(--ga-accent);
    flex-shrink: 0;
}

.play-tile-glyph svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.play-tile-text {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.55;
    color: var(--ga-text);
}

/* ── Features grid ─────────────────────────────────────────────────────── */

.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.feature-card {
    padding: 1.6rem;
    background: transparent;
    border: 1px solid var(--ga-card-border);
    border-radius: 2px;
}

.feature-card-glyph {
    width: 30px;
    height: 30px;
    color: var(--landing-warm);
    margin-bottom: 1rem;
}

.feature-card-glyph svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--ga-text);
}

.feature-card p {
    margin: 0;
    color: var(--ga-text-muted);
    font-size: 0.98rem;
}

/* ── Credits ───────────────────────────────────────────────────────────── */

.section-credits {
    text-align: center;
    max-width: 720px;
}

.credits-role {
    font-family: var(--type-display);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ga-text-muted);
    display: block;
    margin-bottom: 0.6em;
}

.credits-names {
    font-family: var(--type-body);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 500;
    color: var(--ga-text);
    margin-bottom: 2.2rem;
    font-style: italic;
}

.credits-origin {
    font-size: 1.05rem;
    color: var(--ga-text-muted);
    max-width: 50ch;
    margin: 0 auto;
}

.credits-origin em {
    color: var(--landing-warm);
}

/* ── Current status ────────────────────────────────────────────────────── */

.section-status {
    max-width: 720px;
}

.status-notes {
    margin: 1.4rem 0 0;
    padding: 0 0 0 1.4rem;
    color: var(--ga-text-muted);
}

.status-notes li {
    margin-bottom: 0.6em;
    font-size: 1rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
    margin-top: 6rem;
    padding: 3rem 1.5rem calc(2.2rem + var(--safe-bottom));
    border-top: 1px solid var(--ga-card-border);
    background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--type-body);
    color: var(--ga-text-muted);
}

.footer-inner p {
    margin: 0 0 0.8em;
    font-size: 0.95rem;
}

.footer-links span {
    margin: 0 0.7em;
    opacity: 0.4;
}

.footer-links a {
    color: var(--ga-text-muted);
}

.footer-links a:hover {
    color: var(--ga-text);
}

.footer-copy {
    font-family: var(--type-display);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-top: 1.4em !important;
}

/* ── Reveal-on-scroll ──────────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    /* .hero-laser is JS-driven and reads prefers-reduced-motion itself. */
    .hero-title-main, .hero-title-glow,
    .page-header__title-main, .page-header__title-glow { animation: none; }
    .cta-disabled::before { animation: none; }
    .about-visual .beam { animation: none; stroke-dashoffset: 0; }
    .subpage-placeholder__lead::before { animation: none; }
    .page-nav { transition: none; }
    .page-nav__brand, .page-nav__links { transition: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
    .section { padding: 4.4rem 1.2rem; }
    .section-about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-visual {
        margin: 0 auto;
        max-width: 280px;
    }
    .play-tiles { grid-template-columns: 1fr; }
    .play-tile:nth-child(even) { transform: none; }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    body { font-size: 17px; }
    .hero {
        padding-top: calc(2.2rem + var(--safe-top));
        min-height: 86dvh;
    }
    .hero-tagline { font-size: 1.05rem; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .cta { justify-content: center; }
    .section { padding: 3.4rem 1rem; }
}

/* ── Subpages (FAQ, Anleitung, Impressum) ──────────────────────────────────
 *
 * Shared shell for any non-landing page. Body gets `class="subpage"` so we
 * reserve room for the always-visible NavBar at the top. The compact
 * `.page-header` block gives just enough visual identity (OPTRIX wordmark +
 * one-word subtitle) without blocking content like the full hero does.
 */

body.subpage {
    /* nav-height (~52px) + safe-area; content starts immediately below */
    padding-top: calc(3.6rem + var(--safe-top));
}

.page-header {
    text-align: center;
    padding: 2.4rem 1.5rem 1.6rem;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

.page-header__title {
    position: relative;
    display: inline-block;
    margin: 0 0 0.55rem;
    line-height: 1;
    font-family: var(--type-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    letter-spacing: 0.06em;
}

.page-header__title > span:first-child {
    position: relative;
    visibility: hidden;   /* reserves layout space */
}

.page-header__title-glow,
.page-header__title-main {
    display: block;
    position: absolute;
    inset: 0;
    color: transparent;
    background-image: linear-gradient(100deg,
        #f8fbff 0%, #dbeafe 18%, #bfdbfe 35%,
        #f8fbff 52%, #ddd6fe 70%, #e0f2fe 100%);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 14px rgba(191, 219, 254, 0.30),
        0 0 22px rgba(59, 130, 246, 0.20);
    animation: heroTitlePulse 9.4s ease-in-out infinite;
}

.page-header__title-glow {
    color: #3b82f6;
    background: none;
    -webkit-text-fill-color: #3b82f6;
    opacity: 0.28;
    filter: blur(11px);
    text-shadow: none;
    animation: heroTitleGlow 11s ease-in-out infinite;
}

.page-header__sub {
    font-family: var(--type-display);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--landing-warm);
    margin: 0;
}

.subpage-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.6rem 1.5rem 4.4rem;
}

/* ── FAQ accordions ────────────────────────────────────────────────────── */

.faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-item {
    border-top: 1px solid var(--ga-card-border);
    padding: 1.4rem 0;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--ga-card-border);
}

.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--type-display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ga-text);
    transition: color 160ms ease;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: "+";
    font-family: var(--type-display);
    font-size: 1.3rem;
    color: var(--landing-warm);
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
    line-height: 1;
}

.faq-item[open] > summary::after {
    content: "−";
}

.faq-item > summary:hover {
    color: var(--landing-warm);
}

.faq-item__body {
    margin-top: 1.1rem;
    color: var(--ga-text);
    font-size: 1.08rem;
    line-height: 1.65;
}

.faq-item__body p {
    margin: 0 0 0.9em;
}

.faq-item__body p:last-child {
    margin-bottom: 0;
}

/* ── Subpage placeholder (Anleitung "Inhalt folgt") ────────────────────── */

.subpage-placeholder {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
    text-align: center;
}

.subpage-placeholder__lead {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-family: var(--type-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--landing-warm);
    margin: 0 0 1.6rem;
}

.subpage-placeholder__lead::before {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: var(--landing-warm);
    box-shadow: 0 0 8px var(--landing-warm);
    animation: ctaSoonBlink 2.4s ease-in-out infinite;
}

.subpage-placeholder__detail {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ga-text-muted);
    margin: 0 auto;
    max-width: 50ch;
}

/* ── Impressum / legal page ────────────────────────────────────────────── */

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.4rem 1.5rem 4rem;
}

.legal-page h1 {
    font-family: var(--type-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.6em;
}

.legal-page .legal-sub {
    color: var(--ga-text-muted);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 0.86rem;
    letter-spacing: 0.24em;
    margin-top: 2.6rem;
    margin-bottom: 0.8em;
    color: var(--landing-warm);
}

.legal-page address {
    font-style: normal;
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 1em;
}

.legal-page p,
.legal-page address {
    color: var(--ga-text);
}

.legal-back {
    display: inline-block;
    margin-top: 3rem;
    font-family: var(--type-display);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-page h3 {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 1.8rem;
    margin-bottom: 0.5em;
    color: var(--ga-text-muted);
}

.legal-page ul {
    padding-left: 1.4em;
    margin: 0.4rem 0 1rem;
}

.legal-page li {
    font-family: var(--type-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ga-text);
    margin-bottom: 0.35em;
}

.legal-page p {
    font-family: var(--type-body);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0.6em 0;
}

.legal-page a {
    color: #60a5fa;
    text-decoration: none;
}

.legal-page a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.legal-page code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88em;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 3px;
    padding: 0.1em 0.35em;
}

.legal-meta {
    font-family: var(--type-body);
    font-size: 0.88rem;
    color: var(--ga-text-muted);
    margin: 0 0 1.6rem;
}

.legal-lang-bar {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-bottom: 2.4rem;
    font-family: var(--type-display);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ga-text-muted);
}

.legal-lang-bar a {
    color: var(--landing-warm);
    text-decoration: none;
}

.legal-lang-bar a:hover {
    color: var(--ga-text);
}

.legal-lang-bar span {
    opacity: 0.4;
}

.legal-divider {
    border: 0;
    height: 1px;
    background: var(--ga-card-border);
    margin: 3.5rem 0;
}

/* ── Guide page (anleitung.html) ───────────────────────────────────────────
 *
 * Editorial tile-catalog layout. Each game element gets a `.guide-tile-row`:
 * prose on one side, paired before/after images on the other. Rows alternate
 * left/right via :nth-of-type for a zig-zag rhythm, collapsing to a single
 * column under 880px. The Farbmischung physics aside uses `.guide-callout`,
 * and the Hindernisse section uses `.guide-obstacle-grid` (image left, list
 * right; image sticks while the reader scrolls the list).
 */

.guide-intro {
    /* re-using .section-about's two-column grid via class composition in HTML */
}

.guide-tile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
    margin-top: 2.4rem;
}

.guide-tile-row + .guide-tile-row {
    margin-top: 3.6rem;
}

/* Zig-zag: even rows put the image first (left), odd rows put the text first. */
.guide-tile-row:nth-of-type(even) .guide-tile-row__text { order: 2; }
.guide-tile-row:nth-of-type(even) .tile-pair          { order: 1; }

.guide-tile-row__text {
    font-family: var(--type-body);
    font-size: 1.06rem;
    line-height: 1.62;
    color: var(--ga-text);
}

.guide-tile-row__text p {
    margin: 0 0 0.9em;
}

.guide-tile-row__text p:last-child {
    margin-bottom: 0;
}

.guide-tile-row__text em {
    font-style: italic;
    color: var(--landing-warm);
}

.guide-tile-row__eyebrow {
    font-family: var(--type-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--landing-warm);
    margin: 0 0 0.9rem;
}

.guide-tile-row__merksatz {
    margin-top: 1.1em;
    padding-top: 0.9em;
    border-top: 1px solid var(--ga-card-border);
    font-size: 0.96rem;
    color: var(--ga-text-muted);
    font-style: italic;
}

/* ── Tile image pair (unlit + lit, side by side) ───────────────────────── */

.tile-pair {
    display: flex;
    gap: 0.9rem;
    align-items: stretch;
}

.tile-pair__fig {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0.4rem;
    border: 1px solid var(--ga-card-border);
    border-radius: 2px;
    background: rgba(13, 17, 23, 0.6);
    transition: box-shadow 220ms ease, border-color 220ms ease;
}

.tile-pair__fig img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1px;
}

.tile-pair__fig figcaption {
    font-family: var(--type-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ga-text-muted);
    margin-top: 0.6rem;
    padding-bottom: 0.1rem;
    text-align: center;
}

.tile-pair__fig.is-lit {
    border-color: rgba(51, 168, 255, 0.35);
    box-shadow: 0 0 22px rgba(51, 168, 255, 0.18);
}

.tile-pair__fig.is-lit figcaption {
    color: var(--ga-accent);
}

/* Single-image variant (Farbmischung, Hindernisse) — same chrome, no flex. */
.tile-pair--single {
    display: block;
    max-width: 360px;
    margin: 0 auto;
}

/* ── Physik-Einschub: additive Farbmischung ────────────────────────────── */

.guide-callout {
    position: relative;
    margin-top: 2.4rem;
    padding: 2.6rem 2rem;
    border: 1px solid var(--landing-warm-dim);
    border-radius: 2px;
    background:
        linear-gradient(135deg, rgba(244, 185, 66, 0.06), rgba(51, 168, 255, 0.04)),
        rgba(13, 17, 23, 0.5);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}

.guide-callout::before {
    content: "Physik";
    position: absolute;
    top: -0.7rem;
    left: 1.6rem;
    padding: 0 0.7rem;
    background: var(--ga-bg);
    font-family: var(--type-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--landing-warm);
}

.guide-callout__body p {
    margin: 0 0 0.9em;
    font-size: 1.04rem;
    line-height: 1.6;
}

.guide-callout__body p:last-child {
    margin-bottom: 0;
}

.guide-callout__body em {
    color: var(--landing-warm);
    font-style: italic;
}

.guide-callout__img {
    margin: 0;
    padding: 0.6rem;
    border: 1px solid var(--ga-card-border);
    border-radius: 2px;
    background: rgba(13, 17, 23, 0.6);
    max-width: 360px;
    justify-self: end;
}

.guide-callout__img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Hindernisse: sticky image + numbered list ─────────────────────────── */

.guide-obstacle-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.8rem;
    align-items: start;
    margin-top: 2.4rem;
}

.guide-obstacle-grid__img {
    margin: 0;
    padding: 0.5rem;
    border: 1px solid var(--ga-card-border);
    border-radius: 2px;
    background: rgba(13, 17, 23, 0.6);
    position: sticky;
    top: calc(3.6rem + 1.4rem + var(--safe-top));
    max-width: 320px;
}

.guide-obstacle-grid__img img {
    width: 100%;
    height: auto;
    display: block;
}

.guide-obstacle-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: obstacle;
}

.guide-obstacle-list li {
    counter-increment: obstacle;
    position: relative;
    padding: 0 0 1.4rem 3.2rem;
    margin: 0 0 1.4rem;
    border-bottom: 1px solid var(--ga-card-border);
    font-family: var(--type-body);
    font-size: 1.04rem;
    line-height: 1.6;
    color: var(--ga-text);
}

.guide-obstacle-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.guide-obstacle-list li::before {
    content: counter(obstacle, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.05em;
    font-family: var(--type-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--landing-warm);
}

.guide-obstacle-list strong {
    font-family: var(--type-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ga-text);
    display: block;
    margin-bottom: 0.35em;
}

.guide-obstacle-list em {
    color: var(--landing-warm);
    font-style: italic;
}

/* ── Guide-specific responsive ─────────────────────────────────────────── */

@media (max-width: 880px) {
    .guide-tile-row {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    /* On mobile, image always appears below the heading/text for reading flow. */
    .guide-tile-row:nth-of-type(even) .guide-tile-row__text { order: 1; }
    .guide-tile-row:nth-of-type(even) .tile-pair          { order: 2; }
    .guide-tile-row + .guide-tile-row { margin-top: 2.4rem; }

    .guide-callout {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        padding: 2.2rem 1.4rem 1.6rem;
    }
    .guide-callout__img { justify-self: center; max-width: 280px; }

    .guide-obstacle-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .guide-obstacle-grid__img {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .tile-pair {
        flex-direction: column;
        gap: 0.7rem;
    }
    .guide-callout { padding: 1.8rem 1.1rem 1.4rem; }
}
