/* ================================================
   LEISTUNGEN PAGE – MODERN DESIGN
   ================================================ */

/* ---- PAGE HEADER ---- */
.leistungen-hero {
    background: linear-gradient(135deg, rgba(27,94,32,0.78) 0%, rgba(46,125,50,0.72) 50%, rgba(56,142,60,0.70) 100%), url('../images/headerbackgroundfrau2.png');
    background-size: cover;
    background-position: center 30%;
    padding: 70px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.leistungen-hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: -150px; right: -100px;
    pointer-events: none;
}
.leistungen-hero::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    bottom: -80px; left: -60px;
    pointer-events: none;
}
.leistungen-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.leistungen-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.leistungen-hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.leistungen-hero-stat {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 14px 24px;
    text-align: center;
    color: #fff;
}
.leistungen-hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.leistungen-hero-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- QUICK NAV ---- */
.leistungen-quicknav {
    background: #fff;
    border-bottom: 1px solid #e8ecf2;
    position: sticky;
    top: 106px; /* notfall-bar ~36px + navbar ~70px */
    z-index: 100;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.leistungen-quicknav::-webkit-scrollbar { display: none; }
.leistungen-quicknav-inner {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.leistungen-quicknav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    text-decoration: none;
    color: #666;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.leistungen-quicknav-item:hover,
.leistungen-quicknav-item.active {
    color: #388e3c;
    border-bottom-color: #388e3c;
}
.leistungen-quicknav-item span:first-child {
    font-size: 1.2rem;
}

/* ---- MAIN CONTENT ---- */
.leistungen-page {
    background: #f0f4f8;
    padding: 40px 20px;
}

/* ---- LEISTUNG CARD – NEU ---- */
.lk {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #e8ecf2;
    margin-bottom: 32px;
    transition: box-shadow 0.3s ease;
    scroll-margin-top: 200px; /* Fallback, wird per JS überschrieben */
}
.lk:hover {
    box-shadow: 0 8px 40px rgba(56,142,60,0.10), 0 2px 8px rgba(0,0,0,0.05);
}

/* Card Header */
.lk-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 36px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f8e9 100%);
    border-bottom: 1px solid #e8f5e9;
}
.lk-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(56,142,60,0.12);
    flex-shrink: 0;
}
.lk-header-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.lk-header-text p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}
.lk-badge {
    margin-left: auto;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card Body */
.lk-body {
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.lk-body-full {
    grid-template-columns: 1fr;
}

.lk-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #388e3c;
    margin-bottom: 10px;
}
.lk-section p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 16px;
}
.lk-section p:last-child { margin-bottom: 0; }

/* Schritte */
.lk-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lk-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}
.lk-step-num {
    width: 24px;
    height: 24px;
    background: #388e3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Highlights / Tags */
.lk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.lk-tag {
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
}

/* Card Footer */
.lk-footer {
    padding: 20px 36px;
    background: #f8fafc;
    border-top: 1px solid #e8ecf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.lk-footer-info {
    font-size: 0.85rem;
    color: #888;
}
.lk-footer-info strong { color: #1a1a1a; }
.lk-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(56,142,60,0.25);
}
.lk-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56,142,60,0.35);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .leistungen-hero { padding: 48px 16px 56px; }
    .leistungen-hero h1 { font-size: 1.7rem; }
    .leistungen-hero-stats { gap: 12px; }
    .leistungen-hero-stat { padding: 10px 16px; }
    .leistungen-hero-stat-num { font-size: 1.3rem; }

    .leistungen-quicknav { top: 96px; } /* Fallback, wird per JS überschrieben */
    .leistungen-quicknav-item { padding: 10px 10px; font-size: 0.70rem; }
    /* scroll-margin-top wird per JS dynamisch gesetzt */

    .leistungen-page { padding: 20px 12px; }

    .lk-header { padding: 20px 20px; gap: 14px; }
    .lk-header-text h2 { font-size: 1.15rem; }
    .lk-badge { display: none; }

    .lk-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px 20px;
    }
    .lk-footer {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .lk-cta { width: 100%; justify-content: center; }
}

/* ── Nach-oben Button in Quicknav ── */
.leistungen-quicknav-top {
    background: rgba(56,142,60,0.15) !important;
    border-color: rgba(56,142,60,0.4) !important;
    color: #2e7d32 !important;
    font-weight: 700 !important;
    flex-shrink: 0;
}
.leistungen-quicknav-top span {
    font-size: 1.1rem !important;
    font-weight: 900;
    line-height: 1;
}
.leistungen-quicknav-top:hover {
    background: #388e3c !important;
    color: #fff !important;
    border-color: #388e3c !important;
}
