/* =========================================
   STYLE.CSS - AfD FRAKTION BERGKAMEN (FLAT DESIGN)
   ========================================= */

/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
    --primary-blue: #009EE0;
    --primary-dark: #007bb0;
    --accent-red: #E3000F;
    --text-dark: #222222;
    --text-grey: #555555;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --container-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- TYPOGRAFIE & HELFER --- */
h1, h2, h3 { font-weight: bold; margin-bottom: 1rem; line-height: 1.2; }
h2 {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 5px;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 4rem 0; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.text-center { text-align: center; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-primary { background-color: var(--primary-blue); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-red { background-color: var(--accent-red); color: var(--white); }
.btn-red:hover { background-color: #ba000b; }

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 50px;
    width: auto;
    display: block;
}
.logo-text {
    margin-left: 15px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul { display: flex; gap: 20px; }
nav a {
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-grey);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}
nav a:hover, nav a.active { color: var(--primary-blue); border-bottom-color: var(--accent-red); }
.mobile-menu-toggle { display: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }

/* --- HERO BEREICH --- */
.hero-simple {
    height: 60vh;
    min-height: 450px;
    background: url('Medien/bergkamen.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-simple::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.hero-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    border-top: 5px solid var(--primary-blue);
    position: relative;
    z-index: 2;
}
.hero-box h1 { font-size: 2.8rem; color: var(--text-dark); margin-bottom: 10px; }
.hero-box p { font-size: 1.1rem; color: var(--text-grey); margin-bottom: 25px; }

/* --- THEMEN GRID --- */
.topics-flat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.topic-flat-card {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s;
}
.topic-flat-card:hover { border-color: var(--primary-blue); }
.topic-flat-card i { font-size: 2.5rem; color: var(--accent-red); margin-bottom: 15px; }
.topic-flat-card h3 { color: var(--primary-blue); border-bottom: none; font-size: 1.3rem; margin-bottom: 10px; }

/* --- FRAKTION GRID --- */
.team-flat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.team-flat-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    transition: border-color 0.3s;
}
.team-flat-card:hover { border-color: var(--primary-blue); }
.team-flat-img { width: 100%; height: 250px; object-fit: cover; background: #e9e9e9; margin-bottom: 15px; }
.team-flat-role { font-size: 0.8rem; color: var(--accent-red); text-transform: uppercase; font-weight: bold; display: block; margin-bottom: 5px; }
.team-flat-name { font-size: 1.2rem; color: var(--text-dark); margin: 0; }

/* Ausschuss-Listen */
.team-flat-committees {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    color: #555;
    text-align: center;
}
.team-flat-committees ul { list-style: none; padding: 0; margin: 0; }
.team-flat-committees li { margin-bottom: 3px; line-height: 1.2; }
.committee-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #009ee0;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.vorsitz-text { color: #009ee0; font-weight: bold; }

/* --- AKTUELLES LISTEN-DESIGN --- */
.news-flat-list { max-width: 900px; margin: 0 auto; }
.news-flat-item {
    background: var(--white);
    border-left: 4px solid var(--primary-blue);
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    transition: border-left-color 0.3s, box-shadow 0.3s;
}
.news-flat-item:hover {
    border-left-color: var(--accent-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.news-flat-item.with-image { display: flex; padding: 0; }

.news-image-container {
    flex: 0 0 40%;
    position: relative;
    min-height: 250px;
    overflow: hidden;
}
.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.news-flat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 2;
}
.news-text-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-flat-date { font-size: 0.85rem; color: var(--text-grey); margin-bottom: 10px; display: block; }
.news-flat-title { color: var(--primary-blue); font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; }
.news-flat-teaser { font-size: 1.05rem; margin-bottom: 15px; color: var(--text-dark); }
.news-flat-content { padding-top: 15px; margin-top: 15px; border-top: 1px dashed #ccc; font-size: 0.95rem; color: var(--text-grey); }
.btn-flat-readmore {
    background: none;
    border: none;
    color: var(--accent-red);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- KONTAKT BOXEN --- */
.contact-flat-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-flat-item {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
}
.contact-flat-item i { font-size: 2rem; color: var(--primary-blue); margin-bottom: 15px; }
.contact-flat-item h4 { margin-bottom: 10px; color: var(--text-dark); }
.contact-flat-item p, .contact-flat-item a { color: var(--text-grey); font-size: 0.95rem; }
.contact-flat-item a:hover { color: var(--primary-blue); }

/* --- FOOTER --- */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
    margin-top: auto;
}
.footer-links { margin: 20px 0; }
.footer-links a { color: var(--white); margin: 0 10px; text-decoration: underline; }
.footer-links a:hover { color: #ddd; }

/* =========================================
   MOBILE NAVIGATION (HAMBURGER MENÃœ)
   ========================================= */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: 0.3s;
    /* Ensures tap area is large enough on mobile */
    padding: 5px;
    line-height: 1;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* --- TABLET (max 900px) --- */
@media (max-width: 900px) {
    .topics-flat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-flat-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-box h1 { font-size: 2.2rem; }
}

/* --- MOBIL (max 768px) --- */
@media (max-width: 768px) {

    /* Navigation */
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }
    .mobile-menu-toggle { display: block; }
    nav { width: 100%; order: 3; }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        margin-top: 10px;
        padding: 0;
        border-top: 2px solid var(--primary-blue);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        gap: 0;
    }
    nav ul.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    nav ul li { width: 100%; text-align: center; }
    nav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
    }
    nav a:hover, nav a.active {
        background-color: var(--bg-light);
        border-bottom: 1px solid var(--accent-red);
    }

    /* Logo Text etwas kleiner */
    .logo-text { font-size: 1rem; }
    .logo img { height: 42px; }

    /* Hero */
    .hero-simple {
        height: auto;
        min-height: 0;
        padding: 40px 0;
        align-items: flex-start;
    }
    .hero-box {
        padding: 25px 20px;
        width: 92%;
        margin: 0 auto;
    }
    .hero-box h1 { font-size: 1.8rem; }
    .hero-box p { font-size: 1rem; }
    .hero-box .btn { display: block; width: 100%; margin: 0 0 10px 0 !important; text-align: center; }

    /* Section Padding reduzieren */
    .section-padding { padding: 2.5rem 0; }

    /* H2 */
    h2 { font-size: 1.6rem; }

    /* Themen Grid */
    .topics-flat-grid { grid-template-columns: 1fr; gap: 15px; }
    .topic-flat-card { padding: 20px; }

    /* Team Grid: 2 Spalten auf Tablet, 1 auf kleinen Phones */
    .team-flat-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .team-flat-img { height: 200px; }

    /* News: Bild oben, Text unten */
    .news-flat-item.with-image { flex-direction: column; }
    .news-image-container {
        flex: auto;
        min-height: 200px;
        position: relative;
    }
    .news-image-container img { position: absolute; }
    .news-text-container { padding: 20px; }
    .news-flat-title { font-size: 1.2rem; }
    .news-flat-teaser { font-size: 0.95rem; }

    /* Kontakt */
    .contact-flat-box { grid-template-columns: 1fr; gap: 15px; }
    .contact-flat-item { padding: 20px; }

    /* Footer */
    footer { padding: 30px 16px 20px; }
    .footer-links a { display: inline-block; margin: 4px 8px; }
}

/* --- SEHR KLEINE PHONES (max 420px) --- */
@media (max-width: 420px) {
    .logo-text { font-size: 0.85rem; }
    .logo img { height: 36px; }
    .team-flat-grid { grid-template-columns: 1fr; }
    .hero-box h1 { font-size: 1.5rem; }
    h2 { font-size: 1.4rem; }
}

/* Sanfte Animation fÃ¼r das Aufklappen des MenÃ¼s */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}