/* OMSI 2 Los Angeles – Startseite (Aufbau wie omsi-nyc.de, LA-Teile in la.css) */

@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("assets/fonts/Gilroy-BlackItalic.ttf") format("truetype"); font-weight: 900; font-style: italic; font-display: swap; }
/* gleiche Datei, aber feste Zeilenmetrik (hhea), damit Sterne/Streifen im Schriftzug in jedem Browser gleich sitzen */
@font-face { font-family: "Gilroy Titel"; src: url("assets/fonts/Gilroy-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; ascent-override: 77.3%; descent-override: 22.7%; line-gap-override: 0%; }

:root {
    --orange: #ec7c24;
    --orange-hell: #ff9a45;
    --nacht: #090c18;
    --text: #ffffff;
    --text-leise: rgba(255, 255, 255, 0.78);
    --discord: #5865f2;
    --discord-hell: #6f79ff;
    --discord-tief: #3f48b8;
    --rand: clamp(20px, 5vw, 96px);
}

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

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--nacht);
    color: var(--text);
    font-family: "Gilroy", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

/* ---------- Bühne: Bild links, Inhalt rechts ---------- */

.buehne {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(28px, 6vh, 72px) var(--rand);
    overflow: hidden;
}

.bild {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hintergrund {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 34% 50%;
    animation: heranfahren 22s cubic-bezier(.2, .6, .2, 1) both;
}

.schleier {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(9, 12, 24, 0) 0%,
            rgba(9, 12, 24, 0.10) 30%,
            rgba(9, 12, 24, 0.62) 52%,
            rgba(9, 12, 24, 0.88) 72%,
            rgba(9, 12, 24, 0.94) 100%),
        linear-gradient(0deg, rgba(9, 12, 24, 0.75) 0%, rgba(9, 12, 24, 0) 32%),
        linear-gradient(180deg, rgba(9, 12, 24, 0.45) 0%, rgba(9, 12, 24, 0) 22%);
}

.inhalt {
    width: min(660px, 47vw);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.inhalt > * { animation: auftauchen .9s cubic-bezier(.2, .7, .2, 1) both; }
.inhalt > :nth-child(2) { animation-delay: .08s; }
.inhalt > :nth-child(3) { animation-delay: .16s; }
.inhalt > :nth-child(4) { animation-delay: .24s; }
.inhalt > :nth-child(5) { animation-delay: .32s; }
.inhalt > :nth-child(6) { animation-delay: .40s; }

/* ---------- Titel ---------- */

.titel {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2px, .6vw, 10px);
    line-height: 1;
}

.logo {
    width: clamp(180px, min(21vw, 30vh), 360px);
    height: auto;
    margin-left: -0.6%;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
}

/* Schriftzug wie im Cover: NEW blau mit Sternen, YORK rot-weiß gestreift, nicht gemischt.
   Maße in em an der Versalhöhe (0,7 em): Versaloberkante 0,033 em, Grundlinie 0,733 em unter der Boxkante. */
.ny {
    display: inline-block;
    font-family: "Gilroy Titel", "Gilroy", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(50px, min(6.8vw, 11.5vh), 124px);
    letter-spacing: -0.012em;
    line-height: .92;
    text-transform: uppercase;
    white-space: nowrap;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .28)) drop-shadow(0 10px 24px rgba(0, 0, 0, .5));
}

.ny-new,
.ny-york {
    display: inline-block;
    padding: 0 .02em .04em 0;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sternreihen wie im Cover: Abstand 23,5 % der Versalhöhe, Sterne ≈ 22 % hoch, versetzt */
.ny-new {
    background-color: #002664;
    background-image: url("assets/img/sterne.svg");
    background-position: .02em .0183em;
    background-size: .378em .329em;
    background-repeat: repeat;
}

/* Streifen wie im Cover: rot bis 25 %, weiß bis 62,5 %, darunter rot (Anteile der Versalhöhe) */
.ny-york {
    background-image: linear-gradient(to bottom, #bb133e 0 .208em, #fff .208em .471em, #bb133e .471em);
}

.unterzeile {
    margin: clamp(10px, 1.8vh, 20px) 0 0;
    font-size: clamp(16px, min(1.3vw, 2.3vh), 21px);
    font-weight: 600;
    color: var(--text-leise);
}

/* ---------- Merkmale als Linienband mit Haltestellen ---------- */

.linie {
    list-style: none;
    margin: clamp(18px, 3.4vh, 36px) 0 0;
    padding: 0;
    position: relative;
}

.linie::before {                       /* durchgehende Linie */
    content: "";
    position: absolute;
    left: 7px;
    top: .7em;
    bottom: .7em;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(var(--orange), var(--orange-hell));
}

.linie li {
    position: relative;
    padding-left: 36px;
    font-size: clamp(15px, min(1.2vw, 2.2vh), 20px);
    line-height: 1.38;
    color: var(--text-leise);
}

.linie li + li { margin-top: clamp(8px, 1.5vh, 16px); }

.linie li::before {                    /* Haltestelle */
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--nacht);
    border: 4px solid var(--orange);
    box-shadow: 0 0 0 3px rgba(9, 12, 24, .9);
}

.linie strong {
    color: var(--text);
    font-weight: 800;
}

/* ---------- Coming soon ---------- */

.bald {
    margin: clamp(20px, 4vh, 44px) 0 0;
    font-size: clamp(40px, min(4.9vw, 9vh), 92px);
    white-space: nowrap;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: .95;
    text-shadow: 0 6px 26px rgba(0, 0, 0, .55);
}

.bald::after {                         /* Tempostreifen wie im OMSI-Logo */
    content: "";
    display: block;
    width: 3.4em;
    height: .16em;
    margin-top: .16em;
    font-size: .5em;
    background: repeating-linear-gradient(180deg, var(--orange) 0 2px, transparent 2px 4px);
    transform: skewX(-18deg);
    transform-origin: left;
}

/* ---------- Discord ---------- */

.mitmachen {
    margin-top: clamp(18px, 3.6vh, 36px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.mitmachen p {
    margin: 0;
    font-size: clamp(17px, 1.3vw, 21px);
    font-weight: 700;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 56px;
    padding: 14px 28px 14px 24px;
    border-radius: 999px;
    background: var(--discord);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--discord-tief), 0 12px 26px rgba(0, 0, 0, .45);
    transition: background-color .2s ease, transform .15s ease, box-shadow .15s ease;
}

.discord-button:hover {
    background: var(--discord-hell);
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--discord-tief), 0 16px 30px rgba(0, 0, 0, .5);
}

.discord-button:active {
    background: #4752c4;
    transform: translateY(5px);
    box-shadow: 0 1px 0 #303899, 0 5px 10px rgba(0, 0, 0, .35);
}

.discord-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.discord-logo {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    fill: currentColor;
}

/* ---------- Erste Eindrücke (unter dem Discord-Knopf, Vorschaubilder setzt startseite.js) ---------- */

.eindruecke {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    min-height: 56px;
    margin-top: clamp(16px, 2.8vh, 26px);
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(9, 12, 24, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.eindruecke.mit-bildern { padding-left: 8px; }
.eindruecke:hover { border-color: var(--orange); background: rgba(236, 124, 36, .14); }
.eindruecke:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.eindruecke-bilder { display: flex; flex: 0 0 auto; }
.eindruecke-bilder:empty { display: none; }

.eindruecke-bilder img {
    width: 58px;
    height: 38px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid var(--nacht);
    background: #05070f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}

.eindruecke-bilder img + img { margin-left: -22px; }

.eindruecke-pfeil {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-left: auto;
    fill: none;
    stroke: var(--orange);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.eindruecke:hover .eindruecke-pfeil { transform: translateX(4px); }

/* ---------- Sprachschalter DE | EN (Pille mit gleitendem Knopf, oben rechts) ---------- */

.sprache {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: var(--rand);
    z-index: 5;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 999px;
    background: rgba(9, 12, 24, .6);
    border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.sprache[hidden] { display: none; }

.sprache::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    transition: transform .25s cubic-bezier(.3, .7, .2, 1);
}

html[lang="en"] .sprache::before { transform: translateX(100%); }

.sprache-wahl {
    position: relative;
    z-index: 1;
    min-width: 44px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: rgba(255, 255, 255, .8);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
    transition: color .2s ease;
}

.sprache-wahl:hover { color: #fff; }
.sprache-wahl[aria-pressed="true"] { color: #0b0f1e; }
.sprache-wahl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- schmale Fenster: Bild oben, Text darunter ---------- */

@media (max-width: 900px) {
    .buehne {
        display: block;
        min-height: 0;
        padding: 0 0 48px;
    }

    .bild {
        position: relative;
        height: 54svh;
        min-height: 300px;
        max-height: 560px;
    }

    .hintergrund { object-position: 38% 50%; }

    .schleier {
        inset: -1px 0 -1px 0;
        background:
            linear-gradient(0deg, var(--nacht) 0%, rgba(9, 12, 24, .55) 30%, rgba(9, 12, 24, 0) 60%),
            linear-gradient(180deg, rgba(9, 12, 24, .5) 0%, rgba(9, 12, 24, 0) 25%);
    }

    .inhalt {
        width: auto;
        margin-top: -86px;
        padding: 0 var(--rand);
        position: relative;
    }

    .logo { width: clamp(180px, 52vw, 300px); }
    .ny { font-size: clamp(50px, 14vw, 96px); }
    .bald { font-size: clamp(36px, 11vw, 72px); white-space: normal; }

    .mitmachen {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 420px;
    }

    .discord-button { width: 100%; }

    .eindruecke { width: 100%; max-width: 420px; }
    .eindruecke-bilder img { width: 46px; height: 30px; }
    .eindruecke-bilder img + img { margin-left: -18px; }
}

/* ---------- Bewegung ---------- */

@keyframes heranfahren {
    from { transform: scale(1.07); }
    to   { transform: scale(1); }
}

@keyframes auftauchen {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hintergrund,
    .inhalt > * { animation: none; }
    .discord-button,
    .eindruecke,
    .eindruecke-pfeil,
    .sprache::before { transition: none; }
}

/* nur für Vorleseprogramme und Suchmaschinen (Überschrift „OMSI 2 New York Map Addon“) */
.nur-vorlesen {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
