@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    background-color: #1E3A5F;
    color: #fff;
}

.hero-leistungen {
    background: url('fotos/header1.jpg') center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-leistungen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-leistungen-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-leistungen-overlay h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #f9c700;
}

.hero-leistungen-overlay p {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.85;
}

@media (max-width: 480px) {
    .hero-leistungen-overlay h1 {
        font-size: 1.7rem;
    }

    .hero-leistungen-overlay p {
        font-size: 0.95rem;
    }
}

.accordion-wrapper {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.accordion {
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    background-color: #1c2e4a;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f9c700;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-header::after {
    content: "›";
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}

.accordion.open .accordion-header::after {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: #263a57;
    padding: 0 1.5rem;
    transition: max-height 0.4s ease, padding 0.4s ease;
    box-sizing: border-box;
}

.accordion.open .accordion-content {
    max-height: 1000px; /* Erhöht für mehr Text auf kleinen Geräten */
    padding: 1rem 1.5rem 1.5rem;
}

.accordion.open .accordion-content {
    max-height: 800px;
    padding: 1rem 1.5rem 1.5rem;
}

.accordion-content h3 {
    color: #f9c700;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.accordion-content p,
.accordion-content ul {
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 1rem;
}

.accordion-content ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.mehr-erfahren-section {
    background: linear-gradient(135deg, #1c2e4a, #263a57);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.mehr-erfahren-container {
    max-width: 800px;
    margin: 0 auto;
}

.mehr-erfahren-container h2 {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 20px;
}

.mehr-erfahren-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #dddddd;
}

.mehr-erfahren-container .cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1E3A5F;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mehr-erfahren-container .cta-button:hover {
    background-color: #FFC107;
    color: #ffffff;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .accordion-content {
        max-height: none !important;
        padding: 1rem 1.5rem 1.5rem !important;
        overflow: visible !important;
    }

    .accordion-header::after {
        display: none; /* Pfeil ausblenden, da kein Toggle nötig */
    }
}
