/* Leistungen Page Styles */

/* Hero */
.leistungen-hero-split {
    background-color: var(--color-light-beige);
    padding-top: 100px;
    /* offset for header if needed */
}

.hero-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-split-left {
    padding: 60px 0;
}

.hero-split-left h1 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #111;
}

.hero-split-left p {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.4;
}

.hero-split-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Services Detail Cards */
.leistungen-services {
    padding: 100px 0;
    background: var(--color-light-beige);
    text-align: center;
}

.leistungen-services .section-suptitle {
    display: block;
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.leistungen-services-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 60px;
    color: var(--color-secondary);
}

.leistungen-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    /* Prevents all cards from stretching when one expands */
    text-align: left;
    position: relative;
    /* for absolute red arrow */
}

.leistungen-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.leistungen-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.leistungen-card h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-primary);
    line-height: 1.3;
}

.leistungen-card-intro {
    flex-grow: 1;
}

.leistungen-card-intro p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.leistungen-card-expanded {
    display: none;
    /* hidden by default */
    margin-bottom: 20px;
}

.leistungen-card[data-expanded="true"] .leistungen-card-expanded {
    display: block;
}

.leistungen-card-expanded p {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.leistungen-card-expanded ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leistungen-card-expanded li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.leistungen-card-expanded li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

.leistungen-card-law {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 25px;
    font-style: italic;
    font-family: var(--font-gesetze);
}

.read-more-toggle {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    color: var(--color-secondary);
    transition: opacity 0.2s;
    margin-top: auto;
}

.text-weniger {
    display: none;
}

.leistungen-card[data-expanded="true"] .text-mehr {
    display: none;
}

.leistungen-card[data-expanded="true"] .text-weniger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.text-mehr {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* Section: So arbeiten wir im Alltag */
.leistungen-alltag {
    padding: 100px 0;
    background: var(--color-light-beige);
}

.alltag-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.alltag-content .section-suptitle {
    display: block;
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.alltag-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.alltag-content p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 40px;
}

.alltag-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alltag-img-large img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    height: 250px;
}

.alltag-img-small-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alltag-img-small-row img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    height: 200px;
}

/* Roadmap Redesign */
.leistungen-roadmap-redesign {
    background: var(--color-light-beige);
    padding: 80px 0 120px;
}

.leistungen-roadmap-redesign .roadmap-title {
    text-align: center;
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 60px;
}

/* Stagger the roadmap steps */
.leistungen-roadmap-redesign .roadmap-wrapper {
    position: relative;
    padding-top: 40px;
}

.leistungen-roadmap-redesign .roadmap-path {
    /* Using CSS dotted line to fake the path if no SVG available */
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 150px;
    border-top: 4px dashed var(--color-secondary);
    border-radius: 50% 50% 0 0;
    opacity: 0.3;
    z-index: 1;
    transform: translateY(-50%);
}

.leistungen-roadmap-redesign .roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.leistungen-roadmap-redesign .step-card {
    border-radius: var(--border-radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: none;
    background: transparent;
}

.leistungen-roadmap-redesign .bg-green .step-card {
    background-color: #f3f6ea;
}

.leistungen-roadmap-redesign .bg-blue .step-card {
    background-color: #f0f7f7;
}

.leistungen-roadmap-redesign .bg-gray .step-card {
    background-color: #f4f9f9;
}

.leistungen-roadmap-redesign .bg-beige .step-card {
    background-color: #fcf4ed;
}

/* Staggering effect */
.leistungen-roadmap-redesign .step-1 {
    margin-top: 80px;
}

.leistungen-roadmap-redesign .step-2 {
    margin-top: 40px;
}

.leistungen-roadmap-redesign .step-3 {
    margin-top: 0px;
}

.leistungen-roadmap-redesign .step-4 {
    margin-top: -40px;
}

.leistungen-roadmap-redesign .step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.leistungen-roadmap-redesign h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.leistungen-roadmap-redesign p {
    font-size: 0.9rem;
    color: #444;
}

/* Zusammenarbeit Redesign */
.leistungen-zusammenarbeit.redesigned {
    background: var(--color-light-beige);
    padding: 100px 0;
}

.zusammenarbeit-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.zusammenarbeit-content h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.zusammenarbeit-image img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
}




/* Responsive */
@media (max-width: 1024px) {
    .leistungen-cards {
        grid-template-columns: 1fr 1fr;
    }

    .red-arrow-illustration {
        display: none;
    }

    .leistungen-roadmap-redesign .roadmap-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .leistungen-roadmap-redesign .step-1,
    .leistungen-roadmap-redesign .step-2,
    .leistungen-roadmap-redesign .step-3,
    .leistungen-roadmap-redesign .step-4 {
        margin-top: 0;
    }

    .leistungen-roadmap-redesign .roadmap-path {
        display: none;
    }
}

@media (max-width: 768px) {

    .hero-split-wrapper,
    .alltag-wrapper,
    .zusammenarbeit-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-split-left {
        padding: 40px 0 0;
    }

    .hero-split-left h1 {
        font-size: 2.5rem;
    }

    .hero-split-left p {
        font-size: 1.2rem;
    }

    .leistungen-cards {
        grid-template-columns: 1fr;
    }

    .alltag-img-small-row {
        grid-template-columns: 1fr;
    }

    .leistungen-roadmap-redesign .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .cta-title-box {
        font-size: 1.8rem;
        padding: 20px;
    }

    .cta-text-box {
        font-size: 1rem;
        padding: 10px 20px;
        border-radius: 20px;
    }

    .leistungen-cta-bg {
        height: 100%;
    }
}