/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
:root {
    --black: #0a0a0a;
    --dark-grey: #141414;
    --yellow: #fff200;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Montserrat', sans-serif; /* Lädt die Schriftart aus fonts.css */
    line-height: 1.6;
}

/* ==========================================================================
   2. ORIGINAL MAIN HEADER (STICKY) & NAVIGATION
   ========================================================================== */
.main-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #111;
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #888;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--white);
}

/* Mobile Menu Toggle Button (Drei Balken) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. CONTENT CONTAINER & HEADINGS
   ========================================================================== */
.container {
    max-width: 800px;
    margin: 140px auto 80px auto; /* 140px Abstand nach oben wegen des fixierten Headers */
    padding: 0 20px;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

h1 span {
    color: var(--yellow);
}

h2 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #444;
}

/* ==========================================================================
   4. EVENT CARDS & INNER ELEMENTS
   ========================================================================== */
.event-card {
    background: var(--dark-grey);
    border: 1px solid #222;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
}

.event-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.event-meta {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.slots-badge {
    display: inline-block;
    background: #000;
    color: var(--yellow);
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 30px;
    border: 1px solid #333;
    text-transform: uppercase;
}

.slots-full {
    color: #ff4444;
    border-color: #ff4444;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 25px;
}

/* ==========================================================================
   5. REGISTRATION FORMS & INPUTS
   ========================================================================== */
input[type="text"], 
input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus, 
input[type="email"]:focus {
    border-color: var(--yellow);
    outline: none;
}

/* Custom Checkboxes */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #000;
    border: 1px solid #333;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--yellow);
    border-color: var(--yellow);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

button[type="submit"] {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 20px;
    font-weight: 900;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    margin-top: 20px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #e6da00;
}

/* Feedback Messages */
.success {
    background: var(--yellow);
    color: #000;
    padding: 20px;
    margin-bottom: 30px;
    font-weight: 900;
    text-align: center;
}

.error {
    background: #ff4444;
    color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    font-weight: 900;
    text-align: center;
}

/* ==========================================================================
   6. PAST EVENTS LIST
   ========================================================================== */
.past-event {
    border-left: 4px solid #333;
    opacity: 0.6;
    padding: 20px;
    background: #0f0f0f;
    margin-bottom: 15px;
    transition: opacity 0.2s;
}

.past-event:hover {
    opacity: 1;
}

.past-event h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.past-link {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--yellow);
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
}

/* ==========================================================================
   7. ORIGINAL MAIN FOOTER & PARTNERS
   ========================================================================== */
.main-footer {
    /* Styles sind größtenteils inline im HTML definiert, hier sind Ergänzungen */
    color: var(--white);
}

.main-footer a {
    transition: color 0.3s, filter 0.3s;
}

/* Zusätzlicher Container für Footer-Inhalte */
.container-small {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (MOBILE MENU OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Zeigt den Hamburger-Button auf Mobilgeräten */
    }

    .main-nav {
        display: none; /* Versteckt die normale Navigation im Mobilmodus */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid #111;
        padding: 30px 40px;
        gap: 20px;
        box-sizing: border-box;
    }

    /* Wenn das Menü via JS die Klasse .active bekommt */
    .main-nav.active {
        display: flex;
    }

    /* Hamburger Animation bei Aktivierung (.active) */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-425deg);
    }

    h1 {
        font-size: 2.2rem;
    }

    .event-card {
        padding: 25px 20px;
    }

    .event-title {
        font-size: 1.6rem;
    }
}