/* ✈️ CSS v6.11.4 - REVISION: Changelog Integration & Nav-Split */
/* ÄNDERUNGEN v6.11.4:
1. Navigation: Unterstützung für 5. Menüpunkt (Updates/Changelog) durch angepasste Gaps.
2. Changelog: Neue Section .changelog-section mit Glassmorphism-Design für Technik-Updates.
3. Struktur: Trennung von Archiv-Inhalt (Episoden) und Software-Historie.
4. Mobile-Fix: -webkit-overflow-scrolling für flüssiges Transkript-Erlebnis.
5. H1-Wrap: Überlaufen von langen Titeln auf kleinen Screens behoben.
*/

/* 1. VARIABLEN & BASIS */
:root { 
    --bg: #000; 
    --card: #121212; 
    --accent: #9b59b6; 
    --btc-orange: #f7931a; 
    --text: #fff; 
    --text-dim: rgba(255,255,255,0.6); 
    --btn-bg: #1a1a1a; 
    --glass: rgba(255, 255, 255, 0.03);
}

body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: system-ui, -apple-system, sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.main-wrapper { 
    max-width: 500px; 
    margin: 0 auto; 
    width: 100%; 
}

@media (min-width: 1024px) {
    .main-wrapper { max-width: 900px; }
}

/* 2. NAVIGATION (Optimiert für 5 Items) */
.main-nav { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    padding: 15px 10px; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-nav a { 
    color: var(--text-dim); 
    text-decoration: none; 
    font-size: 0.65rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* 3. HERO & HEADER */
.hero-section { width: 100%; position: relative; z-index: 1; }
.hero-img-full { width: 100%; height: auto; object-fit: cover; display: block; }

@media (min-width: 1024px) {
    .hero-img-full { max-height: 60vh; }
}

.home-header { text-align: center; padding: 40px 20px; }

h1 { 
    margin: 0; 
    font-size: 1.8rem;
    overflow-wrap: break-word; /* FIX: Erlaubt Umbruch bei langen Titeln */
    line-height: 1.2;
}

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
}

.tagline { 
    font-size: 0.85rem; 
    color: var(--text-dim); 
    margin-top: 8px; 
    font-weight: 500;
}

/* 4. CARDS & OVERLAP */
.card { 
    background: var(--card); 
    border-radius: 28px; 
    padding: 25px; 
    margin: 0 15px 30px 15px; 
    border: 1px solid rgba(255,255,255,0.03); 
    position: relative;
    z-index: 10; 
}

/* Der "Overlap" Effekt für die erste Karte nach dem Hero */
.hero-section + .main-wrapper article.card:first-of-type,
.hero-section + article.card {
    margin-top: -60px; 
    box-shadow: 0 -20px 40px rgba(0,0,0,0.6);
}

.section-label {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
}

/* 5. CHANGELOG (Software-Entwicklungshistorie) */
.changelog-section {
    padding: 30px 20px;
    background: var(--glass);
    border-radius: 28px;
    margin: 20px 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.changelog-section h2 {
    color: var(--btc-orange);
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

.log-entry {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.log-entry:last-child { border-bottom: none; }

.log-entry h3 { 
    font-size: 0.95rem; 
    color: var(--accent); 
    margin: 0 0 10px 0; 
}

.log-entry ul { list-style: none; padding: 0; margin: 0; }

.log-entry li { 
    font-size: 0.85rem; 
    color: var(--text-dim); 
    padding-left: 20px; 
    position: relative; 
    margin-bottom: 5px;
}

.log-entry li::before { 
    content: "✈️"; 
    position: absolute; 
    left: 0; 
    font-size: 0.7rem; 
    top: 2px;
}

/* 6. TRANSCRIPT & TABS */
.transcript-box {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
    padding: 25px;
    background: var(--glass);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    font-family: "Georgia", serif;
    font-size: 1.05rem;
    line-height: 1.8; 
    color: var(--text);
    white-space: pre-wrap;
}

.ts-anchor {
    color: var(--accent);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(155, 89, 182, 0.1);
    font-weight: bold;
}

.ts-anchor.current-ts {
    color: #000 !important;
    background: var(--btc-orange) !important;
    box-shadow: 0 0 12px rgba(247, 147, 26, 0.4);
}

/* 7. BUTTONS & INTERACTION */
.btn { 
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; 
    border-radius: 18px; text-decoration: none; font-weight: 700; margin-bottom: 12px;
    background: var(--btn-bg); color: var(--text); border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer; transition: transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }
.btn-zap { background: var(--btc-orange); color: #000; border: none; }

/* 8. FOOTER */
footer { padding: 60px 20px; text-align: center; font-size: 0.7rem; color: var(--text-dim); }
.footer-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 10px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.version-info { margin-top: 10px; opacity: 0.5; }
