/* Lokal eingebundene Schriften (kein Laden von Google, datenschutzfreundlich) */
@font-face {
  font-family: "EB Garamond";
  src: url("schriften/EBGaramond.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pontano Sans";
  src: url("schriften/PontanoSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Psychotherapie L.E.B. – Stylesheet
   Anlehnung an Bestandsdesign:
   - Kopf/Fuss beige (#e9e5dc), ruhig, viel Weissraum
   - Ueberschriften: klassische Serif (EB Garamond)
   - Fliesstext: Pontano Sans
   - Akzente: Sandbeige #b1a78d, Salbeigruen #8fa98b
   Mobil-first optimiert.
   ========================================================= */

:root {
  --beige: #e9e5dc;          /* Header/Footer-Flaeche */
  --beige-tief: #ddd8cc;
  --sand: #b1a78d;           /* Akzent 1 (Original) */
  --sand-dunkel: #8f8465;
  --salbei: #8fa98b;         /* Akzent 2 (Senden-Button Original) */
  --salbei-dunkel: #74906f;
  --text: #3a3a38;
  --text-leise: #6b6a66;
  --linie: #e2ddd2;
  --bg: #ffffff;
  --bg-sanft: #faf9f5;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pontano Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Container ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 760px; }

/* ---------- Typografie ---------- */
h1, h2, h3, .serif {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: .01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 1.9em 0 .55em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.3rem); margin: 1.5em 0 .45em; }
h4 { font-size: 1rem; margin: 1.3em 0 .4em; font-weight: 700; }
p { margin: 0 0 1.15em; }
a { color: var(--sand-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }

ul { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

.leise { color: var(--text-leise); }
.eyebrow {
  color: var(--sand); text-transform: uppercase;
  letter-spacing: .12em; font-size: .82rem; margin: 0 0 .9em;
  font-weight: 700;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  background: var(--beige);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.site-header .wrap {
  max-width: 1200px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 86px; gap: 16px;
}
.marke a { display: flex; flex-direction: row; align-items: center; gap: 12px; line-height: 1.2; color: var(--text); }
.marke .logo { width: 46px; height: 46px; display: block; flex-shrink: 0; }
.marke .marke-text { display: flex; flex-direction: column; }
.marke a:hover { text-decoration: none; }
.marke .name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.45rem; letter-spacing: .01em;
}
.marke .rolle { font-size: .78rem; color: var(--sand-dunkel); letter-spacing: .04em; }

nav.haupt > ul {
  list-style: none; display: flex; align-items: center;
  gap: 2px 19px; margin: 0; padding: 0;
}
nav.haupt a {
  white-space: nowrap;
  color: var(--text); font-size: .92rem; padding: 8px 2px; display: inline-block;
  border-bottom: 1px solid transparent;
}
nav.haupt a:hover { text-decoration: none; border-bottom-color: var(--sand); }
nav.haupt a.aktiv { border-bottom-color: var(--sand-dunkel); }

/* Dropdown Angebote */
li.hat-unter { position: relative; }
li.hat-unter > a::after { content: " ▾"; font-size: .7em; color: var(--sand-dunkel); }
ul.unter {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: -14px; min-width: 220px;
  background: var(--bg); border: 1px solid var(--linie); border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  display: none;
}
li.hat-unter:hover > ul.unter,
li.hat-unter:focus-within > ul.unter { display: block; }
ul.unter li { margin: 0; }
ul.unter a { display: block; padding: 9px 16px; border-bottom: 0; font-size: .93rem; }
ul.unter a:hover { background: var(--bg-sanft); border-bottom: 0; }

/* mobiles Menue */
.menu-toggle {
  display: none; background: none; border: 1px solid var(--beige-tief);
  padding: 9px 14px; font: inherit; font-size: .95rem; cursor: pointer;
  border-radius: 4px; color: var(--text);
}

/* ---------- Hero / Seitenkopf ---------- */
.hero { padding: clamp(44px, 8vw, 84px) 0 clamp(28px, 5vw, 56px); }
.hero h1 { max-width: 20ch; }
.hero p.lead { font-size: 1.12rem; color: var(--text-leise); max-width: 620px; }

.seitenkopf { background: var(--bg-sanft); border-bottom: 1px solid var(--linie);
  padding: clamp(36px, 6vw, 60px) 0 clamp(26px, 4vw, 44px); }
.seitenkopf h1 { margin-bottom: .25em; }
.seitenkopf .lead { color: var(--text-leise); font-size: 1.08rem; max-width: 660px; margin-bottom: 0; }

/* ---------- Inhalt ---------- */
.inhalt { padding: clamp(28px, 5vw, 52px) 0; }
.inhalt-schmal { max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Bild-Platzhalter ---------- */
.ph {
  background: repeating-linear-gradient(45deg, #efece4, #efece4 12px, #e9e5db 12px, #e9e5db 24px);
  border: 1px solid var(--linie);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-leise); text-align: center; font-size: .88rem;
  border-radius: 4px; padding: 16px; margin: 0 0 1.4em; width: 100%;
}
.ph span { max-width: 85%; }
.ph.quer   { aspect-ratio: 4 / 3; }
.ph.breit  { aspect-ratio: 16 / 9; }
.ph.hoch   { aspect-ratio: 3 / 4; }
.ph.portrait { aspect-ratio: 3 / 4; max-width: 380px; }

/* ---------- Raster ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center; }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 10px 0; }
.karte {
  border: 1px solid var(--linie); border-radius: 6px; padding: 26px 24px;
  background: var(--bg-sanft); transition: border-color .15s, transform .15s;
  display: flex; flex-direction: column;
}
.karte:hover { border-color: var(--sand); transform: translateY(-2px); }
.karte h3 { margin-top: 0; }
.karte p { color: var(--text-leise); font-size: .94rem; flex: 1; }
.karte a.mehr { font-size: .92rem; font-weight: 700; }

/* Listen mit Akzentpunkt */
ul.check { list-style: none; padding-left: 0; }
ul.check li { position: relative; padding-left: 1.5em; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .66em;
  width: .48em; height: .48em; background: var(--sand); border-radius: 50%; }

/* zweispaltige kompakte Liste */
ul.zweispaltig { columns: 2; column-gap: 40px; }
ul.zweispaltig li { break-inside: avoid; }

/* Ablauf-Schritte */
ol.ablauf { list-style: none; counter-reset: schritt; padding-left: 0; }
ol.ablauf > li { counter-increment: schritt; position: relative;
  padding-left: 3.1em; margin-bottom: 1.5em; }
ol.ablauf > li::before {
  content: counter(schritt); position: absolute; left: 0; top: .1em;
  width: 2.1em; height: 2.1em; background: var(--sand); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .92rem;
}
ol.ablauf h3 { margin: 0 0 .3em; }

/* Boxen & Preise */
.box { border: 1px solid var(--linie); border-radius: 6px; padding: 20px 22px;
  background: var(--bg-sanft); margin: 0 0 1.3em; }
.preis { display: flex; justify-content: space-between; gap: 14px;
  padding: .5em 0; border-bottom: 1px dashed var(--linie); flex-wrap: wrap; }
.preis:last-child { border-bottom: 0; }
.preis .betrag { font-weight: 700; color: var(--sand-dunkel); white-space: nowrap; }

/* Akkordeon (Links-Seite, Weiterbildungen) */
details {
  border-bottom: 1px solid var(--linie);
}
details summary {
  cursor: pointer; padding: 14px 4px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--sand-dunkel); font-size: 1.2rem; flex-shrink: 0; }
details[open] summary::after { content: "–"; }
details .d-inhalt { padding: 0 4px 16px; color: var(--text-leise); font-size: .95rem; }
details .d-inhalt p { margin-bottom: .4em; }

/* Formular */
.formular { display: grid; gap: 14px; }
.formular .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formular label { font-size: .92rem; font-weight: 700; display: block; margin-bottom: 4px; }
.formular input, .formular textarea {
  width: 100%; padding: 12px; border: 1px solid var(--beige-tief); border-radius: 4px;
  font: inherit; background: #fff; color: var(--text);
}
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--salbei); border-color: var(--salbei); }

/* Buttons */
.btn {
  display: inline-block; background: var(--salbei); color: #fff;
  padding: 13px 30px; border-radius: 4px; font-weight: 700; font-size: .98rem;
  border: 1px solid var(--salbei); cursor: pointer;
}
.btn:hover { background: var(--salbei-dunkel); border-color: var(--salbei-dunkel); text-decoration: none; }
.btn.sand { background: var(--sand); border-color: var(--sand); }
.btn.sand:hover { background: var(--sand-dunkel); border-color: var(--sand-dunkel); }

/* CTA-Bereich */
.cta { background: var(--bg-sanft); border-top: 1px solid var(--linie);
  padding: clamp(36px, 6vw, 56px) 0; text-align: center; }
.cta h2 { margin-top: 0; }
.cta p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Karte / Maps */
.karte-embed { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--linie);
  border-radius: 6px; margin: 0 0 1.4em; }
.karte-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }

/* ---------- Fusszeile ---------- */
.site-footer { background: var(--beige); padding: clamp(32px, 5vw, 48px) 0 26px;
  font-size: .92rem; color: var(--text-leise); margin-top: clamp(28px, 5vw, 52px); }
.site-footer .spalten { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.site-footer h4 { margin: 0 0 .6em; color: var(--text);
  font-family: "EB Garamond", Georgia, serif; font-size: 1.08rem; font-weight: 500; }
.site-footer a { color: var(--sand-dunkel); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.footer-unten { border-top: 1px solid var(--beige-tief); margin-top: 26px; padding-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  nav.haupt { display: none; flex-basis: 100%; }
  nav.haupt.offen { display: block; padding-bottom: 12px; }
  nav.haupt > ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.haupt > ul > li { border-top: 1px solid var(--beige-tief); }
  nav.haupt a { display: block; padding: 13px 2px; font-size: 1rem; }
  li.hat-unter > a::after { content: ""; }
  ul.unter { display: block; position: static; border: 0; box-shadow: none;
    background: transparent; padding: 0 0 4px 16px; min-width: 0; }
  ul.unter a { padding: 9px 2px; color: var(--text-leise); }
  .site-header .wrap { flex-wrap: wrap; }

  .split { grid-template-columns: 1fr; }
  .ph.portrait { max-width: 100%; }
  ul.zweispaltig { columns: 1; }
  .formular .reihe { grid-template-columns: 1fr; }
  .site-footer .spalten { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

:focus-visible { outline: 3px solid var(--salbei); outline-offset: 2px; }

/* Honeypot-Feld (Spamschutz): visuell und fuer Screenreader unsichtbar */
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Karten-Platzhalter (Google Maps erst auf Klick) */
.karte-platzhalter { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--linie);
  border-radius: 6px; margin: 0 0 1.4em; background: var(--bg-sanft);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.karte-platzhalter.geladen { display: block; padding: 0; aspect-ratio: 16 / 9; }
.karte-platzhalter iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }
.karte-hinweis p { margin: 0 0 .6em; }

/* Eingebundene Fotos: volles Bild, kein Beschnitt, natürliches Seitenverhältnis */
.bild { width: 100%; height: auto; border-radius: 4px; display: block; margin: 0 0 1.4em; }
.bild.portrait { max-width: 380px; }
@media (max-width: 860px) {
  .bild.portrait { max-width: 100%; }
}
