/* ============================================================
   Heilpädagogische Praxis Nahetal – Theme "Natürlich & Ruhig"
   Salbe/Creme/Sand/Gold/Braun · Playfair + Lora + Lato ·
   organische Wellen, feine Line-Art, Foto-Karten, Badges.
   Palette zentral (Design-Tokens). WCAG-AA geprueft:
     Braun/Creme 8.23 · Braun/Sand 5.68 · Creme/Braun 8.23
     Kleiner Text NICHT auf Salbe (2.70) oder Gold (Weiss 2.47);
     Gold-Buttons -> braune GROSSE Schrift (3.62 AA-gross).
   Terracotta-Variante = --gold auf #B86F55 + --braun-deep auf #3F4D43.
   ============================================================ */
:root {
  /* --- Markenpalette (M2, fix) --- */
  --creme:      #FAF5E9;   /* Basis, grosszuegig */
  --sand:       #DCCCB3;   /* Karten, sekundaere Flaechen */
  --salbe:      #899078;   /* Struktur/Deko: Wellen, Badges, Icons */
  --gold:       #D09B52;   /* Akzent: Buttons(gross), Linien, Marker */
  --braun:      #51483E;   /* Text, Ueberschriften, tiefe Baender */

  --gold-deep:  #B07C2E;   /* Gold fuer groessere Akzente */
  --salbe-deep: #6E7660;
  --sand-soft:  color-mix(in srgb, var(--sand) 62%, var(--creme));
  --creme-2:    #FFFDF7;

  /* Kompatibilitaet: base.css spricht alte Namen an -> umbiegen */
  --flieder:     var(--salbe);
  --tanne:       var(--braun);
  --weiss:       #ffffff;
  --fichte:      var(--gold);
  --fichte-deep: var(--braun);

  /* --- Semantische Tokens --- */
  --bg:        var(--creme);
  --text:      var(--braun);
  --muted:     #7a6f61;
  --link:      var(--braun);
  --line:      color-mix(in srgb, var(--sand) 60%, var(--creme));
  --card-bg:   var(--creme-2);

  --band-bg:   var(--braun);
  --band-text: var(--creme);

  --hero-bg:   var(--creme);
  --hero-text: var(--braun);

  --btn-bg:    var(--gold);
  --btn-text:  var(--braun);
  --btn2-bg:   transparent;
  --btn2-text: var(--braun);

  /* --- Typografie --- */
  --font-head: "Playfair Display", Georgia, serif;   /* grosse Ueberschrift */
  --font-sub:  "Lora", Georgia, serif;               /* Zwischenueberschrift */
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw:   72rem;
  --pad:    clamp(1.2rem, 4vw, 2.2rem);
  --radius: 20px;
}

/* --- Grundton --- */
body { font-size: 1.06rem; line-height: 1.75; }
h1 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; font-size: clamp(2.3rem, 5.6vw, 3.8rem); }
h2 { font-family: var(--font-sub); font-weight: 600; line-height: 1.2; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-family: var(--font-sub); font-weight: 600; line-height: 1.25; font-size: 1.35rem; }
h4 { font-family: var(--font-sub); font-weight: 600; }
h1,h2,h3,h4 { color: var(--braun); }
p { max-width: 62ch; }
.lead { font-family: var(--font-body); font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
a { color: var(--link); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--braun); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- Eyebrow: Gold-Marker + braune Kapitaelchen --- */
.eyebrow { color: var(--braun); font-weight: 700; letter-spacing: .14em; font-size: .8rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content:""; width: 1.7rem; height: 2px; border-radius: 2px; background: var(--gold); }

/* --- Header / Nav --- */
.site-header { background: color-mix(in srgb, var(--creme) 90%, transparent); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--font-head); color: var(--braun); }
.wordmark small { font-family: var(--font-sub); font-style: italic; letter-spacing: .02em; text-transform: none; color: var(--salbe-deep); }
.site-nav a { font-weight: 700; color: var(--braun); }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--gold); }
.nav-cta { border: none !important; }

/* --- Buttons: Pille --- */
.btn { border-radius: 999px; padding: .8rem 1.5rem; font-weight: 700; font-family: var(--font-body); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn-primary { background: var(--gold); color: var(--braun); font-size: 1.2rem; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--gold) 85%, transparent); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-dark { background: var(--braun); color: var(--creme); }
.btn-dark:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--braun); border: 2px solid color-mix(in srgb, var(--braun) 40%, transparent); }
.btn-ghost:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero .wrap { padding-block: clamp(2.6rem, 7vw, 5rem); position: relative; z-index: 1; }
.hero h1, .hero .lead { color: var(--braun); }
.hero .lead { color: color-mix(in srgb, var(--braun) 85%, var(--creme)); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 54% 46% 47% 53% / 55% 52% 48% 45%; }
.hero-badge { position: absolute; right: -0.4rem; bottom: -0.6rem; width: 7.6rem; height: 7.6rem; border-radius: 50%;
  background: var(--gold); color: var(--braun); display: grid; place-items: center; text-align: center;
  font-family: var(--font-sub); font-weight: 600; font-size: .9rem; line-height: 1.35; padding: .6rem;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--braun) 60%, transparent); }

/* --- Wellen-Trenner --- */
.divider { line-height: 0; }
.divider svg { display: block; width: 100%; height: clamp(38px, 6vw, 74px); }

/* --- Feature-Band (Sand): Icon-Reihe --- */
.feature-band { background: var(--sand-soft); }
.featurerow { display: grid; gap: 2rem 1.4rem; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 560px) { .featurerow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .featurerow { grid-template-columns: repeat(4, 1fr); } }
.feature { display: grid; justify-items: center; gap: .5rem; }
.feature h3 { font-size: 1.12rem; margin: .2rem 0 0; }
.feature p { color: var(--muted); font-size: .96rem; max-width: 26ch; margin: 0; }
.ico { width: 3rem; height: 3rem; color: var(--braun); }
.ico .accent { color: var(--gold); }

/* --- Fotos: warme Angleichung + organische Rahmen --- */
.media { position: relative; }
.media img { display: block; width: 100%; height: auto; object-fit: cover;
  filter: sepia(.12) saturate(1.06) brightness(1.02) contrast(.98); }
.media.blob img { aspect-ratio: 4/3; border-radius: 46% 54% 52% 48% / 55% 46% 54% 45%; }
.media.round img { border-radius: var(--radius); }

/* --- Story-Split --- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1.1fr; } }
.split.rev > .media { order: -1; }

/* --- Angebot: Foto-Karten mit Badge --- */
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: visible; }
.card .media img { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3/2; }
.card .card-body { padding: 1.9rem 1.5rem 1.7rem; text-align: center; position: relative; }
.badge { position: absolute; top: -1.8rem; left: 50%; transform: translateX(-50%);
  width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--salbe); color: var(--creme);
  display: grid; place-items: center; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--braun) 60%, transparent); border: 3px solid var(--creme); }
.badge.gold { background: var(--gold); color: var(--braun); }
.badge .ico { width: 1.7rem; height: 1.7rem; color: currentColor; }
.card h3 { margin-top: .6rem; }
.card p { color: var(--muted); margin: .4rem auto .9rem; }
.card .more { font-weight: 700; letter-spacing: .04em; font-size: .82rem; text-transform: uppercase; text-decoration: none; color: var(--braun); }
.card .more:hover { color: var(--gold-deep); }

/* --- Tiefes Band / Testimonial --- */
.band { background: var(--band-bg); color: var(--band-text); }
.band h1,.band h2,.band h3 { color: var(--creme); }
.band a { color: var(--creme); text-decoration-color: var(--gold); }
.quote { font-family: var(--font-sub); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; color: var(--creme); max-width: 24ch; }
.quote-mark { font-family: var(--font-head); font-size: 3.4rem; color: var(--gold); line-height: .6; display: block; }
.quote-by { font-family: var(--font-body); font-style: normal; color: color-mix(in srgb, var(--creme) 80%, var(--braun)); font-size: .95rem; margin-top: .8rem; }

/* --- Hinweis-Note (Disclaimer) --- */
.note { border-left: 4px solid var(--gold); background: var(--creme-2); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; }

/* --- Botanik-Deko --- */
.sprig { color: var(--gold); opacity: .55; width: 3.4rem; height: auto; }

/* --- Listen-Marker Gold --- */
ul.ticks li::before { content:""; position:absolute; left:.35rem; top:.72em; width:.5rem; height:.5rem; border-radius:50%; background: var(--gold); }

/* --- Platzhalter (falls noch genutzt) --- */
.ph { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--sand) 50%, var(--creme)) 0 16px, var(--creme) 16px 32px); color: var(--braun); border: 1px dashed color-mix(in srgb, var(--braun) 30%, transparent); }

/* --- Footer --- */
.site-footer { background: var(--braun); color: var(--creme); }
.site-footer a { color: var(--creme); text-decoration-color: var(--gold); }
.site-footer h4 { color: var(--creme); }
.family a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ============================================================
   Unterseiten-Kompatibilitaet (bringt Alt-Markup in den neuen Stil)
   ============================================================ */
/* helles Sand-Band statt altem "lilac" (Fliesstext lesbar, Braun 5.68 AA) */
.band.lilac { background: var(--sand-soft); color: var(--braun); }
.band.lilac h1, .band.lilac h2, .band.lilac h3 { color: var(--braun); }
.band.lilac p, .band.lilac li, .band.lilac dd, .band.lilac dt { color: var(--braun); }
.band.lilac a { color: var(--braun); text-decoration-color: var(--gold); }
.band.lilac .btn-ghost { border-color: color-mix(in srgb, var(--braun) 40%, transparent); color: var(--braun); }
/* Text-Karten (ohne Foto) bekommen wieder Innenabstand */
.card:not(:has(.card-body)) { padding: 1.6rem 1.6rem 1.7rem; }
.card:not(:has(.card-body)) h3 { margin-top: .2rem; }
.card:not(:has(.card-body)) p:last-child { margin-bottom: 0; }
/* Ablauf-Schritte: Braun-Kreis + Creme-Zahl (Kontrast AA) mit Gold-Ring */
.step .num { background: var(--braun); color: var(--creme); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
/* Platzhalter-Foto in Unterseiten-Heroes organisch runden */
.hero .ph.tall, .section .hero-grid .ph.tall { border-radius: 46% 54% 52% 48% / 55% 46% 54% 45%; }

/* --- Logo im Header (Bildzeichen per CSS ausgeschnitten) --- */
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { display: block; flex: 0 0 auto; width: 60px; height: 64px; overflow: hidden; position: relative; }
.brand-mark img { position: absolute; width: 156px; height: auto; left: -45px; top: -24px; mix-blend-mode: multiply; }
.brand-text { display: inline-block; line-height: 1.1; }
@media (max-width: 560px) { .brand-text { font-size: 1.05rem; } .brand-mark { width: 52px; height: 56px; } .brand-mark img { width: 136px; left: -39px; top: -20px; } }
.brand-mark img { max-width: none; }
