/* Globale Resets & Variablen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #005f5b;
    --secondary-teal: #00857a;
    --accent-orange: #ff9800;
    --light-orange: #f9d19b;
    --dark-bg: #111111;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-light: #ffffff;
    --text-dark: #2b2b2b;
}

body {
    font-family: 'Raleway', system-ui, sans-serif;
    background: #0d0b18;
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-container {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    color: var(--light-orange);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header & Nav (Sticky & Mobile) */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-teal);
}

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

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-icon span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Aktiviertes Hamburger-X */
.menu-icon.active span:nth-child(1) { 
    transform: translateY(8px) rotate(45deg);
 }
.menu-icon.active span:nth-child(2) { 
    opacity: 0; 
}
.menu-icon.active span:nth-child(3) {
     transform: translateY(-8px) rotate(-45deg);
     }

.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-bg);
    padding: 100px 30px;
    transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}

.nav-menu.active { left: 0; }

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.2s;
}

.nav-menu a.active, .nav-menu a:hover {
    color: var(--accent-orange);
}

/* Hero Section */
.hero-image {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(13,11,24,1)), url('../img/hero.webp') center/cover no-repeat fixed;
    padding: 20px;
}

.hero-text-overlay h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-text-overlay h1 span {
    color: var(--accent-orange);
    display: block;
    font-size: 0.6em;
    font-weight: 300;
    letter-spacing: 4px;
}

.hero-sub {
    margin: 20px 0 40px;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #e0e0e0;
}

.btn-entdecken {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--accent-orange);
    color: #000;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255,152,0,0.4);
    transition: 0.3s ease;
    border-radius: 4px;
}

.btn-entdecken:hover {
    transform: scale(1.05) translateY(-3px);
    background: #ffa726;
}

.btn-icon { width: 35px; height: auto; }

/* Info Box / Teal Section */
.info-box-teal {
    /* background: linear-gradient(135deg, var(--primary-teal), #004441); */
    padding: 50px 20px;
    border-radius: 20px;
    margin: 20px;
}

.teal-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.teal-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.highlight-date {
    font-size: 1.3rem; 
    font-weight: 700; 
}
.teal-content strong { 
    color: var(--light-orange);
}

.highlight-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
}

.fact {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 4px;
}

.fact-icon { 
    font-size: 2.5rem; 
    display: block; 
    margin-bottom: 5px; 
}
.fact strong { 
    font-size: 1.6rem; 
    color: var(--accent-orange); 
}
.fact small { display: block; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    opacity: 0.8; 
}

/* Filter & Truck-Cards */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-orange);
    color: #000;
    border-color: var(--accent-orange);
}

.truck-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Verspielte Material Cards */
.material-card {
    background: #1a162b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.material-card:hover { transform: translateY(-5px); }

.card-header-img {
    height: 180px;
    position: relative;
    background: #333;
}

.card-header-img img { width: 100%; height: 100%; object-fit: cover; }

.truck-zone {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary-teal);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-body { padding: 20px; }
.card-body h3 { font-size: 1.4rem; color: var(--light-orange); margin-bottom: 5px; }
.cuisine-tag { font-size: 0.9rem; font-weight: 700; color: #aaa; margin-bottom: 10px; display: block; }
.speciality { font-size: 0.95rem; font-style: italic; opacity: 0.9; }

/* Programm & Tabs */
.program-container { background: #120f2b; padding: 60px 20px; border-radius: 24px; }
.program-container h2 { text-align: center; margin-bottom: 30px; color: var(--light-orange); }

.tabs-control { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }

.tab-btn {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--text-light);
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
}

.tab-btn.active { background: var(--primary-teal); border-color: var(--primary-teal); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.schedule-grid { display: flex; flex-direction: column; gap: 20px; }
.stage-section { background: rgba(255,255,255,0.02); padding: 20px; border-radius: 16px; border-left: 4px solid var(--accent-orange); }
.stage-section h3 { color: var(--accent-orange); margin-bottom: 15px; font-size: 1.1rem; text-transform: uppercase; }

.time-slot { display: flex; gap: 15px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.time-slot:last-child { border-bottom: none; }
.time { font-weight: 900; color: var(--light-orange); min-width: 60px; }

/* Interaktiver Lageplan-Fallback */
.interactive-map-fallback { background: #1a162b; padding: 30px; border-radius: 16px; text-align: center; }
.map-hint { font-size: 0.9rem; margin-bottom: 20px; color: #aaa; }
.map-zones { display: flex; flex-direction: column; gap: 10px; }
.map-zone-trigger {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.map-zone-trigger:hover { background: var(--secondary-teal); }

/* Anfahrt, Kontakt & Map */
.contact-grid { display: flex; flex-direction: column; gap: 30px; }
.contact-info h3 { margin-top: 20px; color: var(--light-orange); }
.contact-info a { color: var(--accent-orange); }
.map-container iframe { border-radius: 16px; }

/* News Sektor */
.news-grid { display: flex; flex-direction: column; gap: 20px; }
.news-card { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; border-top: 4px solid var(--primary-teal); }
.news-meta { font-size: 0.8rem; color: #888; margin-bottom: 8px; }
.news-card h3 { color: var(--light-orange); margin-bottom: 10px; }

/* Formularstyling */
.form-container { background: #fff; color: #000; padding: 30px 20px; border-radius: 20px; }
.form-container h2 { color: var(--primary-teal); margin-bottom: 25px; }
.form-group-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; }
.form-group-field label { font-weight: 700; font-size: 0.9rem; }
.form-group-field input[type="text"],
.form-group-field input[type="email"],
.form-group-field select { padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; }
.form-group-field input:focus, .form-group-field select:focus { border-color: var(--primary-teal); outline: none; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; }
.checkbox-group label { font-weight: normal; font-size: 0.95rem; display: flex; align-items: center; gap: 5px; }
.datenschutz-note { font-size: 0.8rem; color: #666; margin-bottom: 20px; }
.btn-submit { background: var(--primary-teal); color: white; border: none; padding: 14px; font-weight: bold; font-size: 1.1rem; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.btn-submit:hover { background: #004643; }

/* Fehler-Validierung */
.error-msg { color: #cc0000; font-size: 0.8rem; font-weight: 700; display: none; }
.form-group-field.invalid input, .form-group-field.invalid select { border-color: #cc0000; background: #fff8f8; }
.form-group-field.invalid .error-msg { display: block; }
.success-box { display: none; background: #d4edda; color: #155724; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: #1a162b; padding: 30px; border-radius: 16px; max-width: 500px; width: 100%; position: relative; border: 2px solid var(--accent-orange); }
.close-modal { position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* Footer */
.footer { background: #000; padding: 40px 20px; text-align: center; font-size: 0.9rem; }
.footer-content { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.footer-links a { color: var(--light-orange); text-decoration: none; }

/* ==========================================
   MEDIA QUERIES (DESKTOP-SKALIERUNG)
   ========================================== */
@media (min-width: 768px) {
    .highlight-facts { grid-template-columns: repeat(4, 1fr); }
    .filter-bar { flex-direction: row; justify-content: space-between; }
    .truck-grid { grid-template-columns: repeat(2, 1fr); }
    .schedule-grid { flex-direction: row; }
    .stage-section { flex: 1; }
    .contact-grid { flex-direction: row; }
    .contact-info, .map-container { flex: 1; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Navigation klappt auf Desktop aus */
    .menu-icon { display: none; }
    .nav-menu { position: static; height: auto; width: auto; max-width: none; background: none; padding: 0; box-shadow: none; }
    .nav-menu ul { flex-direction: row; gap: 20px; }
}

@media (min-width: 1024px) {
    .truck-grid { grid-template-columns: repeat(3, 1fr); }
}