/* ==========================================
   STARTSEITE
========================================== */

.index-page {
    width: 100%;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(8, 10, 12, .18) 0%,
            rgba(8, 10, 12, .20) 45%,
            rgba(8, 10, 12, .45) 100%
        ),
        url("/assets/backgrounds/startscreen.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* ==========================================
   STARTSEITE - HERO
========================================== */

.start-hero {
    width: 100%;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px var(--page-padding) 90px;
}

.start-hero__content {
    width: 100%;
    max-width: 760px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    transform: translateY(-70px);
}

.start-hero__logo {
    width: min(560px, 46vw);
    height: auto;

    display: block;

    filter:
        drop-shadow(0 0 15px rgba(0, 0, 0, .5))
        drop-shadow(0 0 35px rgba(0, 0, 0, .4));
}

.start-hero__text {
    margin: 45px 0 35px;

    color: rgba(255, 255, 255, .92);

    font-size: 21px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;

    text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.start-hero__button {
    min-width: 340px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 36px;

    color: #1d1a12;
    text-decoration: none;
    text-transform: uppercase;

    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1;

    background: linear-gradient(180deg, #f7d36c 0%, #c89a2a 100%);
    border: none;
    border-radius: 6px;

    box-shadow:
        0 0 24px rgba(243, 200, 91, .22),
        0 4px 15px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .4);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;

    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.start-hero__button:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);

    box-shadow:
        0 0 28px rgba(243, 200, 91, .28),
        0 6px 18px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .48);
}


/* ==========================================
   INTRO MODAL - BASIS
   Bereinigt: alter Basisblock + Overrideblock wurden zusammengeführt.
========================================== */

body.intro-is-open {
    overflow: hidden;
}

.intro-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 32px;
}

.intro-modal.active {
    display: flex;
}

.intro-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(5px);
}

.intro-window {
    position: relative;
    z-index: 2;

    width: min(980px, 100%);
    min-height: 520px;
    max-height: 86vh;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);

    background: #06111b;
    border: 1px solid #d8a43f;
    border-radius: 8px;

    box-shadow: 0 30px 90px rgba(0, 0, 0, .75);
    overflow: hidden;
}

.intro-window::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 3;

    border: 1px solid rgba(216, 159, 63, .28);
    border-radius: 6px;

    pointer-events: none;
}

.intro-media {
    min-width: 0;
    min-height: 0;
    margin: 0;
}

.intro-image {
    width: 100%;
    height: 100%;
    min-height: 520px;

    display: block;
    object-fit: cover;
}

.intro-content {
    position: relative;
    z-index: 4;

    min-height: 520px;
    padding: 54px 48px 48px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #e8edf2;
    background: #06111b;
}

.intro-year {
    display: block;

    margin-bottom: 16px;

    color: #d8a43f;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.intro-content h2 {
    min-height: 96px;
    margin: 0 0 20px;

    display: flex;
    align-items: flex-start;

    color: #f4f0e8;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.15;
}

.intro-content p {
    min-height: 155px;
    margin: 0 0 32px;

    display: block;

    color: rgba(232, 237, 242, .84);
    font-size: 16px;
    line-height: 1.75;
}

.intro-next {
    align-self: flex-start;

    width: 285px;
    max-width: 100%;
    min-width: 220px;
    height: 46px;
    margin-top: 0;
    padding: 0 24px;

    color: #15100a;

    background: linear-gradient(180deg, #f1c85e 0%, #d89f3f 100%);
    border: 1px solid rgba(255, 221, 132, .45);
    border-radius: 4px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .38);

    cursor: pointer;
}

.intro-next:hover {
    filter: brightness(1.08);
}

.intro-next:active {
    transform: translateY(1px);
}

.intro-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;

    width: 34px;
    height: 34px;

    color: #f2d486;
    font-size: 20px;
    line-height: 1;

    background: #06111b;
    border: 1px solid #d8a43f;
    border-radius: 4px;

    cursor: pointer;
}

.intro-close:hover {
    color: #fff3c4;
    background: rgba(216, 159, 63, .12);
    border-color: rgba(242, 212, 134, .85);
}


/* ==========================================
   STARTSEITE - RESPONSIVE
========================================== */

@media (max-width: 1100px) {
    .start-hero__content {
        transform: translateY(-45px);
    }

    .start-hero__logo {
        width: min(520px, 58vw);
    }
}

@media (max-width: 800px) {
    .start-hero {
        padding: 50px 24px 70px;
    }

    .start-hero__content {
        transform: translateY(-25px);
    }

    .start-hero__logo {
        width: min(460px, 78vw);
    }

    .start-hero__text {
        margin: 34px 0 28px;
        font-size: 18px;
    }

    .start-hero__button {
        width: 90vw;
        max-width: 360px;
        min-width: 0;

        font-size: 13px;
        letter-spacing: 1.2px;
    }
}

@media (max-width: 900px) {
    .index-page {
        min-height: calc(100svh - var(--header-height));
        padding: 34px 14px;
        overflow: visible;
    }

    .start-hero {
        width: 100%;
        min-height: auto;
        padding: 34px 14px 44px;
    }

    .start-hero__content {
        width: 100%;
        max-width: 620px;
        transform: none;
    }

    .start-hero__logo {
        width: min(460px, 92vw);
    }

    .start-hero__text {
        margin: 28px 0 24px;
        font-size: 17px;
        line-height: 1.65;
    }

    .start-hero__button {
        width: min(100%, 360px);
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .intro-modal {
        align-items: center;
        justify-content: center;
        padding: 12px;
    }

    .intro-window {
        width: 100%;
        max-width: 460px;
        height: auto;
        min-height: 0;
        max-height: calc(100vh - 24px);

        display: flex;
        flex-direction: column;
        grid-template-columns: none;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .intro-window::before {
        inset: 8px;
        border-radius: 6px;
    }

    .intro-media {
        width: 100%;
        height: 190px;
        min-height: 190px;
        max-height: 190px;

        display: block;
        flex: 0 0 190px;

        overflow: hidden;
        border-bottom: 1px solid rgba(216, 159, 63, .35);
    }

    .intro-image {
        width: 100%;
        height: 100%;
        min-height: 0;

        object-fit: cover;
        object-position: center center;
    }

    .intro-content {
        width: 100%;
        min-height: 0;
        padding: 28px 24px 26px;

        align-items: stretch;
        justify-content: flex-start;

        background:
            linear-gradient(180deg, rgba(5, 13, 23, .98), rgba(3, 9, 16, .99));
    }

    .intro-year {
        margin-bottom: 12px;

        font-size: 12px;
        line-height: 1.4;
        letter-spacing: 2px;
        text-align: center;
    }

    .intro-content h2 {
        min-height: 0;
        margin: 0 0 16px;

        display: block;

        font-size: 29px;
        line-height: 1.18;
        text-align: center;
    }

    .intro-content p {
        min-height: 0;
        margin: 0 0 24px;

        font-size: 16px;
        line-height: 1.65;
        text-align: center;
    }

    .intro-next {
        align-self: center;

        width: 100%;
        max-width: 320px;
        min-width: 0;
        height: auto;
        min-height: 50px;
        padding: 14px 18px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        font-size: 13px;
        line-height: 1.25;
        letter-spacing: 1.7px;
        text-align: center;
        white-space: normal;
    }

    .intro-close {
        top: 16px;
        right: 16px;

        width: 38px;
        height: 38px;

        background: rgba(3, 9, 16, .88);
        border-color: rgba(242, 212, 134, .85);
    }
}

@media (max-width: 520px) {
    .index-page {
        padding: 24px 8px;
    }

    .start-hero__text {
        font-size: 15px;
    }

    .start-hero__button {
        width: 100%;
        max-width: 330px;
        padding-left: 14px;
        padding-right: 14px;

        font-size: 12px;
        letter-spacing: 1px;
    }
}

@media (max-width: 420px) {
    .intro-modal {
        padding: 8px;
    }

    .intro-window {
        max-height: calc(100vh - 16px);
    }

    .intro-media {
        height: 165px;
        min-height: 165px;
        max-height: 165px;
        flex-basis: 165px;
    }

    .intro-content {
        padding: 24px 18px 22px;
    }

    .intro-content h2 {
        font-size: 25px;
    }

    .intro-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .intro-next {
        max-width: 100%;
        font-size: 12px;
        letter-spacing: 1.4px;
    }
}

/* SEO-Inhaltsbereiche der Startseite */
.index-page{display:block;overflow:visible;background:#050d18;color:#e8edf2}
.start-hero{background:linear-gradient(180deg,rgba(8,10,12,.18),rgba(8,10,12,.2) 45%,rgba(8,10,12,.62)),url('/assets/backgrounds/startscreen.webp') center/cover no-repeat}
.home-section-inner{width:min(1180px,calc(100% - 40px));margin:0 auto}
.home-intro,.home-features,.home-world,.home-cta{padding:88px 0}
.home-intro{text-align:center;background:radial-gradient(circle at top,rgba(216,164,63,.1),transparent 38%),#07111f}
.home-kicker{margin:0 0 18px;color:#d8a43f;font-family:Georgia,"Times New Roman",serif;font-size:13px;font-weight:700;letter-spacing:2.4px;text-transform:uppercase}
.home-intro h1,.home-world h2,.home-cta h2{color:#f4f0e8;font-family:Georgia,"Times New Roman",serif;font-weight:500;line-height:1.15}
.home-intro h1{max-width:900px;margin:0 auto 24px;font-size:clamp(34px,5vw,62px)}
.home-lead{max-width:840px;margin:0 auto;color:rgba(232,237,242,.82);font-size:clamp(17px,2vw,20px);line-height:1.75}
.home-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:34px}
.home-primary,.home-secondary{min-height:50px;padding:0 25px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;font-family:Georgia,"Times New Roman",serif;font-size:13px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.home-primary{color:#15100a;background:linear-gradient(180deg,#f1c85e,#d89f3f);border:1px solid rgba(255,221,132,.5)}
.home-secondary{color:#f1c85e;border:1px solid rgba(216,164,63,.55);background:rgba(255,255,255,.025)}
.home-features{background:#050d18}
.home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.home-feature-card{position:relative;min-width:0;overflow:hidden;background:linear-gradient(180deg,#091827 0%,#06111d 100%);border:1px solid rgba(216,164,63,.42);border-radius:18px;box-shadow:0 18px 46px rgba(0,0,0,.28);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.home-feature-card::before{content:"";position:absolute;inset:10px;z-index:3;border:1px solid rgba(216,164,63,.9);border-radius:13px;pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) left top/42px 42px no-repeat,linear-gradient(#000 0 0) right top/42px 42px no-repeat,linear-gradient(#000 0 0) left bottom/42px 42px no-repeat,linear-gradient(#000 0 0) right bottom/42px 42px no-repeat;mask:linear-gradient(#000 0 0) left top/42px 42px no-repeat,linear-gradient(#000 0 0) right top/42px 42px no-repeat,linear-gradient(#000 0 0) left bottom/42px 42px no-repeat,linear-gradient(#000 0 0) right bottom/42px 42px no-repeat}
.home-feature-card::after{content:none}
.home-feature-card:hover{transform:translateY(-6px);border-color:rgba(242,203,103,.78);box-shadow:0 26px 58px rgba(0,0,0,.4)}
.home-feature-image{position:relative;height:205px;background-position:center;background-size:cover;filter:saturate(.88) contrast(1.05)}
.home-feature-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,9,16,.03) 32%,rgba(6,17,29,.22) 72%,#06111d 100%)}
.home-feature-market .home-feature-image{background-image:url("/assets/images/spiel/dynamische-maerkte-bg.webp");background-position:center 58%}
.home-feature-fleet .home-feature-image{background-image:url("/assets/images/spiel/flotte-und-routen-bg.webp");background-position:center 54%}
.home-feature-ports .home-feature-image{background-image:url("/assets/images/spiel/haefen-und-kontore-bg.webp");background-position:center 57%}
.home-feature-city .home-feature-image{background-image:url("/assets/images/spiel/stadtentwicklung-bg.webp");background-position:center 53%}
.home-feature-body{position:relative;min-height:230px;padding:24px 26px 34px}
.home-feature-number{display:block;margin-bottom:13px;color:#d8a43f;font-family:Georgia,"Times New Roman",serif;font-size:12px;font-weight:700;letter-spacing:2.2px}
.home-grid h2{margin:0 0 12px;color:#f2c75f;font-family:Georgia,"Times New Roman",serif;font-size:27px;font-weight:500;line-height:1.18}
.home-grid p,.home-world p{color:rgba(232,237,242,.78);line-height:1.7}
.home-grid p{margin:0;font-size:16px}
.home-world{background:radial-gradient(circle at 75% 25%,rgba(216,164,63,.09),transparent 28%),#081421}
.home-world-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:70px;align-items:center}
.home-world h2{margin:0 0 22px;font-size:clamp(32px,4vw,48px)}
.home-world p+p{margin-top:16px}
.home-checks{position:relative;list-style:none;padding:38px 38px;background:linear-gradient(180deg,rgba(9,24,39,.94),rgba(5,15,25,.96));border:1px solid rgba(216,164,63,.42);border-radius:18px;box-shadow:0 18px 46px rgba(0,0,0,.24);overflow:hidden}
.home-checks::before{content:"";position:absolute;inset:10px;z-index:2;border:1px solid rgba(216,164,63,.9);border-radius:13px;pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) left top/42px 42px no-repeat,linear-gradient(#000 0 0) right top/42px 42px no-repeat,linear-gradient(#000 0 0) left bottom/42px 42px no-repeat,linear-gradient(#000 0 0) right bottom/42px 42px no-repeat;mask:linear-gradient(#000 0 0) left top/42px 42px no-repeat,linear-gradient(#000 0 0) right top/42px 42px no-repeat,linear-gradient(#000 0 0) left bottom/42px 42px no-repeat,linear-gradient(#000 0 0) right bottom/42px 42px no-repeat}
.home-checks li{position:relative;z-index:3;padding:14px 0 14px 28px;color:#e8edf2;border-bottom:1px solid rgba(255,255,255,.07)}
.home-checks li:last-child{border-bottom:0}.home-checks li::before{content:'◆';position:absolute;left:0;color:#d8a43f;font-size:10px}
.home-cta{
    text-align:center;
    background:
        linear-gradient(180deg,rgba(5,13,24,.50),rgba(5,13,24,.66)),
        url("/assets/images/spiel/deine-geschichte-bg.webp") center 55%/cover no-repeat;
}
.home-cta h2{max-width:780px;margin:0 auto 16px;font-size:clamp(30px,4vw,48px)}
.home-cta p{margin:0 0 28px;color:rgba(232,237,242,.76);font-size:18px}
@media(max-width:1000px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-world-layout{gap:38px}.home-feature-image{height:220px}}
@media(max-width:720px){.home-intro,.home-features,.home-world,.home-cta{padding:62px 0}.home-section-inner{width:min(100% - 28px,1180px)}.home-grid,.home-world-layout{grid-template-columns:1fr}.home-world-layout{gap:30px}.home-actions{flex-direction:column;align-items:stretch}.home-primary,.home-secondary{width:100%}.start-hero{min-height:calc(100svh - var(--header-height));}}
@media(max-width:480px){.home-grid{grid-template-columns:1fr}.home-feature-card{border-radius:16px}.home-feature-card::before{inset:8px;border-radius:11px;-webkit-mask-size:36px 36px,36px 36px,36px 36px,36px 36px;mask-size:36px 36px,36px 36px,36px 36px,36px 36px}.home-feature-image{height:190px}.home-feature-body{min-height:0;padding:22px 22px 31px}.home-grid h2{font-size:25px}.home-grid p{font-size:15px}.home-intro h1{font-size:34px}.home-checks{padding:32px 28px;border-radius:16px}.home-checks::before{inset:8px;border-radius:11px;-webkit-mask-size:36px 36px,36px 36px,36px 36px,36px 36px;mask-size:36px 36px,36px 36px,36px 36px,36px 36px}}

/* ==========================================
   STARTSEITE – FEINER GOLDENER TRENNSTREIFEN
   Mittig zwischen Einleitung und Funktionskarten
========================================== */
.home-intro{
    position:relative;
}

.home-intro::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    width:min(470px,42vw);
    height:1px;
    transform:translateX(-50%);
    pointer-events:none;
    background:linear-gradient(
        90deg,
        rgba(216,164,63,0) 0%,
        rgba(216,164,63,.20) 15%,
        rgba(242,203,103,.72) 50%,
        rgba(216,164,63,.20) 85%,
        rgba(216,164,63,0) 100%
    );
    box-shadow:0 0 7px rgba(216,164,63,.16);
}

@media(max-width:720px){
    .home-intro::after{
        width:58vw;
    }
}

/* ==========================================
   STARTSEITE – ZWEITER FEINER GOLDENER TRENNSTREIFEN
   Mittig zwischen Funktionskarten und Welt-/Rollenbereich
========================================== */
.home-features{
    position:relative;
}

.home-features::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    width:min(470px,42vw);
    height:1px;
    transform:translateX(-50%);
    pointer-events:none;
    background:linear-gradient(
        90deg,
        rgba(216,164,63,0) 0%,
        rgba(216,164,63,.20) 15%,
        rgba(242,203,103,.72) 50%,
        rgba(216,164,63,.20) 85%,
        rgba(216,164,63,0) 100%
    );
    box-shadow:0 0 7px rgba(216,164,63,.16);
}

@media(max-width:720px){
    .home-features::after{
        width:58vw;
    }
}

/* ==========================================
   STARTSEITE – DRITTER FEINER GOLDENER TRENNSTREIFEN
   Mittig zwischen Welt-/Rollenbereich und Abschlussbereich
========================================== */
.home-world{
    position:relative;
}

.home-world::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    width:min(470px,42vw);
    height:1px;
    transform:translateX(-50%);
    pointer-events:none;
    background:linear-gradient(
        90deg,
        rgba(216,164,63,0) 0%,
        rgba(216,164,63,.20) 15%,
        rgba(242,203,103,.72) 50%,
        rgba(216,164,63,.20) 85%,
        rgba(216,164,63,0) 100%
    );
    box-shadow:0 0 7px rgba(216,164,63,.16);
}

@media(max-width:720px){
    .home-world::after{
        width:58vw;
    }
}

/* ==========================================
   STARTSEITE – MOBILER ABSCHLUSSFIX
   Bewusst am Dateiende: überschreibt ältere responsive Zwischenstände.
========================================== */
@media (max-width: 900px) {
    body .index-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: clip !important;
    }

    body .index-page > .start-hero,
    body .index-page > .home-intro,
    body .index-page > .home-features,
    body .index-page > .home-world,
    body .index-page > .home-cta {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .index-page .home-intro h1 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(27px, 7.2vw, 31px) !important;
        line-height: 1.18 !important;
        letter-spacing: .01em !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}

@media (max-width: 390px) {
    body .index-page .home-intro h1 {
        font-size: clamp(25px, 7vw, 28px) !important;
        line-height: 1.2 !important;
    }
}
