/* ==================================== */
        /* 1. GLOBALE VARIABLEN & GRUNDEINSTELLUNGEN */
        /* ==================================== */
        :root {
            /* Farben */
            --bg-menu: #161b2e;
            --color-white: #ffffff;
            --color-dark-blue: rgb(11, 11, 116);
            --color-accent: #f16e38; /* Orange */
            --color-accent-hover: #d15c2f;
            --color-faded-accent: #6757a350;
            --color-brand-blue: #161b2e;
            --top-bar-height: 40px;
            --header-height: 80px; /* Leicht erhöht für Logo + Text */
            --bg-body: #f4f6f9;
            
            /* Layout */
            --max-width: 1280px;
            --padding-x: 1rem; /* 16px */
            --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
        }

        /* Setzt die Icons Größe für Lucide */
        .icon {
            width: 1.25rem;
            height: 1.25rem;
        }

        /* Generelle Stile */
        body {
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f7f7f7;
        }
        .sitecontent,
        #sitecontent {
            position: relative;
            width: 100%;
            margin: 0;
            padding-top: calc(var(--top-bar-height) + var(--header-height));
            min-height: 100vh;
            background-color: var(--bg-body);
            box-sizing: border-box;
            z-index: 1;
        }

        /* ==================================== */
        /* 2. MENÜ-LEISTE (Dunkel) */
        /* ==================================== */
        .menuecontainer {
            max-width: var(--max-width);
            margin-left: auto;
            margin-right: auto;
            padding-left: var(--padding-x);
            padding-right: var(--padding-x);
        }
        
        .menu-bar {
            background-color: var(--bg-menu);
            color: var(--color-white);
            box-shadow: var(--shadow-light);
            width: 100%;
            z-index: 10;
        }

        .menu-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 2.5rem; /* 40px */
        }

        /* Desktop Navigation: Flexbox für zentrierte Links */
        .nav-links {
            display: flex;
            justify-content: center; /* Zentriert die Links auf Desktop */
            flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
        }
        
        .nav-links a {
            color: var(--color-white);
            text-decoration: none;
            font-size: 0.875rem; /* text-sm */
            font-weight: 500;
            padding: 0.25rem 1rem; /* Vertikal etwas mehr Platz */
            transition: color 0.2s, border-bottom 0.2s;
            border-bottom: 2px solid transparent; /* Platzhalter für den Akzentbalken */
        }
        .nav-links a:hover {
            color: #ccc;
        }

        /* AKZENT-BALKEN FÜR AKTIVEN PUNKT */
        .nav-links a.active {
            color: var(--color-white);
            border-bottom: 2px solid var(--color-accent); 
        }
        
        /* Rechte Aktionen (Glocke, Hilfe, Hamburger) */
        .action-icons {
             display: flex;
             align-items: center;
             gap: 1rem;
        }
        .action-icons button {
            background: none;
            border: none;
            color: var(--color-white);
            padding: 0.25rem;
            border-radius: 9999px; /* rounded-full */
            cursor: pointer;
            transition: color 0.2s;
        }
        .action-icons button:hover {
            color: #ccc;
        }
        
        /* ==================================== */
        /* 3. HAUPT-HEADER (Hell) */
        /* ==================================== */
        .header-main {
            background-color: var(--color-white);
            border-bottom: 1px solid #e5e7eb;
            width: 100%;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 5rem; /* 80px */
        }

        .auth-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        /* Logo Sektion */
        .logo-section {
            display: flex;
            align-items: center;
            gap: 0.75rem; /* space-x-3 */
        }

        /* LOGO ANPASSUNG */
        .logo-placeholder {
            height: 2.5rem; /* h-10 */
            width: 2.5rem; /* w-10 */
            background-color: var(--color-accent); /* Hintergrund für das Logo (optional) */
            border-radius: 0.5rem; /* rounded-lg */
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            
            /* Integration des hochgeladenen Logos */
            background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAACkCAYAAADDKl7oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFE0lEQVR4nO3dO6skUQCG8W83u0kYfO8L6FhYXhE0G30D6f6Vj/4C221+gY01g0U0G0cQ8B803G8EFRUfM3U/u83u7t3N7sU/Zp/7q9q3/F5F1fV9f1/W9A9r0v3N/3/f9f38fBwYGBgYGBgYGBgYGBgYGBg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YGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGFgT1/X9f1/X9A4n/B4q0uE4x68AAAAASUVORK5CYII=");
            background-size: cover;
            background-position: center;
        }

        .logo-text {
            font-size: 1.5rem; /* text-2xl */
            font-weight: 900; /* font-black */
            color: var(--color-accent); /* Schriftfarbe ist jetzt Orange */
            letter-spacing: -0.025em; /* tracking-tight */
            text-decoration: none;
        }

        /* Button Style */
        .btn-primary {
            background-color: var(--color-accent);
            color: var(--color-white);
            padding: 0.5rem 1rem; /* px-4 py-2 */
            border-radius: 0.5rem; /* rounded-lg */
            font-weight: 600; /* font-semibold */
            font-size: 0.875rem; /* text-sm */
            border: none;
            cursor: pointer;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
            transition: background-color 0.2s, box-shadow 0.2s;
        }
        .btn-primary:hover {
            background-color: var(--color-accent-hover);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        }
        
        /* ==================================== */
        /* 4. RESPONSIVE LOGIK (Mobile First) */
        /* ==================================== */
        
        /* Desktop Navigation ist Standardmäßig versteckt und wird erst bei >= 640px angezeigt */
        .nav-links {
            display: none;
        }
        
        /* Mobile Hamburger Icon ist Standardmäßig angezeigt und wird bei >= 640px versteckt */
        .mobile-menu-toggle {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            background: none;
            border: none;
            padding: 0.25rem;
            cursor: pointer;
            color: var(--color-white);
            transition: color 0.2s;
        }
        .mobile-menu-toggle:hover {
            color: #ccc;
        }

        .mobile-menu-toggle span {
            font-size: 0.875rem;
            font-weight: 700;
        }

        /* Mobile Menü Container */
        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(2px);
            z-index: 1500;
            display: none;
        }

        .mobile-menu-overlay.active {
            display: block;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -300px;
            width: min(300px, 88vw);
            height: 100vh;
            background: var(--color-white);
            z-index: 2000;
            transition: right 0.3s ease;
            overflow-y: auto;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu-header {
            padding: 20px;
            background: var(--color-brand-blue);
            color: var(--color-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 700;
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--color-white);
            cursor: pointer;
            padding: 0.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-links {
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .mobile-menu-links a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            margin-bottom: 8px;
            color: #475569;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .mobile-menu-links a:hover {
            background: #f8fafc;
            color: var(--color-brand-blue);
        }

        .mobile-menu-links a.active {
            background: rgba(22, 27, 46, 0.05);
            color: var(--color-brand-blue);
        }

        .mobile-menu-links a .icon {
            flex: 0 0 auto;
        }
        
        /* Media Query für Desktop (ab 640px) */
        @media (min-width: 1201px) {
            .menu-content {
                height: 2.5rem;
            }
            
            /* Zeige die Desktop-Navigation und zentriere sie */
            .nav-links {
                display: flex;
                gap: 1.5rem; /* Etwas mehr Abstand */
            }
            
            /* Die Aktions-Icons müssen nun nicht mehr den gesamten Platz einnehmen */
            .action-icons {
                flex-basis: auto; 
            }
            
            .mobile-menu-toggle {
                display: none; /* Hamburger auf Desktop ausblenden */
            }
            
            .mobile-menu {
                display: none; /* Mobiles Menü auf Desktop ausblenden */
            }

            .mobile-menu-overlay {
                display: none;
            }
        }

        @media (max-width: 1200px) {
            .header-main .mobile-menu-toggle {
                color: var(--color-brand-blue);
                border-radius: 8px;
                padding: 0.5rem;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .header-main .mobile-menu-toggle:hover {
                background: #f8fafc;
                color: var(--color-brand-blue);
            }

            .menu-content {
                justify-content: flex-end;
            }

            .header-content {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
                height: 4.25rem;
                gap: 0.5rem;
            }

            .logo-section {
                justify-self: start;
                min-width: 0;
            }

            .auth-actions {
                display: contents;
            }

            .auth-actions > a {
                justify-self: center;
                grid-column: 2;
            }

            .auth-actions .mobile-menu-toggle {
                justify-self: end;
                grid-column: 3;
            }

            .logo-text {
                font-size: 1.15rem;
            }

            .btn-primary {
                padding: 0.5rem 0.75rem;
                white-space: nowrap;
            }
        }

        @media (max-width: 480px) {
            .logo-text {
                display: none;
            }

            .btn-primary {
                font-size: 0.8rem;
                padding: 0.45rem 0.65rem;
            }
        }
        /* ==================================== */
        /* 3. BUTTONS & LAYOUT */
        /* ==================================== */

        /* NICHT KOPIEREN, SOLLTE GLOBAL SEIN (Button-Stil) */
        .btn-submit {
            display: block;
            margin-top: 1.5rem;
            background-color: var(--color-accent);
            color: var(--color-white);
            padding: 0.75rem 1.5rem; 
            border-radius: 0.5rem; 
            font-weight: 600; 
            font-size: 1rem;
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            transition: background-color 0.2s, box-shadow 0.2s;
            width: 100%; 
        }
        .btn-submit:hover {
            background-color: var(--color-accent-hover);
            box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 6px 8px -6px rgba(0, 0, 0, 0.1);
        }
        /* ==================================== */
        /* FORMULAR STILE */
        /* ==================================== */
        .contact-card {
            background-color: var(--color-white);
            padding: 2rem;
            border-radius: 1rem; /* rounded-xl */
            box-shadow: var(--shadow-lg);
            border: 1px solid #e5e7eb;
        }

        .contact-card h2 {
            font-size: 1.875rem; /* text-3xl */
            font-weight: 700;
            color: var(--bg-menu);
            margin-top: 0;
            margin-bottom: 0.5rem;
        }

        .contact-card p {
            color: #6b7280;
            margin-bottom: 2rem;
        }

        .form-grid {
            display: grid;
            gap: 1.5rem; /* grid-gap */
            grid-template-columns: 1fr; /* Mobile: Eine Spalte */
        }
        
        /* Desktop: Zwei Spalten für Name und E-Mail */
        @media (min-width: 640px) {
            .form-grid.grid-2 {
                grid-template-columns: 1fr 1fr;
            }
        }

        .form-group label {
            display: block;
            font-weight: 600;
            font-size: 0.875rem; /* text-sm */
            margin-bottom: 0.5rem;
            color: var(--color-text);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            font-size: 1rem;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box; /* Wichtig für korrekte Breite */
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-accent);
            box-shadow: 0 0 0 3px rgba(241, 110, 56, 0.3); /* Ring */
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }
    /* ==================================== */
    /* 2. FOOTER STILE */
    /* ==================================== */
    .footer-container {
        /* Stellt sicher, dass der Footer nicht schrumpft und am unteren Rand bleibt (WICHTIG für Sticky Footer Logik) */
        flex-shrink: 0;
        background-color: var(--bg-menu);
        color: var(--color-white);
        padding: 2rem 0; /* Vertikaler Abstand oben/unten */
        border-top: 5px solid var(--color-accent);
        width: 100%;
    }

    .footer-content {
        max-width: var(--max-width);
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--padding-x);
        padding-right: var(--padding-x);
        
        display: flex;
        flex-direction: column; /* Mobile: Icons oben, Links darunter */
        gap: 1.5rem; /* Abstand zwischen den Hauptsektionen */
    }
    
    /* Social Media Icons (Links außen) */
    .social-icons {
        display: flex;
        gap: 1.5rem;
        /* Auf Mobile linksbündig */
    }

    .social-icons a {
        color: var(--color-white);
        transition: color 0.2s;
        /* Icons etwas größer, damit sie gut klickbar sind */
        padding: 0.5rem 0; 
    }

    .social-icons a:hover {
        color: var(--color-accent);
    }
    
    /* Links Sektion (Rechts außen) */
    .footer-links-container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        /* Auf Mobile rechtsbündig, um sich von Social Icons abzusetzen */
        align-items: flex-start;
    }

    .footer-links-container a {
        color: var(--color-white);
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.2s;
        padding: 0.2rem 0;
    }

    .footer-links-container a:hover {
        color: var(--color-accent);
    }
    
    /* Untere Zeile: Copyright */
    .footer-bottom-row {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: center; /* Zentriert den Copyright-Text */
        align-items: center;
        gap: 1rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
    }

    /* Media Query für Desktop (ab 640px) */
    @media (min-width: 640px) {
        .footer-content {
            flex-direction: row; /* Horizontaler Layout auf Desktop */
            justify-content: space-between;
            align-items: center;
        }

        .social-icons {
            /* Icons etwas vergrößern für Desktop Ansicht */
            gap: 2rem;
        }
        
        .social-icons a i {
            width: 1.5rem; 
            height: 1.5rem;
        }

        .footer-links-container {
            flex-direction: row; /* Links nebeneinander */
            gap: 2rem;
        }

        .footer-links-container a {
            /* Entfernt unnötigen Padding/Margin, da sie nebeneinander stehen */
            padding: 0;
        }
        
        .footer-bottom-row {
            justify-content: flex-start; /* Copyright linksbündig */
            padding-top: 1.5rem; /* Etwas mehr Abstand */
        }
    }
    .container {
        width: 100%;
        max-width: 850px; /* Erweitert, um Platz für Side-by-Side zu bieten */
        margin: 0 auto;
        padding: 2rem var(--padding-x); 
    }

/* Gemeinsamer Seitenkopf in der Anwendung */
.page-headrow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.125rem;
    margin-bottom: 1.125rem;
}

.page-title-stack {
    min-width: 0;
}

.headlinepage {
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
}

.headlinepage::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 12px 0 0;
    border-radius: 999px;
    background: var(--color-accent);
}

.subheadlinepage {
    margin: 10px 0 0;
    color: #475569;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.subpagecontent > .subheadlinepage {
    margin-bottom: 18px;
}

.subpagecontent::before {
    content: none;
    display: none;
}

@media (max-width: 820px) {
    .page-headrow {
        flex-direction: column;
    }

    .headlinepage {
        font-size: 1.55rem;
    }
}
