@import url("style.css");

html {
    scroll-behavior: smooth;
}

.scroll-anchor {
    position: relative;
    top: -30px;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =============================================
   Leistungen-Seite – Einleitung & Dienstleistungen
   ============================================= */
.leistungen-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2.25rem 4rem;
}

@media (max-width: 768px) {
    .leistungen-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.leistungen-intro {
    text-align: center;
    padding: 3rem 0 2.5rem;
}

.leistungen-intro h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.leistungen-intro p {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--accent-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-section {
    padding-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    background-color: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 2.75rem;
    min-height: 340px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: transform var(--transition),
                box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    color: var(--accent);
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.service-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.service-card p {
    flex: 1;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.btn-mehr {
    display: inline-block;
    align-self: flex-start;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--btn-red-text);
    background-color: transparent;
    border: 1px solid var(--btn-red-border);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: none;
    transition: background-color var(--transition),
                color var(--transition),
                border-color var(--transition),
                transform var(--transition);
}

.btn-mehr:hover,
.btn-mehr:focus-visible {
    background-color: var(--btn-red-bg-hover);
    color: var(--btn-red-text-hover);
    border-color: var(--btn-red-border-hover);
    transform: translateY(-1px);
    outline: none;
}

@media (min-width: 1024px) {
    .leistungen-intro {
        padding: 4rem 0 3rem;
    }
}

/* =============================================
   Detail-Sektionen für Dienstleistungen
   ============================================= */
.service-detail {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2.5rem;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
}

.service-detail-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.03) 50%, transparent 100%);
}

.service-detail-content {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.service-detail-alt .service-detail-content {
    direction: rtl;
}

.service-detail-alt .service-detail-content > * {
    direction: ltr;
}

.service-detail-text {
    background: #ffffff;
    border-radius: 22px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.service-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-detail-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-detail-text p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-detail-text p:last-child {
    margin-bottom: 0;
}

.service-detail-image {
    min-height: 420px;
    border-radius: 22px;
    border: 2px dashed rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Detailbereiche */
@media (max-width: 900px) {
    .service-detail {
        min-height: auto;
        padding: 4rem 1.25rem;
    }

    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-alt .service-detail-content {
        direction: ltr;
    }

    .service-detail-text {
        padding: 2rem 1.5rem;
    }

    .service-detail-image {
        min-height: 280px;
        order: -1;
    }
}

@media (max-width: 600px) {
    .service-detail {
        padding: 3rem 1rem;
    }

    .service-detail-text {
        padding: 1.75rem 1.25rem;
    }

    .service-detail-image {
        min-height: 220px;
    }
}
