/* =========================================
   1. FARBPALETTE & BASIS-EINSTELLUNGEN
   ========================================= */
: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; }

/* DSGVO-Konform: System-Schriftarten */
body { 
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, 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: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, 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-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%; }

/* =========================================
   3. HERO / HEADER (Design laut Grafik, Wölbung nach UNTEN)
   ========================================= */
.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;
    
    /* Hintergrundfarbe Grau-Blau */
    background-color: #5a6e7f; 
    
    /* Platz unten für die Wölbung */
    padding-bottom: 80px; 
    margin-bottom: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
}

/* Kasten hinter dem Titel */
.logo-box {
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
    padding: 10px 40px;
    margin-bottom: 20px;
}

.hero-header h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin: 0;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
}

/* Kasten hinter dem Slogan */
.slogan-bar {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 8px 30px;
    margin-bottom: 50px;
}

.hero-header p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin: 0;
    font-weight: 400;
}

/* Button */
.btn-hero {
    background: #f44336;
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s, background 0.3s;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    background: #d32f2f;
}

/* DIE RUNDUNG (SVG) */
.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 {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px; /* Höhe der Wölbung nach unten */
}

.custom-shape-divider-bottom .shape-fill {
    fill: #f8fafc; /* Hintergrundfarbe der Seite */
}

/* =========================================
   4. ALLGEMEINE SEKTIONEN
   ========================================= */
.container { max-width: 1400px; margin: auto; padding: 0 20px 100px; }

/* Intro */
.intro-section { text-align: center; padding: 60px 20px 20px; max-width: 900px; margin: 0 auto; }
.intro-section h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; }
.intro-section p { font-size: 1.3rem; color: var(--text-light); line-height: 1.6; font-weight: 300; }
.intro-divider { width: 80px; height: 4px; background: var(--accent); margin: 30px auto 0; }

/* Titel */
.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-item:nth-child(1) { border-top-color: var(--cc-red); }
.countdown-item:nth-child(2) { border-top-color: var(--cc-green); }
.countdown-item:nth-child(3) { border-top-color: var(--cc-blue); }
.countdown-item:nth-child(4) { border-top-color: var(--cc-yellow); }

.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 */
.feature-row { 
    display: flex; align-items: center; gap: 60px; margin-bottom: 80px; 
    opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; 
    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; }


/* =========================================
   6. TEAM GRID
   ========================================= */
#team { margin-top: 40px; margin-bottom: 30px; }

.team-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
}

.member-card { 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    border: 1px solid #eee; 
    height: 420px; 
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 40px 20px 20px; 
    position: relative; overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.member-card:hover { 
    transform: translateY(-10px) scale(1.05); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); 
    border-color: transparent; 
    z-index: 10;
}

.member-card::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:4px; 
    background: linear-gradient(
        to right, 
        var(--cc-red) 0%, var(--cc-red) 25%, 
        var(--cc-green) 25%, var(--cc-green) 50%, 
        var(--cc-blue) 50%, var(--cc-blue) 75%, 
        var(--cc-yellow) 75%, var(--cc-yellow) 100%
    );
    transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease;
}
.member-card:hover::before { transform: scaleX(1); transform-origin: left; }

.avatar {
    width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 55px; 
    overflow: hidden; border: 3px solid var(--primary); background-color: #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, width, height;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar:not(:has(img)) { font-size: 4rem; background: #f0f4f8; border: none; display:flex; align-items:center; justify-content:center;}

.member-card:hover .avatar {
    width: 90px; height: 90px; border-color: var(--cc-green);
    margin-bottom: 20px; transform: translateY(-25px);
}

.member-info {
    width: 100%; transition: transform 0.4s ease; transform: translateY(0); 
    display: flex; flex-direction: column; align-items: center; padding-top: 5px; 
}
.member-card:hover .member-info { transform: translateY(-15px); }

.member-header { margin-bottom: 0; width: 100%; }
.member-header h4 { margin: 0; font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.member-header .job-title { 
    font-size: 0.8rem; color: var(--accent); font-weight: 700; 
    text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 5px; 
}

.member-desc {
    opacity: 0; max-height: 0; transform: translateY(10px);
    font-style: italic; color: var(--text-light); font-size: 0.9rem; margin: 0;
    transition: all 0.4s ease;
}
.card-divider {
    opacity: 0; width: 0; height: 1px; background: #eee; margin: 0 auto;
    transition: all 0.4s ease 0.1s;
}
.skill-list {
    opacity: 0; max-height: 0; transform: translateY(10px);
    text-align: left; font-size: 0.85rem; color: var(--text-light); 
    padding-left: 0; list-style: none; display: inline-block;
    transition: all 0.4s ease 0.1s;
}
.skill-list li { margin-bottom: 3px; position: relative; padding-left: 15px; }
.skill-list li::before { content: '•'; color: var(--cc-green); position: absolute; left: 0; font-weight: bold; }

.member-card:hover .member-desc { opacity: 1; max-height: 80px; transform: translateY(0); margin: 10px 0 10px; }
.member-card:hover .card-divider { opacity: 1; width: 60%; margin: 5px auto 10px; }
.member-card:hover .skill-list { opacity: 1; max-height: 120px; transform: translateY(0); } 

/* =========================================
   7. INTERAKTIVES (Barometer, Form, DL)
   ========================================= */
.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;
    
    /* FIX FÜR SPRINGENDES LAYOUT: */
    min-height: 550px; 
    display: flex; flex-direction: column; justify-content: center;
}

.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 */
.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; }

/* Kontakt-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; }


/* =========================================
   8. MOBILE ANPASSUNGEN
   ========================================= */
@media (max-width: 1200px) {
    .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-grid { grid-template-columns: 1fr; }
    
    .member-card { height: auto; padding: 30px 20px; }
    .member-desc, .skill-list, .card-divider { 
        opacity: 1; max-height: none; transform: none; margin: 10px 0; 
    }
    .member-info { transform: none; }
    .avatar { width: 80px; height: 80px; margin-bottom: 10px; }
    
    /* Mobil darf die Box flexibel sein */
    .barometer-card { min-height: auto; padding: 30px 20px; display: block; }
}