/* Mundherum – Logopädische Praxis
   Schlichtes, statisches Stylesheet. Keine externen Ressourcen (DSGVO). */

:root {
  --green: #76962a;          /* Logo-Grün (dunkel) – nur Flächen/Deko */
  --green-light: #a8bc7c;    /* Logo-Grün (hell) – nur Deko */
  --green-ink: #4c6413;      /* Text-/Link-Grün, Kontrast >= 6:1 auf Hintergrund */
  --green-wash: #eef2e3;     /* zarte Hintergrundfläche */
  --bg: #fbf9f4;
  --surface: #ffffff;
  --text: #2b2d26;
  --muted: #5d6055;
  --line: #e3e1d6;
  --radius: 14px;
  --maxw: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #23261d; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--surface); padding: .6rem 1rem; border-radius: 8px;
  box-shadow: 0 2px 10px rgb(0 0 0 / .15);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 249 244 / .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 14.5rem; }

.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); }

.nav-toggle { display: none; }

@media (max-width: 52rem) {
  .brand img { width: 12rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font: inherit; color: var(--text); background: none;
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer;
  }
  .nav-toggle svg { width: 1.1rem; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 1rem 1rem; gap: 0; }
  .nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  /* ohne JavaScript: Navigation immer sichtbar */
  .no-js .nav { position: static; display: block; border: 0; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: .5rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.hero-logo { width: min(100%, 40rem); margin: 0 auto 2rem; }
.hero-image { display: none; }
.hero .tagline {
  font-family: var(--font); font-style: normal;
  font-size: 1.12rem; color: var(--muted); margin-bottom: 1.5rem;
}
.hero .lead { max-width: 40rem; margin: 0 auto 2rem; font-size: 1.12rem; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .75rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 2px solid var(--green-ink); color: var(--green-ink); background: transparent;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.btn-primary { background: var(--green-ink); color: #fff; }
.btn:hover { background: var(--green-wash); color: var(--green-ink); }
.btn-primary:hover { background: #3d510f; color: #fff; }

/* Desktop: Titelbild statt großem Logo (Mobilansicht bleibt unverändert) */
@media (min-width: 52rem) {
  .hero { padding-top: 2.5rem; }
  .hero-logo { display: none; }
  .hero-image {
    display: block; aspect-ratio: 1536 / 922; margin: 0 auto 2.5rem;
    border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .12);
    background: url("/assets/img/hero.jpg") center top / cover no-repeat;
    background-image: image-set(url("/assets/img/hero.webp") type("image/webp"), url("/assets/img/hero.jpg") type("image/jpeg"));
  }
}
/* Breiter Desktop: Bild füllt den Hero von oben bis unten, Text + Buttons liegen
   als Box im unteren Bildteil. Unterhalb von 64rem würde die Box den Schriftzug
   im Bild verdecken, dort steht der Text deshalb unter dem Bild. */
@media (min-width: 64rem) {
  .hero { padding: 0; }
  .hero-card { position: relative; }
  .hero-image { margin: 0; border-radius: 0; box-shadow: none; }
  .hero-panel {
    position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.25rem;
    display: flex; align-items: center; gap: 2.5rem;
    padding: 1.1rem 2rem; text-align: left;
    background: var(--bg); border-radius: var(--radius);
    box-shadow: 0 8px 28px rgb(0 0 0 / .22);
  }
  .hero-text { flex: 1; }
  .hero-panel .hero-title { margin: 0 0 .15rem; }
  .hero .tagline { margin-bottom: .6rem; }
  .hero .lead { max-width: none; margin: 0; font-size: 1.05rem; line-height: 1.6; }
  .lead-intro { display: none; }
  .hero-panel .actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; flex-shrink: 0; }
  .hero-panel .btn { justify-content: center; }
}

/* Wellen-Trenner nach dem Logo */
.wave { color: var(--green-light); width: 100%; height: 36px; }
.wave path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 600; color: var(--green-ink); margin-bottom: .5rem;
}
.prose { max-width: 44rem; }
.prose-wide { max-width: 52rem; }

.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }


.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.facts li { display: flex; gap: .8rem; align-items: flex-start; }
.facts svg { width: 1.4rem; height: 1.4rem; flex-shrink: 0; color: var(--green); margin-top: .15rem; }

.note {
  background: var(--green-wash); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: 2rem;
}
.note p:last-child { margin-bottom: 0; }

/* Über mich */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .about { grid-template-columns: 20rem 1fr; gap: 4rem; } }
.portrait {
  border-radius: var(--radius); overflow: hidden; max-width: 20rem; margin: 0;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgb(60 70 30 / .45);
}
.timeline { list-style: none; padding: 0; margin: 1.25rem 0 0; border-left: 2px solid var(--green-light); }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: -.42rem; top: .55rem;
  width: .7rem; height: .7rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--green);
}

/* Kontakt */
.contact-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
address { font-style: normal; }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.contact-list li { display: flex; gap: .8rem; align-items: center; }
.contact-list svg { width: 1.3rem; height: 1.3rem; color: var(--green); flex-shrink: 0; }
.contact-list a { font-weight: 600; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.legal main { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.legal main, .legal .prose { max-width: 46rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
mark.todo { background: #fff1a8; color: #4a3b00; padding: 0 .2em; border-radius: 3px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green-ink); }

@media print {
  .site-header, .nav-toggle, .actions, .wave { display: none !important; }
  body { background: #fff; }
  a { color: inherit; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mt { margin-top: 1.5rem; }
.m0 { margin: 0; }

/* Hero-Überschrift */
.hero-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 600; letter-spacing: .02em;
  color: var(--green-ink); margin: -.5rem 0 .4rem;
}
.hero .tagline { margin-top: 0; }

/* Häufige Fragen */
.faq { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: .85rem;
  font-size: 1.4rem; line-height: 1; color: var(--green-ink);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

/* Routenplanung */
.route { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.route-title { margin-bottom: .75rem; }
.route-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-sm { padding: .55rem 1.05rem; font-size: .98rem; }

/* Therapiebereiche mit Sinnes-Icons */
.therapies {
  list-style: none; margin: 2.25rem 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
}
.therapy {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1.1rem; align-content: start; align-items: center;
}
.therapy-icon { width: 4.5rem; height: 4.5rem; }
.therapy h3 { font-size: 1.25rem; margin: 0; }
.therapy ul {
  grid-column: 1 / -1; list-style: none; margin: 1.1rem 0 0; padding: 1rem 0 0;
  border-top: 1px solid var(--line); display: grid; gap: .45rem; font-size: .98rem;
}
.therapy ul li { position: relative; padding-left: 1.1rem; }
.therapy ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--green-light);
}
@media (min-width: 52rem) {
  .therapies { grid-template-columns: repeat(2, 1fr); }
}
