/* ==========================================================================
   1. ZENTRALE DESIGN-VORGABEN & RESETS
   ========================================================================== */
:root {
    --black: #0a0a0a;
    --dark-grey: #141414;
    --light-grey: #222222;
    --yellow: #fff200;
    --white: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--black);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. HEADER & STICKY NAVIGATION (UNTER VIDEO)
   ========================================================================== */
.main-header {
    background-color: var(--dark-grey);
    border-bottom: 2px solid var(--light-grey);
    position: -webkit-sticky; /* Für Safari */
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

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

/* Flexibles Logo-Handling (Text oder Image) */
.logo {
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    height: 40px; /* Fixiert die maximale Höhe der Zeile */
}

.logo-img {
    max-height: 100%; /* Passt sich automatisch der 40px Zeilenhöhe an */
    width: auto;       /* Verhindert Verzerrung */
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
}

/* Sichtbarkeit der Buttons/Links im Menü erhöht */
.main-nav > a, 
.dropdown-trigger {
    color: var(--white);
    text-decoration: none;
    font-weight: 900; /* Noch kräftiger */
    margin-left: 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.main-nav > a:hover,
.dropdown-trigger:hover {
    color: var(--yellow);
    background-color: rgba(255, 255, 240, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- DROPDOWN MENÜ MIT FADE-IN ANIMATION --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.arrow {
    font-size: 0.6rem;
    vertical-align: middle;
    margin-left: 4px;
    color: var(--yellow);
}

.dropdown-content {
    display: none;
    opacity: 0;
    position: absolute;
    background-color: var(--dark-grey);
    min-width: 220px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.7);
    z-index: 100;
    top: 100%;
    left: 25px;
    margin-top: 10px;
    border: 1px solid var(--light-grey);
    border-top: 3px solid var(--yellow);
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content a {
    color: var(--white) !important;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--light-grey);
    color: var(--yellow) !important;
    padding-left: 22px; /* Kleiner cooler Slide-Effekt beim Hovern */
}

/* Zeigt das Dropdown mit Animation beim Drüberfahren */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. HERO SECTION WITH VIDEO BACKGROUND
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url('assets/hero-fallback.jpg');
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 8%;
    max-width: 700px;
}

.hero-subtitle {
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 0.95rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    margin: 20px 0;
    letter-spacing: -1px;
}

.hero p {
    color: #eee;
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Haupt-Button auffälliger gestaltet */
.btn-primary {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    padding: 18px 36px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border: 2px solid var(--yellow);
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================================================
   4. EVENT INTERFACE & SEKTIONEN
   ========================================================================== */
.next-event-section {
    padding: 120px 0;
    border-top: 1px solid var(--light-grey);
}

.container-small {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    color: var(--yellow);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 5px 0 35px 0;
    letter-spacing: -0.5px;
}

.main-event-card {
    background-color: var(--dark-grey);
    border: 1px solid var(--light-grey);
    padding: 40px;
}

.event-main-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.event-description {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 20px 0;
    border-left: 3px solid var(--yellow);
    padding-left: 15px;
}

.event-time-badge {
    font-weight: 700;
    color: #fff;
    margin: 15px 0;
}

.location-link {
    display: inline-block;
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.location-link:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    font-weight: 900;
    font-size: 0.8rem;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.status-badge.available {
    background-color: #1a2e1a;
    color: #00ff00;
    border: 1px solid #00aa00;
}

.status-badge.full {
    background-color: #2d1616;
    color: #ff4444;
    border: 1px solid #aa0000;
}

/* ==========================================================================
   5. FORMULARE & INPUT-ELEMENTE
   ========================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.inline-form input[type="text"],
.inline-form input[type="email"] {
    width: 100%;
    padding: 14px;
    background-color: #1c1c1c;
    border: 1px solid #333;
    color: var(--white);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.friends-input {
    width: 100%;
    padding: 14px;
    background-color: #1c1c1c;
    border: 1px solid #333;
    color: var(--white);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.inline-form input:focus, 
.friends-input:focus {
    border-color: var(--yellow);
    outline: none;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #999;
}

.checkbox-wrapper input {
    margin-top: 3px;
    cursor: pointer;
}

.btn-submit {
    background: var(--yellow);
    color: var(--black);
    width: 100%;
    border: none;
    padding: 18px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--white);
}

/* ==========================================================================
   6. BENACHRICHTIGUNGEN / STATUSMELDUNGEN
   ========================================================================== */
.success-msg { 
    color: #00ff00; 
    background: rgba(0, 255, 0, 0.08); 
    padding: 15px; 
    border-left: 4px solid #00ff00; 
    margin-bottom: 25px; 
    font-weight: bold;
}

.error-msg { 
    color: #ff4444; 
    background: rgba(255, 68, 68, 0.08); 
    padding: 15px; 
    border-left: 4px solid #ff4444; 
    margin-bottom: 25px; 
    font-weight: bold;
}

.warning-msg { 
    color: var(--yellow); 
    background: rgba(255, 242, 0, 0.08); 
    padding: 15px; 
    border-left: 4px solid var(--yellow); 
    margin-bottom: 25px; 
    font-weight: bold;
}

.no-event-box { 
    background: var(--dark-grey); 
    border: 1px dashed #333; 
    padding: 30px; 
    text-align: center; 
    color: #777; 
}

/* ==========================================================================
   7. FOOTER BEREICH
   ========================================================================== */
.main-footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid var(--light-grey);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}