/* =========================================
   IUNIXX – HERO
   Vollständige, bereinigte CSS-Datei
========================================= */

/* =========================================
   HERO-HINTERGRUND
========================================= */

.hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 720px;
    overflow: hidden;

    background-color: #061333;

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 12, 35, 0.72) 0%,
            rgba(4, 12, 35, 0.52) 42%,
            rgba(4, 12, 35, 0.18) 100%
        ),
        url('../images/Hero%20hintergrund.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* =========================================
   CONTAINER
========================================= */

.hero-container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;

    min-height: 720px;
    padding: 80px 0;
}

/* =========================================
   TEXT
========================================= */

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 26px;

    color: #67C3FF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero-title {
    margin: 0 0 24px;

    color: #FFFFFF;
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-title span {
    color: #67C3FF;
}

.hero-subtitle {
    max-width: 510px;
    margin: 0 0 34px;

    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.65;
}

/* =========================================
   FUNKTIONEN
========================================= */

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 14px;

    max-width: 500px;
    margin-bottom: 34px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 14px 18px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(7, 23, 37, 0.10);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex-shrink: 0;

    border-radius: 14px;

    background: var(--color-primary-light);
    color: var(--color-primary);

    font-size: 24px;
    font-weight: 700;
}

.hero-feature strong {
    display: block;

    color: var(--color-navy);
    font-size: 15px;
    font-weight: 700;
}

.hero-feature span {
    display: block;
    margin-top: 3px;

    color: var(--color-muted);
    font-size: 13px;
}

/* =========================================
   BUTTONS
========================================= */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions .btn {
    min-height: 52px;
}

.hero-note {
    margin: 16px 0 0;

    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

/* =========================================
   VIDEO UND VORSCHAUBILD
========================================= */

.hero-visual {
    position: relative;
    min-width: 0;
}

/* =========================================
   HERO – WEICHER VIDEOÜBERGANG
========================================= */

.hero-image-wrap {
    position: relative;
    width: 100%;
    height: 610px;
    overflow: hidden;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    /* Videoränder weich ausblenden */

    -webkit-mask-image: radial-gradient(
        ellipse 64% 72% at 54% 48%,
        #000 34%,
        rgba(0, 0, 0, 0.95) 48%,
        rgba(0, 0, 0, 0.65) 62%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 92%
    );

    mask-image: radial-gradient(
        ellipse 64% 72% at 54% 48%,
        #000 34%,
        rgba(0, 0, 0, 0.95) 48%,
        rgba(0, 0, 0, 0.65) 62%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 92%
    );
}

/* Keine zusätzlichen Überlagerungen */

.hero-image-wrap::before,
.hero-image-wrap::after {
    display: none;
}

/* Poster und Video deckungsgleich */

.hero-poster,
.hero-video,
.hero-image {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

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

    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Vorschaubild zuerst sichtbar */

.hero-poster,
.hero-image {
    z-index: 1;
}

/* Video lädt unsichtbar */

.hero-video {
    z-index: 2;

    opacity: 0;
    visibility: visible;

    transition: opacity 0.25s ease;
}

/* Video erst nach tatsächlichem Start einblenden */

.hero-video.is-playing {
    opacity: 1;
}

/* =========================================
   SCHWEBENDE STATUSKARTE
========================================= */

.hero-floating-card {
    position: absolute;
    right: -18px;
    bottom: 38px;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 22px;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;

    box-shadow: 0 15px 45px rgba(7, 23, 37, 0.16);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-status {
    width: 11px;
    height: 11px;
    flex-shrink: 0;

    border-radius: 50%;
    background: #69C900;

    box-shadow: 0 0 0 5px rgba(153, 254, 20, 0.2);
}

.hero-floating-card strong {
    display: block;

    color: var(--color-navy);
    font-size: 13px;
}

.hero-floating-card small {
    display: block;
    margin-top: 4px;

    color: var(--color-muted);
    font-size: 11px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .hero-container {
        gap: 32px;
        min-height: 650px;
        padding: 64px 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.8rem);
    }

    .hero-image-wrap {
        height: 540px;
    }

    .hero-floating-card {
        right: 10px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        background-position: center center;
    }

    .hero-container {
        width: 100%;

        display: flex;
        flex-direction: column;
        gap: 0;

        min-height: auto;
        padding: 0 0 56px;
    }

    /* Video oberhalb des Textes */

    .hero-visual {
        order: -1;
        width: 100%;
    }

    .hero-image-wrap {
        height: clamp(280px, 78vw, 460px);

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 55%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 55%,
            transparent 100%
        );
    }

    .hero-poster,
    .hero-video,
    .hero-image {
        object-position: center 28%;
    }

    .hero-floating-card {
        right: 16px;
        bottom: 16px;
        padding: 12px 16px;
    }

    /* Text unterhalb des Videos */

    .hero-content {
        width: 100%;
        padding: 32px 20px 0;
    }

    .hero-eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
        line-height: 1.08;
    }

    .hero-subtitle {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .hero-features {
        gap: 12px;
        margin-bottom: 28px;
    }

    .hero-feature {
        padding: 12px 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-note {
        text-align: center;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 390px) {

    .hero-content {
        padding-inline: 16px;
    }

    .hero-title {
        font-size: 2.15rem;
    }

    .hero-feature strong {
        font-size: 14px;
    }

    .hero-floating-card {
        right: 10px;
        bottom: 10px;
    }
}

/* =========================================
   BARRIEREFREIHEIT
========================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-video {
        display: none;
    }

    .hero-poster {
        display: block;
    }

    .hero,
    .hero-image,
    .hero-floating-card {
        animation: none;
        transition: none;
    }
}

/* =========================================
   IUNIXX – HERO TYPOGRAFIE
========================================= */

/* Hauptclaim auf einer Zeile */

.hero-title {
    font-size: clamp(2rem, 3.15vw, 3.7rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
    white-space: nowrap;
    margin-bottom: 16px;
}

/* EASY TO USE. als starke zweite Zeile */

.hero-subtitle {
    font-size: clamp(1.65rem, 2.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 34px;
    color: #FFFFFF;
    max-width: none;
}

/* Tablet */

@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(1.7rem, 3vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    }
}

/* Mobile */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.35rem, 5.6vw, 2.5rem);
        white-space: nowrap;
        letter-spacing: -0.045em;
    }

    .hero-subtitle {
        font-size: clamp(1.45rem, 5vw, 2rem);
        margin-bottom: 26px;
    }
}

@media (max-width: 390px) {
    .hero-title {
        font-size: clamp(1.15rem, 5.1vw, 1.4rem);
    }
}

/* =========================================
   HERO – AUTOMATISCH WECHSELNDE KARTEN
========================================= */

.hero-features {
    position: relative;
    display: block;
    height: 96px;
    max-width: 500px;
    margin-bottom: 34px;
    overflow: hidden;
}

.hero-feature {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 96px;
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(110%);
    visibility: hidden;
    pointer-events: none;
}

/* Sichtbare Karte */

.hero-feature.is-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

/* Neue Karte fährt von unten hinein */

.hero-feature.is-entering {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
        transform 0.7s ease-in-out,
        opacity 0.7s ease-in-out;
}

/* Alte Karte fährt nach oben hinaus */

.hero-feature.is-leaving {
    visibility: visible;
    opacity: 0;
    transform: translateY(-110%);
    transition:
        transform 0.7s ease-in-out,
        opacity 0.7s ease-in-out;
}

@media (max-width: 768px) {
    .hero-features {
        height: 96px;
        margin-bottom: 28px;
    }

    .hero-feature {
        height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-feature {
        transition: none !important;
    }
}
