/* ========== Hero-Bereich ========== */

#index-hero {
    min-height: 88vh;
    overflow: hidden;

    background-image:
        linear-gradient(rgba(20, 24, 27, 0.72),
            rgba(20, 24, 27, 0.72)),
        url("../img/hero-building.avif");

    background-size: cover;
    background-position: center;
}

#index-hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 4rem;

    width: min(90%, 76rem);
    min-height: 88vh;
    margin: 0 auto;
}

#index-hero-content {
    max-width: 38rem;
    color: #fff;
}

#index-hero-content h1 {
    margin: 1rem 0;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.88;
    text-transform: uppercase;
}

#index-hero-content h1 span {
    color: var(--accent);
}

#index-hero-content p {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

#hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}


/* Bildkarte rechts */

#index-hero-img {
    height: 30rem;
    overflow: hidden;
    border-left: 4px solid var(--accent);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
}

#index-hero-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

}


/* Mobil */

@media (max-width: 850px) {
    #index-hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 4rem 0;
    }

    #index-hero-content {
        text-align: center;
        margin: 0 auto;
    }

    #hero-actions {
        justify-content: center;
    }

    #index-hero-img {
        display: none;
    }
}

/* ========== Kennzahlen ========== */

#kennzahlen {
    background-color: var(--foreground);
    color: #ffffff;
}

#kennzahlen-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(90%, 76rem);
    margin: 0 auto;
    padding: 2.8rem 0;
}

.kennzahl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    text-align: center;
}

.kennzahl-zahl {
    color: var(--accent);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
}

.kennzahl-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: clamp(0.63rem, 0.8vw, 0.72rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 650px) {
    #kennzahlen-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0;
        padding: 2.2rem 0;
    }

    .kennzahl-card {
        padding: 0 0.5rem;
    }
}

/* ========== Leistungen ========== */
#leistungen {
    padding: 7rem 0;
    background-color: var(--background);
}

#leistungen-container {
    width: min(90%, 76rem);
    margin: 0 auto;
}

#leistungen-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 3rem;
}

#leistungen-heading h2 {
    margin: 0.8rem 0 0;
    color: var(--foreground);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
}

.leistungen-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.leistungen-link img {
    width: 1rem;
    height: 1rem;
}

#leistungen-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--card);
    border: 1px solid var(--border);
}

.leistung-card {
    padding: 2.5rem 1.8rem;
}

.leistung-card:hover {
    background-color: var(--background);
}

.leistung-card+.leistung-card {
    border-left: 1px solid var(--border);
}

.leistung-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1.8rem;
}

.leistung-card h3 {
    margin: 0;
    color: var(--foreground);
    font-size: 1.55rem;
    font-weight: 700;
    text-transform: uppercase;
}

.leistung-card p {
    margin: 1rem 0 1.4rem;
    color: var(--muted-foreground);
    line-height: 1.65;
}

.leistung-card ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leistung-card li {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.leistung-card li::before {
    content: "›";
    margin-right: 0.7rem;
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 700;
}

/* Mobil */
@media (max-width: 800px) {
    #leistungen {
        padding: 4.5rem 0;
    }

    #leistungen-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    #leistungen-card-container {
        grid-template-columns: 1fr;
    }

    .leistung-card+.leistung-card {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .leistung-card {
        padding: 2rem 1.5rem;
    }
}

/* *========== Über uns ========== */

#ueber-uns {
    padding: 7rem 0;
    background-color: var(--muted);
}

#ueber-uns-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 5rem;
    width: min(90%, 76rem);
    margin: 0 auto;
}

#ueber-uns-img {
    position: relative;
    width: 100%;
    height: 29rem;
}

#ueber-uns-img>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ueber-uns-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    position: absolute;
    right: -1.4rem;
    bottom: -1.4rem;
    width: 8.5rem;
    height: 8.5rem;
    padding: 1rem;
    background-color: var(--accent);
    color: #ffffff;
    text-align: center;
}

.ueber-uns-badge img {
    width: 1.8rem;
    height: 1.8rem;
    filter: brightness(0) invert(1);
}

.ueber-uns-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#ueber-uns-content h2 {
    margin: 0.8rem 0 1.5rem;
    color: var(--foreground);
    font-size: clamp(2.8rem, 4.5vw, 4.4rem);
    font-weight: 800;
    line-height: 0.92;
    text-transform: uppercase;
}

#ueber-uns-content p {
    margin: 0 0 1rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.ueber-uns-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.3rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.ueber-uns-link img {
    width: 1rem;
    height: 1rem;
}

.ueber-uns-link:hover {
    text-decoration: underline;
}

/* Mobil */
@media (max-width: 850px) {
    #ueber-uns {
        padding: 4.5rem 0;
    }

    #ueber-uns-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #ueber-uns-img {
        width: 100%;
        height: 29rem;
    }

    .ueber-uns-badge {
        right: -1rem;
        bottom: -1rem;
        width: 7rem;
        height: 7rem;
    }
}

/* ========== Footer CTA ========== */

#footer-cta {
    padding: 3.2rem 0;
    background-color: var(--accent);
}

#footer-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(90%, 76rem);
    margin: 0 auto;
}

#footer-cta-content {
    color: #ffffff;
}

#footer-cta-content h2 {
    margin: 0;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
}

#footer-cta-content p {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 13.75rem;
    min-height: 3.3rem;
    padding: 0.9rem 1.4rem;
    background-color: #ffffff;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-cta-button:hover {
    background-color: var(--foreground);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-cta-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 700px) {
    #footer-cta-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-cta-button {
        width: 100%;
    }
}