/* Allgemeine Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* Header Styling mit Flexbox */
.header {
    display: flex; /* Flexbox für nebeneinanderliegende Elemente */
    justify-content: space-between; /* Abstand zwischen Logo und Navigation */
    align-items: center; /* Vertikal zentrieren */
    background-color: #fff;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    text-decoration: none;
}

.logo img {
    max-height: 50px; /* Passen Sie die Höhe bei Bedarf an */
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #5a2a8a;
}

/* Hero Bereich Styling */
.hero {
    background-color: #e0e0e0; /* Fallback */
    padding: 150px 80px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Hintergrundbild nun aus dem Projekt-Root (achte auf Groß-/Kleinschreibung .JPG) */
    background-image: url('Team.JPG');
    background-repeat: no-repeat;
    --hero-pos: 32%;
    background-position: center var(--hero-pos);
    background-size: cover;

    transition: background-size 0.5s ease;

    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-button {
    background-color: #5a2a8a;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #431f6d;
}

/* Feature Cards Styling mit Flexbox (ähnlich den 3 Tabs unten im Klier-Screenshot) */
.feature-cards {
    display: flex; /* Flexbox für nebeneinanderliegende Karten */
    justify-content: center; /* Karten zentrieren */
    gap: 25px; /* Abstand zwischen den Karten */
    padding: 0 40px 40px; /* Innenabstand unten und seitlich */
    flex-wrap: wrap; /* Wichtig für Responsivität: Karten brechen um, wenn der Platz eng wird */
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    flex: 1; /* Karten nehmen verfügbaren Platz ein */
    min-width: 280px; /* Mindestbreite, bevor sie umbrechen */
    max-width: 350px; /* Maximale Breite, um nicht zu groß zu werden */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.card:hover {
    transform: translateY(-5px); /* Kleiner "Lift"-Effekt */
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 40px;
    color: #5a2a8a;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* Description Section */
.description {
    padding: 40px 20px;
    background-color: #fff;
}

.description h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.description p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 50px 40px;
    border-top: 1px solid #eee;
    color: #444;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 280px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.opening-hours p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 10px 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-list i {
    margin-right: 15px;
    color: #5a2a8a;
    font-size: 18px;
    width: 20px;
    text-align: center;
    padding-top: 3px;
}

.contact-list a {
    text-decoration: none;
    color: #444;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #5a2a8a;
}

/* Responsive Grid für spezielle Abschnitte */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Karte in der responsive-grid bleibt auf Desktop groß, auf Mobil ca. 300px hoch */
.responsive-grid iframe {
    width: 100%;
    height: 350px;
}

/* Mobile: eine Spalte und geringere Kartenhöhe */
@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr !important;
    }
    .responsive-grid iframe {
        height: 300px;
    }
}

/* Responsivität für kleinere Bildschirme */
@media (max-width: 768px) {
    .header {
        flex-direction: column; /* Header-Elemente untereinander */
        padding: 15px 20px;
    }

    .nav-links {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .feature-cards {
        flex-direction: column; /* Karten stapeln sich */
        align-items: center;
        padding: 0 20px 30px;
    }

    .card {
        margin-bottom: 20px;
        max-width: 90%; /* Karten nehmen fast volle Breite ein */
    }

    .description {
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }
}

/* Feinjustierung für kleinere Bildschirme */
@media (max-width: 800px) {
    .hero {
        --hero-pos: 20%; /* mehr oben auf kleinen Bildschirmen */
        background-position: center var(--hero-pos);
        background-size: cover;
        min-height: 420px;
    }
}
