/* =========================================
   1. GRUNDLAGEN & VARIABLEN
   ========================================= */
:root {
    /* Farben */
    --bg-color: #050505;       /* Tiefschwarz für den Hintergrund */
    --card-bg: #171717;        /* Helles Schwarz/Grau für Elemente */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --accent: #ffffff;         
    --border-color: #2a2a2a;
    
    /* Marken-Farben */
	--ts-color: #004488;
    --twitch-color: #9146FF;   
    --yt-color: #FF0000;
    --insta-color: #C13584;
    --discord-color: #5865F2;
    --wa-color: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

/* GLOBALER HINTERGRUND: Diagonale Streifen (Speed Lines) */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    position: relative;

    background-image: 
        /* Weicher Licht-Spot oben */
        radial-gradient(circle at 50% 30%, #222222 0%, transparent 70%),
        /* Diagonale Streifen */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 11px
        );
    
    background-attachment: fixed;
}

/* WICHTIG: Offset für das Menü */
section, header {
    scroll-margin-top: 120px;
}

/* =========================================
   ANIMATIONEN (Fade In)
   ========================================= */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content, .linktree-grid, .taverne-layout, .specs-grid {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
    opacity: 0;
}

.hero-content { animation-delay: 0.1s; }
.linktree-grid { animation-delay: 0.3s; }
.taverne-layout { animation-delay: 0.5s; }
.specs-grid { animation-delay: 0.7s; }


/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(15, 15, 15, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
}

.nav-logo {
    height: 45px;
    width: auto;
    transition: opacity 0.3s;
    display: block;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

/* =========================================
   3. HERO SEKTION
   ========================================= */
.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content { max-width: 800px; width: 100%; }

.hero-logo {
    height: 160px;
    width: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.05));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 35px;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    min-width: 160px;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--accent);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.cta-button.ts-btn { 
    border-color: var(--ts-color); 
}

.cta-button.ts-btn:hover { 
    background-color: var(--ts-color); 
    color: white; 
    border-color: var(--ts-color);
    box-shadow: 0 0 20px rgba(0, 68, 136, 0.4); /* Leuchteffekt passend zum Blau */
}

/* =========================================
   4. ALLGEMEINE SEKTIONEN
   ========================================= */
.container {
    padding: 60px 5%; 
    padding-bottom: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -40px;
    margin-bottom: 60px;
    font-weight: 300;
}

/* =========================================
   5. LINKTREE (CONNECT)
   ========================================= */
.linktree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.link-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: var(--card-bg);
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.link-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent); 
}

/* Marken-spezifische Hover-Effekte */
.link-card.twitch:hover { border-color: var(--twitch-color); box-shadow: 0 5px 20px rgba(145, 70, 255, 0.15); }
.link-card.youtube:hover { border-color: var(--yt-color); box-shadow: 0 5px 20px rgba(255, 0, 0, 0.15); }
.link-card.instagram:hover { border-color: var(--insta-color); box-shadow: 0 5px 20px rgba(193, 53, 132, 0.15); }
.link-card.discord:hover { border-color: var(--discord-color); box-shadow: 0 5px 20px rgba(88, 101, 242, 0.15); }
.link-card.whatsapp:hover { border-color: var(--wa-color); box-shadow: 0 5px 20px rgba(37, 211, 102, 0.15); }

.link-card.teamspeak:hover { 
    border-color: var(--ts-color); 
    box-shadow: 0 5px 20px rgba(0, 68, 136, 0.2); 
}

/* =========================================
   6. TAVERNE
   ========================================= */
.taverne-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

#taverne {
    border-top: 1px solid #332211;
    border-bottom: 1px solid #332211;
    scroll-margin-top: 120px;
}

.stream-box, .ts3-box {
    background-color: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stream-box h3, .ts3-box h3 { margin-bottom: 20px; font-weight: 500; }
#twitch-embed { width: 100%; aspect-ratio: 16 / 9; }
#twitch-embed iframe { width: 100%; height: 100%; border: none; }

.ts3-viewer-placeholder {
    flex-grow: 1;
    background-color: #0f0f0f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    border: 1px dashed #333;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
}

.ts-join-btn {
    margin-top: 20px;
    padding: 10px 25px;
    border: 1px solid var(--text-muted);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    display: inline-block;
}
.ts-join-btn:hover { background-color: white; color: black; border-color: white; }
.status-text { margin-top: 15px; text-align: right; font-size: 0.9rem; }

/* Taverne Glow Effects */
@keyframes glow-pulse {
    0% { text-shadow: 0 0 20px rgba(255, 191, 0, 0.3); }
    50% { text-shadow: 0 0 35px rgba(255, 191, 0, 0.6); }
    100% { text-shadow: 0 0 20px rgba(255, 191, 0, 0.3); }
}

#taverne h2 {
    color: #ffbf00;
    text-shadow: 0 0 20px rgba(255, 191, 0, 0.3);
    letter-spacing: 4px;
    animation: glow-pulse 3s infinite ease-in-out;
}

#taverne .stream-box, #taverne .ts3-box {
    border-color: #5c4018;
    transition: transform 0.3s, box-shadow 0.3s;
}
#taverne .stream-box:hover, #taverne .ts3-box:hover {
    border-color: #ffbf00;
    box-shadow: 0 0 25px rgba(255, 191, 0, 0.15);
    transform: translateY(-3px);
}
#taverne .ts-join-btn { border-color: #ffbf00; color: #ffbf00; }
#taverne .ts-join-btn:hover { background-color: #ffbf00; color: #000; box-shadow: 0 0 15px rgba(255, 191, 0, 0.5); }

/* =========================================
   SETUP / SPECS SEKTION
   ========================================= */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.specs-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.specs-card h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2px solid #222;
    padding-bottom: 10px;
    letter-spacing: 2px;
}

.specs-list { list-style: none; padding: 0; }
.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
}
.specs-list li:last-child { border-bottom: none; }

.spec-label { color: var(--text-muted); font-weight: 500; min-width: 100px; }
.spec-value { color: var(--text-main); text-align: right; font-weight: 300; padding-left: 15px; }

/* =========================================
   7. FOOTER & LEGAL
   ========================================= */
footer {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(8, 8, 8, 0.9);
    color: #444;
    font-size: 0.85rem;
    margin-top: 80px;
    border-top: 1px solid #111;
}

footer a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
    display: inline-block;
    margin-top: 5px;
}
footer a:hover { color: var(--text-main); }

.legal-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.legal-tab-btn {
    padding: 12px 30px;
    background-color: #2a2a2a;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #333;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.legal-tab-btn:hover { background-color: #333; color: white; }
.legal-tab-btn.active {
    background-color: var(--twitch-color);
    color: white;
    border-color: var(--twitch-color);
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.3);
}

.legal-content-box {
    background-color: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 50px;
    line-height: 1.8;
    color: #ccc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 900px;
    margin: 0 auto;
}
.legal-content-box h2, .legal-content-box h3 { color: white; border: none; text-align: left; }
.legal-content-box h2 { margin-top: 0; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.legal-content-box a { color: var(--text-muted); text-decoration: underline; transition: color 0.2s; }
.legal-content-box a:hover { color: var(--twitch-color); }

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .specs-grid { grid-template-columns: 1fr; gap: 20px; }
    .specs-list li { flex-direction: column; gap: 5px; }
    .spec-value { text-align: left; padding-left: 0; color: white; }
}

@media (max-width: 1024px) {
    .taverne-layout { grid-template-columns: 1fr; }
    #twitch-embed { height: auto; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 20px; }
    .nav-links { margin-top: 20px; width: 100%; justify-content: center; gap: 20px; flex-wrap: wrap; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .cta-button { width: 100%; max-width: 320px; margin: 0 auto; }
    .legal-content-box { padding: 30px 20px; }
}

/* Fix für überlange Wörter auf Mobilgeräten */
@media (max-width: 600px) {
    h2 {
        font-size: 1.8rem;
        word-wrap: break-word; /* Wortumbruch erlauben */
        hyphens: auto; /* Automatische Silbentrennung mit Bindestrich */
        overflow-wrap: break-word;
    }

    .legal-content-box h2 {
        font-size: 1.2rem; /* Speziell in der Rechtstext-Box noch etwas kleiner */
    }
}