/* =========================================
   HERO GRUNDLAYOUT
   MOBILE FIRST
========================================= */

.hero-wrap {
    position: relative;
    width: 100%;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 330px;
    background-repeat: no-repeat;
    background-position: 79% 12%;
    background-size: cover;
    overflow: hidden;
}

/* HERO NUR BILD – MOBILE FIRST */

/* =========================================
   HERO NUR BILD
   MOBILE FIRST
========================================= */

.hero_img_only {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding-top: 1rem;
}

.hero_img_only__image {
    display: block;
    width: 100%;
    height: auto;
}

.hero_img_only .hero_container {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
}




/* =========================================
   HERO OVERLAY
========================================= */

.hero__overlay {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-bg) 0%, rgb(255 254 254 / 76%) 35%, rgb(255 254 254 / 52%) 43%, transparent 75%);
}

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

.hero__container {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 0.5rem auto;
    padding-block: 1.3rem;
    text-align: left;
}

/* =========================================
   HERO ÜBERSCHRIFT
========================================= */

.hero__title {
    max-width: 230px;
    margin: 0;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 0.02em;
}

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

.hero__text {
    max-width: 230px;
    margin-top: 0.7rem;
    color: var(--color-text);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.35;
}

/* =========================================
   HERO BUTTON
========================================= */

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 0.8rem;
    padding: 0.55rem 1rem;
    color: var(--color-bg);
    background-color: var(--color-sticky);
    border: 1px solid var(--color-sticky);
    border-radius: 5px;
    font-family: var(--font-text);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 15px rgb(0 30 90 / 18%);
    transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.hero__button:hover {
    color: var(--color-sticky);
    background-color: var(--color-bg);
    text-decoration: none;
    transform: translateY(-2px);
}

/* =========================================
   ERFAHRUNGSBOX
========================================= */

.hero__experience {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(calc(100% - 24px), var(--max-width));
    margin: 1rem auto 0;
    padding: 0.9rem 1rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.hero__experience-image {
    width: auto;
    height: 68px;
    flex-shrink: 0;
    object-fit: contain;
}

.hero__experience-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero__experience-title {
    color: var(--color-text);
    font-family: var(--font-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero__experience-text {
    margin-top: 0.35rem;
    color: var(--color-text);
    font-family: var(--font-text);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* =========================================
   HERO VORTEILE
========================================= */

.hero__experience-details {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    width: min(calc(100% - 24px), var(--max-width));
    min-width: 0;
    margin: 1rem auto 0;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.hero__detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-height: 72px;
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.hero__detail:last-child {
    border-bottom: none;
}

.hero__detail-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
}

.hero__detail-title {
    color: var(--color-text);
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

/* =========================================
   TABLET AB 701PX
========================================= */

@media (min-width: 701px) {
    .hero {
        height: 300px;
        background-position: 74% 14%;
    }

    .hero__overlay {
        align-items: center;
        background: linear-gradient(90deg, var(--color-bg) 0%, rgb(255 254 254 / 84%) 40%, rgb(255 254 254 / 50%) 55%, transparent 100%);
    }

    .hero__container {
        width: min(calc(100% - 40px), var(--max-width));
        padding-block: 1rem;
    }

    .hero__title {
        max-width: 320px;
        font-size: 3.8rem;
        line-height: 0.7;
    }

    .hero__text {
        max-width: 320px;
        margin-top: 0.9rem;
        font-size: 1rem;
        line-height: 1.45;
    }

    .hero__button {
        min-height: 44px;
        margin-top: 1rem;
        padding: 0.65rem 1.3rem;
        font-size: 1rem;
    }

    .hero__experience {
        width: min(calc(100% - 24px), var(--max-width));
        margin: 1rem auto 0;
        padding: 1rem 1.3rem;
    }

    .hero__experience-image {
        height: 76px;
    }

    .hero__experience-title {
        font-size: 1.15rem;
    }

    .hero__experience-text {
        font-size: 0.85rem;
    }

    .hero__experience-details {
        grid-template-columns: repeat(3, 1fr);
        width: min(calc(100% - 24px), var(--max-width));
        margin: 1rem auto 0;
    }

    .hero__detail {
        flex-direction: column;
        justify-content: center;
        min-height: 70px;
        padding: 0.6rem 1rem;
        text-align: center;
        border-right: 1px solid var(--color-border);
        border-bottom: none;
    }

    .hero__detail:last-child {
        border-right: none;
    }

    .hero__detail-icon {
        width: auto;
        height: 38px;
    }

    .hero__detail-title {
        font-size: 0.82rem;
    }
}

/* =========================================
   DESKTOP AB 1001PX
========================================= */

@media (min-width: 1001px) {
    .hero {
        height: 540px;
        background-position: 78% 18%;
    }

    .hero__overlay {
        background: linear-gradient(90deg, var(--color-bg) 0%, rgb(255 254 254 / 96%) 35%, rgb(255 254 254 / 72%) 55%, transparent 75%);
    }

    .hero__title {
        max-width: 500px;
        font-size: 4.6rem;
        line-height: 0.7;
    }

    .hero__text {
        max-width: 600px;
        font-size: 1.15rem;
    }

    .hero__experience {
        position: absolute;
        right: clamp(1.5rem, 5vw, 5rem);
        bottom: 0.1rem;
        z-index: 5;
        width: min(310px, calc(100% - 3rem));
        margin: 0;
    }

    .hero__experience-details {
        position: absolute;
        left: max(20px, calc((100% - var(--max-width)) / 2));
        bottom: 0.1rem;
        z-index: 5;
        width: min(630px, calc(100% - 440px));
        min-width: 520px;
        margin: 0;
        background-color: rgb(255 254 254 / 58%);
        backdrop-filter: blur(4px);
        border: none;
    }
}

/* =========================================
   QUERFORMAT / NIEDRIGE VIEWPORT-HÖHE
========================================= */

@media (min-width: 701px) and (max-height: 650px) and (orientation: landscape) {
    .hero {
        height: 420px;
        background-position: 78% 12%;
    }

    .hero__overlay {
        align-items: center;
    }

    .hero__container {
        padding-top: 4rem;
        padding-bottom: 1rem;
    }
}