@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- 1. Variablen & Globales Setup --- */
:root {
    --primary-blue: #2563eb;
    /* Hauptfarbe (Blau) */
    --dark-blue: #1e3a8a;
    /* Dunkles Blau (Hero/Footer) */
    --spanish-orange: #ea580c;
    /* Akzentfarbe Spanien */
    --text-color: #1f2937;
    /* Dunkelgrau für Text */
    --light-bg: #f9fafb;
    /* Sehr helles Grau für Hintergründe */
    --white: #ffffff;
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Sorgt dafür, dass der Footer unten bleibt */
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 2. Navbar (Desktop) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    /* Menü bleibt beim Scrollen oben */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

#schuliconheader {
    font-size: 1.8rem;
    color: var(--dark-blue);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
}

.navbar-links ul {
    display: flex;
    gap: 2rem;
}

.navbar-links a {
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.navbar-links a:hover {
    color: var(--primary-blue);
    background-color: #f3f4f6;
}

/* --- 3. Burger Button (Grundstyle) --- */
/* Wird auf Desktop ausgeblendet, auf Mobile eingeblendet */
.toggle-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    /* Liegt über dem ausgefahrenen Menü */
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    /* Sprunghafte Animation */
    transform-origin: center;
}

/* Animation zum X (wenn JS die Klasse 'active' hinzufügt) */
.toggle-button.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-blue);
}

.toggle-button.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
    /* Fliegt nach links weg */
}

.toggle-button.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-blue);
}

/* --- 4. Hero Section --- */
.hero {
    position: relative;
    height: 500px;
    background-image: url("../Bilder/schule.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: center;
}

/* Blaues Overlay für bessere Lesbarkeit */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.85);
    /* Transparentes Blau */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding-left: 5%;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 0.8rem 2rem;
    border-radius: 999px;
    /* Pillen-Form */
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #dbeafe;
    transform: translateY(-2px);
}

/* --- 5. Allgemeine Section Styles --- */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-container h2 {
    font-size: 2.2rem;
    color: #111;
    margin-bottom: 0.5rem;
}

.section-title-container .subtitle {
    color: #666;
}

/* --- 6. Über uns (About) Section --- */
.about-content-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 1rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #111;
}

#about ul {
    /* list-style-type: disc; */
    padding-left: 20px;
    position: relative;
    text-align: center;
}

/* --- 9. Footer --- */
.footer {
    background-color: #111827;
    /* Fast Schwarz */
    color: #9ca3af;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-copyright {
    font-size: 0.9rem;
}

/* --- 10. Responsive Design (Mobile & Animation) --- */
@media (max-width: 768px) {

    /* Burger Button sichtbar machen */
    .toggle-button {
        display: flex;
    }

    /* Navbar Container Animation */
    .navbar-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        /* Standard: Geschlossen */
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);

        /* Die eigentliche Slide-Animation */
        transition: max-height 0.5s ease-in-out, padding 0.5s ease;
        padding: 0;
    }

    /* Zustand wenn geöffnet (wird via JS 'active' gesetzt) */
    .navbar-links.active {
        max-height: 500px;
        /* Genug Platz für Inhalt */
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
    }

    .navbar-links ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    /* Animation der einzelnen Listenpunkte (Staggered Effect) */
    .navbar-links ul li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    /* Wenn Menü offen ist, Punkte einblenden */
    .navbar-links.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Verzögerung für Kaskaden-Effekt */
    .navbar-links.active ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .navbar-links.active ul li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .navbar-links.active ul li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .navbar-links.active ul li:nth-child(4) {
        transition-delay: 0.4s;
    }

    /* Layout Anpassungen für Mobile */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .comparison-cards,
    .comparison-lists {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.quellenlink,
.footerzertifikat {
    transition-duration: 0.3s;
}

.quellenlink:hover,
.footerzertifikat:hover {
    color: white;
    transition-duration: 0.3s;
}