/* hero.css – unverändert aus der ursprünglichen style.css übernommen */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: relative;
    z-index: 10;
    display:flex;
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
}

.hero-logo {
    margin-top: 0px;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: white;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-logo::after {
    content: "";
    display: block;
    width: 620px;
    height: 1px;
    background: white;
    margin: 10px auto 0;
}


.hero-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
    margin-top: 15px; /* statt 0 */
    padding: 0;
}

.hero-nav a {
    color: white;
    text-decoration: none;
}

.hero-button {
    margin-top: 450px;

    padding: 15px 35px;

    color: white;
    text-decoration: none;

    font-family: var(--font-heading);
    font-size: 24px;

    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);

    border: 1px solid rgba(255,255,255,0.3);

    border-radius: 8px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.2);

    z-index: 2;
}

/* Mobile und Tablet */
@media (max-width: 1024px),
       (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
    /* Hero */
    .hero {
        height: 100vh;
        height: 100svh;
        min-height: 450px;

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    /* Header */
    .hero-overlay {
        padding-top: 27px;
    }
    /* Durchgehende Trennlinie */
    .hero-logo::after,
    .legal-logo a::after {
        width: calc(100vw - 40px);
        max-width: none;

        position: relative;
        left: 50%;
        transform: translateX(-50%);

        margin: 10px 0 0;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    .hero-logo { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}


/* =========================================
   STARTSEITE: HEADER WIE AUF UNTERSEITEN
   Nur Smartphone und Tablet
========================================= */
@media (max-width: 1024px),
       (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
    .hero .hero-overlay {
        box-sizing: border-box;
        width: 100%;
        padding: 27px 20px 0;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        min-height: 0;
        position: relative;
    }

    .hero .hero-logo {
        font-size: clamp(1.75rem, 5.5vw, 2.7rem);
        font-weight: 300;
        line-height: 1.1;
        letter-spacing: 1px;
        text-align: left;
        margin: 0;
        padding: 0;
        max-width: calc(100% - 65px);
        white-space: nowrap;
    }

    /* Die Trennlinie gehört unter die gesamte Kopfzeile. */
    .hero .hero-logo::after { display: none; }
    .hero .hero-overlay::after {
        content: "";
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(37px + clamp(1.75rem, 5.5vw, 2.7rem));
        height: 1px;
        background: rgba(255,255,255,.9);
        pointer-events: none;
    }

    .hero .mobile-menu-toggle {
        position: relative;
        top: auto;
        right: auto;
        flex: 0 0 44px;
        margin: 0;
        color: #fff !important;
        z-index: 32;
    }
    .hero .mobile-menu-toggle span {
        background-color: currentColor !important;
    }

    /* Beim Öffnen bleibt das Schließen-X sichtbar und schwarz. */
    body.mobile-menu-open .hero .mobile-menu-toggle {
        position: fixed;
        top: 27px;
        right: 20px;
        color: #151616 !important;
        z-index: 50;
    }
    body.mobile-menu-open .hero .mobile-navigation {
        z-index: 40;
    }
}

/* Visual Moments – Startseite, direkt unter der vorhandenen Trennlinie */
.hero-brand-subtitle {
    font-family: "Allura", cursive;
    font-weight: 400;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1;
    color: #fff;
    text-align: center;
    margin: -2px 0 4px;
}
@media (max-width: 1024px),
       (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
    .hero .hero-brand-subtitle {
        position: absolute;
        top: calc(43px + clamp(1.75rem, 5.5vw, 2.7rem));
        left: 20px;
        right: 20px;
        font-size: clamp(1.6rem, 4.6vw, 2.15rem);
        text-align: center;
        margin: 0;
        pointer-events: none;
    }
}

/* Mobile/Tablet: Name mittig, Allura darunter; Menü rechts unabhängig positioniert. */
@media (max-width: 1024px),
       (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
    .hero .hero-overlay { justify-content: center; }
    .hero .hero-logo { margin: 0 auto; text-align: center; max-width: calc(100% - 112px); font-size: clamp(1.3rem, 4.7vw, 2.7rem); }
    .hero .mobile-menu-toggle { position: absolute; right: 20px; top: 27px; }
    .hero .hero-brand-subtitle { left: 20px; right: 20px; text-align: center; }
}

/* H1 für Suchmaschinen ohne Änderung des bisherigen Hero-Layouts. */
h1.hero-logo {
    margin: 0;
    font-weight: 300;
}
