/* =========================================================
   Marienheime — Entwurf

   Drei Pflegeheime, ein Träger. Zwei Zielgruppen, zwei Geldströme:
   Angehörige (suchen einen Platz, entscheiden über zehntausende Euro)
   und Pflegekräfte (der umkämpfteste Arbeitsmarkt des Landes).

   Gestaltung: würdevoll, warm, ruhig. Salbeigrün + warmes Creme,
   Serife für Wärme, große Schrift. Keine Effekte, keine Eile.
   Das Motiv sind drei Häuser — ihre echte Struktur.

   Der Pain der echten Seite ist ein kaputter Viewport:
   Angehörige und Bewerber am Handy bekommen die Desktop-Seite.
   Diese Seite ist deshalb zuerst fürs Handy gebaut.
   ========================================================= */

:root {
  --creme:      #faf7f1;
  --weiss:      #ffffff;
  --tinte:      #262a24;
  --text:       #4c5248;
  --grau:       #79806f;
  --linie:      #e6e1d5;
  --linie-2:    #d2ccbc;

  --salbei:       #4c6b52;
  --salbei-tief:  #3a5440;
  --salbei-blass: #edf2ec;

  --terra:       #b0683f;   /* warmer Zweitton für Karriere/Akzente */
  --terra-blass: #f9efe8;

  --gold: #c2a15c;

  --serif: "Lora", "Georgia", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bahn: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --schatten: 0 1px 2px rgba(38,42,36,.04), 0 12px 30px rgba(38,42,36,.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--creme); color: var(--text);
  font-family: var(--sans);
  font-size: 19px;           /* bewusst groß — die Leser sind 45 bis 85 */
  line-height: 1.72;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 600;
  color: var(--tinte); margin: 0; line-height: 1.18; letter-spacing: -0.01em;
}

.bahn { width: min(100% - 2.5rem, var(--bahn)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--salbei); color: #fff; padding: .8rem 1.2rem; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--salbei); outline-offset: 3px; }

.hinweis {
  background: var(--tinte); color: #d9dcd4; font-size: .78rem;
  text-align: center; padding: .55rem 1rem; position: relative; z-index: 60;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  padding: .9rem 1.6rem; border: 2px solid transparent; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.knopf-voll { background: var(--salbei); color: #fff; border-color: var(--salbei); }
.knopf-voll:hover { background: var(--salbei-tief); border-color: var(--salbei-tief); }
.knopf-rand { border-color: var(--linie-2); color: var(--tinte); background: var(--weiss); }
.knopf-rand:hover { border-color: var(--salbei); color: var(--salbei); }
.knopf-terra { background: var(--terra); color: #fff; border-color: var(--terra); }
.knopf-terra:hover { background: #94552f; border-color: #94552f; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--creme); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.kopf.fest { background: var(--weiss); border-bottom-color: var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 2rem; height: 78px; }

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.logo-mark { color: var(--salbei); flex: none; }
.logo-mark svg { width: 44px; height: 30px; }
.logo-text { display: grid; line-height: 1.15; }
.logo-text b { font-family: var(--serif); font-size: 1.22rem; color: var(--tinte); font-weight: 600; }
.logo-text span { font-size: .74rem; color: var(--grau); letter-spacing: .02em; }

.nav { display: flex; gap: 1.8rem; }
.nav a { text-decoration: none; font-size: .99rem; font-weight: 500; color: var(--text); padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a.aktiv { color: var(--salbei); border-bottom-color: var(--salbei); }

.tel { text-decoration: none; display: grid; text-align: right; line-height: 1.2; }
.tel span { font-size: .68rem; color: var(--grau); letter-spacing: .1em; text-transform: uppercase; }
.tel b { font-family: var(--serif); font-size: 1.05rem; color: var(--salbei); }

.schalter { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.schalter span { display: block; height: 2.5px; background: var(--tinte); margin: 6px 0; border-radius: 2px; }

.mobilmenu { position: fixed; inset: 0; z-index: 70; background: var(--creme); display: grid; align-content: center; justify-items: center; gap: 1.5rem; transform: translateY(-100%); transition: transform .35s var(--ease); }
.mobilmenu.offen { transform: translateY(0); }
.mobilmenu nav { display: grid; gap: 1.35rem; text-align: center; }
.mobilmenu nav a { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--tinte); }
.mobil-zu { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0; font-size: 2.5rem; line-height: 1; cursor: pointer; color: var(--tinte); }
body.offen { overflow: hidden; }

/* =========================================================
   EINSTIEG — ruhig, mittig, würdevoll
   ========================================================= */
.beginn { padding: 4.8rem 0 3.6rem; text-align: center; position: relative; }
.beginn-innen { max-width: 760px; margin-inline: auto; }
.oben-zeile { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); margin: 0 0 1.6rem; }
.beginn h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: 1.5rem; }
.beginn h1 em { font-style: italic; color: var(--salbei); }
.beginn-satz { font-size: 1.16rem; max-width: 56ch; margin: 0 auto 2.2rem; }
.beginn-knoepfe { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* Warme Szene unter dem Einstieg: Häuser, Bäume, Sonne, Bank */
.beginn-szene { margin: 3rem auto 0; width: min(600px, 88%); color: var(--salbei); }
.beginn-szene svg, .haus-bild svg { width: 100%; height: auto; }
.sonne  { stroke: var(--gold); }
.baum   { stroke: var(--salbei-tief); }
.gold-akzent  { stroke: var(--gold); fill: none; }
rect.terra-akzent { fill: none; }
.terra-akzent { stroke: var(--terra); fill: none; }

/* =========================================================
   DIE DREI HÄUSER — das Herz der Seite
   ========================================================= */
.haeuser { padding: 4.5rem 0 5rem; background: var(--weiss); border-block: 1px solid var(--linie); }
.haeuser-kopf { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.haeuser-kopf h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .7rem; }
.haeuser-kopf p { margin: 0; color: var(--grau); }

.haus-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.haus {
  background: var(--creme); border: 1px solid var(--linie); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.haus:hover { transform: translateY(-4px); box-shadow: var(--schatten); border-color: var(--linie-2); }

/* gezeichnete Haus-Szene als Kopf jeder Karte */
.haus-bild {
  padding: 1.4rem 1.4rem 0;
  background: linear-gradient(180deg, var(--salbei-blass), rgba(237,242,236,0));
  color: var(--salbei);
}
.haus-koerper { padding: 1rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.haus-ort { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.haus h3 { font-size: 1.42rem; margin: .35rem 0 .6rem; }
.haus-beschr { margin: 0 0 1.2rem; font-size: .95rem; }
.haus-fakten { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; font-size: .92rem; }
.haus-fakten li { position: relative; padding-left: 1.45rem; }
.haus-fakten li::before { content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.haus-kontakt { margin-top: auto; border-top: 1px solid var(--linie); padding-top: 1.1rem; display: grid; gap: .35rem; font-size: .93rem; }
.haus-kontakt a { text-decoration: none; color: var(--tinte); font-weight: 600; }
.haus-kontakt a:hover { color: var(--salbei); }
.haus-kontakt .adresse { color: var(--grau); font-weight: 400; }

/* =========================================================
   LEBEN BEI UNS — vier Bildkacheln (alles belegte Merkmale)
   ========================================================= */
.leben { padding: 5rem 0; }
.leben-reihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.leben-kachel {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px;
  padding: 1.6rem 1.5rem;
  transition: transform .22s var(--ease), box-shadow .22s;
}
.leben-kachel:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.leben-bild {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--salbei-blass);
  display: grid; place-items: center;
  color: var(--salbei); margin-bottom: 1.1rem;
}
.leben-bild svg { width: 62px; height: 62px; }
.leben-kachel h3 { font-size: 1.18rem; margin: 0 0 .45rem; }
.leben-kachel p { margin: 0; font-size: .93rem; }

/* =========================================================
   DER WEG — für Angehörige
   ========================================================= */
.weg { padding: 5rem 0; }
.weg-innen { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3.5rem; align-items: start; }
.weg h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.weg-satz { margin: 0 0 1rem; }
.weg-beruhigung {
  margin: 1.6rem 0 0; padding: 1.3rem 1.5rem;
  background: var(--salbei-blass); border-left: 4px solid var(--salbei); border-radius: 0 8px 8px 0;
  font-size: .97rem;
}
.weg-beruhigung b { color: var(--salbei-tief); }

.stufen { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.stufe { display: flex; gap: 1.3rem; padding: 1.3rem 0; border-bottom: 1px solid var(--linie); }
.stufe:last-child { border-bottom: 0; }
.stufe-nr {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--weiss); border: 2px solid var(--salbei);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--salbei);
}
.stufe h3 { font-size: 1.16rem; margin: .2rem 0 .3rem; }
.stufe p { margin: 0; font-size: .95rem; }

/* =========================================================
   LEITSATZ-BAND
   ========================================================= */
.leitsatz { padding: 4.5rem 0; background: var(--salbei); }
.leitsatz-innen { max-width: 780px; margin-inline: auto; text-align: center; }
.leitsatz blockquote { margin: 0; }
.leitsatz p { font-family: var(--serif); font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.4; color: #fff; margin: 0 0 1rem; font-style: italic; }
.leitsatz cite { font-style: normal; font-size: .88rem; color: #cfdcd2; letter-spacing: .06em; }

/* =========================================================
   ARBEITEN BEI UNS — bewusst ruhig, keine Stellenbörse.
   Die Seite gehört den Angehörigen; wer hier arbeiten will,
   findet den Weg über einen Absatz und das Formular.
   ========================================================= */
.karriere { padding: 4.5rem 0; background: var(--weiss); border-block: 1px solid var(--linie); }
.karriere-schmal { max-width: 680px; }
.karriere .oben-zeile { color: var(--terra); }
.karriere h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }
.karriere p { margin: 0 0 1rem; }
.karriere .knopf { margin-top: .5rem; }

/* =========================================================
   KONTAKT
   ========================================================= */
.kontakt { padding: 5rem 0 5.5rem; }
.kontakt-innen { max-width: 680px; margin-inline: auto; }
.kontakt-kopf { text-align: center; margin-bottom: 2.2rem; }
.kontakt-kopf h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.kontakt-kopf p { margin: 0; color: var(--grau); }

.form { display: grid; gap: 1.15rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 2rem; box-shadow: var(--schatten); }
.wahl { border: 0; padding: 0; margin: 0; }
.wahl legend { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); padding: 0; margin-bottom: .7rem; font-weight: 700; }
.pillen { display: flex; flex-wrap: wrap; gap: .5rem; }
.pillen label { cursor: pointer; }
.pillen input { position: absolute; opacity: 0; pointer-events: none; }
.pillen span { display: inline-block; font-size: .95rem; font-weight: 500; border: 2px solid var(--linie); border-radius: 100px; padding: .5rem 1.1rem; transition: background .2s, border-color .2s, color .2s; }
.pillen input:checked + span { background: var(--salbei); border-color: var(--salbei); color: #fff; }
.pillen input:focus-visible + span { outline: 3px solid var(--salbei); outline-offset: 2px; }
.pillen label:hover span { border-color: var(--linie-2); }

.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.feld { display: grid; gap: .35rem; margin: 0; }
.feld label { font-size: .88rem; color: var(--grau); }
.feld input, .feld textarea {
  font-family: var(--sans); font-size: 1.02rem; background: var(--creme);
  border: 2px solid var(--linie); border-radius: 6px; color: var(--tinte);
  padding: .85rem .95rem; width: 100%; transition: border-color .2s, background .2s;
}
.feld textarea { resize: vertical; min-height: 110px; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--salbei); background: var(--weiss); }
.feld input::placeholder, .feld textarea::placeholder { color: #a3a898; }

.form-fuss { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-fuss span { font-size: .93rem; color: var(--grau); }
.form-fuss a { color: var(--salbei); font-weight: 600; }
.status { margin: 0; font-size: .96rem; }
.status.ok { color: var(--salbei-tief); }
.status.err { color: #a33d2a; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: #b9beb0; padding: 3.2rem 0 2rem; }
.fuss a { color: #dfe3d8; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss-innen { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; }
.fuss h3 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; font-family: var(--sans); font-weight: 600; }
.fuss p { margin: 0 0 .3rem; font-size: .88rem; line-height: 1.65; }
.fuss .logo-mark { color: var(--gold); margin-bottom: .8rem; }
.fuss-recht { border-top: 1px solid #3c4038; margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.fuss-recht p { margin: 0; font-size: .78rem; color: #8a9080; max-width: 72ch; line-height: 1.6; }
.fuss-recht b { color: #b9beb0; }

/* ---------- Reveal (JS-gated, nur Text) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Handy — der eigentliche Auftrag dieser Seite
   ========================================================= */
@media (max-width: 980px) {
  .haus-reihe { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .weg-innen { grid-template-columns: 1fr; gap: 2.5rem; }
  .leben-reihe { grid-template-columns: 1fr 1fr; }
  .fuss-innen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 18px; }
  .nav { display: none; }
  .schalter { display: block; }
  .tel span { display: none; }
  .beginn { padding: 3rem 0 2.4rem; }
  .haeuser, .weg, .karriere, .kontakt, .leben { padding: 3.6rem 0; }
  .leben-reihe { grid-template-columns: 1fr; }
  .leitsatz { padding: 3.2rem 0; }
  .beginn-knoepfe .knopf { flex: 1 1 100%; }
  .paar { grid-template-columns: 1fr; }
  .form { padding: 1.4rem; }
  .fuss-innen { grid-template-columns: 1fr; gap: 1.8rem; }
  .fuss-recht { flex-direction: column; }
  .stufe { gap: 1rem; }
}
