/* WiLD WiLD WEST - THE CLEANSING (Teaser)
   Stil wie das Spiel-UI "Eisen & Messing": echte Kit-Texturen aus
   resources/[wildwest]/wildwest-ui/kit, Slice-Werte wie im Theme. */

@font-face { font-family: 'League Gothic'; src: url('../fonts/league-gothic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    /* Farben aus dem HUD-Entwurf */
    --bone: #e9e1cf; --soft: #d8cfbd; --dim: #a9a293; --amber: #f4a33a; --red: #e0604f;
    --engrave: #2a1b0b; --engrave-hi: rgba(255, 226, 168, .42);
    --grund: #0e0b09;
    --shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .85);

    --f-plakat: 'League Gothic', 'Arial Narrow', Impact, sans-serif;
    --f-text: 'Old Standard TT', Georgia, 'Times New Roman', serif;

    --kopf-h: 62px;
    --rand: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: var(--kopf-h); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; overflow-x: hidden;
    background: var(--grund); color: var(--soft);
    font: 400 1.125rem/1.7 var(--f-text);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
[lang="en"] { font-style: italic; }

.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Bausteine                                                           */
/* ------------------------------------------------------------------ */

/* League Gothic hat keinen Kursivschnitt - nie kuenstlich neigen */
.plakat, .schild, .tag, .knopf, .warnung, .funk-kopf .klein { font-style: normal; font-synthesis: none; }

/* Plakatschrift (im Spiel "WW Rocks") */
.plakat {
    font-family: var(--f-plakat); text-transform: uppercase;
    letter-spacing: .04em; line-height: 1.02; color: var(--bone);
    text-shadow: var(--shadow);
}

/* Platte: panel_wide.webp (Web: 800x416, Slice 85 - Original 1600x832, Slice 170) */
.platte {
    border: 30px solid transparent;
    border-image: url('../img/kit/panel_wide.webp') 85 fill / 30px stretch;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6));
}

/* Leiste: slot.webp 1024x153, Slice 40/60 */
.leiste {
    border: 1px solid transparent;
    border-image: url('../img/kit/slot.webp') 40 60 fill / 13px 22px stretch;
}

/* Messingschild mit Gravur: nameplate.webp 1024x161, Slice 30/80 */
.schild {
    display: inline-block; border: 1px solid transparent;
    border-image: url('../img/kit/nameplate.webp') 30 80 fill / 12px 32px stretch;
    padding: .34em 1.6em .22em;
    font-family: var(--f-plakat); text-transform: uppercase; letter-spacing: .08em; line-height: 1.1;
    color: var(--engrave); text-shadow: 0 1px 0 var(--engrave-hi);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55));
}

/* Anhaenger: tag.webp 512x124, Slice 20/70/20/24 */
.tag {
    display: inline-block; margin: 0 0 1.1rem; border: 1px solid transparent;
    border-image: url('../img/kit/tag.webp') 20 70 20 24 fill / 6px 22px 6px 8px stretch;
    padding: .28em 2.1em .16em .9em;
    font-family: var(--f-plakat); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .1em; line-height: 1.2;
    color: var(--engrave); text-shadow: 0 1px 0 var(--engrave-hi);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6));
}

/* Zierleiste: divider.webp 1024x60 */
.trenner {
    height: 30px; width: min(520px, 90%); margin: 0 auto;
    background: url('../img/kit/divider.webp') center / contain no-repeat;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .7));
}

/* Knoepfe: Warnplatte (button.webp, Web: 512x167, Slice 55/50) und Leiste */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 58px; padding: .2em 1.6em 0;
    font-family: var(--f-plakat); font-size: 1.55rem; text-transform: uppercase; letter-spacing: .08em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    background: none; border-width: 1px; border-style: solid; border-color: transparent;
    transition: filter .15s ease, transform .06s ease;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55));
}
.knopf:hover { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)) brightness(1.14); }
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.knopf.warn {
    border-image: url('../img/kit/button.webp') 55 50 fill / 17px 16px stretch;
    padding: .25em 1.7em .05em; min-height: 62px;
    color: #1d2024; text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
}
.knopf.leiste {
    border-image: url('../img/kit/slot.webp') 40 60 fill / 13px 22px stretch;
    color: var(--bone); text-shadow: var(--shadow);
}
.knopf[aria-disabled="true"] { cursor: default; opacity: .78; }
.knopf[aria-disabled="true"]:hover { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.knopf .symbol { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; margin-top: -.12em; }

/* Lampe: lamp_off/amber/red.webp 192x192 */
.lampe {
    position: relative; display: inline-block; flex: none;
    width: 34px; height: 34px;
    background: url('../img/kit/lamp_off.webp') center / contain no-repeat;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
.lampe::after {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: center / contain no-repeat; transition: opacity .3s ease;
}
.lampe.gruen::after, .lampe.amber::after { background-image: url('../img/kit/lamp_amber.webp'); opacity: 1; }
.lampe.rot::after { background-image: url('../img/kit/lamp_red.webp'); opacity: 1; }
.lampe.blinkt::after { animation: blinken 1.6s steps(1, end) infinite; }
@keyframes blinken { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* Roehre mit Glut: tube.webp 1024x186, Slice 40/200/44 (wie HUD) */
.balken {
    position: relative; flex: 1; height: 34px;
    border-style: solid; border-color: transparent; border-width: 7px 34px 8px;
    border-image: url('../img/kit/tube.webp') 40 200 44 fill / 7px 34px 8px stretch;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6));
}
.balken i {
    position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%);
    background: url('../img/kit/tube_glow.webp') left center / 640px 100% no-repeat;
    box-shadow: 0 0 9px rgba(255, 140, 30, .45);
    transition: width .25s linear;
}

/* Einblenden beim Scrollen */
.auftauchen { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.auftauchen.da { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Kopfleiste (wie im Spiel oben)                                      */
/* ------------------------------------------------------------------ */

.kopf {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-h);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 calc(var(--rand) - 6px);
    border-image-width: 14px 22px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.kopf-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.kopf-logo img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.kopf-logo span { font-family: var(--f-plakat); font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bone); text-shadow: var(--shadow); }
.kopf-status {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: .3em 1.9em .18em; font-size: 1.35rem; white-space: nowrap;
}
.kopf-status .lampe { width: 26px; height: 26px; margin-top: -2px; }
.kopf-status .trennstrich { opacity: .45; }
.kopf .knopf { min-height: 44px; font-size: 1.2rem; padding: .15em 1.1em 0; }
.kopf .knopf.warn { border-image-width: 12px 11px; min-height: 46px; }

/* ------------------------------------------------------------------ */
/* Titelbild                                                           */
/* ------------------------------------------------------------------ */

.hero {
    position: relative; isolation: isolate;
    min-height: 100vh; min-height: 100svh;
    display: flex; overflow: hidden;
    padding: calc(var(--kopf-h) + 4vh) var(--rand) 7vh;
}
.hero-bild, .hero-bild img {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
    object-fit: cover; object-position: 50% 60%;
}
.hero-bild img { animation: heranfahren 40s ease-out both; }
@keyframes heranfahren { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, .45) 0, transparent 22%, transparent 55%, rgba(14, 11, 9, .8) 88%, var(--grund) 100%);
}

.hero-inhalt { position: relative; display: flex; flex-direction: column; }
.hero .logo { width: min(640px, 34vw); height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .65)); }
.hero h1 { line-height: 0; }
.hero .titel { font-size: clamp(1.6rem, 2.3vw, 2.3rem); margin: -.1em 0 0; }
.hero .unterzeile {
    margin: .9rem 0 0; font-family: var(--f-plakat); font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    letter-spacing: .16em; text-transform: uppercase; color: var(--bone); text-shadow: var(--shadow);
}
.kernzeile {
    margin: 1.4rem 0 0; max-width: 34ch;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem); line-height: 1.45; color: var(--bone);
    text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, .9);
}
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 2rem; }

/* Lage A: links oben im Himmel */
.hero[data-lage="links"] .hero-inhalt { align-items: flex-start; text-align: left; }
.hero[data-lage="links"] .titel { align-self: flex-start; margin-left: 4%; }
.hero[data-lage="links"]::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 55% at 18% 30%, rgba(0, 0, 0, .42), transparent 70%);
}

/* Lage B: mittig unten */
.hero[data-lage="unten"] { align-items: flex-end; justify-content: center; }
.hero[data-lage="unten"] .hero-inhalt { align-items: center; text-align: center; }
.hero[data-lage="unten"] .kernzeile { max-width: 44ch; }
.hero[data-lage="unten"] .knoepfe { justify-content: center; }

/* Lage C: rechts oben */
.hero[data-lage="rechts"] { justify-content: flex-end; }
.hero[data-lage="rechts"] .hero-inhalt { align-items: center; text-align: center; }
.hero[data-lage="rechts"] .knoepfe { justify-content: center; }
.hero[data-lage="rechts"]::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(55% 60% at 80% 32%, rgba(0, 0, 0, .45), transparent 70%);
}

.runter {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    width: 44px; height: 44px; opacity: .8;
    background: url('../img/kit/socket.webp') center / contain no-repeat;
    display: grid; place-items: center; text-decoration: none;
    color: var(--amber); font: 1rem/1 var(--f-plakat);
    animation: wippen 2.4s ease-in-out infinite;
}
.runter:hover { opacity: 1; }
@keyframes wippen { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ------------------------------------------------------------------ */
/* Abschnitte allgemein                                                */
/* ------------------------------------------------------------------ */

.abschnitt { position: relative; padding: clamp(72px, 10vw, 140px) var(--rand); }
.abschnitt h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 1.4rem; }
.eisen {
    background:
        linear-gradient(rgba(14, 11, 9, .86), rgba(14, 11, 9, .86)),
        url('../img/eisen-kachel.webp') 0 0 / 780px repeat;
}
.eisen::before, .eisen::after {
    content: ""; position: absolute; left: 0; right: 0; height: 90px; pointer-events: none;
}
.eisen::before { top: 0; background: linear-gradient(var(--grund), transparent); }
.eisen::after { bottom: 0; background: linear-gradient(transparent, var(--grund)); }

/* ------------------------------------------------------------------ */
/* Funkspruch                                                          */
/* ------------------------------------------------------------------ */

.funk { text-align: center; }
.funk-platte { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 22px clamp(8px, 3vw, 34px) 18px; text-align: left; }
.funk-kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 1.2rem; }
.funk-kopf .lampe { width: 46px; height: 46px; }
.funk-kopf .klein { margin: 0; font-family: var(--f-plakat); font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .06em; text-transform: uppercase; color: var(--bone); line-height: 1.05; text-shadow: var(--shadow); }
.funk-kopf .datum { margin: .35rem 0 0; font-size: 1rem; line-height: 1.3; color: var(--dim); }
.funk-text { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.funk-text li {
    margin: 0 0 .7rem; font-style: italic; padding-left: 1.1rem; border-left: 2px solid rgba(244, 163, 58, .25);
    font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--soft);
    transition: color .3s ease, border-color .3s ease, opacity .3s ease;
}
.funk.laeuft .funk-text li { opacity: .45; }
.funk.laeuft .funk-text li.jetzt { opacity: 1; color: var(--bone); border-color: var(--amber); }
.funk-player { display: flex; align-items: center; gap: 16px; }
.funk-player .knopf { min-width: 170px; }
.funk-player .zeit { font-family: var(--f-plakat); font-size: 1.35rem; color: var(--dim); min-width: 3.2em; text-align: right; }

.warnung {
    margin: clamp(56px, 8vw, 96px) 0 .6rem;
    font-family: var(--f-plakat); font-style: normal; text-transform: uppercase;
    font-size: clamp(2.6rem, 8.2vw, 7.4rem); line-height: .95; letter-spacing: .03em;
    color: var(--bone);
    text-shadow: 0 2px 3px #000, 0 0 28px rgba(224, 96, 79, .28);
}
.warnung.da { animation: flackern 1.6s steps(1, end) 1; }
@keyframes flackern {
    0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .2; } 18% { opacity: 1; }
    40% { opacity: .75; } 44% { opacity: 1; } 100% { opacity: 1; }
}
.funk .erklaerung { max-width: 46ch; margin: 0 auto; color: var(--dim); }

/* ------------------------------------------------------------------ */
/* Welt und Fraktionen                                                 */
/* ------------------------------------------------------------------ */

.welt { overflow: hidden; isolation: isolate; }
.welt-bild, .welt-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.welt::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(14, 11, 9, .96) 0, rgba(14, 11, 9, .82) 42%, rgba(14, 11, 9, .35) 75%, rgba(14, 11, 9, .55) 100%),
        linear-gradient(var(--grund), transparent 18%, transparent 70%, var(--grund));
}
.welt-text { max-width: 620px; }
.welt-text p { color: var(--soft); text-shadow: 0 1px 2px #000; }
.motto { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: .6rem; }
.fraktionen {
    list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.fraktionen li { padding: 6px 8px 0; }
.fraktionen h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: .5rem; }
.fraktionen p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--soft); }
.fraktionen .lampe { float: right; width: 30px; height: 30px; margin: 2px 0 0 10px; }

/* ------------------------------------------------------------------ */
/* Cleansing Zone (Watcher)                                            */
/* ------------------------------------------------------------------ */

.zone { min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.zone-bild, .zone-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 22%; z-index: -2; }
.zone::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 10, 14, .9) 0, rgba(8, 10, 14, .62) 38%, transparent 62%),
        linear-gradient(var(--grund), transparent 7%, transparent 82%, var(--grund));
}
.zone-text { max-width: 560px; }
.zone-text p { text-shadow: 0 1px 2px #000; }
.tag.rot { color: #3a0d08; }
.zone .hinweis {
    margin-top: 1.8rem; padding: .9rem 1.3rem .6rem;
    font-size: 1.05rem; color: var(--bone);
}

/* ------------------------------------------------------------------ */
/* Akte                                                                */
/* ------------------------------------------------------------------ */

.akte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.akte-bild { margin: 0; justify-self: end; width: min(520px, 100%); }
.akte-bild img { width: 100%; transform: rotate(-2.5deg); filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .7)) drop-shadow(0 4px 5px rgba(0, 0, 0, .6)); }
.akte-text { max-width: 520px; }

/* ------------------------------------------------------------------ */
/* Einreise / Abschluss                                                */
/* ------------------------------------------------------------------ */

.einreise { min-height: 88vh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.einreise-bild, .einreise-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.einreise::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(var(--grund), rgba(14, 11, 9, .55) 30%, rgba(14, 11, 9, .7) 70%, var(--grund));
}
.einreise .siegel { width: 150px; margin: 0 auto 1.6rem; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.einreise p { max-width: 40ch; margin: 0 auto; color: var(--bone); text-shadow: 0 1px 2px #000; }
.einreise .knoepfe { justify-content: center; }

/* ------------------------------------------------------------------ */
/* Fuss                                                                */
/* ------------------------------------------------------------------ */

.fuss { padding: 40px var(--rand) 48px; text-align: center; color: var(--dim); font-size: .95rem; }
.fuss .trenner { margin-bottom: 26px; }
.fuss nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 .8rem; font-family: var(--f-plakat); font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; }
.fuss nav a { color: var(--bone); text-decoration: none; }
.fuss nav a:hover { color: var(--amber); }
.fuss p { margin: .2rem 0; }

/* ------------------------------------------------------------------ */
/* Textseiten (Impressum, Datenschutz)                                 */
/* ------------------------------------------------------------------ */

body.eisen { position: relative; }
.textseite { max-width: 820px; margin: 0 auto; padding: calc(var(--kopf-h) + 56px) var(--rand) 40px; }
.textseite h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 1.6rem; }
.textseite h2 { font-family: var(--f-plakat); font-size: 1.9rem; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; color: var(--bone); margin: 2.2rem 0 .6rem; }
/* Lange Textplatte: nur der Rahmen aus panel_wide (Kanten wiederholt),
   Flaeche aus der nahtlosen Eisenkachel - gestreckt gaebe es Schlieren */
.textseite .platte {
    padding: 8px 10px 0;
    border-image: url('../img/kit/panel_wide.webp') 85 / 30px round;
    background:
        linear-gradient(rgba(24, 17, 12, .5), rgba(24, 17, 12, .5)),
        url('../img/eisen-kachel.webp') 0 0 / 520px repeat;
    background-clip: padding-box;
}
.textseite a { color: var(--amber); }
.fehlt { background: rgba(224, 96, 79, .18); color: #ffb3a8; padding: 0 .3em; }

/* ------------------------------------------------------------------ */
/* Schmale Bildschirme                                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
    .fraktionen { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 900px) {
    .kopf-logo span { display: none; }
    .akte { grid-template-columns: 1fr; }
    .akte-bild { justify-self: center; width: min(420px, 92%); }
    .akte-text { justify-self: center; }
}

@media (max-width: 760px) {
    :root { --kopf-h: 56px; }
    body { font-size: 1.06rem; }
    .kopf .knopf { display: none; }
    .kopf-status { position: static; transform: none; font-size: 1.15rem; padding: .28em 2em .16em; margin-left: auto; }
    .kopf-status .lampe { width: 22px; height: 22px; }
    .kopf-status .zusatz { display: none; }

    .funk-player { flex-wrap: wrap; }
    .funk-player .knopf { flex: 1 1 100%; }
    .platte { border-width: 22px; border-image-width: 22px; }
    /* hohe Platten: panel.webp statt panel_wide (sonst Schlieren) */
    .funk-platte { border-image-source: url('../img/kit/panel.webp'); border-image-slice: 90 fill; }

    .zone { align-items: flex-end; min-height: 100svh; }
    .zone-bild img { object-position: 78% 50%; }
    .zone::after { background: linear-gradient(var(--grund), transparent 18%, transparent 35%, rgba(8, 10, 14, .92) 70%, var(--grund)); }

    .welt::after { background: linear-gradient(var(--grund), rgba(14, 11, 9, .8) 20%, rgba(14, 11, 9, .88) 80%, var(--grund)); }
}


/* Querformat schmaler als 16:9 (16:10, iPad quer): Bild von links beschneiden,
   damit die Maschine vom Text wegrueckt; Abdunklung hinter dem Text staerker */
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 17/10) {
    .hero-bild img { object-position: 78% 60%; }
    .hero[data-lage="rechts"]::before {
        background: radial-gradient(52% 62% at 82% 36%, rgba(0, 0, 0, .58), transparent 72%);
    }
    .hero .logo { width: min(600px, 32vw); }
}

/* Fast quadratisch (iPad quer, 4:3): Reiter links behalten, Inhalt kompakter */
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 3/2) {
    .hero-bild img { object-position: 40% 60%; }
    .hero .logo { width: 31vw; }
    .hero .knoepfe { gap: 10px 12px; margin-top: 1.5rem; }
    .hero .knopf { font-size: 1.3rem; min-height: 50px; padding-left: 1.1em; padding-right: 1.1em; }
    .hero .knopf.warn { min-height: 52px; }
    .hero .kernzeile { font-size: 1.1rem; }
}

/* Hochformat und schmale Fenster: Logo oben, Reiter frei, Kernzeile und Knoepfe unten */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
    .hero, .hero[data-lage] { align-items: stretch; justify-content: center; padding: calc(var(--kopf-h) + 2.5vh) var(--rand) 22px; }
    .hero[data-lage]::before { display: none; }
    .hero[data-lage] .hero-inhalt { align-items: center; text-align: center; width: 100%; }
    .hero[data-lage] .titel { align-self: center; margin-left: 0; }
    .hero-bild img { object-position: 50% 100%; }
    .hero .logo { width: min(92vw, 560px); }
    .hero .kernzeile { margin-top: auto; }
    .hero .knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 540px); margin-top: 1.1rem; }
    .hero .knopf { font-size: 1.3rem; min-height: 52px; padding-left: .6em; padding-right: .6em; }
    .hero .knopf.warn { min-height: 54px; }
    .hero::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 0, transparent 24%, transparent 80%, rgba(14, 11, 9, .85) 90%, var(--grund) 100%);
    }
    .runter { display: none; }
}

/* Handys hochkant: Bild endet ueber Kernzeile und Knoepfen */
@media (max-aspect-ratio: 3/5) {
    .hero-bild { bottom: auto; height: 86%; }
    .hero::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 0, transparent 24%, transparent 62%, rgba(14, 11, 9, .88) 78%, var(--grund) 86%);
    }
}

@media (max-width: 480px) {
    .zusatzwort:not(.bleibt) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .auftauchen { opacity: 1; transform: none; }
}
