/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
    --primary-blue: #009EE0; 
    --primary-dark: #007bb0;
    --accent-red: #E3000F;
    --accent-red-hover: #c2000d;
    --text-dark: #333333;
    --text-grey: #666666;
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --container-width: 1200px;
    --border-radius: 4px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', 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, h4 { font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; }
h2 { font-size: 2.2rem; text-align: center; color: var(--text-dark); text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.3rem; color: var(--primary-blue); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }
.bg-blue { background-color: var(--primary-blue); color: var(--white); }
.bg-blue h2, .bg-blue h3 { color: var(--white); }
.text-white { color: var(--white) !important; }

.divider { height: 4px; width: 80px; background: linear-gradient(90deg, var(--primary-blue) 50%, var(--accent-red) 50%); margin: 1rem auto 2rem; }
.divider-white { background: var(--white); }
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 3rem; color: var(--text-grey); font-size: 1.1rem; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: var(--border-radius); font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; font-size: 0.9rem; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary { background-color: var(--primary-blue); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 158, 224, 0.3); }
.btn-red { background-color: var(--accent-red); color: var(--white); }
.btn-red:hover { background-color: var(--accent-red-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(227, 0, 15, 0.3); }

/* --- HEADER & NAV --- */
header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; border-top: 4px solid var(--primary-blue); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: var(--container-width); margin: 0 auto; }
/* --- HEADER LOGO BEREICH --- */
.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}

.logo img { 
    height: 60px; /* Höhe des Bild-Logos */
    width: auto; 
    display: block; 
}

.logo-text {
    margin-left: 15px; /* Abstand zwischen Bild und Text */
    font-size: 1.4rem; 
    font-weight: 900; 
    color: var(--primary-blue); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul { display: flex; gap: 30px; }
nav a { font-weight: 600; font-size: 1rem; text-transform: uppercase; position: relative; }
nav a:hover, nav a.active { color: var(--primary-blue); }

/* Burger-Button: nur auf Handy/Tablet sichtbar */
.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    border-radius: var(--border-radius);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle:active { background: var(--bg-light); }

/* --- MOBILE NAVIGATION (Ausklappmenü) --- */
@media (max-width: 900px) {
    .mobile-menu-toggle { display: flex; }
    .nav-container { padding: 10px 20px; }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        border-top: 1px solid #eee;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    header nav.open { display: block; }

    header nav ul {
        flex-direction: column;
        gap: 0;
    }
    header nav li + li { border-top: 1px solid #eee; }
    header nav a {
        display: block;
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    header nav a.active {
        background: var(--bg-light);
        box-shadow: inset 4px 0 0 var(--primary-blue);
    }
}

/* Anpassung für kleine Handy-Bildschirme, damit es nicht überlappt */
@media (max-width: 600px) {
    .logo img { height: 45px; }
    .logo-text { font-size: 1.05rem; margin-left: 10px; letter-spacing: 0.5px; }
}
@media (max-width: 400px) {
    .logo img { height: 40px; }
    .logo-text { font-size: 0.85rem; margin-left: 8px; letter-spacing: 0; }
}

/* --- HERO SECTION (STARTSEITE GANZ OBEN) --- */
.hero { height: 80vh; min-height: 500px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 158, 224, 0.8), rgba(0, 123, 176, 0.6)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.subtitle { display: block; font-size: 1.3rem; font-weight: 400; margin-bottom: 2.5rem; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,0.8); }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* --- PAGE HEADER (UNTERSEITEN) --- */
.page-header { background-color: var(--primary-blue); padding: 60px 0; color: white; text-align: center; }
.page-header h1 { margin: 0; font-size: 2.5rem; }

/* --- THEMEN GRID (STARTSEITE SCHWERPUNKTE) --- */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.topic-item { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); padding: 30px; border-radius: var(--border-radius); text-align: center; transition: 0.3s; }
.topic-item:hover { background: var(--white); transform: translateY(-5px); }
.topic-item:hover h3, .topic-item:hover p, .topic-item:hover .topic-icon { color: var(--text-dark); }
.topic-icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--white); transition: 0.3s; }

/* --- FRAKTION GRID --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.member-card { background: var(--white); text-align: center; border: 1px solid #eee; border-radius: var(--border-radius); transition: 0.3s; border-bottom: 3px solid var(--primary-blue);}
.member-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-5px); }
.member-img { width: 100%; height: 320px; background-color: #ddd; object-fit: cover; }
.member-info { padding: 20px; }
.member-name { color: var(--primary-blue); margin-bottom: 5px; font-weight: 700; font-size: 1.2rem;}
.member-role { display: block; font-weight: 700; color: var(--accent-red); font-size: 0.85rem; text-transform: uppercase; }

/* --- AKTUELLES GRID (MIT AUSKLAPP-FUNKTION) --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.news-card { background: #fff; border: 1px solid #ddd; border-radius: var(--border-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-bottom: 3px solid var(--primary-blue); }
.news-img-wrapper { height: 200px; position: relative; }
.news-img { width: 100%; height: 100%; object-fit: cover; }
.news-badge { position: absolute; top: 10px; left: 10px; background: var(--primary-blue); color: white; padding: 3px 10px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.news-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column;}
.news-date { font-size: 0.8rem; color: var(--text-grey); margin-bottom: 5px; display: block; }
.news-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-blue); }
.news-content-full { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #eee; font-size: 0.95rem; line-height: 1.5; display: none; }
.read-more-btn { background: none; border: none; color: var(--accent-red); font-weight: bold; cursor: pointer; margin-top: auto; padding-top: 15px; display: flex; align-items: center; gap: 5px; font-size: 0.95rem; font-family: inherit;}

/* --- FOOTER --- */
footer { background-color: #222; color: #bbb; padding: 60px 0 20px; font-size: 0.9rem; margin-top: auto;}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; border-left: 3px solid var(--primary-blue); padding-left: 10px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary-blue); margin-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; color: #666; }

/* --- RESPONSIVE (FÜR HANDY & TABLET) --- */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; width: 100%;}
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4 { border-left: none; padding-left: 0; }
    .news-grid, .topics-grid, .team-grid { grid-template-columns: 1fr; }
}

/* =========================================
   NEUES LAYOUT FÜR KAMEN (ABWEICHUNG UNNA) 
   ========================================= */

/* Hero Linksseitig */
.hero-left {
    height: 75vh;
    min-height: 550px;
    position: relative;
    display: flex;
    align-items: center; /* Vertikal zentrieren */
}
.hero-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Eleganter Verlauf von Dunkelblau zu Transparent */
    background: linear-gradient(90deg, rgba(0, 50, 100, 0.95) 0%, rgba(0, 158, 224, 0.6) 60%, transparent 100%);
}
.hero-content-left {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}
.hero-content-left h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: none; /* Nicht mehr nötig dank Gradient */
}
.hero-buttons-left {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Split-Section (Bild neben Text) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Neue Themen-Karten (Hell statt komplett Blau) */
.topic-card-alt {
    background: var(--white);
    border-top: 5px solid var(--primary-blue);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left;
    transition: 0.3s;
}
.topic-card-alt:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top-color: var(--accent-red);
}
.topic-icon-alt {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Mobile Anpassungen für das neue Layout */
@media (max-width: 768px) {
    .hero-gradient { background: linear-gradient(rgba(0, 50, 100, 0.8), rgba(0, 158, 224, 0.8)); }
    .hero-content-left h1 { font-size: 2.8rem; }
    .hero-buttons-left { flex-direction: column; }
    .split-section { grid-template-columns: 1fr; gap: 30px; }
    .split-text { text-align: center; }
    .split-text h2 { text-align: center !important; }
    .split-text .divider { margin: 15px auto !important; }
}
/* =========================================
   NEUES FRAKTIONS-LAYOUT (Horizontal & Rund)
   ========================================= */

.team-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten nebeneinander */
    gap: 25px;
}

/* Die Führungsebene etwas größer hervorheben */
.leadership-grid {
    margin-bottom: 20px;
}
.leadership-grid .member-row-card {
    background: var(--white);
    border: 1px solid #ddd;
}

.member-row-card {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.member-row-card:hover {
    transform: translateX(10px); /* Schiebt sich leicht nach rechts beim Hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: var(--accent-red);
    background: var(--white);
}

.member-row-img {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* Macht das Bild kreisrund */
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Verhindert, dass das Bild gequetscht wird */
    background-color: #ccc; /* Platzhalter-Farbe, solange kein Bild da ist */
}

.member-row-info {
    margin-left: 20px;
}

.member-row-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-red);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.member-row-name {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin: 0;
    font-weight: 800;
}

/* Mobile Ansicht: Untereinander statt nebeneinander */
@media (max-width: 768px) {
    .team-list-grid { 
        grid-template-columns: 1fr; 
    }
    .member-row-card:hover {
        transform: translateY(-5px); /* Auf dem Handy nach oben statt nach rechts schieben */
    }
}

/* =========================================
   NEUES AKTUELLES-LAYOUT (Abwechselnde Reihen)
   ========================================= */

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Großer Abstand zwischen den Artikeln */
}

.news-alt-card {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.news-alt-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Dreht bei jedem zweiten Artikel die Reihenfolge um (Bild rechts, Text links) */
.news-alt-card:nth-child(even) {
    flex-direction: row-reverse;
}

.news-alt-image {
    flex: 0 0 45%; /* Das Bild nimmt 45% der Breite ein */
    position: relative;
    min-height: 300px;
}

.news-alt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.news-alt-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile Anpassung: Auf dem Handy immer Bild oben, Text unten */
@media (max-width: 900px) {
    .news-alt-card, .news-alt-card:nth-child(even) {
        flex-direction: column;
    }
    .news-alt-image {
        min-height: 250px;
        flex: auto;
    }
    .news-alt-content {
        padding: 25px;
    }
}

/* =========================================
   NEUES KONTAKT-LAYOUT (Split & Formular)
   ========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-details-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid var(--primary-blue);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--accent-red);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-text span, .contact-text a {
    color: var(--text-grey);
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--primary-blue);
}

/* Formular Styling */
.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 158, 224, 0.1);
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-grey);
}

.form-agreement input {
    margin-top: 4px;
}

.text-center {
    text-align: center;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-details-box, .contact-form-box {
        padding: 25px;
    }
}

/* =========================================
   MOBILE FEINSCHLIFF (HANDY & TABLET)
   ========================================= */

/* Nichts darf seitlich aus dem Bildschirm laufen */
html, body { overflow-x: hidden; }
img { max-width: 100%; }
p, h1, h2, h3, h4, a { overflow-wrap: break-word; }

@media (max-width: 900px) {
    .section-padding { padding: 3.5rem 0; }
    h2 { font-size: 1.8rem; }
    .section-intro { font-size: 1rem; margin-bottom: 2rem; }
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 1.9rem; }

    /* Hero an Handy-Höhe anpassen */
    .hero-left { height: auto; min-height: 0; padding: 70px 0; }
    .hero-content-left h1 { font-size: 2.4rem; }
    .hero-content-left .subtitle { font-size: 1.05rem; margin-bottom: 0; }
    .hero-buttons-left { flex-direction: column; align-items: stretch; }
    .hero-buttons-left .btn { text-align: center; }

    /* Buttons als angenehm große Tap-Ziele */
    .btn { padding: 14px 26px; }

    .topic-card-alt { padding: 30px 22px; }
    .contact-details-box { padding: 25px 20px; }
    footer { padding: 40px 0 20px; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 2.75rem 0; }
    h2 { font-size: 1.55rem; letter-spacing: 0.5px; }
    h3 { font-size: 1.15rem; }
    .page-header { padding: 32px 0; }
    .page-header h1 { font-size: 1.6rem; }
    .hero-left { padding: 55px 0; }
    .hero-content-left h1 { font-size: 2rem; }
    .divider { margin-bottom: 1.25rem; }

    /* Fraktions-Karten: Bild oben, Text darunter */
    .member-row-card {
        flex-direction: column;
        text-align: center;
        padding: 22px 16px;
        border-left: none;
        border-top: 5px solid var(--primary-blue);
    }
    .member-row-card:hover { border-left-color: transparent; }
    .member-row-img { width: 80px; height: 80px; }
    .member-row-info { margin-left: 0; margin-top: 14px; }
    .member-row-role { font-size: 0.75rem; }
    .member-row-name { font-size: 1.15rem; }

    /* Kontakt-Zeilen bleiben lesbar, auch bei langer E-Mail */
    .contact-item { align-items: flex-start; }
    .contact-icon { width: 42px; height: 42px; font-size: 1rem; margin-right: 14px; }
    .contact-text { min-width: 0; }
    .contact-text span, .contact-text a { word-break: break-word; }

    /* Aktuelles */
    .news-alt-content { padding: 20px 18px; }
    .news-alt-image { min-height: 190px; }
    .news-title { font-size: 1.1rem; }
    .read-more-btn { padding: 14px 0 4px; }

    /* Impressum-Kasten nicht zu breit gepolstert */
    main > div[style*="padding: 40px"] { padding: 24px !important; }
}

/* Hover-Effekte auf Touchgeräten deaktivieren (sie bleiben sonst "kleben") */
@media (hover: none) {
    .member-row-card:hover,
    .topic-card-alt:hover,
    .news-alt-card:hover,
    .btn:hover,
    .member-card:hover,
    .news-card:hover {
        transform: none;
    }
    .footer-links a:hover { margin-left: 0; }
}
