:root {
    --primary: #1e3a8a; /* Modernes Dunkelblau */
    --secondary: #10b981; /* Frisches Grün */
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ========================================== */
/* NAVIGATION & FOOTER (Auf allen Seiten gleich) */
/* ========================================== */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================================== */
/* ALLGEMEINE ELEMENTE & FORMULARE            */
/* ========================================== */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: #059669;
}

h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
}

/* ========================================== */
/* LAYOUT-STRUKTUREN                          */
/* ========================================== */

/* Der Standard-Inhaltsbereich */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* --- Typisch für die Startseite (index.html) --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1b2a 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.card h3 {
    font-size: 1.4rem;
}

.cta-banner {
    background-color: var(--white);
    border-left: 5px solid var(--secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* --- Typisch für die Unterseiten (foerdermassnahmen.html, etc.) --- */
.sub-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1b2a 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.sub-hero h1 {
    color: var(--white);
    font-size: 2.2rem;
}

.sub-hero p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 0;
}

/* Wenn eine Seite eine Unterseite ist (erkennbar am .sub-hero), 
   wird der Inhaltscontainer zu einer eleganten, fokussierten Lese-Box */
body:has(.sub-hero) .container {
    max-width: 1000px;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

body:has(.sub-hero) ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Anpassungen für Mobilgeräte */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
    body:has(.sub-hero) .container {
        padding: 1.5rem;
    }
}