/* Seitenspezifische Ergänzungen für die Grundpflege-Seite. */
.grundpflege-page {
    line-height: 1.75;
}

.grundpflege-page h3,
.grundpflege-page .section-title h3,
.grundpflege-page .nav-link,
.grundpflege-page .footer-links li a,
.grundpflege-page .btn-default,
.grundpflege-page .breadcrumb-item,
.grundpflege-page .readmore-btn,
.grundpflege-page .page-catagory-list h3,
.grundpflege-page .page-catagory-list a {
    text-transform: none;
}

.grundpflege-page .nav-link[aria-current="page"] {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 7px;
}

.grundpflege-page .page-single-sidebar {
    top: 110px;
}

.grundpflege-page .page-catagory-list li.is-current a {
    color: var(--primary-color);
    font-weight: 700;
}

.grundpflege-page .page-catagory-list li.is-current a::before {
    transform: translateY(-50%) rotate(45deg);
}

.grundpflege-page .sidebar-cta-image img,
.grundpflege-page .page-single-image img {
    object-position: center;
}

.grundpflege-page .sidebar-cta-content {
    align-items: flex-start;
}

.grundpflege-page .sidebar-cta-content .icon-box {
    flex: 0 0 30px;
}

.grundpflege-page .sidebar-cta-content p {
    margin-bottom: 4px;
}

.grundpflege-page .sidebar-cta-content p:last-child {
    margin-bottom: 0;
}

.grundpflege-page .sidebar-cta-contact a {
    font-size: 18px;
}

.grundpflege-page .service-intro {
    margin-bottom: 60px;
}

.grundpflege-page .service-entry p {
    line-height: 1.75;
}

.grundpflege-page .service-detail-note {
    margin-top: 30px;
    padding: 22px 24px;
    color: var(--primary-color);
    background: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 14px 14px 0;
}

.grundpflege-page .approach-body-item-content h3 {
    line-height: 1.45;
}

.grundpflege-page .compassionate-content-box {
    min-height: 260px;
}

.grundpflege-page .service-support-item {
    align-items: center;
}

.grundpflege-page .service-support-item-content h3 {
    overflow-wrap: anywhere;
}

.einzugsgebiet-page .page-header-box h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.grundpflege-page .service-support-item-content p {
    margin-bottom: 0;
    line-height: 1.45;
}

.grundpflege-page .service-support-video figure::before {
    display: none;
}

.grundpflege-page .service-support-image figure,
.grundpflege-page .service-support-video figure,
.grundpflege-page .personalized-step-image figure {
    overflow: hidden;
}

.grundpflege-page .service-support-image img,
.grundpflege-page .service-support-video img,
.grundpflege-page .personalized-step-image img {
    object-position: center;
}

/* Hochformatige Personenfotos in den breiten Bildpaaren weniger beschneiden. */
.grundpflege-page :is(.service-support-image, .service-support-video) figure img:is(
    [src$="pflegekraft-begleitet-seniorin-im-rollstuhl.png"],
    [src$="haeusliche-pflege-seniorin-zu-hause.png"],
    [src$="pflegekraft-im-gespraech-mit-seniorin.png"],
    [src$="pflegekraft-begleitet-seniorin-zu-hause.png"],
    [src$="pflegekraft-versorgt-seniorin-zu-hause.png"],
    [src$="pflegekraft-begleitet-seniorin-mit-gehstock.png"],
    [src$="pflegekraft-unterstuetzt-seniorin-mit-rollator.png"],
    [src$="mobilitaetshilfe-seniorin-mit-gehstoecken.png"]
) {
    aspect-ratio: 1 / 1;
    object-position: center top;
}

/* Bei diesen weiteren Motiven liegt der Kopf nahe am oberen Bildrand. */
.grundpflege-page .page-single-image img[src$="grundpflege-senior-zu-hause.png"] {
    object-position: center top;
}

.grundpflege-page .page-single-image img[src$="ambulante-pflege-seniorin-zu-hause.png"],
.grundpflege-page .sidebar-cta-image img,
.grundpflege-page .personalized-step-image img:is(
    [src$="pflegekraft-unterstuetzt-seniorin-mit-rollator.png"],
    [src$="mobilitaetshilfe-seniorin-mit-gehstoecken.png"]
) {
    object-position: center 20%;
}

.grundpflege-page .personalized-step-title h2 {
    font-size: 26px;
    overflow-wrap: anywhere;
}

.grundpflege-page .personalized-step-header {
    gap: 10px;
}

.grundpflege-page .personalized-step-title {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.grundpflege-page .personalized-step-body p {
    margin-bottom: 24px;
}

.grundpflege-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.grundpflege-info-card {
    height: 100%;
    padding: 36px;
    background: var(--secondary-color);
    border: 1px solid var(--divider-color);
    border-radius: 20px;
}

.grundpflege-info-card .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    color: var(--primary-color);
    background: var(--accent-color);
    border-radius: 50%;
    font-size: 24px;
}

.grundpflege-info-card h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

.grundpflege-info-card p {
    margin-bottom: 16px;
}

.grundpflege-info-card p:last-of-type {
    margin-bottom: 0;
}

.grundpflege-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 28px;
}

.grundpflege-card-actions .btn-default {
    width: auto;
}

.grundpflege-card-actions .readmore-btn {
    color: var(--primary-color);
}

.grundpflege-page .page-single-faqs {
    margin-top: 20px;
}

.grundpflege-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 60px;
    padding: 44px;
    border-radius: 20px;
}

.grundpflege-final-cta > div {
    max-width: 650px;
}

.grundpflege-final-cta h2 {
    margin-bottom: 12px;
    font-size: 34px;
}

.grundpflege-final-cta p {
    margin-bottom: 0;
}

.grundpflege-final-cta .btn-default {
    flex: 0 0 auto;
    width: auto;
}

.grundpflege-page .footer-contact-item a,
.grundpflege-page .footer-newsletter-box a {
    overflow-wrap: anywhere;
}

.grundpflege-page .footer-privacy-policy span {
    color: inherit;
}

.scroll-to-top {
    position: fixed;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--primary-color);
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(39, 58, 41, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    color: var(--white-color);
    background: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-to-top:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    .grundpflege-page .service-support-list,
    .grundpflege-page .service-support-item-list {
        width: 100%;
    }

    .grundpflege-page .personalized-step-title h2 {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .grundpflege-page .page-service-single {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .grundpflege-page .page-single-sidebar {
        position: static;
        margin: 0 0 50px;
    }

    .grundpflege-info-grid {
        grid-template-columns: 1fr;
    }

    .grundpflege-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .einzugsgebiet-page .page-header-box h1 {
        display: block;
        font-size: 26px;
    }

    .grundpflege-page .service-entry h2 {
        font-size: 36px;
    }

    .grundpflege-page .compassionate-item-list,
    .grundpflege-page .compassionate-content-box,
    .grundpflege-page .service-support-image,
    .grundpflege-page .service-support-video,
    .grundpflege-page .personalized-step-info-box,
    .grundpflege-page .personalized-step-image {
        width: 100%;
    }

    .grundpflege-page .compassionate-content-box {
        min-height: auto;
    }

    .grundpflege-page .personalized-step-item:nth-child(even) {
        flex-direction: row;
    }
}

@media (max-width: 575px) {
    .grundpflege-page .service-entry h2 {
        font-size: 30px;
    }

    .grundpflege-page .page-catagory-list ul,
    .grundpflege-page .sidebar-cta-content,
    .grundpflege-page .personalized-step-info-box,
    .grundpflege-info-card,
    .grundpflege-final-cta {
        padding: 24px;
    }

    .grundpflege-page .service-support-item {
        width: 100%;
    }

    .grundpflege-page .personalized-step-header {
        align-items: flex-start;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .grundpflege-page .personalized-step-title h2,
    .grundpflege-info-card h2 {
        font-size: 24px;
    }

    .grundpflege-final-cta h2 {
        font-size: 28px;
    }

    .grundpflege-card-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .scroll-to-top {
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
    }
}
