/*
 * MHL Homepage Maritime Hourly V3
 * Ausschließlich body.home-page.
 * Die äußere Position bleibt unverändert:
 * Header-Unterkante 68px + 60px Abstand = main top 128px.
 */

/* Eyebrow: maritimer, klarer und wertiger. */
body.home-page main#content.site-main
section.hero.home-hero .hero__badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    max-width: 100% !important;
    padding: 9px 14px !important;
    border: 1px solid rgba(140, 236, 244, .38) !important;
    border-radius: 999px !important;
    background: linear-gradient(
        120deg,
        rgba(5, 64, 82, .82),
        rgba(9, 95, 109, .54)
    ) !important;
    color: #e9fbff !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
    box-shadow:
        0 5px 18px rgba(0, 24, 39, .20),
        inset 0 1px rgba(255, 255, 255, .10) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Textblock nutzt den verfügbaren linken Hero-Bereich. */
body.home-page main#content.site-main
section.hero.home-hero .hero__content {
    width: 100% !important;
    max-width: 1000px !important;
    min-width: 0 !important;
    justify-self: start !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Große, kontrastreiche Überschrift mit maritimer Akzentlinie. */
body.home-page main#content.site-main
section.hero.home-hero #hero-title {
    display: block !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 15px 0 16px !important;
    color: #f7fcff !important;
    font-size: clamp(2.35rem, 3.65vw, 3.8rem) !important;
    font-weight: 850 !important;
    line-height: 1.035 !important;
    letter-spacing: -.032em !important;
    text-wrap: balance !important;
    text-shadow: 0 3px 24px rgba(0, 20, 34, .56) !important;
    overflow-wrap: anywhere !important;
}

body.home-page main#content.site-main
section.hero.home-hero #hero-title::after {
    content: "" !important;
    display: block !important;
    width: clamp(76px, 10vw, 148px) !important;
    height: 4px !important;
    margin-top: 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(
        90deg,
        #83e6ed 0%,
        #a7edf0 54%,
        #f0d0a0 100%
    ) !important;
    box-shadow: 0 2px 12px rgba(93, 220, 235, .22) !important;
}

/* Beschreibung: gut lesbar, mehr Breite, weniger Textenge. */
body.home-page main#content.site-main
section.hero.home-hero .hero__content > p {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 0 22px !important;
    color: #f1f9fc !important;
    font-size: clamp(1rem, 1.14vw, 1.19rem) !important;
    font-weight: 450 !important;
    line-height: 1.62 !important;
    letter-spacing: .003em !important;
    text-wrap: pretty !important;
    text-shadow: 0 2px 13px rgba(0, 18, 31, .52) !important;
}

/* Aktionsbuttons bleiben bestehen, erhalten nur saubere Abstände. */
body.home-page main#content.site-main
section.hero.home-hero .hero__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 11px !important;
    align-items: center !important;
}

/* Großer Desktop: Textbereich und Möwenkarte nebeneinander,
   Hero kompakter, damit die sechs Karten höher sichtbar werden. */
@media screen and (min-width: 1280px) {
    body.home-page main#content.site-main > section.hero.home-hero {
        height: auto !important;
        min-height: clamp(420px, calc(100vh - 516px), 470px) !important;
        grid-template-columns: minmax(0, 1.65fr) minmax(270px, .65fr) !important;
        column-gap: clamp(24px, 2.8vw, 46px) !important;
        padding: clamp(28px, 3.5vh, 40px)
                 clamp(26px, 3.8vw, 56px)
                 24px !important;
        box-sizing: border-box !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero .hero__panel {
        width: 100% !important;
        max-width: 400px !important;
        min-width: 0 !important;
        justify-self: end !important;
    }

    body.home-page main#content.site-main >
    section.feature-grid.feature-grid-maritime {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: clamp(10px, .95vw, 15px) !important;
        margin-top: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.home-page main#content.site-main >
    section.feature-grid.feature-grid-maritime > .feature-card {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Tablet und kleinere Desktopfenster. */
@media screen and (min-width: 768px) and (max-width: 1279px) {
    body.home-page main#content.site-main > section.hero.home-hero {
        height: auto !important;
        min-height: clamp(390px, 44vh, 440px) !important;
        grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr) !important;
        column-gap: clamp(18px, 2.4vw, 32px) !important;
        padding: 30px 24px 24px !important;
        box-sizing: border-box !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero #hero-title {
        font-size: clamp(2.05rem, 3.3vw, 2.95rem) !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero .hero__content > p {
        font-size: clamp(.98rem, 1.25vw, 1.08rem) !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero .hero__panel {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.home-page main#content.site-main >
    section.feature-grid.feature-grid-maritime {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-top: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.home-page main#content.site-main >
    section.feature-grid.feature-grid-maritime > .feature-card {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Smartphone: Überschrift und Text laufen natürlich um, Karten zweispaltig. */
@media screen and (max-width: 767px) {
    body.home-page main#content.site-main > section.hero.home-hero {
        height: auto !important;
        min-height: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 20px !important;
        padding: 26px 18px 22px !important;
        align-items: start !important;
        box-sizing: border-box !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero .hero__content {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero #hero-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 13px !important;
        font-size: clamp(1.9rem, 7.2vw, 2.65rem) !important;
        line-height: 1.07 !important;
        letter-spacing: -.025em !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero #hero-title::after {
        margin-top: 12px !important;
        width: 84px !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero .hero__content > p {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 18px !important;
        font-size: 1rem !important;
        line-height: 1.56 !important;
    }

    body.home-page main#content.site-main
    section.hero.home-hero .hero__panel {
        width: 100% !important;
        max-width: 480px !important;
        justify-self: stretch !important;
        box-sizing: border-box !important;
    }

    body.home-page main#content.site-main >
    section.feature-grid.feature-grid-maritime {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-top: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.home-page main#content.site-main >
    section.feature-grid.feature-grid-maritime > .feature-card {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Sehr schmale Smartphones: eine Karte pro Zeile. */
@media screen and (max-width: 380px) {
    body.home-page main#content.site-main >
    section.feature-grid.feature-grid-maritime {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}
