* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    caret-color: transparent;
}

input,
textarea,
select,
[contenteditable="true"] {
    caret-color: auto;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1E293B;
    color: #ffffff;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 3px solid #5FBF4A;
    outline-offset: 2px;
}

.example-image-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    color: #7c8ba1;
    font-size: 0.625rem;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.example-image-badge--top-right {
    top: 12px;
    bottom: auto;
}

.pflege-info-page {
    overflow-x: hidden;
}

.pflege-info-page a {
    overflow-wrap: anywhere;
}

.phone-call-dialog {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 80;
}

.phone-call-dialog.is-visible {
    display: flex;
}

.phone-call-dialog__backdrop {
    background: rgba(15, 23, 42, 0.58);
    inset: 0;
    position: absolute;
}

.phone-call-dialog__panel {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    max-width: 30rem;
    padding: 1.5rem;
    position: relative;
    width: 100%;
}

.phone-call-dialog__panel h2 {
    color: #1E293B;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.phone-call-dialog__panel p {
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.phone-call-dialog__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.phone-call-dialog__button {
    border: 0;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.phone-call-dialog__button--primary {
    background: #2d7d32;
    color: #ffffff;
}

.phone-call-dialog__button--secondary {
    background: #F3F4F6;
    color: #1E293B;
}

.home-hero-title-mobile,
.home-hero-lead-mobile,
.home-hero-mobile-media {
    display: none;
}

.site-brand {
    flex: 0 1 calc(100% - 3rem);
    max-width: calc(100% - 3rem);
    min-width: 0;
    width: calc(100% - 3rem);
}

header > nav[aria-label="Hauptnavigation"] {
    max-width: 84rem;
    width: 100%;
}

.site-brand-link {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
}

.site-brand-link > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.5rem;
}

.site-brand-logo {
    flex: 0 0 auto;
    height: 3rem;
}

.site-brand-name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    font-size: clamp(0.78rem, 3.2vw, 1rem);
    line-height: 1.12;
    text-align: center;
    white-space: normal;
}

.site-brand-name-part {
    display: block;
}

#mobile-menu-button {
    align-items: center;
    display: inline-flex;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.back-to-top {
    align-items: center;
    background: #5FBF4A;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: 0 12px 28px rgba(46, 46, 46, 0.18);
    color: #ffffff;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 1.25rem;
    transform: translateY(0.75rem);
    transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease;
    width: 3rem;
    z-index: 60;
}

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

.back-to-top:hover {
    background: #3F8F36;
}

.back-to-top svg {
    height: 1.35rem;
    width: 1.35rem;
}

.contact-hero-sign-figure {
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

.contact-hero-sign-image {
    aspect-ratio: 1 / 1;
    object-position: center 62%;
}

.aktuelles-page {
    overflow-x: hidden;
}

.pflege-info-toc-link {
    align-items: center;
    border-left: 3px solid transparent;
    border-radius: 0.875rem;
    display: flex;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem 0.45rem 0.95rem;
    transition: color 0.2s ease;
}

.pflege-info-toc-link.is-active {
    background: rgba(95, 191, 74, 0.12);
    border-left-color: #5FBF4A;
    color: #5FBF4A;
    font-weight: 600;
    padding-left: 0.9rem;
}

.pflege-info-toc-link.is-active:hover {
    color: #5FBF4A;
}

.pflege-info-toc-break {
    display: inline;
}

@media (max-width: 1023px) {
    .contact-hero-sign-figure {
        max-width: 100%;
    }

    .pflege-info-toc-break {
        display: none;
    }
}

@media (max-width: 639px) {
    .home-hero {
        overflow-x: clip;
        padding-bottom: 2.75rem;
        padding-top: 2.25rem;
    }

    .home-hero .max-w-7xl {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .home-hero-copy {
        min-width: 0;
        text-align: left;
    }

    .home-hero-kicker {
        display: inline-block;
        margin-bottom: 1rem;
        max-width: 100%;
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
        white-space: normal;
    }

    .home-hero-title {
        margin-bottom: 0.9rem;
        font-size: 2.15rem;
        line-height: 1.05;
        max-width: 100%;
        text-align: left;
    }

    .home-hero-title-mobile,
    .home-hero-lead-mobile,
    .home-hero-mobile-media {
        display: block;
    }

    .home-hero-title-desktop,
    .home-hero-lead-desktop,
    .home-hero-desktop-media,
    .home-hero-contact {
        display: none;
    }

    .home-hero-lead {
        margin-bottom: 1.25rem;
        font-size: 1rem;
        line-height: 1.55;
        max-width: 100%;
        text-align: left;
    }

    .home-hero-mobile-media {
        margin-bottom: 1.25rem;
        max-width: 100%;
    }

    .home-hero-mobile-media img {
        aspect-ratio: 16 / 11;
    }

    .home-hero-actions {
        display: grid;
        gap: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 1rem;
        max-width: 100%;
        width: 100%;
    }

    .home-hero-actions a {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 3.25rem;
        min-width: 0;
        padding: 0.85rem 1rem;
        text-align: center;
        width: 100%;
    }

    .home-hero-chips {
        align-items: stretch;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
        margin: 0;
        overflow: visible;
        padding: 0;
    }

    .home-hero-chips span {
        flex: 0 1 auto;
        padding: 0.55rem 0.8rem;
        white-space: normal;
    }
}

@media (min-width: 640px) {
    .phone-call-dialog__actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .site-brand-logo {
        height: 5rem;
    }

    .site-brand-name {
        max-width: none;
        font-size: 1.5rem;
        line-height: 2rem;
        text-align: left;
    }

    .site-brand-name-part {
        display: inline;
    }

    .site-brand-name-part + .site-brand-name-part::before {
        content: " ";
    }

    .site-brand-link > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: minmax(23rem, 1.45fr) minmax(10rem, 0.85fr) minmax(9rem, 0.7fr);
        column-gap: 2.75rem;
    }

    .site-footer-hours {
        white-space: nowrap;
    }

}

@media (min-width: 1280px) {
    .site-brand {
        flex: 0 0 auto;
        max-width: none;
        width: auto;
    }

    #mobile-menu-button {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html:focus-within {
        scroll-behavior: auto;
    }

    .back-to-top {
        transition: none;
    }
}
