/* --- LOKALE SCHRIFTARTEN (100% DSGVO-konform) --- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/orbitron-v35-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/orbitron-v35-latin-900.woff2') format('woff2');
}
/* --- CSS VARIABLEN --- */
:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --text-main: #c5c6c7;
    --text-highlight: #ffffff;
    --accent-neon-blue: #45a29e;
    --accent-neon-green: #66fcf1;
    --font-text: 'Montserrat', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color); /* Der dunkle Hintergrund kommt zurück aufs Body */
    color: var(--text-main);
    font-family: var(--font-text);
    line-height: 1.6;
    /* DAS IST DER TRICK: Das zwingt die Sterne ÜBER den Hintergrund, aber UNTER die Texte */
    isolation: isolate; 
}

/* --- C64 DEMO HINTERGRUND --- */
#c64-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.7; /* Hier können wir die Helligkeit der Sterne steuern */
}

/* --- RÖHRENMONITOR SCANLINES --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Ich habe den extrem dunklen Filter entfernt, nur die stylischen Rillen bleiben */
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(102, 252, 241, 0.05) 2px, rgba(102, 252, 241, 0.05) 4px);
    z-index: -1;
    pointer-events: none;
}

/* --- LAYOUT CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--text-highlight);
    transition: color 0.3s ease;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: rgba(11, 12, 16, 0.95);
    border-bottom: 2px solid var(--accent-neon-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    max-height: 80px; /* Logo Größe anpassen */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-neon-green);
    text-shadow: 0 0 8px var(--accent-neon-green);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    max-width: 600px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--text-highlight);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* --- SECTION PANELS --- */
.section-title-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

.panel-title {
    max-height: 100px;
}

/* --- VIDEO GRID (Responsive Magie) --- */
.video-grid {
    display: grid;
    /* Macht automatisch 4 Spalten auf großen Bildschirmen, schrumpft auf 1 bei Handys */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 252, 241, 0.2);
    border-color: var(--accent-neon-green);
}

.thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.dummy-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: var(--font-heading);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}

.video-card:hover .play-button {
    color: var(--accent-neon-green);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1.1rem;
    color: var(--text-highlight);
    margin-bottom: 5px;
    /* Schneidet zu langen Text nach 2 Zeilen ab */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.85rem;
    color: var(--accent-neon-blue);
}

/* --- FOOTER --- */
.main-footer {
    background-color: #050608;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links a {
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--accent-neon-blue);
}

/* --- MEDIA QUERIES (Fürs Smartphone) --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* --- SORTIER-LEISTE (Alle Videos) --- */
.sort-bar {
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.sort-bar label {
    font-family: var(--font-heading);
    color: var(--accent-neon-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sort-select {
    background-color: #0b0c10;
    color: var(--text-highlight);
    border: 1px solid var(--accent-neon-green);
    padding: 10px 15px;
    border-radius: 5px;
    font-family: var(--font-text);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}
/* --- STYLING FÜR DIE ÜBERSCHRIFT AUF DER STARTSEITE --- */
.section-title-text {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-text h2 {
    font-family: var(--font-heading); /* Orbitron */
    font-size: 2.2rem;
    color: var(--text-highlight); /* Dein Neon-Cyan */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-neon-green); /* Neon-Grüne Linie passend zum 80s Look */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}
/* --- HERO BILD (Responsiv & Zentriert) --- */
.hero-image {
    display: block;        /* Macht das Bild zu einem Block-Element */
    margin: 0 auto 20px;   /* Zentriert das Bild horizontal und gibt unten Abstand */
    max-width: 90%;        /* Auf kleinen Handys lässt es links/rechts 5% Platz */
    width: 400px;          /* Das ist die Wunschgröße auf dem Desktop */
    height: auto;          /* Verhindert Verzerrungen */
}

/* Für sehr kleine Smartphones (schmaler als 450px) */
@media (max-width: 450px) {
    .hero-image {
        width: 100%;       /* Nutzt die volle verfügbare Breite (minus die 90% Begrenzung) */
        max-width: 280px;  /* Verhindert, dass es auf kleinen Handys zu wuchtig wirkt */
    }
}