/* CMD & Skoliose Netzwerk Schweiz — gemeinsames Design
   Palette aus dem Logo abgeleitet (gemessen 30.07.2026):
   Petrol #3f7389 = Kopf-Silhouette und Rahmen · Navy #2c3e50 = Wortmarke
   Terracotta und Sandton bleiben als warmer Gegenpol („warm & menschlich"). */
:root{
  --teal:#3f7389; --teal-d:#2b5568; --navy:#2c3e50; --navy-d:#1f2e3d;
  --terra:#c1654a; --terra-d:#a4523b;
  --sand:#f6efe4; --sand-2:#efe5d5; --ink:#2c2a27; --muted:#6b6459; --line:#e2d7c5;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);
     background:var(--sand);line-height:1.6}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.2;color:var(--navy)}
h2{font-size:1.7rem;margin:0 0 .4em}
.lead{font-size:1.15rem;color:var(--muted)}
.center{text-align:center}

/* Header / Nav (mobile: Checkbox-Hamburger, kein JS) */
.site-header{position:sticky;top:0;z-index:50;background:rgba(246,239,228,.96);
     backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px}
.brand{font-weight:800;color:var(--navy);font-size:1.05rem;line-height:1.05;text-decoration:none}
.brand span{font-weight:600;color:var(--muted);font-size:.85rem}
.brand img{height:82px;width:auto;display:block}
@media(max-width:900px){.brand img{height:62px}}
/* Bilder: Hero-Hintergrund + Bild-Text-Sektionen */
.hero.hero-img{background:linear-gradient(135deg,rgba(31,46,61,.88),rgba(63,115,137,.76)),url('assets/mission.png') center/cover no-repeat;min-height:430px;display:flex;align-items:center}
.feature{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}
.feature img{width:100%;border-radius:16px;box-shadow:0 8px 26px rgba(0,0,0,.14)}
@media(max-width:820px){.feature{grid-template-columns:1fr}}
figure.pic{margin:0}
figure.pic img{width:100%;border-radius:16px;box-shadow:0 8px 26px rgba(0,0,0,.14)}
figure.pic figcaption{font-size:.85rem;color:var(--muted);margin-top:8px;text-align:center}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.nav a{color:var(--ink);padding:8px 11px;border-radius:8px;font-size:.93rem}
.nav a:hover{background:var(--sand-2);text-decoration:none}
.nav a.nav-cta{background:var(--terra);color:#fff;font-weight:700}
.nav a.nav-cta:hover{background:var(--terra-d)}
.nav a.active,.nav a[aria-current="page"]{background:var(--teal);color:#fff}
.nav-toggle,.nav-btn{display:none}
@media(max-width:900px){
  .nav-btn{display:block;font-size:1.5rem;cursor:pointer;color:var(--teal-d);padding:4px 8px}
  .nav{display:none;flex-direction:column;align-items:stretch;width:100%;order:3}
  .nav a{padding:12px}
  .nav-toggle:checked ~ .nav{display:flex}
  .nav-wrap{flex-wrap:wrap}
}

/* Hero */
.hero{background:linear-gradient(135deg,var(--teal),var(--navy-d));color:#fff;padding:64px 0}
.hero h1,.hero h2,.hero p{color:#fff}
.hero h1{font-size:2.6rem;margin:0 0 .3em}
.hero p{font-size:1.2rem;opacity:.95;max-width:640px;margin:0 0 26px}
.hero .btns{display:flex;gap:12px;flex-wrap:wrap}

/* Weggabelung — überall dort, wo sich der Weg in Erwachsene und Kinder teilt.
   Regel von Doc (08.08.2026): Beide Wege sind gleichwertig. Also KEIN Haupt-
   und Nebenknopf, sondern zwei identische, gleich breite Knöpfe, mittig
   gesetzt, mit dem Text ebenfalls zentriert. Der Besucher soll auf einen Blick
   sehen: hier wird gewählt, nicht gefolgt. Vorher stand links ein gefüllter
   und rechts ein umrandeter Knopf — das las sich wie Angebot und Nachtrag. */
.gabelung{text-align:center}
.gabelung h1,.gabelung h2,.gabelung p{margin-left:auto;margin-right:auto}
.gabelung .wege{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-top:28px}
.gabelung .wege .btn{flex:0 1 250px;text-align:center;padding:16px 22px}
@media(max-width:520px){.gabelung .wege .btn{flex:1 1 100%}}

/* Buttons */
.btn{display:inline-block;border:0;border-radius:11px;padding:14px 22px;font-size:1.02rem;font-weight:700;
     cursor:pointer;color:#fff;background:var(--terra);transition:.12s}
.btn:hover{background:var(--terra-d);text-decoration:none}
.btn.teal{background:#fff;color:var(--teal-d)}
.btn.teal:hover{background:var(--sand-2)}
.btn.outline{background:transparent;border:2px solid #fff;color:#fff}
.btn.outline:hover{background:rgba(255,255,255,.12)}

/* Sections */
section{padding:56px 0}
section.alt{background:var(--sand-2)}
.section-kicker{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--terra-d);font-weight:700;margin:0 0 8px}

/* Cards / Pillars */
.grid{display:grid;gap:20px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:820px){.grid.cols-3,.grid.cols-2{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.card h3{margin:.1em 0 .4em;color:var(--teal-d)}
.card .ico{font-size:1.7rem}

/* CTA-Band */
.cta-band{background:var(--terra);color:#fff;text-align:center;padding:48px 0}
.cta-band h2{color:#fff}
.cta-band .btn{background:#fff;color:var(--terra-d)}
.cta-band .btn:hover{background:var(--sand)}
/* Zweitknopf im Farbband: transparent mit weisser Kontur. Ohne diese Regel
   erbt er die Terracotta-Schrift des Bandes und wird unlesbar. */
.cta-band .btn.outline{background:transparent;border:2px solid #fff;color:#fff}
.cta-band .btn.outline:hover{background:rgba(255,255,255,.15);color:#fff}

/* Callout / Zitat */
.callout{background:#fff;border-left:5px solid var(--teal);border-radius:10px;padding:18px 20px;margin:18px 0;
     font-size:1.1rem}
.disclaimer{font-size:.9rem;color:var(--muted);background:var(--sand-2);border-radius:8px;padding:12px 14px}

/* Footer */
footer.site-footer{background:var(--navy);color:#dbe5ee;padding:44px 0 26px;margin-top:20px}
footer.site-footer a{color:#fff}
footer.site-footer h2,footer.site-footer h3{color:#fff}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:26px}
@media(max-width:820px){.foot-grid{grid-template-columns:1fr}}
footer .fnav a{display:block;color:#c8d6e2;padding:3px 0;font-size:.93rem}
footer small{color:#9db0c2}
.foot-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:26px;padding-top:16px;font-size:.82rem;color:#9db0c2}

/* Besucherzahl in der Fusszeile — unauffaellig neben den Rechtslinks. */
.besucher{color:#9db0c2;font-size:.86rem;opacity:.85;white-space:nowrap}
.besucher:not(:empty)::before{content:"·";margin:0 .5rem;opacity:.6}

/* Störer „Das Buch — kostenlos". Wird von nav.js gesetzt, damit er an einer
   einzigen Stelle gepflegt wird und sich schliessen lässt. */
.buchstoerer{position:fixed;right:18px;bottom:18px;z-index:200;max-width:250px;
  background:var(--terra);border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.22)}
.buchstoerer a{display:block;padding:16px 18px 14px;color:#fff;text-decoration:none;line-height:1.35;
  border-radius:14px}
.buchstoerer a:hover{text-decoration:none;background:var(--terra-d)}
.buchstoerer .kicker{display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;opacity:.9}
.buchstoerer .titel{display:block;font-weight:800;font-size:1.02rem;margin-top:3px}
.buchstoerer .unter{display:block;font-size:.82rem;opacity:.95;margin-top:3px}
.buchstoerer-zu{position:absolute;top:-9px;right:-9px;width:28px;height:28px;border:0;border-radius:50%;
  background:#fff;color:var(--terra-d);font-size:1.15rem;line-height:1;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.25);font-family:inherit}
.buchstoerer-zu:hover{background:var(--sand-2)}
@media(max-width:520px){.buchstoerer{right:12px;bottom:12px;max-width:calc(100% - 24px)}}


/* Sprungziele: Die Kopfleiste klebt oben (position:sticky) und verdeckt sonst
   die Ueberschrift des angesprungenen Abschnitts. Abstand = Kopfhoehe 107 px
   plus Luft. Gemessen, nicht geschaetzt. */
section[id],h2[id],h3[id]{scroll-margin-top:124px}

/* ===== Fachpersonen-Verzeichnis (hilfe.html) =====
   Die Felder liegen nebeneinander, solange Platz ist, und untereinander,
   sobald es eng wird. Keine festen Breiten: Die Umkreis-Auswahl ist kurz,
   das Ortsfeld braucht Raum. */
.vz-suche{max-width:820px}
.vz-felder{display:grid;grid-template-columns:2fr 1.3fr 1fr;gap:14px;align-items:end}
@media(max-width:760px){.vz-felder{grid-template-columns:1fr}}
.vz-felder label{font-weight:700;font-size:.95rem;display:block}
.vz-felder input,.vz-felder select{display:block;width:100%;margin-top:6px;padding:12px;
  border:1px solid var(--line);border-radius:10px;font-size:1rem;font-family:inherit;background:#fff;color:var(--ink)}
.vz-felder input:focus,.vz-felder select:focus{outline:2px solid var(--teal);outline-offset:1px}
.vz-meldung{margin:14px 0 0;font-size:.93rem;color:var(--muted)}
.vz-meldung.vz-aufbau{background:var(--sand-2);border-left:4px solid var(--terra);
  border-radius:8px;padding:10px 12px;color:var(--ink)}
.vz-meldung.vz-fehler{background:#fff4ef;border-left:4px solid var(--terra);
  border-radius:8px;padding:10px 12px;color:var(--terra-d);font-weight:600}
.vz-liste:empty{display:none}
.vz-karte h3{margin-top:0}
.vz-km{color:var(--teal-d);font-weight:700;margin:.4em 0 0}
/* Beispieleintraege muessen als solche erkennbar sein - sonst haelt sie
   jemand fuer eine echte Praxis und ruft dort an. */
.vz-beispiel{border-style:dashed;background:var(--sand-2)}
.vz-beispiel h3{color:var(--muted)}