/*------------------------------------------------------------------------------- HERO CAROUSEL: */

.hero-carousel-section {
    padding: 0;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100vh;
    height: 100dvh;
}

.hero-carousel .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hintergrundbilder inkl. Verlaufsüberlagerung pro Slide */
.hero-carousel .carousel-item.slide-1 {
    background-image: 
        linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)),
        url('../images/Home\ Hero\ Section\ Slide\ 1\ V2.jpeg');
}

.hero-carousel .carousel-item.slide-2 {
    background-image: 
        linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)),
        url('../images/Hero-Home-Slide\ 2.jpg');
}

.hero-carousel .carousel-item.slide-3 {
    background-image: 
        linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)),
        url('../images/Home\ Hero\ Section\ Slide\ 3\ V2.jpeg');
}

/* Optional: Pfeile und Indikatoren etwas anheben, damit sie gut klickbar bleiben */
.hero-carousel .carousel-indicators {
    margin-bottom: 2rem;
}

/*------------------------------------------------------------------------------- ABOUT SECTION: */

.home-about {
    background-color: var(--white);
}

.home-about img {
    height: 70vh;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .home-about img {
        height: auto;
        max-height: 420px;
        aspect-ratio: 4 / 5;
    }
    .hero-carousel .carousel-indicators {
        margin-bottom: 1.25rem;
    }
}

/*------------------------------------------------------------------------------- MARQUEE SECTION: */

.course {
    overflow: hidden; /* Verhindert ungewollte Scrollbalken der ganzen Section */
}

/* Haupt-Container für das Marquee */
.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Weicher Ausblend-Effekt an den Rändern */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

.marquee-content {
    display: flex;
    gap: 15px;
}

.marquee-content img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* --- MOBILE & TABLET (Horizontal) --- */
/* Track 1: nach links */
.track-1 .marquee-content {
    animation: scroll-left 20s linear infinite;
}

/* Track 2: nach rechts */
.track-2 .marquee-content {
    animation: scroll-right 20s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}


/* --- DESKTOP (Vertikal) --- */
@media (min-width: 992px) {
    .marquee-wrapper {
        flex-direction: row;
        height: 600px; /* Feste Höhe für den Ausschnitt auf Desktop */
        /* Ausblend-Effekt von oben nach unten auf Desktop */
        mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    }

    .marquee-track {
        flex-direction: column;
        width: 50%;
        height: max-content;
    }

    .marquee-content {
        flex-direction: column;
    }

    .marquee-content img {
        width: 100%;
        height: 240px;
    }

    /* Track 1: läuft nach unten */
    .track-1 .marquee-content {
        animation: scroll-down 22s linear infinite;
    }

    /* Track 2: läuft nach oben */
    .track-2 .marquee-content {
        animation: scroll-up 22s linear infinite;
    }
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

@keyframes scroll-down {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/*------------------------------------------------------------------------------- UGC BRANDS SECTION: */

.ugc-brands-section {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

/* 9:16 Card Container */
.ugc-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 520px; /* Perfektes Smartphone-Format */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.ugc-card:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: 3px;
}

.ugc-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ugc-card:hover .ugc-media {
    transform: scale(1.03);
}

/* Play-Trigger in der Mitte */
.ugc-play-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ugc-play-icon {
    width: 62px;
    height: 62px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.9rem;
    padding-left: 4px; /* Optische Zentrierung des Play-Dreiecks */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.ugc-card:hover .ugc-play-icon {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Overlay für den Brand-Namen auf den Medien */
.ugc-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 10%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
    pointer-events: none;
}

/* Custom Pfeile für den UGC Slider */
.ugc-slider .carousel-control-prev,
.ugc-slider .carousel-control-next {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.ugc-slider .carousel-control-prev { left: -10px; }
.ugc-slider .carousel-control-next { right: -10px; }

@media (max-width: 576px) {
    .ugc-slider .carousel-control-prev { left: 4px; }
    .ugc-slider .carousel-control-next { right: 4px; }
}

/* --- HORIZONTALES BRAND MARQUEE --- */

.brand-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    /* Soft Fade an den Seiten */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brand-marquee-track {
    display: flex;
    gap: 70px;
    width: max-content;
}

.brand-marquee-content {
    display: flex;
    gap: 70px;
    align-items: center;
    animation: brand-scroll 45s linear infinite;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 110px;
}

.brand-logo-wrap img {
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Optisches Gleichgewicht (Visual Weight Balancing für alle 13 Marken) */
.brand-logo-dior {
    height: 24px !important;
    max-width: 90px;
}

.brand-logo-mediamarkt {
    height: 22px !important;
    max-width: 160px;
}

.brand-logo-babor {
    height: 20px !important;
    max-width: 105px;
}

.brand-logo-bose {
    height: 18px !important;
    max-width: 125px;
}

.brand-logo-lays {
    height: 40px !important;
    max-width: 50px;
}

.brand-logo-schwarzkopf {
    height: 38px !important;
    max-width: 120px;
}

.brand-logo-idealofsweden {
    height: 14px !important;
    max-width: 140px;
}

.brand-logo-intersport {
    height: 24px !important;
    max-width: 135px;
}

.brand-logo-rosental {
    height: 22px !important;
    max-width: 115px;
}

.brand-logo-deichmann {
    height: 38px !important;
    max-width: 48px;
}

.brand-logo-mywellness {
    height: 38px !important;
    max-width: 85px;
}

.brand-logo-idealo {
    height: 28px !important;
    max-width: 110px;
    mix-blend-mode: multiply;
}

.brand-logo-blau {
    height: 28px !important;
    max-width: 85px;
}

@keyframes brand-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/*------------------------------------------------------------------------------- INSTAGRAM SECTION: */

.instagram {
    position: relative;
    overflow: hidden;
}

.insta-handle-badge {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--light);
}

.insta-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    background-color: #111;
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.insta-type-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--white);
    font-size: 1.1rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: opacity 0.3s ease;
}

.insta-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--white);
    z-index: 3;
}

.insta-overlay-stats {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.insta-overlay-cta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.insta-card:hover .insta-img {
    transform: scale(1.08);
}

.insta-card:hover .insta-card-overlay {
    opacity: 1;
}

.insta-card:hover .insta-type-icon {
    opacity: 0;
}

/*------------------------------------------------------------------------------- UGC VIDEO MODAL: */

.ugc-video-modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ugc-video-modal .modal-dialog {
    max-width: 420px;
    margin: 1.75rem auto;
}

.ugc-modal-phone {
    position: relative;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.ugc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 8px;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ugc-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ugc-modal-video-wrap {
    width: 100%;
    height: 70vh;
    max-height: 660px;
    min-height: 480px;
    background-color: #000;
}

.ugc-modal-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ugc-modal-footer-info {
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}