/* *========== Leistungen Hero ========== */

#leistungen-hero {
    display: flex;
    align-items: end;
    min-height: 24rem;
    padding: 3.5rem 0;
    background-image: linear-gradient(rgba(20, 20, 18, 0.68), rgba(20, 20, 18, 0.68)), url("../img/hero-services.avif");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#leistungen-hero-container {
    width: min(90%, 76rem);
    margin: 0 auto;
}

#leistungen-hero h1 {
    margin: 0.8rem 0 0;
    color: #ffffff;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.88;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    #leistungen-hero {
        min-height: 15rem;
        padding: 2.5rem 0;
    }
}

/* *========== Leistungsübersicht ========== */

#leistungen-uebersicht {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background-color: var(--background);
}

#leistungen-uebersicht-container {
    width: min(90%, 76rem);
    margin: 0 auto;
}

.leistungen-einleitung {
    max-width: 48rem;
    margin: 0 0 clamp(2.5rem, 5vw, 4rem);

    color: var(--muted-foreground);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

#leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;

    border: 1px solid var(--border);
    background-color: var(--border);
}

.leistung-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 2.3rem 1.7rem;

    background-color: var(--card);

    transition: background-color 0.2s ease;
}

.leistung-icon {
    display: block;

    width: 2rem;
    height: 2rem;
    margin-bottom: 1.8rem;
}

.leistung-card h2 {
    margin: 0;

    color: var(--foreground);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.leistung-card p {
    min-height: 6.3rem;
    margin: 1rem 0 0;

    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.65;
}

.leistung-card ul {
    display: grid;
    gap: 0.5rem;

    margin: 1.4rem 0 0;
    padding: 1.25rem 0 0;

    border-top: 1px solid var(--border);
    list-style: none;
}

.leistung-card li {
    color: var(--foreground);
    font-size: 0.88rem;
}

.leistung-card li::before {
    content: "✓";

    margin-right: 0.65rem;

    color: var(--accent);
    font-weight: 700;
}

@media (hover: hover) {
    .leistung-card:hover {
        background-color: var(--muted);
    }
}

@media (max-width: 850px) {
    #leistungen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leistung-card p {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    #leistungen-grid {
        grid-template-columns: 1fr;
    }

    .leistung-card {
        padding: 2rem 1.5rem;
    }
}

/* ========== Prozess ========== */

#prozess {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background-color: var(--muted);
}

#prozess-container {
    width: min(90%, 76rem);
    margin: 0 auto;
}

#prozess-heading h2 {
    margin: 0.8rem 0 0;

    color: var(--foreground);
    font-size: clamp(2.8rem, 5vw, 4.3rem);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
}

#prozess-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;

    margin: clamp(3rem, 6vw, 5rem) 0 0;
    padding: 0;

    list-style: none;
}

.prozess-nummer {
    display: block;

    color: rgba(203, 58, 30, 0.22);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
}

.prozess-item h3 {
    margin: 1rem 0 0;

    color: var(--foreground);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.prozess-item p {
    margin: 0.85rem 0 0;

    color: var(--muted-foreground);
    line-height: 1.65;
}

@media (max-width: 850px) {
    #prozess-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem 2rem;
    }
}

@media (max-width: 560px) {
    #prozess-list {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ========== Footer CTA ========== */

#footer-cta {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background-color: var(--foreground);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

#footer-cta-container {
    width: min(90%, 76rem);
    margin: 0 auto;
}

#footer-cta h2 {
    max-width: 52rem;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(2.3rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 0.92;
    text-transform: uppercase;
}

#footer-cta p {
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
}

#footer-cta .btn {
    min-width: 15.4rem;
    margin-top: 2rem;
}

@media (max-width: 560px) {
    #footer-cta {
        padding: 4rem 0;
    }

    #footer-cta .btn {
        width: 100%;
    }
}