/* ======================= Grundlegende Stile & Variablen ======================= */
:root {
    --primary-color: #2c5b76; /* Ein ruhiges, vertrauenswürdiges Blau */
    --secondary-color: #f8b400; /* Ein warmer, einladender Akzent (Gelb/Orange) */
    --background-color: #f9f9f9;
    --text-color: #333333;
    --light-gray: #eeeeee;
    --white: #ffffff;
    --font-family: 'Lato', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

section {
    padding: 60px 0;
}

/* ======================= Header & Navigation ======================= */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo a {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
}

/* ======================= Hero Section ======================= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://via.placeholder.com/1920x600/A6D5AE/FFFFFF?text=Ein+freundliches+Bild+des+Zentrums') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--white);
}

.hero-section p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* ======================= Schnellzugriff (Karten) ======================= */
.quick-access {
    background-color: var(--white);
}

.card-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    margin: 20px 0 10px 0;
}

.card p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 25px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1e4258; /* Dunkleres Blau */
}

/* ======================= Nächste Termine ======================= */
.upcoming-events {
    text-align: center;
}
.upcoming-events ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: left;
}
.upcoming-events li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}
.upcoming-events .date {
    font-weight: bold;
    color: var(--secondary-color);
}
.btn-secondary {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ======================= Fußzeile ======================= */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
}
.footer-col {
    flex: 1;
    padding: 0 20px;
}
.footer-col h4 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}
.footer-col p, .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0.9;
}
.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--secondary-color);
}


/* ======================= Responsive Design für Mobilgeräte ======================= */
@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    
    .main-header .container {
        flex-direction: column;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .main-nav li {
        border-bottom: 1px solid var(--light-gray);
    }

    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1.2rem; }

    .card-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 30px;
    }
}