/* Color Palette */
:root {
    --primary: #04047f;
    --secondary: #0a1931;
    --accent: #2323d1;
    --light: #e6eaf4;
    --neutral: #f5f6fa;
    --text-dark: #22223b;
    --text-light: #ffffff;
}
/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light);
    margin: 0;
    overflow-x: hidden; /* This line is the fix */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary);
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Header & Navigation */
.header {
        background-color: var(--primary);
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

.header .logo {
    height: 60px;         /* Höhe des Containers für das Logo */
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 56px !important;   /* Logo größer machen */
    width: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    background-image: url('../img/kindergartendd.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light); /* Stellt sicher, dass der Text hel ist */
}

.hero-content h1 {
    font-size: 6rem;
    color: var(--text-light);
    margin: 0;
}

.hero-content .slogan {
    font-size: 3rem;
    margin: -1rem 0 2rem; /* Negativer Wert für den oberen Rand */
    font-weight: 400;
}

.hero-subtext {
    font-size: 1.1rem; /* Größe des Textes */
    max-width: 600px; /* Begrenzt die Breite, damit der Text nicht zu lang wird */
    margin: 1rem auto 2rem; /* Fügt Abstand oben, unten und mittig ein */
    font-weight: 300; /* Dünnere Schrift für einen eleganten Look */
    line-height: 1.5; /* Zeilenabstand für bessere Lesbarkeit */
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1a1aab;
}

/* Services Section */
.services-section {
    background-color: var(--neutral);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    color: var(--accent); /* Farbe des Icons festlegen */
    stroke-width: 1.5; /* Dicke der Icon-Linien festlegen */
}

/* Projects Section */
.projects-section {
    background-color: var(--light);
}

.project-slider {
    width: 100%;
    height: 500px;
    max-width: 900px;
    margin: 0 auto;
}

.project-slide {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.project-slide img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    width: 50%;
    padding: 2rem;
}

.project-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Contact & Legal Section */
.contact-legal-section {
    background-color: var(--secondary);
    color: var(--text-light);
}

.contact-legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.legal-notice, .contact-info {
    padding: 2rem;
    background-color: var(--primary);
    border-radius: 10px;
}

.legal-notice .section-title, .contact-info .section-title {
    color: var(--text-light);
}

.legal-info h3 {
    color: var(--accent);
}

.contact-info a {
    color: var(--text-light);
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .btn-primary {
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links img {
    width: 30px;
    height: 30px;
    margin-left: 1rem;
    filter: invert(1);
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Responsiveness */
@media (max-width: 768px) {
    body, html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .swiper-button-next,
.swiper-button-prev {
    color: var(--primary); /* Farbe der Pfeile (falls nicht schon definiert) */
    /* Erhöht die Größe und Dicke der Pfeile */
    font-size: large; /* Erhöht die Icon-Größe */
    font-weight: 1000; /* Macht die Linien dicker, falls es Text-Icons sind */
    --swiper-navigation-size: 40px; /* Swiper Variable für die Größe des Pfeil-Elements */
    --swiper-navigation-color: var(--primary); /* Swiper Variable für die Farbe */

    /* Wenn es SVG-Pfeile sind, kann man die stroke-width nicht direkt mit CSS ändern,
       aber wir können die Größe und die Farbe beeinflussen.
       Oft sind Swiper-Pfeile jedoch als `::after` Pseudo-Elemente mit `font-size` und `content` realisiert. */
}

/* Optional: Hintergrund der Pfeile anpassen */
.swiper-button-next::after,
.swiper-button-prev::after {
    /* Wenn die Pfeile durch ::after generiert werden, kann man hier die Font-Size erhöhen */
    font-size: 2rem !important;
    font-weight: 900 !important; /* Macht das Symbol so dick wie möglich */
}
.swiper-pagination {
    display: none;
}
.hero-content h1 {
        font-size: 2.5rem; /* Verkleinert die Hauptüberschrift */
    }

    .hero-content .slogan {
        font-size: 1.2rem; /* Verkleinert den Slogan */
        margin-top: 0rem; /* Reduziert den negativen oberen Rand */
    }

    .hero-subtext {
        font-size: 1.1rem; /* Verkleinert den Untertext */
        max-width: 90%; /* Verwendet 90% der Breite */
    }

     .header {
        position: fixed;
        
    }
    
    
}
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        gap: 3rem;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .burger-menu {
        display: block;
    }
    
    .contact-legal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .project-slide {
        flex-direction: column;
    }

    .project-slide img, .project-details {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }

    .header {
        position: fixed;
        width: 100vw; /* Volle Viewport-Breite */
        left: 0;
        right: 0;
    }

.hero-logo {
    max-width: 300px;
    margin-bottom: 2rem;
}