/* ===== Grundlegende Seitenstruktur ===== */
.hero h1 {
    -webkit-text-stroke: 0.5px white; /* Dünnerer Stroke */
    -webkit-text-fill-color: transparent;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.zurba {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 40rem;
    font-size: .5rem;
    margin-top: 1rem;
    font-weight: lighter;
}

.zurba img {
    margin-right: .25rem;
    margin-top: .125rem;
}

.unterseiten h3 {
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.unterseiten h4 {
    font-size: 1rem;
    line-height: 1.25rem;
    max-width: 40rem;
}

h3 {
    max-width: 40rem;
}

li a {
    font-style: normal;
}

.lean h1:first-child {
    -webkit-text-fill-color: white;
}

.hero {
    margin-top: 2rem;
}

.nav-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-brand svg {
    height: .6rem;
    transform: rotate(90deg) translateY(.25rem);
    cursor: pointer;
}

h6 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 3rem;
    text-transform: uppercase;
    font-family: 'CHANEY-Wide', sans-serif;
    text-align: center;
}

/* ===== Container & Layout ===== */
.about-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 75vh;
    padding-top: 7.5vh;
}

.about-container h6 {
    position: absolute;
    z-index: 0;
    opacity: .1;
    font-size: 15rem;
    line-height: 15rem;
}

.about-container h3 {
    font-family: "montserrat";
    max-width: 90%;
}

.zwischenheader {
    text-align: center;
    align-items: center;
    padding: 2rem;
}

.zwischenheader h1 {
    position: absolute;
    font-size: 6rem;
}

.zwischenheader {
    text-align: left;
}

p {
    text-align: left;
    max-width: 100%;
    max-width: 20rem;
}

a, .link {
    font-size: .8rem;
    font-weight: 100;
}

.zwischenheader p {
    max-width: 40rem;
}

/* ===== Video Player Styles ===== */
/* Basis Video Container */
.videos-wrapper,
.vertical-videos-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0; /* Entfernt den Abstand nach unten */
}

.video-scroll-container,
.vertical-video-scroll-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

/*.video-scroll-container::-webkit-scrollbar,
.vertical-video-scroll-container::-webkit-scrollbar {
    display: none;
}*/

.machmitte {
    justify-content: center;
}

/* Video Rows */
.video-row,
.vertical-video-row {
    display: flex;
    transition: all 0.3s ease;
}

.vertical-video-row {
    gap: 1rem;
    padding: 1rem;
    padding-top: 0;
    min-width: max-content;
}

/* Video Container */
.video-container,
.vertical-video-container {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vertical-video-container {
    aspect-ratio: 9/16;
    width: 30vh;
    border: solid black .15rem;
    border-radius: .75rem;
    overflow: hidden;
}

/* Video Element */
.hover-video {
    display: block;
    transition: all 0.3s ease;
}

.hover-video:not(.vertical-video-container .hover-video) {
    height: 60vh;
    width: auto;
    object-fit: contain;
}

.vertical-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: .5rem;
    width: 0%;
    background-color: rgba(0, 0, 0, 0.25);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none;
}

/* Video States */
.videos-wrapper.playing .video-container,
.vertical-videos-wrapper.playing .vertical-video-container {
    opacity: 0.4;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.video-container.active,
.vertical-video-container.active {
    opacity: 1 !important;
    filter: none !important;
    transition: all 0.3s ease;
}

/* Drag Scroll */
.video-row.dragging,
.vertical-video-row.dragging {
    cursor: grabbing;
}

.video-row:not(.dragging),
.vertical-video-row:not(.dragging) {
    cursor: grab;
}

.spacer {
    height: 5vh;
}

/* ===== Media Queries ===== */
/* Tablet und Mobile */
@media (max-width: 1300px) {
    /* Vertikale Videos (Bahn-Seite) */
    .vertical-video-row {
        flex-direction: column;
        padding: 0;
        align-items: center;
        gap: 0.5rem; /* Reduzierter Abstand zwischen Videos */
    }

    .vertical-video-container {
        width: min(80vw, 400px);
        height: auto;
        margin: 0 auto;
    }

    .vertical-video-container:last-child {
        margin-bottom: 0; /* Kein Abstand nach dem letzten Video */
    }

    /* Normale Videos (andere Seiten) */
    .video-row {
        flex-direction: column;
        gap: 0.5rem; /* Reduzierter Abstand zwischen Videos */
    }

    .video-container {
        width: 100%;
        margin-bottom: 0rem; /* Reduzierter Abstand */
    }

    .video-container:last-child {
        margin-bottom: 0; /* Kein Abstand nach dem letzten Video */
    }

    .hover-video:not(.vertical-video-container .hover-video) {
        width: 100%;
        height: auto;
    }

    /* Gemeinsame Styles für Mobile */
    .videos-wrapper.playing .video-container:not(.active),
    .vertical-videos-wrapper.playing .vertical-video-container:not(.active) {
        opacity: 0.4;
        filter: grayscale(30%);
    }

    .video-container.active,
    .vertical-video-container.active {
        opacity: 1;
        filter: none;
    }
}

/* Tablet */
@media screen and (min-width: 768px) {
    .about-container h6 {
        font-size: 20rem;
        line-height: 20rem;
    }
    
    .nav-brand svg {
        height: .75rem;
        transform: rotate(90deg) translateY(.25rem);
    }

    .zwischenheader {
        padding: 3rem;
    }

    .zwischenheader h1 {
        font-size: 10rem;
    }
}

@media screen and (min-width: 1350px) {
    .videos-wrapper, .video-row, .video-scroll-container {
        max-width: 100vw;
        overflow: hidden;
    }

    .hover-video:not(.vertical-video-container .hover-video) {
        height: unset;
        overflow: hidden;

    }
}

/* Desktop */
@media screen and (min-width: 1350px) {
    .video-row {
        flex-direction: row;
        gap: .5rem;
    }

    .video-container {
        width: 50vw;
        height: auto;
    }
    
    .hover-video {
        margin-bottom: 0;
        max-width: 50vw;
    }

    .hover-video:not(.vertical-video-container .hover-video) {
        height: 100%;
        object-fit: cover;
        width: fit-content;
    }
}

/* Progress Bar with improved shadow */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: .4rem;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 -2px 4px rgba(0, 0, 0, 0.1),    /* Subtle top shadow */
        0 2px 4px rgba(0, 0, 0, 0.1),      /* Subtle bottom shadow */
        0 0 8px rgba(0, 0, 0, 0.2);        /* Soft overall shadow */
    transition: 
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* [Previous CSS remains the same...] */

/* Gallery styles */
.gallery-outer-container {
    width: 100%;
    background: #57476C;
    overflow-x: auto; /* Enable horizontal scroll on outer container */
    margin-bottom: .5rem;
}

/*.gallery-outer-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera
}*/

.gallery-row {
    display: flex;
    width: max-content;
    height: 85vh;
    background: white;
    gap: .5rem;
}

.gallery-row img {
    height: 100%;
    width: auto;
    display: block;
}

/* Mobile Styles */
@media (max-width: 1000px) {
    .gallery-row {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .gallery-row img {
        width: 90%;
        height: auto;
        margin: 1rem auto;
    }
    
    .gallery-row img:first-child {
        margin-top: 0;
    }
    
    .gallery-row img:last-child {
        margin-bottom: 0;
    }

    .platzi {
        margin-bottom: 2rem;
    }
}

* {
    scrollbar-width:thin;
}

.about-container * {
    scrollbar-width:none;
}

.video-row {
    scrollbar-width: auto;
    scrollbar-gutter: auto;
}



@media (hover: hover) {

    .link:hover {
        text-decoration: underline;
    }

    .video-container:hover .progress-bar,
.vertical-video-container:hover .progress-bar {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 -3px 6px rgba(0, 0, 0, 0.15),   /* Larger top shadow on hover */
        0 3px 6px rgba(0, 0, 0, 0.15),     /* Larger bottom shadow on hover */
        0 0 10px rgba(0, 0, 0, 0.25);      /* Larger overall shadow on hover */
    height: .5rem;
}

}

.breiter .breiter:not(.vertical-video-container .hover-video) {
    width: 100vw;
    max-width: 100vw;
}














@media (max-width: 1370px) {
    .video-container,
    .vertical-video-container {
        opacity: 0.4;
        cursor: pointer;
        position: relative;
        background-color: transparent;
    }

    .video-container .hover-video,
    .vertical-video-container .hover-video {
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .video-container.active,
    .vertical-video-container.active {
        opacity: 1;
    }

    /* Verbesserter Play Button mit Schatten */
    .video-container::before,
    .vertical-video-container::before {
        content: "▶";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 2rem;
        z-index: 2;
        pointer-events: none;
        text-shadow: 
            0 0 8px rgba(0, 0, 0, 0.8),
            0 0 3px rgba(0, 0, 0, 0.9);
    }

    .video-container.active::before,
    .vertical-video-container.active::before {
        display: none;
    }

    .video-container .progress-bar,
    .vertical-video-container .progress-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: white;
        transition: width 0.1s linear;
    }

    /* Zusätzliche mobile Optimierungen */
    .video-row,
    .vertical-video-row {
        flex-direction: column;
    }

    .video-scroll-container,
    .vertical-video-scroll-container {
        overflow-x: hidden;
    }
}