/* === FONT FACE DECLARATIONS === */

@font-face {
    font-family: 'Exo';
    src: url('../fonts/exo/exo-v25-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url('../fonts/exo/exo-v25-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo';
    src: url('../fonts/exo/exo-v25-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/open-sans-v44-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/open-sans-v44-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/open-sans-v44-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

:root {
    --primary-color: #2E3547;
    --secondary-color: #1a1e2e;
    --accent-color: #4a90e2;
    --text-dark: #222;
    --text-light: #666;
    --bg-light: #fff;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
header {
    background-color: #2E3547;
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px var(--shadow);
}

.logo {
    display: inline-block;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* === MAIN CONTENT === */
main {
    flex: 1 0 auto;
    padding: 4rem 0;
    width: 100%;
    min-height: 400px; 
}

/* === VIDEO NAVIGATION === */
.video-nav {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.back-link:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
}


/* === VIDEO GRID === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.video-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
}

/* === VIDEO CARD STATES === */
.video-card-published {
    cursor: pointer;
}

.video-card-published:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow-hover);
}

.video-card-unpublished {
    cursor: default;
    opacity: 0.85;
}

.video-card-unpublished:hover {
    transform: none;
    box-shadow: 0 2px 8px var(--shadow);
}

/* === VIDEO THUMBNAIL === */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #f5f5f5;
}

/* === COMING SOON OVERLAY === */
.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 0;
    text-align: center;
    backdrop-filter: blur(2px);
}

.coming-soon-overlay span {
    font-family: 'Exo', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f39c12;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.coming-soon-overlay::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2E3547, transparent);
}

.coming-soon-overlay::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2E3547, transparent);
}

/* === VIDEO INFO === */
.video-info {
    padding: 1.5rem;
    flex: 1;
}

.video-title {
    font-family: 'Exo', sans-serif;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #2E3547;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.video-description {
    font-family: 'Open Sans', sans-serif;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === VIDEO DETAIL PAGE === */
.video-detail {
    background: var(--white);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid #e8e8e8;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem; 
    margin-bottom: 2rem;
}



.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 2rem;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-detail h2 {
    font-family: 'Exo', sans-serif;
    font-size: 2rem;
    line-height: 1.3;
    color: #2E3547;
    margin-bottom: 1rem;
    font-weight: 600;
}

.video-detail p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* === FOOTER === */
footer {
    background-color: #2E3547;
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
    font-family: 'Open Sans', sans-serif;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-separator {
    color: var(--white);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* === LOADING STATE === */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    font-family: 'Open Sans', sans-serif;
}

/* === ERROR STATE === */
.error {
    background-color: #fff3cd;
    color: #856404;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid #ffeaa7;
    font-family: 'Open Sans', sans-serif;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    main {
        padding: 3rem 0;
        min-height: 300px;
    }

    .logo img {
        height: 50px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .video-detail {
        padding: 1.5rem;
        margin-top: 1.5rem; 
        margin-bottom: 1.5rem;
    }

    .video-detail h2 {
        font-size: 1.6rem;
    }
    
    .video-nav {
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* ... bestehende Regeln ... */
    
    .coming-soon-overlay span {
        font-size: 1.1rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 480px) {
    main {
        padding: 2.5rem 0;
        min-height: 250px;
    }

    .container {
        padding: 0 15px;
    }

    header {
        padding: 1.25rem 0;
    }

    .logo img {
        height: 40px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }

    .video-title {
        font-size: 1.1rem;
    }
    
    .video-detail {
        padding: 1.25rem;
        margin-top: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .video-nav {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .back-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .footer-left p,
    .footer-link {
        font-size: 0.85rem;
    }
}