:root {
    --primary: #ff9e00;
    --secondary: #ff4d00;
    --glass: rgba(10, 10, 10, 0.85);
    --font-main: 'Trebuchet MS', sans-serif;
}

/* --- Basis-Setup --- */
body, html {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100%;
}

/* --- Sektions-Logik (Der Fix für Überlappung) --- */
.event-section {
    position: relative;
    /* Nutze min-height statt height, damit der Inhalt bei Zoom wachsen kann */
    min-height: 100vh; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
    padding: 40px 0; /* Puffer für Zoom und Mobile */
}

/* Verhindert Überlappung: Nur auf der Index-Seite (wenn KEINE scroll-page) */
body:not(.scroll-page) .event-section {
    overflow: hidden; 
}

/* --- Hintergrund & Zoom --- */
.zoom-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 2;
}

/* --- Spezial-Regeln für die Anmeldung (.scroll-page) --- */
body.scroll-page {
    overflow-y: auto !important;
}

body.scroll-page .zoom-bg,
body.scroll-page .overlay {
    position: fixed; /* Hintergrund bleibt beim Scrollen stehen */
}

/* --- Inhalts-Karten --- */
.content-card {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 35px 25px;
    width: 85%;
    max-width: 450px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    margin: auto; /* Zentrierung */
}

/* --- Formular & Elemente --- */
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 0.8rem; color: var(--primary); margin-bottom: 5px; text-transform: uppercase; }
.form-group input { 
    width: 100%; padding: 12px; background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: #fff; 
    box-sizing: border-box; font-family: var(--font-main); font-size: 16px;
}





/* --- Fix für das Select-Feld --- */
.form-group select { 
    width: 100% !important; 
    padding: 12px !important; 
    /* Explizite Trennung von Farbe und Image für maximale Kompatibilität */
    background-color: rgba(255, 255, 255, 0.05) !important; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff9e00' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
    
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
    border-radius: 8px !important; 
    color: #fff !important; 
    box-sizing: border-box !important; 
    font-family: var(--font-main) !important; 
    font-size: 16px !important;
    cursor: pointer;
    
    /* Zwingt den Browser, das eigene Design zu verstecken */
    appearance: none !important; 
    -webkit-appearance: none !important; 
    -moz-appearance: none !important;
}

/* WICHTIG: Damit die Schrift im Dropdown nicht schwarz auf schwarz oder weiß auf weiß ist */
.form-group select option {
    background-color: #1a1a1a !important; 
    color: #fff !important;
}

/* Fokus-Effekt (wie bei den Inputs) */
.form-group select:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}


/* Zusätzlicher Style für das Textfeld, da es in der Anmeldung nicht vorkam */
textarea {
    width: 100%; padding: 12px; background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: #fff; 
    box-sizing: border-box; font-family: var(--font-main); font-size: 16px;
    resize: vertical; min-height: 100px;
}






.badge {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border: none;
    text-transform: uppercase;
    display: inline-block;
}

.btn-submit, .badge-link {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
}
.btn-submit { width: 100%; margin-top: 10px; }


/* Links */
/* Dezenter Text-Link */
.link-style {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.link-style:hover {
    color: var(--secondary);
    border-bottom: 1px solid var(--secondary);
}

/* Link, der wie ein Button aussieht */
.btn-link {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
}





/* --- Typografie --- */
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--primary); text-transform: uppercase; margin: 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--primary); margin-bottom: 10px; }
p { font-size: 1.05rem; line-height: 1.5; margin: 15px 0; }
.success { color: #00ff88; font-weight: bold; }
.error { color: var(--secondary); font-size: 0.85rem; }

/* --- Bilder-Zuweisung --- */
.img-hero { background-image: url('bild1.png'); }
.img-vorverkauf { background-image: url('bildVVK.png'); }
.img-freitag { background-image: url('bild2.jpg'); }
.img-samstag { background-image: url('https://images.unsplash.com/photo-1533174072545-7a4b6ad7a6c3?auto=format&fit=crop&w=1600&q=80'); }
.img-ralley { background-image: url('bild3.png'); }
.img-orga { background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=80'); }