/* =========================================
   V-SYNC OFFICIAL STYLESHEET
   Theme: Digital Decay / Metalcore / Glitch
   ========================================= */

/* --- VARIABLEN & GRUNDEINSTELLUNGEN --- */
:root {
    --primary: #ffffff;
    --bg-black: #050505;
    --bg-darker: #0f0f0f;
    --bg-card: #121212;
    
    /* Die Glitch-Farben */
    --accent-cyan: #00fff2; 
    --accent-magenta: #ff0055; 
}

body {
    background-color: var(--bg-black);
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden; /* Verhindert Scrollbalken durch Glitch-Verschiebung */
}

h1, h2, h3, .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a { text-decoration: none; }

/* --- NAVIGATION --- */
.navbar {
    background-color: rgba(5, 5, 5, 0.90);
    backdrop-filter: blur(12px); /* Milchglas-Effekt */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 900;
    color: var(--primary) !important;
}

/* Kleiner Glitch-Effekt beim Hover über das Logo */
.navbar-brand:hover {
    text-shadow: 2px 0 var(--accent-cyan), -2px 0 var(--accent-magenta);
}

.nav-link {
    color: #888 !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 255, 242, 0.4);
}

/* --- HERO SECTION CONTAINER --- */
/* HIER GEÄNDERT: Das Bild wurde entfernt und in .hero-bg verschoben */
#home {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden; /* Wichtig, damit der Zoom nicht über den Rand geht */
    background-color: var(--bg-black);
}

/* --- NEU: ANIMIERTER HINTERGRUND (KEN BURNS EFFEKT) --- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Bild laden */
    background-image: url('../assets/V-Sync.jpg'); 
    background-position: center 30%;
    background-size: cover;
    
    z-index: 0; /* Ganz unten */
    
    /* Die Atmungs-Animation: 20 Sekunden für einmal rein und raus */
    animation: bg-breathe 20s ease-in-out infinite;
}

/* Die Keyframes für das sanfte Zoomen */
@keyframes bg-breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); } /* Zoomt sanft auf 115% */
    100% { transform: scale(1); }
}

/* --- OVERLAY: ABDUNKLUNG & VIGNETTE --- */
#home::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* Verlauf: Unten komplett schwarz (Übergang), Ränder dunkel (Vignette) */
    background: 
        linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.5) 70%, var(--bg-black) 100%),
        radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1; /* Über dem Bild (.hero-bg) */
}

/* --- CRT SCANLINES (TV RASTER) --- */
.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; /* Über dem Dark-Overlay */
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px; /* Alle 4 Pixel eine Linie */
    pointer-events: none; /* Klicks gehen durch */
}

.content {
    z-index: 3; /* Muss über Overlay (1) und Scanlines (2) liegen */
    max-width: 800px;
    padding: 0 20px;
}

/* Untertitel Stil */
.spacing-lg {
    letter-spacing: 6px;
    color: #ccc;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- V-SYNC HYBRID GLITCH (FINAL) --- */

.glitch-header {
    position: relative;
    font-size: 5rem;
    line-height: 1;
    font-weight: 900;
    color: var(--primary); 
    z-index: 10;
    
    animation: 
        main-twitch 4s infinite steps(1),
        random-flicker 12s infinite linear;
}

@media(max-width: 768px) {
    .glitch-header { font-size: 3rem; }
}

/* Basis für die Geister-Ebenen */
.glitch-header::before,
.glitch-header::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8; 
    background: transparent;
}

/* Ebene 1: CYAN */
.glitch-header::before {
    color: var(--accent-cyan);
    z-index: -1;
    animation: wide-drift 1s ease-in-out infinite alternate;
}

/* Ebene 2: MAGENTA */
.glitch-header::after {
    color: var(--accent-magenta);
    z-index: -2;
    animation: wide-drift 1s ease-in-out infinite alternate-reverse;
}

/* ANIMATION 1: Das weiche Schwimmen der Farben */
@keyframes wide-drift {
    0% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
    30% { transform: translate(-5px, 2px); clip-path: inset(15% 0 55% 0); }
    70% { transform: translate(4px, -3px); clip-path: inset(60% 0 10% 0); }
    100% { transform: translate(-3px, 4px); clip-path: inset(10% 0 70% 0); }
}

/* ANIMATION 2: Der "Herzschlag" / Twitch des Haupttextes */
@keyframes main-twitch {
    0%, 90% { transform: skew(0deg); }
    91% { transform: skew(40deg) translate(-5px); }
    92% { transform: skew(-40deg) translate(5px); }
    93% { transform: skew(0deg); }
    96% { transform: skew(10deg); }
    97% { transform: skew(-5deg); }
    100% { transform: skew(0deg); }
}

/* ANIMATION 3: DER KNAPPE STROMAUSFALL (ca. 0.8 Sekunden) */
@keyframes random-flicker {
    0%, 14% { opacity: 1; }
    
    /* Dunkel von 15% bis 22% */
    15% { opacity: 0; }
    18% { opacity: 1; }
    
    /* Kurzes Zünden */
    23% { opacity: 1; }
    24% { opacity: 0; }
    25% { opacity: 1; }
    
    /* Stabil an */
    26%, 75% { opacity: 1; }
    
    /* Kleiner Wackler */
    76% { opacity: 0; }
    77% { opacity: 0.4; }
    78% { opacity: 1; }
    
    /* An bis Ende */
    79%, 100% { opacity: 1; }
}


/* --- BUTTONS --- */
.btn {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
}

.btn-outline-light:hover {
    border-color: var(--accent-cyan);
    color: var(--bg-black);
    background-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.6);
}

.btn-white {
    background-color: white;
    color: black;
    border: 1px solid white;
}
.btn-white:hover {
    background-color: #1ed760; 
    border-color: #1ed760;
    color: white;
}

.btn-outline-white {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* --- SECTIONS --- */
.bg-darker { background-color: var(--bg-darker); }
.bg-black { background-color: var(--bg-black); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-cyan);
    margin: 15px auto 0;
}

/* --- TOUR TABELLE --- */
.custom-table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.custom-table tbody tr {
    background-color: rgba(255,255,255,0.02);
    transition: transform 0.2s, background-color 0.2s;
}

.custom-table tbody tr:hover {
    background-color: rgba(255,255,255,0.08);
    transform: scale(1.01);
}

.custom-table td {
    border: none;
    padding: 1.5rem 1.5rem;
    vertical-align: middle;
    color: #ccc;
}

.custom-table .date {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-cyan);
    font-weight: bold;
}

.custom-table .venue {
    font-size: 1.2rem;
    color: white;
}

/* --- BILDER --- */
.grayscale-img {
    filter: grayscale(100%) contrast(110%) brightness(0.9);
    transition: all 0.5s ease;
    width: 100%;
    display: block;
}

.grayscale-img:hover {
    filter: grayscale(0%) contrast(100%) brightness(1);
    box-shadow: -5px 5px 0px rgba(0, 255, 242, 0.3), 5px -5px 0px rgba(255, 0, 85, 0.3);
}

/* --- FORM & FOOTER --- */
.form-control {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid #333 !important;
    color: white !important;
    padding: 15px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-cyan) !important;
}

.social-icons a {
    color: #555;
    font-size: 1.8rem;
    margin: 0 15px;
    transition: all 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
        background-position: center center;
    }
}

/* --- ENTER OVERLAY --- */
#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-black);
    z-index: 9999; /* Muss ganz oben liegen */
    transition: opacity 1s ease, visibility 1s ease;
}

/* Wenn das Overlay ausgeblendet wird */
#enter-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Pulsierender Effekt für den Button */
#enter-btn {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 242, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 242, 0); }
}