/* Spitex Q – Designsystem (WCAG 2.2 AA, Ausnahme: weisse Schrift auf Aquablau-CTAs) */

@font-face { font-family: "Urbanist"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/urbanist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/urbanist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/urbanist-latin-700-normal.woff2") format("woff2"); }

:root {
	--aqua: #07b7da;
	--black: #3c3c3b;
	--white: #fcfcfc;
	--grey: #dbdbdb;
	--aqua-40: #d3e7f3;
	--aqua-20: #eaf3f9;
	--gutter: 5%;
	--rand: max(var(--gutter), calc((100% - 1280px) / 2)); /* Seitenrand bündig mit Inhalt (max. 1280px) */
	--section: clamp(64px, 9vw, 112px);
	--shadow: 0 8px 28px rgba(60, 60, 59, 0.16);
}

/* Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Urbanist", system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--black); background: var(--white); }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
p, ul, ol, dl, address, figure { margin: 0; }
address { font-style: normal; }
a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--aqua); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; box-shadow: 0 0 0 3px var(--aqua); }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }
.icon { flex: none; }

.skip { position: absolute; left: -10000px; top: 8px; z-index: 200; background: var(--black); color: #fff; padding: 12px 16px; font-weight: 600; }
.skip:focus { left: 8px; }

/* Typografie */
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { margin: 0; font-weight: 700; overflow-wrap: break-word; }
@media (max-width: 480px) { .legal h1, .tarif dt { hyphens: auto; } } /* lange Wörter auf schmalen Geräten trennen */
.h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.2; }
.h2 { font-size: clamp(32px, 6vw, 48px); line-height: 1.2; }
.h3 { font-size: clamp(26px, 4.5vw, 32px); line-height: 1.3; }
.h4 { font-size: 24px; line-height: 1.4; }
.h5 { font-size: 20px; line-height: 1.4; }
.uline { padding-bottom: 8px; border-bottom: 2px solid var(--aqua); font-size: 20px; line-height: 1.4; }
.lead { font-weight: 600; }
.intro { font-size: clamp(20px, 2.4vw, 22px); line-height: 1.55; }
.note { font-style: italic; }
.small { font-size: 16px; line-height: 1.5; }
.mark { color: var(--aqua); }

/* Layout */
.container, .container--sm { width: 100%; max-width: 1280px; margin-inline: auto; }
.container--sm { max-width: 768px; margin-inline: 0; }
main > .container--sm, .legal { margin-inline: auto; }
.container--jobs { max-width: 940px; align-items: flex-start; }
.section { padding: var(--section) var(--gutter); }
.section--top0 { padding-top: 0; }
.section--blue { background: var(--aqua-20); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 24px; }
.stack--xl { gap: 40px; }
.stack--xxl { gap: 64px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px 80px; align-items: start; }
.grid-2--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-2--angebot { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px 80px; }
.grid-2--team { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; }
.grid-2--tarife { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 64px; }
.grid-2--narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.cards { padding: 0; list-style: none; gap: 40px 80px; }
.cards li { display: flex; flex-direction: column; gap: 12px; }
.cards a { align-self: flex-start; padding: 6px 0; }
.mt-48 { margin-top: 48px !important; }
.mt-72 { margin-top: clamp(48px, 6vw, 72px) !important; }
.hero-title { max-width: 480px; }
@media (min-width: 1024px) { .sticky-title { position: sticky; top: 24px; background: var(--white); } }

/* Listen und Fliesstext */
.prose ul, .list, .tarif ul { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.list { gap: 8px; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.buttons--center { align-items: center; gap: 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 14px 24px; border: 1px solid var(--aqua); background: var(--aqua); color: #fff; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--black); border-color: var(--black); color: #fff; }
.btn--outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--grey); color: var(--black); }
.linkbutton { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header { position: relative; z-index: 50; background: var(--white); border-bottom: 1px solid var(--black); }
.site-header__bar { min-height: 96px; padding: 0 var(--rand); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 48px; width: auto; }
.site-header__right { display: flex; align-items: center; gap: 8px 32px; }
.nav-inline { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 18px; font-weight: 600; }
.nav-inline a, .menu a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav-inline a[aria-current], .menu a[aria-current] { text-decoration: underline; text-decoration-color: var(--aqua); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.burger { width: 48px; height: 48px; padding: 12px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; width: 24px; background: var(--black); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 97px); overflow-y: auto; padding: 16px var(--rand) 40px; background: var(--white); border-bottom: 1px solid var(--black); box-shadow: 0 16px 32px rgba(60, 60, 59, .16); display: flex; flex-direction: column; font-size: 24px; font-weight: 600; }
.menu a { min-height: 48px; }
.menu__sub { display: flex; flex-direction: column; padding-left: 20px; font-size: 18px; font-weight: 400; }
.menu__sub a { min-height: 44px; }
@media (max-width: 1023px) { .nav-inline, .cta__divider { display: none !important; } }

/* Bilder und Medien */
.hero-img { width: 100%; height: clamp(240px, 42vw, 560px); object-fit: cover; }
.hero-video { position: relative; }
.hero-video video { height: auto; aspect-ratio: 16 / 9; max-height: min(78vh, 760px); object-position: 50% 30%; background: var(--aqua-40); }
.video { position: relative; width: 100%; align-self: stretch; }
.hero-video__toggle, .video__toggle { position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 10px 16px; border: 0; background: rgba(60, 60, 59, .85); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.footer-img { width: 100%; height: clamp(240px, 36vw, 480px); object-fit: cover; }
.embed { width: 100%; border: 0; background: var(--aqua-40); }
.embed--video { aspect-ratio: 16 / 9; }
.embed--map { aspect-ratio: 4 / 3; }

/* Startseite: Angebote */
.services { display: flex; flex-direction: column; }
.services__item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--grey); text-decoration: none; }
.services__item:last-child { border-bottom: 1px solid var(--grey); }
.services__item:hover .h5, .services__item:focus-visible .h5 { text-decoration: underline; text-decoration-color: var(--aqua); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.services__img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--aqua-40); }

/* Kontakt-CTA */
.cta { background: var(--aqua-20); }
.cta__inner { max-width: 1024px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.cta__person { flex: 0 1 240px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; line-height: 1.5; }
.cta__foto { width: 240px; height: 240px; object-fit: cover; border-radius: 50%; }
.cta__divider { align-self: stretch; width: 1px; background: var(--black); }
.cta__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.cta__opan { height: 44px; width: auto; }

/* Downloads */
.downloads { display: flex; flex-direction: column; gap: 16px; }
.downloads__list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.downloads__list a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; }
.dl-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; background: var(--aqua-20); border: 2px solid var(--aqua); text-decoration: none; }
.dl-card__text { flex: 1 1 180px; display: flex; flex-direction: column; font-size: 16px; }
.dl-card__title { font-size: 20px; line-height: 1.3; font-weight: 700; }

/* Über uns */
.verband { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--grey); }
.verband img { height: 56px; width: auto; }
.team__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team__list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; line-height: 1.4; }
.team__list li { display: flex; flex-direction: column; }
.team__list span { font-size: 16px; }
.tarife { columns: 2 340px; column-gap: 64px; margin-bottom: -8px; }
.tarif { break-inside: avoid; margin: 0 0 40px; display: flex; flex-direction: column; gap: 4px; }
.tarif .small { margin: 8px 0 4px; }
.tarif dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--grey); line-height: 1.4; }
.tarif dt { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.tarif dt span { font-size: 16px; }
.tarif dd { margin: 0; font-weight: 700; white-space: nowrap; text-align: right; }
.tarif ul { margin-top: 8px; padding-left: 20px; }
.kontakt { display: flex; flex-direction: column; gap: 4px; }
.kontakt h3 { display: flex; align-items: center; gap: 12px; }
.kontakt a { padding: 8px 0; }

/* Rechtliches */
.toc { padding: 32px; background: var(--aqua-20); display: flex; flex-direction: column; gap: 16px; }
.toc ol { display: grid; gap: 2px; }
.toc h2 { font-size: 24px; }
.toc a { display: inline-block; padding: 3px 0; }

/* Footer */
.site-footer { padding: 80px var(--gutter); font-size: 16px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--black); }
.site-footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.site-footer__logos a { display: flex; }
.site-footer__logos img { height: 48px; width: auto; }
.site-footer__kontakt { display: flex; flex-wrap: wrap; gap: 48px; font-size: 18px; }
.site-footer__kontakt .stack { gap: 0; }
.site-footer__kontakt a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .plain { text-decoration: none; }
.site-footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Schnellkontakt rechts (Daten: Spitex Q → Kontakt) */
.schnellkontakt { position: fixed; right: 0; top: 50%; z-index: 90; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
.schnellkontakt a { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 15px; background: var(--aqua); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transform: translateX(calc(100% - 52px)); transition: transform .25s ease, background .2s; }
.schnellkontakt a:hover, .schnellkontakt a:focus-visible { transform: none; background: var(--black); }
.schnellkontakt span { white-space: nowrap; opacity: 0; transition: opacity .2s; }
.schnellkontakt a:hover span, .schnellkontakt a:focus-visible span { opacity: 1; }
@media (max-width: 767px) {
	.schnellkontakt { top: auto; bottom: 16px; transform: none; }
	.schnellkontakt a { height: 48px; padding: 0 13px; }
	.schnellkontakt span { opacity: 1; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.schnellkontakt:has(~ .consent:not([hidden])) { display: none; }
}

/* Cookie-Banner */
.consent { position: fixed; right: 16px; bottom: 16px; z-index: 100; width: min(380px, calc(100vw - 32px)); padding: 20px; background: var(--white); border: 1px solid var(--grey); border-top: 4px solid var(--aqua); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; transition: opacity .35s ease, transform .35s ease; }
.consent h2 { font-size: 18px; line-height: 1.3; }
.consent.is-leaving { opacity: 0; transform: translateY(12px); }
.consent__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.consent .btn { justify-content: center; padding: 10px 12px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Text aus dem Backend (Rich-Text) ---------- */
:is(.prose, .legal) > * { margin-block: 0; }
:is(.prose, .legal) > * + * { margin-top: 16px; }
:where(.prose, .legal) h2 { font-size: clamp(26px, 4.5vw, 32px); line-height: 1.3; }
:where(.prose, .legal) h3 { font-size: 24px; line-height: 1.4; }
.prose h2 { font-size: clamp(24px, 3.5vw, 28px); line-height: 1.3; }
.prose h3 { font-size: 20px; line-height: 1.4; }
.prose > h2 { margin-top: 40px; }
.prose > h3 { margin-top: 24px; }
.legal > h2 { margin-top: 48px; }
.legal > h1 + * { margin-top: 40px; }
.legal ol, .legal ul { padding-left: 24px; }
:is(.prose, .legal) a { overflow-wrap: anywhere; }
