/* =============================================================
   /assets/css/main.css
   Globales Design-System & Basis-Styles
   Stand: Refactoring V1
   ============================================================= */

/* 1. DESIGN TOKENS (Variablen aus Konzept V1.1) */
:root {
    --bw-primary: #0C3C60;      /* Dunkelblau */
    --bw-accent: #19A9E6;       /* Hellblau */
    --bw-bg-light: #FAFCFF;     /* Helle Sektionen */
    --bw-text-body: #586E84;    /* Fließtext */
    --bw-border: #D6E5F2;       /* Rahmen */
    --bw-white: #ffffff;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 2. BASIS & TYPOGRAFIE */
body {
    font-family: var(--font-main);
    color: var(--bw-primary);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: var(--bw-primary);
}

a {
    color: var(--bw-accent);
    transition: color 0.2s ease;
}

/* 3. GLOBALE LAYOUT-HELFER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    width: 100%;
    box-sizing: border-box;
}

.container.narrow {
    max-width: 900px;
}

/* Globales Grid (ersetzt lokale Definitionen) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* 4. KOMPONENTEN (Buttons & Cards) */

/* Primary Button (.cta) */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--bw-primary);
    background: var(--bw-primary);
    color: var(--bw-white);
    transition: all 0.2s ease;
}

.cta:hover {
    background: var(--bw-accent);
    border-color: var(--bw-accent);
    color: var(--bw-white);
    transform: translateY(-1px);
}

/* Secondary Button */
.cta.secondary {
    background: transparent;
    border: 2px solid var(--bw-accent);
    color: var(--bw-accent);
}

.cta.secondary:hover {
    background: var(--bw-accent);
    color: var(--bw-white);
}

/* Basic Card Style */
.card {
    background: var(--bw-white);
    border: 1px solid var(--bw-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* 5. HEADER & FOOTER (Integriert aus header-footer.css) */
/* --- Header --- */
.bw-site-header {
    background: var(--bw-primary);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.15); */
    /*position: sticky;
    top: 0; */
    z-index: 1000;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}

.bw-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px clamp(16px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bw-logo img { height: 50px; width: auto; display: block; }

.bw-main-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.bw-nav-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.bw-nav-menu a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.bw-nav-menu a:hover { color: var(--bw-accent); }

/* Language Switcher */
.bw-lang-switch { display: flex; gap: 8px; align-items: center; }
.bw-lang-switch a { opacity: 0.7; transition: opacity 0.2s; }
.bw-lang-switch a:hover, .bw-lang-switch a.active { opacity: 1; }

/* Mobile Menu Toggle */
.bw-menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.bw-menu-icon { width: 24px; height: 2px; background: #fff; position: relative; display: block;}
.bw-menu-icon::before, .bw-menu-icon::after { content:''; position: absolute; width: 24px; height: 2px; background: #fff; left: 0; transition: 0.2s; }
.bw-menu-icon::before { top: -7px; } .bw-menu-icon::after { bottom: -7px; }

/* --- Footer --- */
.bw-site-footer {
    background: var(--bw-primary);
    color: #EAF4FF;
    padding: 48px 0 24px;
    margin-top: 80px;
}
.bw-footer-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.bw-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.bw-footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.bw-footer-tagline { font-size: 14px; opacity: 0.75; }
.bw-footer-menu { list-style: none; padding: 0; }
.bw-footer-menu a { color: #EAF4FF; text-decoration: none; font-size: 14px; }
.bw-footer-menu a:hover { color: var(--bw-accent); }
.bw-footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 14px; opacity: 0.65; }
.bw-legal-nav a { color: inherit; text-decoration: none; margin-left: 10px; }

/* Mobile & Tablet Resp. für Header/Footer */
@media (max-width: 1024px) {
    .bw-footer-grid { grid-template-columns: 1fr 1fr; }
    .bw-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .bw-menu-toggle { display: block; }
    .bw-main-nav { display: none; } /* JS Toggle Logik bleibt gleich */
    .bw-main-nav.is-open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: var(--bw-primary); padding: 20px; }
    .bw-nav-menu { flex-direction: column; gap: 15px; }
    .bw-footer-grid { grid-template-columns: 1fr; }
    .bw-footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}