/* ============================================
   RESET & GRUNDLAGEN
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Linux Biolinum O', Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    text-align: center;
    padding: 40px 20px 20px;
    width: 100%;
    max-width: 960px;
}

.site-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

#date-info {
    font-size: 1rem;
    color: #555;
    font-style: italic;
}

/* ============================================
   SLIDER-CONTAINER
   ============================================ */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 480px; /* ← GEÄNDERT */
    margin: 20px auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    position: relative;
}

.video-wrapper video {
    width: 100%;
    max-width: 480px; /* ← GEÄNDERT */
    display: block;
    border-radius: 8px;
    background: #000;
    
        /* NEU: Hochformat 9:16 für 1080×1920 Videos */
    aspect-ratio: 9 / 16;
}

/* ============================================
   NAVIGATION-BUTTONS
   ============================================ */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.prev-btn { left: 4px; }
.next-btn { right: 4px; }

.nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* ============================================
   VIDEO-INFO & COUNTER
   ============================================ */
.video-info {
    text-align: center;
    margin: 16px auto 8px;
    max-width: 480px; /* Angepasst */
    padding: 0 20px;
}

.video-info h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.video-counter {
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #777;
}

/* ============================================
   THUMBNAIL-CONTAINER (NEU)
   ============================================ */
.thumbnail-container {
    width: 80%;
/*    max-width: 480px; /* Angepasst */
    margin: 10px auto 20px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.thumbnail-item {
    padding: 10px 16px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-family: 'Linux Biolinum O', Arial, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1 1 100px;
    max-width: 220px;
    user-select: none;
}

.thumbnail-item:hover:not(.locked) {
    border-color: #000;
    background: #f5f5f5;
}

.thumbnail-item.active {
    border-color: #000;
    background: #000;
    color: #fff;
    font-weight: 600;
}

.thumbnail-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
    border-style: dashed;
    background: #fafafa;
}

/* ============================================
   SHARE-SECTION
   ============================================ */
.share-section {
    text-align: center;
    margin: 16px auto 20px;
 /*   max-width: 480px; /* Angepasst */
    padding: 0 20px;
}

.share-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #000;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-family: 'Linux Biolinum O', Arial, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.share-btn:hover {
    background: #000;
    color: #fff;
}

.share-btn:active {
    transform: scale(0.96);
}

.share-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    min-height: 1.4em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .site-header h1 { font-size: 1.8rem; }
    .slider-container { padding: 0 36px; }
    .share-buttons { gap: 8px; }
    .share-btn { padding: 8px 12px; font-size: 0.85rem; }
    .share-btn span { display: none; }
    .share-btn svg { width: 20px; height: 20px; }
}