/* Praxis Gerrit Zipplies — Sprachtherapie und Lerntherapie, Dissen a.T.W.
   Grün-Türkis aus Logo und Seitenrahmen der bestehenden Seite. Ruhig und gut lesbar:
   Ein Großteil der Patienten sind Kinder, ein anderer Menschen nach Schlaganfall.
   Mobile-first. */

:root {
  --creme: #fafcfa;
  --creme-tief: #eaf3ee;
  --sand: #cfe3d8;
  --orange: #2f6b57;
  --orange-tief: #245546;
  --braun: #26382f;
  --text: #3b4a43;
  --grau: #6b7c74;
  --linie: #dbe6e0;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rand: 1.25rem;
  --max: 1160px;
  --rund: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; overflow-x: hidden;
  background: var(--creme); color: var(--text);
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-tief); }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .55em; color: var(--braun); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 6.4vw, 3rem); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 4.4vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 3vw, 1.2rem); }
p { margin: 0 0 1.1em; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--orange); color: #fff; padding: .75rem 1.25rem; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }
.eng { max-width: 68ch; }

/* ---------- Kopf ---------- */

.leiste { background: var(--braun); color: #d9cfc4; font-size: .86rem; }
.leiste__innen { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; padding-block: .5rem; }
.leiste a { color: #d9cfc4; text-decoration: none; }
.leiste a:hover { color: #fff; }

.kopf { position: sticky; top: 0; z-index: 50; background: rgba(253,249,245,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 84px; padding-block: .55rem; transition: min-height .28s ease; }
.marke { display: flex; align-items: center; text-decoration: none; color: var(--braun); border-radius: 10px; }
/* Das Logo liegt freigestellt (transparentes WebP) direkt auf dem Cremeton des
   Kopfbereichs — keine weiße Kachel. Gesteuert wird die Höhe, nicht die Breite:
   So bleibt der Kopfbereich bei jeder Viewportbreite gleich hoch. Weil das Logo
   fast quadratisch ist, zeigt der Kopf es oben groß und schrumpft es beim Scrollen
   (data-kompakt) auf Leistenmaß — sonst müsste die klebende Leiste dauerhaft hoch
   sein oder das Logo dauerhaft klein. */
.marke__bild { display: block; height: 68px; width: auto; transition: height .28s ease; }
.marke:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.kopf[data-kompakt="true"] .kopf__innen { min-height: 66px; }
.kopf[data-kompakt="true"] .marke__bild { height: 50px; }

.nav-schalter { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 9px; background: none; border: 1px solid var(--linie); border-radius: 8px; cursor: pointer; }
.nav-schalter span { display: block; height: 2px; background: var(--braun); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-schalter[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-schalter[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-schalter[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav[data-offen="true"] { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--creme); border-bottom: 1px solid var(--linie); padding: .5rem var(--rand) 1.25rem; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li + li { border-top: 1px solid var(--linie); }
.nav a { display: block; padding: .85rem 0; color: var(--text); text-decoration: none; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--orange); }

@media (min-width: 1024px) {
  .kopf__innen { min-height: 124px; }
  .marke__bild { height: 104px; }
  .kopf[data-kompakt="true"] .kopf__innen { min-height: 82px; }
  .kopf[data-kompakt="true"] .marke__bild { height: 64px; }
  .nav-schalter { display: none; }
  .nav, .nav[data-offen="true"] { display: block; position: static; padding: 0; background: none; border: 0; }
  .nav ul { display: flex; gap: 1.8rem; }
  .nav li + li { border: 0; }
  .nav a { padding: .3rem 0; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px; background: var(--orange); transition: right .28s; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; background: var(--braun); }
.hero__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(38,56,47,.9), rgba(38,56,47,.48)); }
.hero__innen { min-height: min(74svh, 600px); display: flex; flex-direction: column; justify-content: center; padding-block: 4.5rem; color: #fff; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { font-style: normal; color: #8fc9b3; }
.hero__unter { max-width: 50ch; color: #efe8e1; font-size: 1.08rem; margin-bottom: 2rem; }
.hero__oben { display: inline-block; margin-bottom: 1.2rem; padding: .32rem .9rem; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Knöpfe ---------- */

.knopf { display: inline-block; padding: .88rem 1.8rem; border-radius: 999px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; text-decoration: none; transition: background .22s, color .22s, border-color .22s, transform .22s; }
.knopf--voll { background: var(--orange); color: #fff; }
.knopf--voll:hover { background: var(--orange-tief); transform: translateY(-2px); }
.knopf--hell { background: #fff; color: var(--braun); }
.knopf--hell:hover { background: var(--creme-tief); transform: translateY(-2px); }
.knopf--rand { border: 2px solid var(--sand); color: var(--braun); }
.knopf--rand:hover { border-color: var(--orange); color: var(--orange-tief); transform: translateY(-2px); }

/* ---------- Sektionen ---------- */

.sekt { padding-block: 4rem; }
.sekt--warm { background: var(--creme-tief); }
.sekt--braun { background: var(--braun); color: #ded4c9; }
.sekt--braun h2, .sekt--braun h3 { color: #fff; }
.sekt--braun .augbraue { color: #8fc9b3; }
.sekt--braun .blei { color: #ded4c9; }

.sekt__kopf { max-width: 62ch; margin-bottom: 2.6rem; }
.sekt__kopf--mitte { margin-inline: auto; text-align: center; }
.sekt__kopf--mitte .blei { max-width: 54ch; margin-inline: auto; }

.augbraue { display: block; margin-bottom: .9rem; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.blei { font-size: 1.07rem; color: var(--grau); }
.grau { color: var(--grau); }

/* ---------- Ablauf ---------- */

.ablauf { display: grid; gap: 1.4rem; counter-reset: s; }
@media (min-width: 900px) { .ablauf { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; } }
.ablauf article { background: #fff; border-radius: var(--rund); padding: 1.6rem 1.4rem; box-shadow: 0 2px 14px rgba(38,56,47,.05); }
.ablauf article::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .9rem; border-radius: 50%; background: var(--creme-tief); color: var(--orange); font-weight: 700; }
.ablauf h3 { margin-bottom: .35rem; }
.ablauf p { margin: 0; color: var(--grau); font-size: .95rem; }

/* ---------- Störungsbilder ---------- */

.bilder { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .bilder { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.bild-karte { background: #fff; border-radius: var(--rund); overflow: hidden; box-shadow: 0 2px 14px rgba(38,56,47,.05); }
.bild-karte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bild-karte__text { padding: 1.5rem; }
.bild-karte h3 { margin-bottom: .7rem; }
.bild-karte ul { margin: 0; padding-left: 1.1rem; }
.bild-karte li { color: var(--grau); font-size: .95rem; margin-bottom: .45rem; }

/* ---------- Team ---------- */

.team { display: grid; gap: 2rem; }
@media (min-width: 800px) { .team { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
.person { background: #fff; border-radius: var(--rund); padding: 1.8rem; box-shadow: 0 2px 14px rgba(38,56,47,.05); }
.person img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 1.1rem; }
.person h3 { margin-bottom: .1rem; }
.person .rolle { display: block; margin-bottom: 1rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.person p { margin: 0 0 .8em; font-size: .95rem; color: var(--grau); }
.person ul { margin: 0; padding-left: 1.1rem; }
.person li { font-size: .93rem; color: var(--grau); margin-bottom: .35rem; }

/* ---------- Galerie ---------- */

.galerie { display: grid; gap: 1rem; }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rund); }

/* ---------- Split ---------- */

.split { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 3.4rem; } .split--gedreht .split__bild { order: 2; } }
.split__bild img { width: 100%; border-radius: var(--rund); }

/* ---------- Fakten ---------- */

/* Kein `align-items: start`: Die Karten sollen sich strecken, sonst stehen in einer
   Zeile unterschiedlich hohe Kästen nebeneinander. `grid-auto-rows: 1fr` gibt allen
   Zeilen dieselbe Höhe, damit das Raster ab zwei Spalten durchgehend bündig ist.
   Einspaltig (mobil) bleibt es bei der natürlichen Höhe — dort gibt es nichts auszurichten. */
.fakten { display: grid; gap: 1.5rem; margin: 0; padding: 0; }
@media (min-width: 640px) { .fakten { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; } }
.fakten div { background: #fff; border-radius: var(--rund); padding: 1.2rem 1.3rem; box-shadow: 0 2px 14px rgba(38,56,47,.05); }
.fakten dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .35rem; font-weight: 600; }
.fakten dd { margin: 0; }
.fakten a { color: var(--braun); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.15rem 2.5rem 1.15rem 0; font-size: 1.06rem; font-weight: 600; line-height: 1.35; color: var(--braun); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.15rem; color: var(--grau); max-width: 72ch; }

/* ---------- Recht ---------- */

.recht { max-width: 74ch; }
.recht h2 { font-size: 1.4rem; margin-top: 2.3rem; }
.recht h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.recht p, .recht li { color: var(--text); font-size: .96rem; }
.hinweis { background: var(--creme-tief); border-left: 4px solid var(--orange); border-radius: 0 var(--rund) var(--rund) 0; padding: 1rem 1.2rem; }

/* ---------- Fuß ---------- */

.fuss { background: var(--braun); color: #b9ada1; padding-block: 3.25rem 1.75rem; font-size: .94rem; }
.fuss__gitter { display: grid; gap: 2rem; }
@media (min-width: 768px) { .fuss__gitter { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } }
.fuss h2 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #8fc9b3; margin-bottom: 1rem; font-family: var(--sans); font-weight: 600; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .55rem; }
.fuss a { color: #b9ada1; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss__zeile { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.13); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .84rem; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
