body {
    background: var(--bg);
}

/* Sanfte Seitenränder */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(to right, rgba(0,0,0,0.03), transparent);
}

body::after {
    right: 0;
    transform: scaleX(-1);
}

body::before {
    left: 0;
}

/* Header and navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-logo-img-el {
    height: 46px;
    width: auto;
}

/* Mobile nav */
.nav-toggle {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    z-index: 1101;
}

.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: height .35s ease;
    z-index: 1100;
}

.nav-links.open {
    height: 100vh;
    padding-top: 100px;
}

.nav-links a {
    padding: 18px 0;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 500;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.nav-links a:last-child {
    border-bottom: none;
}

.nav-links a:hover {
    color: var(--accent2);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Global Section Layout */
.lazy-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);

    opacity: 0;
    transform: translateY(25px);
    transition: opacity .8s ease, transform .8s ease;
}

.lazy-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.content-block {
    margin-top: 20px;
    line-height: 1.6;
}

/* HERO WITH IMAGE — MOBILE FIRST */
.hero-with-image {
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: start;
    gap: 40px;
}

/* Bild */
.hero-image-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.12),
        0 4px 10px rgba(0,0,0,0.06);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text */
.hero-text {
    max-width: 600px;
    line-height: 1.6;
}

/* betreuung section */
.section-header-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.section-intro {
    font-size: 1.1rem;
    margin-top: 10px;
    color: var(--text);
}

.section-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.section-block ul {
    padding-left: 25px;
}

.image-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-img {
    flex: 1;
    min-width: 260px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* footer */
.footer {
    text-align: center;
    padding: 40px;
    background: var(--bg_light);
}

/* fade in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Screen optimisation*/
@media (min-width: 768px) {

    .hero-with-image {
        flex-direction: row;      /* Desktop: side by side */
        align-items: center;
        justify-content: center;
        text-align: left;         /* Text left aligned */
        gap: 50px;
    }

    .hero-image-wrap {
        width: 220px;
        height: 220px;
    }

    .hero-text {
        max-width: 500px;
    }

    /* Desktop nav */
    .nav-links {
        max-height: none;
        display: flex;
        flex-direction: row;
        gap: 25px;
        background: none;
        padding: 0;
        box-shadow: none;
        width: auto;
        overflow: visible;
        margin-right: 0.5rem;
    }

    .nav-links a {
        border: none;
        font-size: 1.15rem;
        font-weight: 600;
        text-transform: capitalize;
    }

    .nav-toggle {
        display: none;
    }
}
