/* Services Page Styles */

/* Main Container Setup */
.services-main {
    position: relative;
    background-color: var(--primary-red);
    min-height: 80vh;
    /* Ensure it takes up space */
    padding: 8rem 2rem 4rem;
    /* Increased top padding for nav */
    display: flex;
    justify-content: center;
}

.services-wrapper {
    width: 100%;
    max-width: 800px;
    z-index: 2;
    /* Content above texture */
    text-align: center;
}

.services-wrapper h1 {
    color: var(--white);
    font-family: var(--font-headline);
    font-size: 3rem;
    margin-bottom: 3rem;
}

/* Accordion Container */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Abstand zwischen den Karten */
}

/* Accordion Card */
.accordion-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: left;
    /* Align content left inside card */
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Card Header (Icon + Title) */
.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Red Icon: Filter hack or user supplied red SVGs? 
       User said: "Sichtbar sind nur das zentrierte SVG-Icon (rot eingefärbt)"
       If SVGs are black by default, we can use CSS filter to make them red.
       --primary-red is #9b1542.
       Filter generator for #9b1542:
       invert(14%) sepia(85%) saturate(3025%) hue-rotate(328deg) brightness(85%) contrast(97%)
    */
    filter: invert(14%) sepia(85%) saturate(3025%) hue-rotate(328deg) brightness(85%) contrast(97%);
}

.card-header h2 {
    font-family: var(--font-main);
    font-weight: bold;
    color: var(--primary-red);
    font-size: 1.5rem;
    margin: 0;
}

/* Card Content (Hidden by default) */
.card-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease;
    padding-top: 0;
    color: var(--text-color);
    font-family: var(--font-main);
}

/* Active State */
.accordion-card.active .card-content {
    max-height: 2000px;
    /* Very large value to accommodate any content length */
    opacity: 1;
    padding-top: 1.5rem;
    /* Add spacing when open */
}

/* CTA Button in Card Content */
.card-content .cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
}

.card-content .cta-button:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 21, 66, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-main {
        padding: 4rem 1rem;
    }

    .services-wrapper h1 {
        font-size: 2.2rem;
    }

    .accordion-card {
        padding: 1rem;
    }

    .card-header {
        gap: 1rem;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    /* Ensure content expands properly on mobile */
    .card-content {
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease;
    }

    .accordion-card.active .card-content {
        max-height: 3000px;
        /* Even larger for mobile to accommodate all content */
    }
}