/* Reha-Nachsorge „Gut zurück nach Hause“ – Gestaltung wie die Flyer */
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --grund: #FFF8F1;
  --gruen: #1C5A2D;
  --gruen-hell: #E9F1EC;
  --apricot: #F6C79A;
  --pfirsich: #FCE3CC;
  --text: #2B2A28;
  --text-leise: #5d5a55;
  --weiss: #fff;
  --a-gruen: #2E8B47;
  --a-gelb: #E8B200;
  --a-rot: #C8372D;
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 1.0625rem/1.65 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 { font-family: "Nunito", system-ui, sans-serif; color: var(--gruen); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--gruen); font-weight: 700; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3.5rem 0; }
.leise { color: var(--text-leise); }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid #f0e4d7; position: sticky; top: 0; z-index: 10; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.marke { text-decoration: none; display: flex; align-items: center; gap: .6rem; color: var(--gruen); }
.marke .kreis { width: 38px; height: 38px; border-radius: 50%; background: var(--gruen); display: grid; place-items: center; color: #fff; font: 800 1.1rem "Nunito", sans-serif; }
.marke b { font: 800 1.1rem/1.1 "Nunito", sans-serif; display: block; }
.marke small { font-weight: 400; font-size: .8rem; color: var(--text-leise); }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--text); font-weight: 700; }
.nav a[aria-current="page"], .nav a:hover { color: var(--gruen); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.hero::before { width: 420px; height: 420px; background: var(--pfirsich); right: -120px; top: -140px; }
.hero::after { width: 220px; height: 220px; background: var(--gruen-hell); right: 18%; bottom: -110px; }
.hero .wrap { position: relative; z-index: 1; }
.hero .unterzeile { font-size: 1.25rem; max-width: 36rem; }
.anbieter { display: inline-block; background: var(--gruen-hell); color: var(--gruen); font-weight: 700; border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; margin-bottom: 1.2rem; }

.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.knopf { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none; font: 700 1rem "Nunito", sans-serif; }
.knopf.voll { background: var(--gruen); color: #fff; }
.knopf.rand { border: 2px solid var(--gruen); color: var(--gruen); background: #fff; }
.knopf:hover { filter: brightness(1.08); }

/* Karten */
.raster { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.karte { background: var(--weiss); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 0 #f0e4d7; }
.karte .symbol { width: 52px; height: 52px; border-radius: 50%; background: var(--pfirsich); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .8rem; }
.karte p:last-child { margin-bottom: 0; }
.band-gruen { background: var(--gruen-hell); }
.band-dunkel { background: var(--gruen); color: #fff; }
.band-dunkel h2, .band-dunkel h3, .band-dunkel a { color: #fff; }

.versprechen { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.versprechen li { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.versprechen strong { display: block; font: 800 1.15rem "Nunito", sans-serif; margin-bottom: .2rem; }

/* Schritte */
.schritte { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.schritte li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 1.5rem; position: relative; }
.schritte li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--apricot); color: var(--gruen); font: 800 1.3rem "Nunito", sans-serif; margin-bottom: .8rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid #ecdccb; border-radius: 999px; padding: .3rem .85rem; font-size: .95rem; }

.orte { columns: 4 160px; column-gap: 1.5rem; list-style: none; padding: 0; margin: 0; font-size: .97rem; }

/* Kontakt */
.telefon-gross { font: 800 clamp(1.45rem, 2.6vw, 1.85rem) "Nunito", sans-serif; text-decoration: none; display: inline-block; white-space: nowrap; }
.kontakt-raster { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
address { font-style: normal; }

/* Ampel */
.ampel-box { background: #fff; border-radius: var(--radius); padding: 1.5rem; }
.ampel-stand { margin-bottom: .6rem; }
.ampel-hinweis { background: var(--pfirsich); border-radius: 12px; padding: .7rem 1rem; }
.ampel-hinweis.warn { background: #fdeaea; border-left: 5px solid var(--a-rot); }
.tabelle-scroll { overflow-x: auto; }
.ampel-tabelle { width: 100%; border-collapse: separate; border-spacing: 0 .5rem; min-width: 520px; }
.ampel-tabelle th { text-align: left; font: 700 .95rem "Nunito", sans-serif; color: var(--gruen); padding: .4rem .7rem; }
.ampel-tabelle tbody th { background: var(--grund); border-radius: 12px 0 0 12px; }
.ampel-zelle { background: var(--grund); padding: .65rem .7rem; font-weight: 700; white-space: nowrap; }
.ampel-zelle:last-child { border-radius: 0 12px 12px 0; }
.punkt { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #bbb; vertical-align: -2px; margin-right: .45rem; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.gruen .punkt, .punkt.gruen { background: var(--a-gruen); }
.gelb .punkt, .punkt.gelb { background: var(--a-gelb); }
.rot .punkt, .punkt.rot { background: var(--a-rot); }
.ampel-legende { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .92rem; color: var(--text-leise); }

.checkliste { list-style: none; padding: 0; margin: 0; }
.checkliste li { padding: .45rem 0 .45rem 2rem; position: relative; border-bottom: 1px dashed #ecdccb; }
.checkliste li::before { content: "✓"; position: absolute; left: .3rem; color: var(--gruen); font-weight: 800; }

/* Rechtstexte */
.rechtstext { max-width: 46rem; }
.rechtstext h2 { font-size: 1.4rem; margin-top: 2rem; }
.offen { background: #fff3c4; padding: 0 .3rem; border-radius: 4px; }

/* Fuß */
.fuss { background: #fff; border-top: 1px solid #f0e4d7; padding: 2rem 0; font-size: .92rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss nav { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0; }
  .nav { gap: .8rem; font-size: .9rem; }
  .ampel-box { padding: 1rem; }
  .ampel-tabelle { min-width: 0; border-spacing: 0; }
  .ampel-tabelle, .ampel-tabelle tbody, .ampel-tabelle tr, .ampel-tabelle th, .ampel-tabelle td { display: block; }
  .ampel-tabelle thead { display: none; }
  .ampel-tabelle tr { background: var(--grund); border-radius: 14px; margin-bottom: .8rem; padding: .4rem 0; }
  .ampel-tabelle tbody th { background: none; font-size: 1.05rem; padding: .4rem .9rem .2rem; }
  .ampel-zelle { display: flex !important; align-items: center; background: none; padding: .3rem .9rem; }
  .ampel-zelle::before { content: attr(data-label); flex: 1; font-weight: 400; color: var(--text-leise); }
  .ampel-zelle .punkt { order: 2; margin: 0 .45rem 0 0; }
  .ampel-zelle > span:not(.punkt):not(.sr-only) { order: 3; min-width: 4.8rem; }
}

/* Häufige Fragen */
.faq { display: grid; gap: .7rem; max-width: 52rem; }
.faq details { background: #fff; border-radius: 16px; padding: .9rem 1.2rem; }
.faq summary { cursor: pointer; font: 700 1.05rem "Nunito", sans-serif; color: var(--gruen); list-style: none; padding-right: 2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -.1rem; font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; }

/* Logos im Fuß */
.fuss-logos { display: flex; gap: 1.5rem; align-items: center; width: 100%; margin-bottom: .5rem; }
.fuss-logos img { height: 48px; width: auto; }
a[href^="tel:"] { white-space: nowrap; }

/* Ampel Intensivpflege-WG */
.wg-zeile { display: flex; align-items: center; gap: 1rem; font-size: 1.15rem; }
.wg-zeile span:not(.punkt) { font-size: 1rem; color: var(--text-leise); }
.punkt.gross { width: 34px; height: 34px; margin: 0; flex: none; }

/* Schwebender Anruf-Knopf Case Management */
.anruf-knopf { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: .7rem; padding: .7rem 1.2rem .7rem 1rem; border-radius: 999px;
  background: var(--gruen); color: #fff; text-decoration: none; box-shadow: 0 6px 20px rgba(28,90,45,.35); white-space: nowrap; }
.anruf-knopf:hover { filter: brightness(1.1); }
.anruf-knopf svg { flex: none; background: rgba(255,255,255,.15); border-radius: 50%; padding: 7px; width: 36px; height: 36px; }
.anruf-text { display: flex; flex-direction: column; line-height: 1.15; }
.anruf-text small { font-size: .78rem; opacity: .9; font-weight: 400; }
.anruf-text b { font: 800 1.1rem "Nunito", sans-serif; }
body { padding-bottom: 88px; }
@media (max-width: 640px) {
  .anruf-knopf { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; }
}
@media print { .anruf-knopf { display: none; } body { padding-bottom: 0; } }

/* Abgrenzung */
.abgrenzung { margin-top: 1.6rem; background: var(--pfirsich); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.abgrenzung h3 { margin-bottom: .4rem; }
.abgrenzung p { margin: 0; }
