/* =========================================
   CSS VARIABLES & BASE STYLES
   ========================================= */
:root {  
    --color-primary-dark: #0f2b46;  
    --color-primary-light: #3498db;  
    --color-white: #ffffff;  
    --color-bg-light: #f4f7f9;  
    --color-text: #333333;  
    
    --header-height: 65px;   
    --transition-speed: 0.3s;  
}  

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

body { 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    background-color: var(--color-white);
    color: var(--color-text);
}  

.site-main { flex: 1; }  
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }  

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header { 
    background-color: var(--color-primary-dark); 
    color: var(--color-white); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}  

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: var(--header-height); 
}  

.brand-link { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: var(--color-white); 
    gap: 1rem; 
}  

.brand-logo { 
    height: 40px; 
    width: auto; 
    fill: var(--color-white);
}  

.brand-title { 
    font-size: 1.25rem; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
}  

/* MOBILE NAVIGATION */  
.nav-wrapper { 
    position: fixed; 
    top: var(--header-height); 
    left: -100%; 
    width: 100%; 
    height: calc(100vh - var(--header-height)); 
    background-color: var(--color-primary-dark); 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    transition: left var(--transition-speed) ease-in-out; 
    overflow-y: auto; 
}  

.nav-wrapper.is-open { left: 0; }  

.nav-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
}  

.nav-item { 
    width: 100%; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
}  

.nav-link-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: stretch; 
    width: 100%; 
}  

.nav-link { 
    text-decoration: none; 
    color: var(--color-white); 
    font-size: 1.35rem; 
    font-weight: 500; 
    padding: 1.2rem 1.5rem; 
    flex-grow: 1; 
    text-align: left; 
    transition: background-color 0.2s; 
}  

.nav-link:active { background-color: rgba(255, 255, 255, 0.05); }  

/* SUBMENU TOGGLE (MOBILE) */
.submenu-toggle { 
    background: none; 
    border: none; 
    border-left: 1px solid rgba(255, 255, 255, 0.08); 
    color: var(--color-white); 
    padding: 0 1.5rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}  

.nav-item.is-expanded .submenu-toggle svg { transform: rotate(180deg); }  
.submenu-toggle svg { transition: transform 0.3s ease; }  

.sub-nav-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: none; 
    flex-direction: column; 
    background-color: rgba(0, 0, 0, 0.15); 
    width: 100%; 
}  

.nav-item.is-expanded .sub-nav-list { display: flex; }  

.sub-nav-link { 
    display: block; 
    text-decoration: none; 
    color: #d1d8e0; 
    font-size: 1.1rem; 
    padding: 1rem 1.5rem 1rem 2.5rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
}  

/* SPRACHWECHSLER (CLEAN OHNE FLAGGEN) */
.lang-switcher { 
    order: -1; 
    display: flex; 
    align-items: center; 
    gap: 0.35rem; 
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}  

.lang-link { 
    color: rgba(255, 255, 255, 0.6); 
    text-decoration: none; 
    padding: 0.25rem 0.5rem; 
    border-radius: 4px; 
    transition: all 0.2s; 
}  

.lang-link:hover, .lang-link.active { 
    color: var(--color-white); 
    background-color: rgba(255, 255, 255, 0.15); 
}  

.lang-divider { 
    color: rgba(255, 255, 255, 0.3); 
    user-select: none; 
}

/* HAMBURGER BUTTON */
.mobile-toggle { 
    display: block; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0.5rem; 
    z-index: 1001; 
}  

.hamburger-bar { 
    display: block; 
    width: 28px; 
    height: 3px; 
    margin: 6px auto; 
    background-color: var(--color-white); 
    transition: all 0.3s ease; 
    border-radius: 3px; 
}  

.mobile-toggle.is-open .hamburger-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }  
.mobile-toggle.is-open .hamburger-bar:nth-child(2) { opacity: 0; }  
.mobile-toggle.is-open .hamburger-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }  

/* DESKTOP MEDIA QUERY */  
@media (min-width: 768px) {  
    :root { --header-height: 80px; }  
    .brand-logo { height: 50px; }   
    .mobile-toggle { display: none; }  
    
    .nav-wrapper { 
        position: static; 
        flex-direction: row; 
        height: auto; 
        width: auto; 
        background-color: transparent; 
        overflow-y: visible; 
        align-items: center; 
        gap: 2rem; 
    }  
    
    .nav-list { flex-direction: row; width: auto; gap: 2rem; }  
    .nav-item { position: relative; width: auto; border: none; }  
    .nav-link-wrapper { width: auto; }  
    .nav-link { font-size: 1rem; padding: 1.5rem 0; text-align: center; }   
    .nav-link:hover, .nav-link.active { color: var(--color-primary-light); background: transparent; }  
    
    .submenu-toggle { display: none; }  
    .sub-nav-list { 
        position: absolute; 
        top: 100%; 
        left: 50%; 
        transform: translateX(-50%); 
        width: max-content; 
        min-width: 200px; 
        background-color: var(--color-primary-dark); 
        box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
        padding: 0.5rem 0; 
        display: block; 
        opacity: 0; 
        visibility: hidden; 
        transition: opacity 0.2s ease, visibility 0.2s ease; 
    }  
    
    .nav-item.has-children:hover .sub-nav-list { opacity: 1; visibility: visible; }  
    .sub-nav-link { font-size: 0.95rem; padding: 0.8rem 1.5rem; text-align: left; border: none; }  
    .sub-nav-link:hover { background-color: rgba(255,255,255,0.08); color: var(--color-white); }  
    
    .lang-switcher { 
        order: 2; 
        padding: 0; 
        border-bottom: none; 
    }  
}  

/* =========================================
   TYPOGRAFIE & INHALTE
   ========================================= */
.site-main { 
    line-height: 1.6; 
    font-size: 1.1rem; 
}  

.site-main h1, .site-main h2, .site-main h3, .site-main h4 {  
    color: var(--color-primary-dark);  
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    font-weight: 600; 
    line-height: 1.25;  
}  

.site-main h1:first-child { margin-top: 0; }  
.site-main h1 { font-size: 2.5rem; }  
.site-main h2 { font-size: 2rem; border-bottom: 2px solid var(--color-bg-light); padding-bottom: 0.5rem; }  
.site-main h3 { font-size: 1.5rem; }  

.site-main p { margin-bottom: 1.5rem; }  
.site-main ul, .site-main ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }  
.site-main li { margin-bottom: 0.5rem; }  

.site-main a:not(.btn) {  
    color: var(--color-primary-light);  
    text-decoration: none; 
    border-bottom: 1px solid transparent;  
    transition: border-bottom-color 0.2s ease, color 0.2s ease;  
}  

.site-main a:not(.btn):hover { 
    border-bottom-color: var(--color-primary-light); 
    color: #1d6fa5; 
}  

/* =========================================
   FOOTER
   ========================================= */
.site-footer { 
    background-color: var(--color-primary-dark); 
    color: var(--color-white); 
    padding: 2rem 0; 
    margin-top: 4rem; 
}  

.footer-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}  

.footer-left { display: flex; gap: 2rem; }  
.footer-link { color: var(--color-white); text-decoration: none; font-weight: bold; font-size: 1.1rem; }  
.footer-link:hover, .footer-link:focus, .footer-link:active { text-decoration: underline; }  

@media (max-width: 767px) {  
    .footer-inner { flex-direction: column; text-align: center; gap: 1.5rem; }  
    .footer-left { flex-direction: column; gap: 1.5rem; }  
}
