/* Shared base of the portal drafts: house fonts (self-hosted, taken from the sites themselves) and house colours. */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/sourcesans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/sourcesans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Afacad Flux"; src: url("fonts/afacad-flux.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Dancing Script"; src: url("fonts/dancing-script.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* colours as the four sites use them (read on 04.10.2026) */
  --orb: #00a650; --orb-dunkel: #00703a;
  --gfd: #005190; --gfd-dunkel: #003a68;
  --hot: #379237; --hot-hell: #54b435; --hot-dunkel: #0c1406; --hot-creme: #fffaf0;
  --fgg: #26517e; --fgg-dunkel: #1b3a5b; --fgg-grund: #f5f7f2;
  --text: #2f3b40; --text-leise: #5f6b70;
  --schrift: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --titel: "Montserrat", "Segoe UI", Arial, sans-serif;
  --weich: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); color: var(--text); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* house typography on the cards */
.orb .ort { font-family: "Montserrat", sans-serif; font-weight: 700; }
.gfd .ort { font-family: "Lato", sans-serif; font-weight: 700; }
.hot .ort { font-family: "Montserrat", sans-serif; font-weight: 600; }
.hot .zeile { font-family: "Dancing Script", cursive; font-size: 1.3em; line-height: 1.2; }
.fgg .ort, .fgg .zeile { font-family: "Afacad Flux", sans-serif; }

.fuss { text-align: center; font-size: 14px; color: var(--text-leise); padding: 28px 16px 36px; }
.fuss a { margin: 0 10px; }
.skizze { position: fixed; right: 12px; bottom: 12px; background: #263238; color: #fff; font: 600 12px/1 var(--titel);
  padding: 8px 12px; border-radius: 20px; opacity: .85; z-index: 50; text-decoration: none; }

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

/* Landing page "aktiv" (aktiv-erholen.de), generated by landing.py – edit there, not here. */
html, body { overflow-x: clip; }
.leiste { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 18px clamp(16px, 4vw, 56px); }
.leiste a { font: 700 13px/1 var(--titel); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: inherit; opacity: .85; }
.leiste span { font-weight: 400; letter-spacing: .12em; }
.wald .leiste, .rehahilft .leiste, .team .leiste { color: #fff; } .aktiv .leiste { color: var(--hot); } .wirleben .leiste { color: var(--orb-dunkel); }
.held { display: flex; padding: clamp(84px, 12vh, 140px) clamp(16px, 6vw, 96px) clamp(40px, 8vh, 96px); box-sizing: border-box; }
.held-text { max-width: 900px; }
.held .dach { font: 700 clamp(12px, .9vw, 15px)/1 var(--titel); letter-spacing: .28em; text-transform: uppercase; margin: 0 0 1em; color: var(--akzent); }
.held h1 { font-family: var(--titel); font-weight: 800; line-height: 1.02; margin: 0 0 .25em; }
.held .unter { font-size: clamp(18px, 1.5vw, 26px); font-weight: 300; margin: 0; max-width: 36em; }
.punkte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
  padding: clamp(40px, 7vh, 88px) clamp(16px, 6vw, 96px); }
.punkt .nr { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 700 17px/1 var(--titel); }
.punkt h2 { font: 700 clamp(20px, 1.5vw, 26px)/1.25 var(--titel); margin: .7em 0 .35em; }
.punkt p { margin: 0; font-size: clamp(16px, 1.05vw, 19px); }
.haeuser { padding: clamp(40px, 7vh, 88px) clamp(16px, 6vw, 96px) 24px; }
.haeuser > h2 { font: 700 clamp(24px, 2.2vw, 36px)/1.2 var(--titel); margin: 0 0 28px; color: var(--akzent); }
.hinweis { margin: 32px 0 0; font-size: 15px; color: var(--text-leise); max-width: 60em; }
/* facts from the Arbeitskreis Gesundheit e.V., rephrased (reha-hilft.de) */
.wissen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding: 0 clamp(16px, 6vw, 96px) clamp(24px, 4vh, 48px); }
.wissen .block { background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(20,40,70,.08); border-top: 6px solid var(--akzent); }
.wissen h2 { font: 700 clamp(20px, 1.6vw, 26px)/1.25 var(--titel); margin: 0 0 .6em; color: var(--akzent); }
.wissen ul { margin: 0; padding-left: 1.1em; } .wissen li { margin: .45em 0; font-size: clamp(16px, 1.05vw, 18px); }
.wissen .quelle { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--text-leise); }
.wissen .quelle a, .wunsch a { color: var(--akzent); font-weight: 600; }
.wunsch { margin: 8px clamp(16px, 6vw, 96px) 24px; padding: 22px 26px; border-radius: 18px; background: #fff; border-left: 6px solid var(--akzent);
  box-shadow: 0 10px 30px rgba(20,40,70,.06); max-width: 980px; }
.wunsch h2 { font: 700 20px/1.3 var(--titel); margin: 0 0 .3em; color: var(--akzent); } .wunsch p { margin: 0; }
@media (max-width: 1000px) { .wissen { grid-template-columns: 1fr; } }
/* house cards as on the portal: equal size, slide in once, grow under the mouse */
.karten { display: grid; grid-auto-rows: 1fr; gap: clamp(18px, 1.8vw, 32px); --rein: 140px; }
.karten.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.karten.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
.karten.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.karte { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 12px 28px rgba(20,30,35,.08);
  transition: transform .45s var(--weich), box-shadow .45s var(--weich); }
.karte .bild { height: clamp(170px, 12vw, 260px); background: var(--bild) center/cover; }
.karte .schild { position: relative; z-index: 1; margin: -42px 18px 0; background: #fff; border-radius: 12px; padding: 12px 14px;
  height: clamp(78px, 5.6vw, 104px); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.karte .schild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.karte.hot .schild { background: var(--hot-dunkel); }
.karte .text { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 26px; }
.karte .ort { display: block; font: 700 clamp(19px, 1.3vw, 24px)/1.2 var(--titel); color: var(--farbe); }
.karte .zeile { display: block; color: var(--text); margin-top: 4px; font-size: clamp(15px, .95vw, 17px); }
.karte .weiter { display: inline-flex; gap: 8px; margin-top: auto; padding-top: 12px; font: 600 15px/1 var(--titel); color: var(--farbe); }
.karte .weiter::after { content: "→"; }
.karte .balken { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--farbe); }
.karte.orb { --farbe: var(--orb); } .karte.gfd { --farbe: var(--gfd); } .karte.hot { --farbe: var(--hot); } .karte.fgg { --farbe: var(--fgg); }
.karte:hover, .karte:focus-visible { transform: scale(1.05); z-index: 3; outline: none; box-shadow: 0 6px 14px rgba(0,0,0,.08), 0 30px 54px rgba(20,30,35,.20); }
.karte:focus-visible { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--farbe); }
.bewegt .karte:not(.da) { opacity: 0; }
.bewegt .karte.da { animation: rein 1.1s cubic-bezier(.2, .9, .3, 1.15) backwards; }
@keyframes rein { from { opacity: 0; translate: calc(var(--von, 1) * var(--rein)) 70px; rotate: calc(var(--von, 1) * 7deg); } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@media (min-width: 1001px) { .bewegt .karte.da { animation-delay: calc(var(--i, 0) * 130ms); } }
.fuss a + a, .fuss span + a { margin-left: 18px; }
.leiste .seite { letter-spacing: .08em; text-transform: none; font-weight: 700; font-size: 15px; }
/* portal tiles: same size and motion as the house cards; a tile opens the clinic's profile on the portal */
.karte.portal { --farbe: var(--akzent); }
.karte.portal .kopf { min-height: clamp(120px, 8vw, 160px); display: flex; align-items: flex-end; padding: 22px 22px 18px;
  background: var(--farbe); background: linear-gradient(135deg, var(--farbe), color-mix(in srgb, var(--farbe) 62%, #000)); color: #fff; }
.karte.portal .kopf b { font: 800 clamp(21px, 1.55vw, 28px)/1.12 var(--titel); letter-spacing: -.01em; }
.karte.portal .text { padding-top: 18px; }
.karte.portal .weiter { font-size: 14px; line-height: 1.3; }
@media (max-width: 1000px) { .karten.n3, .karten.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .punkte { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .karten.n2, .karten.n3, .karten.n4 { grid-template-columns: 1fr; } .karten { --rein: 70px; } }
@media (prefers-reduced-motion: reduce) { .karte, .karte:hover { transform: none; transition: none; } }

body.aktiv { background: var(--hot-creme); --akzent: var(--hot); }
.aktiv .held { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.aktiv .held::after { content: ""; aspect-ratio: 4 / 3; border-radius: 28px; background: url("hot-haus.jpg") center/cover;
  box-shadow: 0 30px 60px rgba(30,60,20,.25); rotate: 2deg; }
.aktiv .held h1 { color: var(--hot); font-size: clamp(42px, 6vw, 92px); }
.aktiv .held .schmuck { font: 400 clamp(24px, 2.4vw, 38px)/1.2 "Dancing Script", cursive; color: var(--hot-hell); margin: 0 0 .4em; }
.aktiv .punkte { background: #fff; }
.aktiv .punkt .nr { background: var(--hot-hell); color: #fff; }
@media (max-width: 800px) { .aktiv .held { grid-template-columns: 1fr; } }

/* card photos */
