/* =========================================
   GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --primary-blue: #009EE0; 
    --primary-dark: #007bb0;
    --accent-red: #E3000F;
    --accent-red-hover: #c2000d;
    --text-dark: #1f2937; 
    --text-grey: #4b5563;
    --bg-light: #f3f4f6; 
    --bg-lighter: #f9fafb;
    --white: #ffffff;
    --container-width: 1200px;
    --border-radius: 8px; 
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 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;
    overflow-x: hidden;
}

/* =========================================
   TYPOGRAFIE & HELFER
   ========================================= */
h1, h2, h3, h4 { font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; color: var(--text-dark); }
h2 { font-size: 2.2rem; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.4rem; color: var(--primary-blue); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 6rem 0; } 
.bg-light { background-color: var(--bg-light); }
.divider { height: 4px; width: 60px; background: var(--primary-blue); margin: 1.5rem auto 2.5rem; border-radius: 2px; }
.divider-white { background: var(--white); }

/* =========================================
   HEADER & NAVIGATION (Desktop & Hamburger)
   ========================================= */
header { 
    background-color: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm); 
    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: 12px 24px; max-width: var(--container-width); margin: 0 auto; position: relative;}

.logo { display: flex; align-items: center; text-decoration: none; z-index: 1001; }
.logo img { height: 55px; width: auto; transition: var(--transition); }
.logo-text { margin-left: 15px; font-size: 1.3rem; font-weight: 900; color: var(--primary-blue); text-transform: uppercase; letter-spacing: 1px; }

/* Hamburger Logik */
.nav-toggle { display: none; } 
.nav-toggle-label {
    display: none; 
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; background: var(--primary-blue); height: 3px; width: 25px; border-radius: 2px; position: relative; transition: 0.3s;
}
.nav-toggle-label span::before { content: ''; position: absolute; top: -8px; }
.nav-toggle-label span::after { content: ''; position: absolute; top: 8px; }

nav ul { display: flex; gap: 35px; }
nav a { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; position: relative; color: var(--text-dark); padding: 5px 0; }
nav a:hover, nav a.active { color: var(--primary-blue); }
nav a.active::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: 0; left: 0; background-color: var(--primary-blue); }

/* =========================================
   HERO & CONTENT
   ========================================= */
.hero-left { height: 80vh; min-height: 600px; position: relative; display: flex; align-items: center; }
.hero-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0, 40, 80, 0.9) 0%, rgba(0, 158, 224, 0.7) 50%, transparent 100%); }
.hero-content-left { position: relative; z-index: 2; color: var(--white); max-width: 750px; animation: fadeUp 0.8s ease-out forwards; }
.hero-content-left h1 { font-size: 4.5rem; margin-bottom: 15px; line-height: 1.05; font-weight: 900; color: white; }
.subtitle { display: block; font-size: 1.35rem; font-weight: 400; margin-bottom: 2.5rem; color: #f0f9ff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-buttons-left { display: flex; gap: 20px; margin-top: 35px; }

.btn { display: inline-flex; padding: 14px 32px; border-radius: var(--border-radius); font-weight: 700; text-transform: uppercase; cursor: pointer; transition: var(--transition); border: none;}
.btn-primary { background-color: var(--primary-blue); color: var(--white); }
.btn-red { background-color: var(--accent-red); color: var(--white); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Unterseiten Header */
.page-header { background: linear-gradient(135deg, rgba(0, 40, 80, 0.9) 0%, rgba(0, 158, 224, 0.7) 100%); padding: 100px 0; color: white; text-align: center; border-bottom: 2px solid var(--primary-blue); }
.page-header h1 { font-size: 3.5rem; text-transform: uppercase; color: white; }

/* Grids */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-image img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }

.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.topic-card-alt { background: var(--white); border-top: 4px solid var(--primary-blue); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); transition: var(--transition); text-align: left;}
.topic-card-alt:hover { transform: translateY(-8px); border-top-color: var(--accent-red); box-shadow: var(--shadow-hover); }

/* News Verlinkung Startseite */
.news-date-small { font-size: 0.85rem; color: var(--text-grey); font-weight: bold; display: block; margin-bottom: 10px; }
.news-link h3 { color: var(--primary-blue); transition: var(--transition); }
.news-link:hover h3 { text-decoration: underline; }

/* =========================================
   SEITEN-LAYOUTS (Aktuelles & Fraktion)
   ========================================= */

/* Aktuelles: News Cards mit Hover Animation */
.news-alt-card { 
    display: flex; 
    background: var(--white); 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    box-shadow: var(--shadow-md); 
    margin-bottom: 40px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.news-alt-card:nth-child(even) { flex-direction: row-reverse; }

.news-alt-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-alt-image { 
    flex: 0 0 45%; 
    position: relative; 
    min-height: 300px; 
    overflow: hidden; 
}
.news-alt-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}
.news-alt-card:hover .news-alt-image img {
    transform: scale(1.05);
}

.news-alt-content { flex: 1; padding: 50px; }

/* Fraktion: Team Grid & Rollen */
.team-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.leadership-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.member-card-vertical { background: var(--bg-lighter); padding: 40px 25px; border-radius: var(--border-radius); text-align: center; border-bottom: 5px solid var(--primary-blue); transition: var(--transition); }

.member-img-vertical { 
    width: 160px; 
    height: 160px; 
    border-radius: 50%; 
    object-fit: cover; 
    object-position: top; /* Fokus auf den Kopf/das Gesicht */
    border: 6px solid white; 
    margin-bottom: 20px; 
}

/* Verbessertes Design für die Rolle (Badge-Look) */
.member-role-vertical { 
    display: inline-flex; 
    align-items: center;
    gap: 8px; 
    background-color: rgba(0, 158, 224, 0.1); 
    color: var(--primary-blue); 
    padding: 6px 15px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
    margin-bottom: 15px; 
}

/* Vorstands-Badge in Rot */
.leadership-grid .member-role-vertical {
    background-color: rgba(227, 0, 15, 0.1); 
    color: var(--accent-red); 
}

/* =========================================
   FOOTER
   ========================================= */
footer { background-color: #111827; color: #9ca3af; padding: 60px 0 30px; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; border-left: 4px solid var(--primary-blue); padding-left: 12px; }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 30px; font-size: 0.85rem; }

/* =========================================
   RESPONSIVE ANPASSUNGEN (Handy & Tablet)
   ========================================= */

@media (max-width: 992px) {
    .hero-content-left h1 { font-size: 3rem; }
    .split-section { grid-template-columns: 1fr; text-align: center; }
    .team-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4 { border-left: none; border-bottom: 2px solid var(--primary-blue); display: inline-block; padding: 0 10px 5px; }
}

@media (max-width: 768px) {
    /* Hamburger Menü zeigen */
    .nav-toggle-label { display: block; }
    
    nav {
        position: absolute; top: 100%; left: 0; width: 100%; background: white;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    nav ul { flex-direction: column; gap: 0; padding: 20px 0; }
    nav ul li { text-align: center; border-bottom: 1px solid #eee; }
    nav ul li a { display: block; padding: 15px; }
    nav a.active::after { display: none; } 

    /* Menü öffnen wenn Checkbox geklickt */
    .nav-toggle:checked ~ nav { max-height: 400px; }
    
    /* Hamburger Animation zum X */
    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }

    /* Layout Anpassungen */
    .hero-content-left h1 { font-size: 2.2rem; }
    .hero-buttons-left { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .logo-text { font-size: 1rem; }
    .page-header h1 { font-size: 2.2rem; }
    
    .news-alt-card { flex-direction: column !important; }
    .news-alt-image { flex: none; width: 100%; }
    .news-alt-content { padding: 30px 20px; }
    
    .team-grid-3 { grid-template-columns: 1fr; }
    .section-padding { padding: 4rem 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}