/* ========================================
   25-videos.css
   Video-Bibliothek – YouTube Watch-Layout
   
   2-Spalten: Großer Player links + scrollbare Sidebar rechts
   CI-konform: Nutzt Design-Tokens aus 01-tokens.css
   ======================================== */

/* ========================================
   Hero Section
   ======================================== */
.videos-hero {
    position: relative;
    background: var(--farbe-schwarz, #000000);
    background-image: url('../../Bilder/Hg_Knoten.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.videos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 0;
}

.videos-hero__container {
    position: relative;
    z-index: 1;
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.videos-hero__titel {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--farbe-weiss, #FFFFFF);
    line-height: 1.15;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.videos-hero__beschreibung {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 40rem;
    margin: 0 auto;
}

/* ========================================
   Kategorie-Filter (Sticky)
   ======================================== */
.videos-filter {
    background: var(--farbe-schwarz, #000000);
    border-bottom: 1px solid rgba(200, 111, 39, 0.2);
    position: sticky;
    top: 80px;
    z-index: 90;
    padding: 0;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.videos-filter.videos-filter--full {
    top: 0;
    z-index: 1021;
}

.videos-filter__container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.videos-filter__buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.videos-filter__buttons::-webkit-scrollbar {
    display: none;
}

.videos-filter__btn {
    padding: 1.125rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.videos-filter__btn:hover {
    color: var(--farbe-weiss, #FFFFFF);
    border-bottom-color: rgba(200, 111, 39, 0.4);
}

.videos-filter__btn.ist-aktiv {
    color: var(--farbe-gold, #C86F27);
    border-bottom-color: var(--farbe-gold, #C86F27);
}

.videos-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.videos-filter__btn.ist-aktiv .videos-filter__count {
    background: rgba(200, 111, 39, 0.2);
    color: var(--farbe-gold, #C86F27);
}

/* ========================================
   2-Spalten Watch-Layout
   ======================================== */
.videos-watch {
    background: var(--farbe-weiss-warm, #F5F5F5);
    padding: 2.5rem 0 4rem;
}

.videos-watch__container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* ========================================
   Haupt-Player (links, ~70%)
   ======================================== */
.videos-watch__haupt {
    min-width: 0;
}

.videos-watch__player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: var(--farbe-schwarz, #000000);
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
}

.videos-watch__player .video-card__thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videos-watch__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0.75rem;
}

/* Play-Button (groß) */
.video-card__play--gross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.video-card__play--gross:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video-Info unter dem Player */
.videos-watch__info {
    padding: 1.5rem 0.25rem;
}

.videos-watch__titel {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--farbe-schwarz, #000000);
    line-height: 1.3;
    margin: 0.5rem 0 0.75rem;
}

.videos-watch__beschreibung {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--farbe-grau-dunkel, #666666);
    margin: 0;
}

/* ========================================
   Sidebar (rechts, scrollbar)
   ======================================== */
.videos-watch__sidebar {
    background: var(--farbe-weiss, #FFFFFF);
    border: 1px solid var(--farbe-grau, #D9D9D9);
    border-radius: 0.75rem;
    overflow: hidden;
    position: sticky;
    top: 160px;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.videos-watch__sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--farbe-grau, #D9D9D9);
    flex-shrink: 0;
}

.videos-watch__sidebar-titel {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--farbe-schwarz, #000000);
}

.videos-watch__sidebar-count {
    font-size: 0.8125rem;
    color: var(--farbe-grau-dunkel, #666666);
}

.videos-watch__liste {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 111, 39, 0.3) transparent;
}

.videos-watch__liste::-webkit-scrollbar {
    width: 4px;
}

.videos-watch__liste::-webkit-scrollbar-track {
    background: transparent;
}

.videos-watch__liste::-webkit-scrollbar-thumb {
    background: rgba(200, 111, 39, 0.3);
    border-radius: 2px;
}

/* ========================================
   Sidebar-Eintrag (einzelnes Video)
   ======================================== */
.videos-watch__eintrag {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: background 0.2s ease;
}

.videos-watch__eintrag:hover {
    background: var(--farbe-weiss-warm, #F5F5F5);
}

.videos-watch__eintrag.ist-aktiv {
    background: rgba(200, 111, 39, 0.08);
    border-left: 3px solid var(--farbe-gold, #C86F27);
}

.videos-watch__eintrag:last-child {
    border-bottom: none;
}

/* Thumbnail in der Sidebar */
.videos-watch__eintrag-thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--farbe-schwarz, #000000);
}

.videos-watch__eintrag-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videos-watch__eintrag-nummer {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--farbe-weiss, #FFFFFF);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Info in der Sidebar */
.videos-watch__eintrag-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding-top: 2px;
}

.videos-watch__eintrag-titel {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--farbe-schwarz, #000000);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.videos-watch__eintrag.ist-aktiv .videos-watch__eintrag-titel {
    color: var(--farbe-gold, #C86F27);
}

.videos-watch__eintrag-kat {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--farbe-grau-dunkel, #666666);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ausblenden bei Filter */
.videos-watch__eintrag.ist-versteckt {
    display: none;
}

/* ========================================
   Consent Notice (im Player)
   ======================================== */
.video-card__consent-notice {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0.75rem;
}

.video-card__consent-notice p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 1rem 0;
    max-width: 24rem;
}

.video-card__consent-btn {
    background: rgba(200, 111, 39, 0.2);
    border: 1px solid rgba(200, 111, 39, 0.4);
    color: var(--farbe-gold, #C86F27);
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.video-card__consent-btn:hover {
    background: rgba(200, 111, 39, 0.3);
    border-color: var(--farbe-gold, #C86F27);
}

/* ========================================
   Kategorie-Badge (Player-Info)
   ======================================== */
.video-card__kategorie {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--farbe-gold, #C86F27);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   Vimeo Placeholder
   ======================================== */
.video-card__vimeo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A, #333);
}

.video-card__vimeo-placeholder span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    font-weight: 600;
}

.video-card__vimeo-placeholder--mini {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-card__vimeo-placeholder--mini span {
    font-size: 0.875rem;
}

/* ========================================
   Leer-Zustand
   ======================================== */
.videos-leer {
    background: var(--farbe-weiss-warm, #F5F5F5);
    padding: 6rem 0;
}

.videos-leer__container {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.videos-leer__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--farbe-schwarz, #000000);
    margin: 0 0 1rem;
}

.videos-leer__content p {
    color: var(--farbe-grau-dunkel, #666666);
    font-size: 1rem;
    line-height: 1.7;
}

.videos-grid__leer {
    text-align: center;
    padding: 4rem 2rem;
}

.videos-grid__leer p {
    color: var(--farbe-grau-dunkel, #666666);
    font-size: 1.125rem;
}

/* ========================================
   CTA Section (Schwarz)
   ======================================== */
.videos-cta {
    background: var(--farbe-schwarz, #000000);
    padding: 6rem 0;
    text-align: center;
}

.videos-cta__container {
    max-width: 45rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.videos-cta__titel {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--farbe-weiss, #FFFFFF);
    line-height: 1.2;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.videos-cta__text {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2.5rem;
}

.videos-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .videos-watch__container {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
    }
    
    .videos-watch__eintrag-thumb {
        width: 100px;
        height: 56px;
    }
}

@media (max-width: 768px) {
    .videos-hero {
        padding: 10rem 0 3.5rem;
    }

    .videos-filter {
        top: 60px;
    }

    .videos-filter__btn {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }

    /* Auf Mobil: Untereinander statt nebeneinander */
    .videos-watch {
        padding: 1.5rem 0 3rem;
    }

    .videos-watch__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .videos-watch__sidebar {
        position: static;
        max-height: none;
    }
    
    .videos-watch__liste {
        max-height: 400px;
    }

    .videos-watch__player {
        border-radius: 0.5rem;
    }

    .videos-cta {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .videos-hero__titel {
        font-size: 2rem;
    }

    .videos-filter__btn {
        padding: 0.75rem 0.75rem;
        font-size: 0.75rem;
    }

    .videos-watch__eintrag-thumb {
        width: 90px;
        height: 50px;
    }

    .videos-watch__eintrag-titel {
        font-size: 0.75rem;
    }
}
