/* =========================================================
   1. LOKALE SCHRIFTARTEN (DSGVO-konform)
   Die Schriften werden direkt vom eigenen Server geladen.
   Keine IP-Übertragung an Google.
   ========================================================= */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('inter-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('inter-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('inter-700.woff2') format('woff2');
}

/* =========================================================
   2. CSS VARIABLEN (Farb- und Designsystem)
   ========================================================= */
:root {
    --brand-accent: #007aff;    /* Apple Blau - für primäre Aktionen */
    --vefk-blue: #0a2540;       /* Nachtblau - strahlt Seriosität aus */
    --apple-black: #1d1d1f;     /* Sehr dunkles Grau */
    --apple-bg: #f5f5f7;        /* Kühles, edles Hintergrundgrau */
    --text-main: #333336;       /* Hauptschriftfarbe */
    --text-light: #86868b;      /* Nebenschriftfarbe */
    --border-color: #e5e5ea;
}

/* =========================================================
   3. RESET & GRUNDLAGEN
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--apple-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4 {
    color: var(--apple-black);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

a {
    text-decoration: none;
    color: var(--brand-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: #005bb5;
}

/* =========================================================
   4. LAYOUT & CONTAINER
   ========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   5. NAVIGATION (Menüleiste)
   ========================================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--apple-black);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--apple-black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================================
   6. STRUKTUR: KARTE & INFOKARTEN (Perfekt nebeneinander)
   ========================================================= */
.map-section {
    display: flex;
    align-items: flex-start; /* Oben ausgerichtet */
    justify-content: space-between; /* Links und Rechts verteilt */
    gap: 40px;
    margin: 40px 0;
    flex-wrap: nowrap; /* VERHINDERT das automatische Untereinander-Rutschen */
}

/* Wenn du einen extra Container für die SVG-Karte hast */
.map-container, #map-container {
    flex: 1 1 50%;
    max-width: 600px;
}

.contact-card-wrapper {
    flex: 1 1 45%;
    max-width: 450px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    transition: opacity 0.3s ease;
}

.contact-card-wrapper h3 {
    font-size: 28px;
    color: var(--vefk-blue);
    margin-bottom: 15px;
}

.contact-role {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: 20px;
}

/* =========================================================
   7. UI ELEMENTE: BUTTONS & KARTEN ALLGEMEIN
   ========================================================= */
.btn {
    display: inline-block;
    background: var(--brand-accent);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.2);
}

.btn:hover {
    background: #006ce0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
    color: #ffffff;
}

.btn:disabled {
    background: #a1a1a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   8. FORMULARE (Eingabefelder, Selects)
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    font-family: 'Inter', sans-serif;
    color: var(--apple-black);
    background-color: #f9f9fb;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

/* =========================================================
   9. FOOTER (Fußzeile)
   ========================================================= */
footer {
    background: var(--vefk-blue);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    margin-top: auto;
}

footer a {
    color: #8ba6c1;
    margin: 0 10px;
}

footer a:hover {
    color: #ffffff;
}

/* =========================================================
   10. RESPONSIVES DESIGN (Smartphones & Tablets)
   ========================================================= */
@media (max-width: 900px) {
    /* ERST auf Handys/Tablets darf die Karte über den Namen rutschen */
    .map-section {
        flex-wrap: wrap; 
        justify-content: center;
    }
    
    .map-container, #map-container, .contact-card-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease;
    }

    .nav-links.nav-active {
        left: 0;
    }

    .nav-links a {
        font-size: 22px;
    }

    .nav-links a[href="login.html"] {
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        font-size: 24px;
    }

    .card, .contact-card-wrapper {
        padding: 25px !important;
    }
}