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

/* --- CSS Reset & Variables --- */
:root {
    --primary-color: #274070;
    --primary-dark: #1a2c4e;
    --text-color: #333333;
    --text-light: #555555;
    --bg-color: #f7f9fa;
    --header-bg: #e6ebf1;
    --white: #ffffff;
    --border-color: #d1d9e6;
    --max-width: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Slab', serif;
    color: var(--text-color);
    background-color: var(--header-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Hero Background (Full Width) --- */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

/* --- Key-Visuals (Logo Area) Full Width --- */
header {
    width: 100vw;
    background: linear-gradient(to bottom, rgba(230,235,241,1) 0%, rgba(230,235,241,0.8) 80%, rgba(230,235,241,0) 100%);
    text-align: center;
    padding-top: 20px;
}

.logo-container {
    padding: 20px 0 40px 0;
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 250px;
    height: auto;
}

/* --- Navigation --- */
nav.main-nav {
    background-color: var(--primary-color);
    width: 100vw; /* Full width */
    display: flex;
    justify-content: center; /* Center dynamic nav links */
}

.nav-links {
    list-style: none;
    display: flex; /* Dynamic width */
    justify-content: center;
    flex-wrap: wrap; /* Allows wrapping if viewport gets smaller before mobile breakpoint */
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
    white-space: nowrap; /* Keep items on one line if possible */
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 400;
    font-size: 14px;
    display: block;
    padding: 15px 25px;
    transition: background-color 0.3s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    background-color: var(--primary-dark);
}

/* CSS Dropdown Logic */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-dark);
    min-width: 220px;
    z-index: 10;
    list-style: none;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    left: 0; /* Align with parent */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    padding: 12px 16px;
    font-size: 13px;
}

.dropdown-content li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Burger Menu Button (Hidden on Desktop) */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    margin: 0 auto;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    margin: 6px 0;
    transition: 0.3s;
}

/* --- Content Wrapper & Grid Layout (Centered Content) --- */
.site-content {
    max-width: var(--max-width);
    margin: 0 auto; /* Center the content */
}

.content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 30px;
    padding: 0 20px;
}

/* --- Main Content Area --- */
main {
    background-color: rgba(247, 249, 250, 0.95);
    padding: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-area h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
}

.content-area h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-area h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content-area p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-color);
}

.content-area ul, .content-area ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-area a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-area a:hover {
    color: var(--primary-dark);
}

/* --- Iframe (Aktuelles) --- */
iframe.aktuelles_iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    margin-top: 20px;
}

/* --- Sidebar (Aside) --- */
aside.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: rgba(247, 249, 250, 0.95);
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-widget .widget-icon {
    font-size: 24px;
    color: #e91e63;
    margin-bottom: 15px;
    border-bottom: 1px dotted var(--primary-color);
    padding-bottom: 15px;
}

.sidebar-widget h3 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.sidebar-widget p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.sidebar-widget a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    background-color: var(--primary-color);
    width: 100vw;
    color: var(--white);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.cookie-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

.cookie-options {
    margin-bottom: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Stack grid for Mobile */
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    /* Burger Menu Active */
    nav.main-nav {
        flex-direction: column;
    }
    .burger-menu {
        display: block;
    }

    /* Hide standard nav links */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    /* Mobile Nav Display When Active */
    .nav-links.active-menu {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        display: none; /* Hide submenu initially */
    }

    /* Keep hover active on mobile for simplicity, or tap */
    .dropdown:hover .dropdown-content {
        display: block;
    }
}
