/* ==========================================================================
   Modul: Hero Teaser (Hörprobe) – modules/module-hero-teaser.php
   ========================================================================== */

.hero-teaser {
    --ht-blue: #0d2a6b;
    --ht-blue-dark: #0a2257;
    --ht-orange: #f7820f;
    --ht-orange-dark: #e06f00;
    --ht-text: #1f2a44;
    --ht-muted: #5b6478;
    position: relative;
    overflow: hidden;
    background-color: #f7f8fb;
    color: var(--ht-text);
}

.hero-teaser__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 1260px;
    margin: 0 auto;
    padding: 32px 16px 40px;
}

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

/* Typo */
.hero-teaser .hero-teaser__headline {
    margin: 0 0 6px;
    padding: 0;
    color: var(--ht-blue);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: none;
}

.hero-teaser .hero-teaser__subline {
    margin: 0 0 12px;
    color: var(--ht-blue);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.hero-teaser .hero-teaser__text {
    margin: 0 0 20px;
    color: var(--ht-text);
    font-size: 15px;
    line-height: 1.6;
}

/* Audio-Player */
.hero-teaser__player {
    max-width: 440px;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ht-blue);
    box-shadow: 0 8px 24px rgba(13, 42, 107, 0.18);
}

.hero-teaser__player-stage {
    position: relative;
    aspect-ratio: 16 / 7.5;
    background: linear-gradient(180deg, #8fc4ea 0%, #cfe6f5 100%);
}

.hero-teaser__player-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-teaser__player-label {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-teaser__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ht-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-teaser__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-teaser__play:focus-visible,
.hero-teaser__mute:focus-visible,
.hero-teaser__progress:focus-visible {
    outline: 2px solid var(--ht-orange);
    outline-offset: 2px;
}

.hero-teaser__play svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.hero-teaser__play .icon-play {
    margin-left: 3px;
}

.hero-teaser__play .icon-pause,
.hero-teaser__player.is-playing .hero-teaser__play .icon-play {
    display: none;
}

.hero-teaser__player.is-playing .hero-teaser__play .icon-pause {
    display: block;
}

.hero-teaser__player-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--ht-blue);
    color: #fff;
}

.hero-teaser__time {
    min-width: 34px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.hero-teaser__progress {
    --ht-progress: 0%;
    flex: 1 1 auto;
    min-width: 0;
    height: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(to right, #fff var(--ht-progress), rgba(255, 255, 255, 0.35) var(--ht-progress));
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.hero-teaser__progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #2f6fe0;
}

.hero-teaser__progress::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #2f6fe0;
}

.hero-teaser__mute {
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-teaser__mute svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hero-teaser__mute .icon-muted,
.hero-teaser__player.is-muted .hero-teaser__mute .icon-volume {
    display: none;
}

.hero-teaser__player.is-muted .hero-teaser__mute .icon-muted {
    display: block;
}

/* Bewertung */
.hero-teaser__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 20px;
}

.hero-teaser__rating svg {
    display: block;
    fill: currentColor;
}

.hero-teaser__rating-big {
    color: var(--ht-orange);
}

.hero-teaser__rating-big svg {
    width: 26px;
    height: 26px;
}

.hero-teaser__rating-value {
    color: var(--ht-blue);
    font-size: 16px;
    font-weight: 700;
    margin-right: 6px;
}

.hero-teaser__stars {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.hero-teaser__stars-empty,
.hero-teaser__stars-full {
    display: flex;
    gap: 2px;
}

.hero-teaser__stars svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.hero-teaser__stars-empty {
    color: #d7dbe3;
}

.hero-teaser__stars-full {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--rating, 100%);
    overflow: hidden;
    color: var(--ht-orange);
}

.hero-teaser__rating-note {
    color: var(--ht-muted);
    font-size: 12px;
}

/* CTA + Buttons */
.hero-teaser .hero-teaser__cta {
    margin: 0 0 16px;
    color: var(--ht-blue);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.hero-teaser__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-teaser a.hero-teaser__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-teaser a.hero-teaser__btn--primary {
    background: var(--ht-orange);
    border: 2px solid var(--ht-orange);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(247, 130, 15, 0.3);
}

.hero-teaser a.hero-teaser__btn--primary:hover,
.hero-teaser a.hero-teaser__btn--primary:focus-visible {
    background: var(--ht-orange-dark);
    border-color: var(--ht-orange-dark);
    color: #fff;
}

.hero-teaser a.hero-teaser__btn--secondary {
    background: #fff;
    border: 1px solid var(--ht-blue);
    color: var(--ht-blue);
    font-size: 14px;
}

.hero-teaser a.hero-teaser__btn--secondary:hover,
.hero-teaser a.hero-teaser__btn--secondary:focus-visible {
    background: var(--ht-blue);
    color: #fff;
}

.hero-teaser .hero-teaser__note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--ht-muted);
    font-size: 13px;
}

.hero-teaser__note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* Illustration: auf kleinen Screens ausgeblendet */
.hero-teaser__visual {
    display: none;
}

/* Tablet */
@media screen and (min-width: 768px) {
    .hero-teaser__inner {
        padding: 48px 32px;
    }

    .hero-teaser .hero-teaser__headline {
        font-size: 40px;
    }

    .hero-teaser .hero-teaser__subline {
        font-size: 22px;
    }

    .hero-teaser__buttons {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px 48px;
    }

    .hero-teaser a.hero-teaser__btn--primary {
        min-width: 220px;
    }

    .hero-teaser a.hero-teaser__btn--secondary {
        min-width: 130px;
    }
}

/* Desktop: zweispaltig mit Illustration rechts */
@media screen and (min-width: 1024px) {
    .hero-teaser__inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        column-gap: 32px;
        padding: 56px 40px 48px;
    }

    .hero-teaser.no-image .hero-teaser__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-teaser .hero-teaser__headline {
        font-size: 46px;
    }

    .hero-teaser .hero-teaser__cta {
        font-size: 20px;
    }

    .hero-teaser__visual {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        position: relative;
        margin: -56px -40px -48px 0;
    }

    .hero-teaser__image {
        display: block;
        width: 100%;
        max-width: 520px;
        height: auto;
        max-height: 620px;
        object-fit: contain;
        object-position: right bottom;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-teaser__play,
    .hero-teaser a.hero-teaser__btn {
        transition: none;
    }
}
