:root {
    --ink: #173139;
    --muted: #5d6f75;
    --line: #d9e4e0;
    --paper: #ffffff;
    --soft: #f4f8f6;
    --agape-red: #fa1f08;
    --green: var(--agape-red);
    --green-dark: #c81705;
    --terracotta: var(--agape-red);
    --red-soft: #fff1ef;
    --gold: #e8ad3e;
    --shadow: 0 18px 45px rgba(23, 49, 57, 0.12);
    --shadow-soft: 0 12px 34px rgba(23, 49, 57, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Sichtbarer Tastatur-Fokus für alle interaktiven Elemente (Barrierefreiheit) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--green-dark);
    outline-offset: 2px;
    border-radius: 4px;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 12px clamp(20px, 4vw, 56px);
    border-bottom: 1px solid rgba(217, 228, 224, 0.85);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: white;
    font-weight: 800;
    background: var(--green);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.main-nav a {
    padding: 10px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.91rem;
    font-weight: 650;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
    background: #ffe8e4;
}

.main-nav a.nav-welcome,
.main-nav a.nav-welcome:hover,
.main-nav a.nav-welcome.active {
    color: var(--green);
}

.header-call {
    padding: 11px 14px;
    border-radius: 8px;
    color: white;
    font-weight: 800;
    text-decoration: none;
    background: var(--terracotta);
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    padding: clamp(52px, 7vw, 96px) 0 64px;
    background:
        linear-gradient(110deg, rgba(244, 248, 246, 0.96), rgba(244, 248, 246, 0.72)),
        radial-gradient(circle at 78% 12%, rgba(250, 31, 8, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(232, 173, 62, 0.16), transparent 38%);
}

.hero .container {
    width: min(1280px, calc(100% - 32px));
}

.hero-grid,
.split,
.band-grid,
.contact-grid,
.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(22px, 3vw, 42px);
    align-items: start;
}

.hero-copy {
    max-width: 1120px;
    min-width: 0;
}

.hero-copy h1,
.page-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(2.45rem, 5vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy .lead,
.page-hero .lead {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #ffdf93;
}

.hero-copy > .eyebrow {
    color: var(--agape-red);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 900;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 13px 18px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary {
    color: white;
    background: var(--green);
    box-shadow: 0 10px 24px rgba(250, 31, 8, 0.24);
}

.button.primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.button.secondary {
    color: var(--green-dark);
    border: 1px solid var(--line);
    background: white;
}

.trust-list,
.check-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.trust-list li,
.check-list li {
    position: relative;
    padding-left: 30px;
}

.trust-list li::before,
.check-list li::before {
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    color: white;
    content: "✓";
    font-size: 0.75rem;
    font-weight: 900;
    background: var(--green);
}

.welcome-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 980px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.welcome-trust-row li {
    position: relative;
    min-height: 74px;
    padding: 14px 16px 14px 44px;
    border: 1px solid rgba(217, 228, 224, 0.95);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.welcome-trust-row li::before {
    position: absolute;
    left: 16px;
    top: 18px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: white;
    content: "✓";
    font-size: 0.72rem;
    font-weight: 900;
    background: var(--green);
}

.hero-contact-card,
.welcome-info-card {
    display: grid;
    gap: 16px;
    align-content: center;
    min-height: 420px;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 8px;
    border-left: 7px solid var(--green);
    background: white;
    box-shadow: var(--shadow);
}

.welcome-info-card {
    align-self: start;
    margin-top: 0;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: auto;
    gap: 16px;
    padding: 24px;
    min-width: 0;
    box-shadow: 0 18px 40px rgba(23, 49, 57, 0.1);
}

.welcome-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    margin-top: 30px;
}

.welcome-info-intro {
    min-width: 0;
}

.welcome-info-card .hero-phone {
    justify-self: start;
}

.hero-contact-card h2 {
    margin-bottom: 0;
}

.welcome-info-card h2 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.15;
}

.welcome-logo {
    margin: 0;
    min-width: 0;
}

.welcome-logo img {
    width: min(100%, 640px);
}

.welcome-logo figcaption {
    margin-top: 12px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 900;
    text-align: center;
}

.welcome-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.welcome-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.welcome-care-block {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
    align-items: start;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.welcome-care-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.welcome-care-copy p:last-child {
    margin-bottom: 0;
}

.welcome-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.welcome-audience-grid article {
    min-height: 190px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.welcome-audience-grid span {
    display: block;
    margin-bottom: 18px;
    color: var(--agape-red);
    font-size: 0.78rem;
    font-weight: 900;
}

.welcome-audience-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.welcome-advice-strip {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding: 16px 18px;
    border-left: 6px solid var(--green);
    border-radius: 8px;
    background: var(--red-soft);
}

.welcome-advice-strip div {
    display: grid;
    gap: 3px;
}

.welcome-advice-strip strong {
    font-size: 1.02rem;
}

.welcome-advice-strip span {
    color: var(--muted);
}

.welcome-advice-strip .button {
    flex: 0 0 auto;
}

.job-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 7px solid var(--green);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(255, 241, 239, 0.92), rgba(255, 255, 255, 0.94)),
        white;
    box-shadow: var(--shadow-soft);
}

.job-teaser h2 {
    margin-bottom: 8px;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.job-teaser p {
    margin-bottom: 0;
}

.job-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.quick-entry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.quick-entry a {
    display: grid;
    gap: 4px;
    min-height: 92px;
    align-content: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: white;
    box-shadow: var(--shadow-soft);
}

.quick-entry a:hover {
    border-color: rgba(250, 31, 8, 0.32);
    background: var(--red-soft);
}

.quick-entry span {
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quick-entry strong {
    font-size: 1.04rem;
    line-height: 1.2;
}

.motion-section {
    position: relative;
    display: grid;
    min-height: clamp(520px, 82vh, 760px);
    align-items: center;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #fa1f08 0%, #d81a06 55%, #7b0d03 100%);
}

.motion-section::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(36, 33, 32, 0.4), transparent 44%),
        linear-gradient(0deg, rgba(36, 33, 32, 0.28), transparent 42%);
    pointer-events: none;
}

#agapeMotionCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.motion-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin-left: max(20px, 6vw);
    pointer-events: none;
}

.motion-content h2 {
    max-width: 560px;
    color: white;
}

.motion-content p:not(.eyebrow) {
    max-width: 460px;
    color: #ffe1dc;
    font-size: 1.12rem;
}

.motion-fallback {
    position: absolute;
    right: 8vw;
    top: 50%;
    width: min(38vw, 540px);
    transform: translateY(-50%) rotate(-4deg);
    filter: drop-shadow(0 22px 34px rgba(36, 33, 32, 0.32));
}

.motion-ready .motion-fallback {
    display: none;
}

.hero-phone {
    color: var(--green-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.welcome-info-card .hero-phone {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    white-space: nowrap;
}

.contact-hours {
    display: grid;
    gap: 4px;
    margin-top: 0;
    padding-left: 20px;
    border-left: 1px solid var(--line);
    color: var(--muted);
}

.welcome-info-card .contact-hours {
    width: 100%;
    padding: 14px;
    border-left: 0;
    border-radius: 8px;
    background: var(--soft);
}

.contact-hours strong {
    color: var(--ink);
}

.welcome-address {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-top: 0;
    padding: 14px;
    border-left: 0;
    border-radius: 8px;
    background: var(--soft);
}

.welcome-address a {
    color: var(--green-dark);
    font-weight: 800;
}

.flyer-preview {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.flyer-preview img {
    width: min(100%, 460px);
    border-radius: 6px;
    background: white;
    box-shadow: var(--shadow);
}

.flyer-link {
    font-size: 0.95rem;
}

.news-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.news-copy {
    position: sticky;
    top: 110px;
}

.news-date {
    display: inline-flex;
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-weight: 850;
    background: var(--green);
}

.flyer-preview.large img {
    width: min(100%, 620px);
}

.section {
    padding: clamp(58px, 7vw, 94px) 0;
}

.muted {
    background: var(--soft);
}

.feature-strip,
.service-preview,
.service-grid,
.payer-grid,
.job-grid {
    display: grid;
    gap: 18px;
}

.feature-strip {
    grid-template-columns: repeat(3, 1fr);
}

.feature-strip article,
.service-preview article,
.service-card,
.payer-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.feature-number {
    color: var(--terracotta);
    font-weight: 900;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.25;
}

p {
    margin: 0 0 14px;
}

.service-preview {
    grid-template-columns: repeat(2, 1fr);
}

.text-link {
    color: var(--green-dark);
    font-weight: 850;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.green-band {
    color: white;
    background: var(--green-dark);
}

.green-band p {
    color: #ffe1dc;
}

.green-band h2 {
    color: white;
}

.cta-panel {
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-left: 7px solid var(--gold);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.page-hero {
    padding: clamp(52px, 7vw, 88px) 0;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(110deg, rgba(244, 248, 246, 0.98), rgba(255, 255, 255, 0.86)),
        radial-gradient(circle at 82% 15%, rgba(250, 31, 8, 0.12), transparent 34%);
}

.service-grid,
.payer-grid,
.job-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card h2,
.payer-grid h2,
.timeline h2 {
    font-size: 1.25rem;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 22px;
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.timeline span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: white;
    font-weight: 900;
    background: var(--terracotta);
}

.image-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.image-card-real img {
    object-position: center 35%;
}

.compact {
    margin-top: 16px;
}

.contact-grid {
    align-items: start;
}

.contact-grid-form {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.15fr);
}

.contact-side-stack {
    display: grid;
    gap: 18px;
}

.contact-box,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 34px);
    background: white;
}

.contact-box {
    background: var(--soft);
}

.contact-box-light {
    background: white;
    box-shadow: var(--shadow-soft);
}

.contact-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.contact-mail {
    display: inline-flex;
    margin: 10px 0 0;
    color: var(--green-dark);
    font-weight: 850;
}

.contact-form {
    display: grid;
    gap: 18px;
    box-shadow: var(--shadow-soft);
}

.contact-form h2 {
    margin: 0 0 8px;
}

.contact-form p {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 750;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
    background: #fbfdfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--green-dark);
    outline-offset: 2px;
    border-color: var(--green-dark);
}

.consent-check {
    grid-template-columns: 20px 1fr;
    align-items: start;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--green);
}

.success-message {
    border: 1px solid #f2aaa2;
    border-radius: 8px;
    padding: 14px;
    color: var(--green-dark);
    background: #fff1ef;
    font-weight: 750;
}

.success-message strong,
.success-message span {
    display: block;
}

.error-message {
    border: 1px solid #f2aaa2;
    border-radius: 8px;
    padding: 14px;
    color: #8f1709;
    background: #fff7f5;
    font-weight: 750;
}

.form-status[hidden] {
    display: none;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.legal-text {
    max-width: 820px;
}

.legal-text h2 {
    margin-top: 28px;
    font-size: 1.35rem;
}

.legal-text h3 {
    margin: 24px 0 10px;
    font-size: 1.05rem;
}

.legal-text ul {
    padding-left: 22px;
}

.legal-text li {
    margin-bottom: 8px;
}

.legal-note {
    margin-top: 28px;
    padding: 16px;
    border-left: 5px solid var(--gold);
    background: var(--soft);
}

.site-footer {
    padding: 52px clamp(20px, 4vw, 56px) 28px;
    color: #d8e7e3;
    background: #242120;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
    gap: 28px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.site-footer h2,
.site-footer h3 {
    color: white;
    font-size: 1.05rem;
}

.site-footer a {
    color: white;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, 100%);
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #acc3bd;
    font-size: 0.92rem;
}

.care-chat {
    position: fixed;
    right: clamp(14px, 3vw, 28px);
    bottom: clamp(14px, 3vw, 28px);
    z-index: 50;
    display: grid;
    justify-items: end;
    gap: 12px;
    color: var(--ink);
    font-family: inherit;
}

.care-chat-toggle {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(250, 31, 8, 0.26);
    border-radius: 999px;
    padding: 8px 18px 8px 9px;
    color: white;
    font: inherit;
    font-weight: 850;
    background: var(--agape-red);
    box-shadow: 0 18px 42px rgba(134, 28, 17, 0.26);
    cursor: pointer;
}

.care-chat-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--agape-red);
    font-weight: 950;
    background: white;
}

.care-chat-panel {
    width: min(390px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 24px 70px rgba(23, 49, 57, 0.22);
}

.care-chat-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    color: white;
    background: linear-gradient(135deg, var(--agape-red), #c81705);
}

.care-chat-head p,
.care-chat-head strong {
    display: block;
    margin: 0;
}

.care-chat-head p {
    color: #ffdf93;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.care-chat-head strong {
    font-size: 1.05rem;
}

.care-chat-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    color: white;
    font: inherit;
    font-size: 1.3rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.care-chat-messages {
    display: grid;
    max-height: 330px;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background: #f8fbfa;
}

.care-chat-message {
    width: fit-content;
    max-width: 92%;
    border-radius: 8px;
    padding: 12px 13px;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: pre-line;
}

.care-chat-message.bot {
    color: var(--ink);
    border: 1px solid var(--line);
    background: white;
}

.care-chat-message.user {
    justify-self: end;
    color: white;
    background: var(--agape-red);
}

.care-chat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.care-chat-links a {
    border-radius: 8px;
    padding: 7px 9px;
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    background: #fff1ef;
}

.care-chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
    background: white;
}

.care-chat-quick button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 10px;
    color: var(--green-dark);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    background: white;
    cursor: pointer;
}

.care-chat-form {
    display: grid;
    gap: 8px;
    padding: 14px 16px 16px;
    background: white;
}

.care-chat-form label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.care-chat-form div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.care-chat-form input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--ink);
    font: inherit;
    background: #fbfdfc;
}

.care-chat-form input:focus {
    outline: 3px solid var(--green-dark);
    outline-offset: 2px;
    border-color: var(--green-dark);
}

.care-chat-form button {
    border: 0;
    border-radius: 8px;
    padding: 0 13px;
    color: white;
    font: inherit;
    font-weight: 850;
    background: var(--agape-red);
    cursor: pointer;
}


@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .welcome-main-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .welcome-info-card .contact-hours,
    .welcome-address {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 14px 0 0;
    }

    .motion-content {
        margin-left: 24px;
    }
}

@media (max-width: 1080px) {
    .site-header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .header-call {
        display: none;
    }

    .welcome-care-block {
        grid-template-columns: 1fr;
    }

    .split,
    .band-grid,
    .contact-grid,
    .cta-panel,
    .news-feature {
        grid-template-columns: 1fr;
    }

    .news-copy {
        position: static;
    }

    .feature-strip,
    .service-grid,
    .payer-grid,
    .job-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .narrow {
        width: min(1120px, calc(100% - 24px));
    }

    .hero .container {
        width: min(1280px, calc(100% - 24px));
    }

    .site-header {
        width: 100%;
        min-height: 68px;
        padding: 10px 14px;
    }

    .brand {
        min-width: 0;
    }

    .nav-toggle {
        display: grid;
        flex: 0 0 42px;
        place-items: center;
    }

    .brand strong {
        font-size: 0.94rem;
    }

    .brand small {
        font-size: 0.76rem;
    }

    .main-nav a {
        min-height: 44px;
        padding: 11px 8px;
        font-size: 1rem;
    }

    .hero {
        padding: 34px 0 42px;
    }

    .hero-copy h1,
    .page-hero h1 {
        max-width: 100%;
        font-size: clamp(1.9rem, 8vw, 2.1rem);
        line-height: 1.02;
    }

    .hero-copy .lead,
    .page-hero .lead {
        font-size: 1.02rem;
    }

    .welcome-trust-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .welcome-trust-row li {
        min-height: auto;
    }

    .welcome-main-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-top: 22px;
    }

    .welcome-logo img {
        width: min(100%, 520px);
        max-width: calc(100vw - 24px);
        margin-inline: auto;
    }

    .welcome-logo figcaption {
        font-size: 0.98rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .welcome-info-card {
        padding: 18px;
    }

    .welcome-info-card .hero-phone {
        white-space: normal;
        font-size: clamp(1.9rem, 11vw, 2.55rem);
        line-height: 0.95;
    }

    .feature-strip,
    .service-preview,
    .service-grid,
    .payer-grid,
    .job-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-actions,
    .footer-bottom {
        flex-direction: column;
    }

    .care-chat {
        right: 12px;
        bottom: 12px;
    }

    .care-chat-panel {
        max-height: calc(100vh - 118px);
    }

    .care-chat-messages {
        max-height: min(300px, 42vh);
    }


    .welcome-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .welcome-care-block {
        margin-top: 28px;
        padding-top: 24px;
    }

    .welcome-audience-grid {
        grid-template-columns: 1fr;
    }

    .welcome-audience-grid article {
        min-height: auto;
    }

    .welcome-audience-grid span {
        margin-bottom: 10px;
    }

    .welcome-advice-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .job-teaser {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .job-actions {
        align-items: stretch;
        justify-content: stretch;
        flex-direction: column;
    }

    .quick-entry {
        grid-template-columns: 1fr;
    }

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

    .motion-section {
        min-height: auto;
        padding: 54px 0 62px;
    }

    #agapeMotionCanvas {
        display: none;
    }

    .motion-fallback {
        position: relative;
        order: 2;
        right: auto;
        top: auto;
        z-index: 2;
        display: block;
        justify-self: end;
        width: min(82vw, 400px);
        max-width: calc(100% - 36px);
        margin: 28px 18px 0 0;
        transform: none;
        filter: drop-shadow(0 14px 20px rgba(36, 33, 32, 0.22));
    }

    .motion-content {
        order: 1;
        align-self: start;
        margin: 0 auto;
        max-width: calc(100% - 36px);
    }

    .motion-content h2 {
        max-width: 340px;
        font-size: 2.15rem;
        line-height: 1.02;
    }

    .motion-content p:not(.eyebrow) {
        max-width: 320px;
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-hours {
        padding-left: 0;
        padding-top: 16px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 46px 0;
    }

    .split {
        gap: 24px;
    }

    .service-preview article,
    .service-card,
    .payer-grid article {
        padding: 20px;
    }

    .cta-panel {
        padding: 22px 18px;
    }

    .image-card img {
        height: 300px;
    }

}

@media (max-width: 420px) {
    .site-header {
        gap: 10px;
    }

    .brand {
        gap: 10px;
        min-width: 0;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .brand strong {
        font-size: 0.88rem;
    }

    .brand small {
        font-size: 0.72rem;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(1.72rem, 8vw, 1.92rem);
    }

    .welcome-info-card .hero-phone {
        font-size: clamp(1.7rem, 10vw, 2.15rem);
    }

    .motion-section {
        min-height: auto;
    }

    .motion-content h2 {
        font-size: 1.92rem;
    }

    .motion-content p:not(.eyebrow) {
        max-width: 290px;
    }

    .motion-fallback {
        width: min(84vw, 360px);
        margin-right: 12px;
    }
}
