/* --- 1. FARBPALETTE & BASIS --- */
:root {
    --cc-blue: #14374E;   
    --cc-green: #64a70b;  
    --cc-red: #f44336;    
    --cc-yellow: #FFC000; 

    --primary: var(--cc-blue);
    --primary-light: #204e6e;
    --accent: var(--cc-red);
    --contrast-yellow: var(--cc-yellow);
    
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #64748b;
    
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif;
    margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; 
}
h1, h2, h3, h4, .nav-links a, .flyer-font { font-family: 'Roboto', sans-serif; }

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed; top: 0; left: 0; 
    height: 4px; background: var(--cc-red); width: 0%; z-index: 2000; 
    transition: width 0.1s ease-out;
}

/* --- 2. NAVIGATION --- */
nav {
    background: var(--primary); 
    padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-logo {
    font-family: 'Roboto', sans-serif; 
    font-weight: 900; font-size: 1.8rem;
    color: #ffffff; text-transform: uppercase; text-decoration: none;
    display: flex; align-items: center; gap: 15px;
}
.nav-logo img { height: 45px; width: auto; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    text-decoration: none; color: #ffffff; font-weight: 600; 
    font-size: 1rem; text-transform: uppercase; position: relative; padding-bottom: 5px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; 
    background: var(--cc-green); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* --- HERO --- */
header {
    position: relative; height: 85vh; min-height: 600px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: white; padding: 0 20px;
    background: linear-gradient(rgba(20, 55, 78, 0.9), rgba(20, 55, 78, 0.4)), 
                url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }
header h1 { 
    font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; margin-bottom: 10px; line-height: 1.1; 
    text-transform: uppercase; letter-spacing: -1px;
}
header p { 
    font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; margin: 0 auto 40px; opacity: 0.95; 
    max-width: 700px;
}
.btn-hero {
    background: var(--accent); color: white; padding: 18px 40px; 
    font-size: 1.1rem; font-weight: 700; text-transform: uppercase; text-decoration: none; 
    border: none; border-radius: 50px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    transition: transform 0.2s, background 0.2s; display: inline-block;
}
.btn-hero:hover { background: #d32f2f; transform: translateY(-5px); }

.custom-shape-divider-bottom {
    position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 2;
}
.custom-shape-divider-bottom svg { display: block; width: calc(100% + 1.3px); height: 80px; }
.shape-fill { fill: var(--bg); }

/* --- CONTAINER --- */
.container { max-width: 1400px; margin: auto; padding: 0 20px 100px; }

/* Titles */
.section-title { text-align: center; margin: 100px 0 60px; }
.section-title h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; }
.section-title span { color: var(--accent); font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; }
.divider { width: 60px; height: 4px; background: var(--accent); margin: 15px auto; }

/* Countdown */
.countdown-container { display: flex; justify-content: center; gap: 20px; margin: 40px 0 80px; flex-wrap: wrap; }
.countdown-item {
    text-align: center; background: white; padding: 20px; border-radius: var(--radius);
    box-shadow: var(--shadow); min-width: 110px; border-top: 4px solid var(--primary); 
}
.countdown-number { display: block; font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.countdown-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; font-weight: 700; }

/* --- PROGRAMM (5 Punkte) - FIX: Jetzt immer sichtbar --- */
.feature-row { 
    display: flex; align-items: center; gap: 60px; margin-bottom: 80px; 
    /* Hier haben wir die Animation deaktiviert, damit es sofort sichtbar ist */
    opacity: 1 !important; 
    transform: none !important;
    
    background: white; padding: 40px; border-radius: var(--radius); box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.feature-row.visible { opacity: 1; transform: translateY(0); }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.8rem; color: var(--primary); display: flex; align-items: center; gap: 15px; margin-top: 0; }
.feature-text .num { 
    background: var(--cc-yellow); color: var(--primary); width: 40px; height: 40px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-weight: 900; flex-shrink: 0; 
}
.feature-text li { margin-bottom: 10px; list-style: none; position: relative; padding-left: 25px; }
.feature-text li::before { content: '✓'; color: var(--accent); position: absolute; left: 0; font-weight: bold; }
.feature-img { flex: 1; min-height: 350px; border-radius: var(--radius); background-size: cover; background-position: center; }

/* --- TEAM GRID - FIX: 5 Spalten erzwungen --- */
.team-grid { 
    display: grid; 
    /* Hier erzwingen wir genau 5 Spalten */
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
}
.member-card { 
    background: var(--card-bg); padding: 30px 10px; border-radius: var(--radius); 
    text-align: center; border: 1px solid #eee; transition: var(--transition);
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.avatar { 
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; 
    background: #f0f4f8; display: flex; align-items: center; justify-content: center; 
    font-size: 2.5rem; 
}
.member-info h4 { margin: 0 0 5px; color: var(--primary); font-size: 1.0rem; }
.job-title { font-size: 0.8rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.member-desc { font-size: 0.85rem; color: var(--text-light); margin-top: 10px; font-style: italic; }

/* --- BAROMETER --- */
.barometer-card { 
    background: var(--card-bg); border-radius: var(--radius); padding: 40px; 
    color: var(--text); box-shadow: var(--shadow); width: 100%; max-width: 900px; 
    border-top: 6px solid var(--primary); margin: 0 auto; position: relative;
}
.step-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; transition: 0.4s; }
.dot.active { background: var(--cc-green); width: 30px; border-radius: 6px; }

.view { display: none; animation: fadeInUp 0.5s ease forwards; }
.view.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.barometer-card h3 { font-size: 1.5rem; text-align: center; color: var(--primary); margin-bottom: 30px; }

.grid-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; }
.choice-btn { 
    background: white; border: 2px solid #f1f5f9; padding: 18px; border-radius: 12px;
    cursor: pointer; transition: var(--transition); text-align: left; display: flex; align-items: center; gap: 15px;
    font-size: 1rem; font-weight: 600; color: var(--primary); font-family: inherit;
}
.choice-btn:hover { border-color: var(--cc-green); transform: translateY(-3px); background: #f0fdf4; }
.choice-btn i { font-size: 1.5rem; width: 30px; text-align: center; font-style: normal; }

.btn-cta {
    background: var(--primary); color: white; border: none; padding: 15px 30px;
    border-radius: 50px; font-weight: 700; cursor: pointer; margin-top: 30px; text-transform: uppercase;
}

/* Konfetti */
.confetti { position: fixed; width: 10px; height: 10px; top: -10px; z-index: 9999; }
@keyframes fall { to { top: 100vh; transform: rotate(720deg); } }

/* Briefwahl Box */
.briefwahl-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 5px solid var(--cc-blue); padding: 40px; border-radius: var(--radius);
    margin-bottom: 100px; display: flex; align-items: center; gap: 40px;
}

/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.dl-card { 
    background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); 
    text-align: center; border: 1px solid #eee; transition: var(--transition); 
}
.dl-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.btn-dl { 
    background: white; border: 2px solid var(--accent); color: var(--accent); padding: 10px 25px; 
    border-radius: 30px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; margin-top: 15px; 
}
.btn-dl:hover { background: var(--accent); color: white; }

/* Formular */
.smart-form { 
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 50px; border-radius: 20px; text-align: center; color: white; margin-top: 80px; position: relative;
}
.smart-form textarea { 
    width: 100%; max-width: 600px; height: 120px; padding: 20px; border-radius: 8px; border: none; 
    margin: 25px 0; font-size: 1rem; font-family: inherit; 
}
.btn-submit { background: var(--accent); color: white; padding: 15px 50px; border-radius: 30px; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: #c00016; transform: scale(1.05); }

#overlay {
    display: none; position: absolute; inset: 0; background: rgba(20, 55, 78, 0.95);
    border-radius: 20px; align-items: center; justify-content: center; flex-direction: column;
}

footer { background: #fff; color: var(--text-light); padding: 50px 20px; text-align: center; border-top: 1px solid #eee; margin-top: 80px; }
footer a { color: var(--primary); text-decoration: none; }

/* Mobile Anpassungen */
@media (max-width: 1200px) {
    /* Team auf Tablet/Mobile: Nur 2 Spalten, sonst wird es zu eng */
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .briefwahl-box, .feature-row, .feature-row.reverse { flex-direction: column; }
    .feature-img { width: 100%; min-height: 200px; }
    header h1 { font-size: 2.5rem; }
    /* Team auf Handy: Nur 1 Spalte oder 2 kleine */
    .team-grid { grid-template-columns: 1fr; }
}