/*
Theme Name: Sarah Marika ganzheitlich
Description: Eigenes Theme im Design „Durchatmen“: Teichfoto, helle Flächen in Creme, zwei waldgrüne Bänder, eine wandernde Welle. Alle Texte der Startseite werden unter „Inhalte“ gepflegt. Keine Cookies, keine fremden Server.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sarah-marika
*/

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --wald: #172a1f; --wald-hell: #24402f; --moos: #3d5f45; --creme: #f4efe2; --papier: #fbf8f1;
  --bernstein: #ebb968; --nebel: #b9c6b6; --tinte: #1c2a20;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zitat: "Newsreader", Georgia, serif;
  --rand: clamp(20px, 5vw, 56px);
  --abstand: clamp(64px, 9vw, 120px);
}

/* Zwei Sorten Flächen. Jede bringt ihre eigenen Farben für Text, Linien, Akzent und Knopf mit. */
.hell, body {
  color-scheme: light;
  --text: var(--tinte); --leise: #55614f; --akzent: var(--moos); --linie: rgba(28, 42, 32, .15);
  --knopf: var(--wald); --knopf-text: var(--creme); --knopf-hover: #24402f;
  --karte: #fff; --feld: #fff; --feld-rand: rgba(28, 42, 32, .3);
  color: var(--text);
}
.dunkel {
  color-scheme: dark;
  --text: var(--creme); --leise: var(--nebel); --akzent: var(--bernstein); --linie: rgba(244, 239, 226, .17);
  --knopf: var(--creme); --knopf-text: var(--wald); --knopf-hover: #fff;
  --karte: var(--wald-hell);
  color: var(--text);
}
.f-creme { background: var(--creme); }
.f-papier { background: var(--papier); }
.f-wald { background: var(--wald); }
.f-wald-hell { background: var(--wald-hell); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--creme);
  font-family: var(--display); font-size: 18px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; hyphens: auto; }
figure { margin: 0; }
small { font-size: 15px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }

.sprung { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--wald); color: var(--creme); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.sprung:focus { top: 12px; }

.innen { max-width: 1160px; margin-inline: auto; padding-left: max(var(--rand), env(safe-area-inset-left, 0px)); padding-right: max(var(--rand), env(safe-area-inset-right, 0px)); }
.innen.schmal { max-width: 860px; }

/* Kopfzeile: liegt auf der Startseite über dem Foto, sonst auf einem grünen Streifen */
.kopf { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding-top: max(18px, env(safe-area-inset-top, 0px)); color: var(--creme); }
body:not(.home) .kopf { position: static; background: var(--wald); padding-bottom: 18px; }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; text-shadow: 0 1px 18px rgba(7, 13, 9, .6); }
.kopf nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.nav-link { display: none; text-decoration: none; opacity: .9; text-shadow: 0 1px 18px rgba(7, 13, 9, .6); }
.nav-link:hover { opacity: 1; text-decoration: underline; }
.nav-knopf { text-decoration: none; font-weight: 600; padding: 9px 20px; border: 1.5px solid rgba(244, 239, 226, .75); border-radius: 999px; background: rgba(23, 42, 31, .4); }
.nav-knopf:hover { background: var(--creme); color: var(--wald); }
@media (min-width: 860px) { .nav-link { display: inline; } }

/* Knopf: rund, ruhig, mit einem Ring, der „atmet“ */
.knopf {
  position: relative; display: inline-block; background: var(--knopf); color: var(--knopf-text);
  font: inherit; font-weight: 600; line-height: 1.3; padding: 15px 30px; border: 0; border-radius: 999px;
  text-decoration: none; text-shadow: none; cursor: pointer; touch-action: manipulation;
}
.knopf::before { content: ""; position: absolute; inset: -6px; border: 1.5px solid var(--knopf); border-radius: 999px; opacity: .4; pointer-events: none; }
.knopf:hover { background: var(--knopf-hover); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: .6; cursor: default; }
.knopfzeile { margin: 40px 0 0; }

/* Welle als Übergang zum nächsten Abschnitt */
.welle { position: absolute; left: 0; bottom: -1px; width: 200%; height: 44px; display: block; z-index: 2; pointer-events: none; }
.bereich.mit-welle { position: relative; overflow: hidden; overflow: clip; padding-bottom: calc(var(--abstand) + 44px); }

/* Einstieg */
.einstieg { position: relative; min-height: min(100svh, 900px); display: grid; align-items: end; overflow: hidden; background: var(--wald); }
.einstieg-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
canvas.einstieg-bild { opacity: 0; transition: opacity .8s ease; }
canvas.einstieg-bild.bereit { opacity: 1; }
.einstieg::after {
  content: ""; position: absolute; inset: 0; background:
    linear-gradient(to bottom, rgba(7, 13, 9, .62), rgba(7, 13, 9, 0) 24%),
    radial-gradient(ellipse 95% 100% at 0% 100%, rgba(7, 13, 9, .6), rgba(7, 13, 9, .28) 55%, transparent 78%),
    linear-gradient(to top, rgba(14, 25, 18, .82) 4%, rgba(14, 25, 18, .55) 48%, rgba(9, 15, 11, .3));
}
.einstieg-text { position: relative; z-index: 3; padding-block: 120px calc(clamp(32px, 5vw, 60px) + 44px); text-shadow: 0 1px 2px rgba(7, 13, 9, .35), 0 2px 28px rgba(7, 13, 9, .5); }
.einstieg h1 { font-weight: 300; font-size: clamp(42px, 8.4vw, 104px); line-height: .98; letter-spacing: -0.035em; max-width: 12ch; hyphens: manual; }
.einstieg h1 b { font-weight: 700; color: var(--bernstein); }
.einstieg-text p { font-size: clamp(18px, 2vw, 22px); font-weight: 300; line-height: 1.45; max-width: 36ch; margin: 20px 0 30px; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.einstieg-termin { font-weight: 500; }

/* Abschnitte */
.bereich { padding-block: var(--abstand); }
.bereich h2 { font-weight: 300; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 26px; max-width: 20ch; }
.bereich h2 b { font-weight: 700; color: var(--akzent); }
.bereich h3 { font-weight: 600; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 8px; }
.bereich p { max-width: 60ch; }

/* Eckdaten */
.einladung { font-family: var(--zitat); font-style: italic; font-size: clamp(25px, 3.3vw, 38px); line-height: 1.22; max-width: 28ch !important; margin: 0 0 clamp(30px, 4vw, 48px); color: var(--akzent); }
.eckdaten { display: grid; gap: 0 40px; margin: 0 0 var(--abstand); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.eckdaten > div { border-top: 1px solid var(--linie); padding: 16px 0 22px; }
.eckdaten dt { color: var(--leise); font-size: 15px; margin-bottom: 4px; }
.eckdaten dd { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.35; }
.eckdaten dd small { display: block; color: var(--leise); font-weight: 400; margin-top: 4px; line-height: 1.4; }

/* Text neben Bild */
.paar { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.paar.oben { align-items: start; }
@media (min-width: 900px) {
  .paar { grid-template-columns: 1.1fr 1fr; }
  .paar.bild-links { grid-template-columns: 1fr 1.05fr; }
  .paar.bild-links > :last-child { order: -1; }
}
.bild-bogen img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 180px 180px 14px 14px; }
figcaption { font-size: 15px; color: var(--leise); margin-top: 8px; }
.frage { font-family: var(--zitat); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; color: var(--akzent); margin-bottom: 20px; }

/* Kurs: hohes Foto links, Themen als ruhige Zeilen rechts */
.kurs-raster { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.kurs-bild img { width: 100%; max-height: 520px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 48%; border-radius: 999px 999px 14px 14px; }
@media (min-width: 900px) {
  .kurs-raster { grid-template-columns: .78fr 1.22fr; }
  .kurs-bild { position: sticky; top: 32px; }
  .kurs-bild img { max-height: none; }
}
.vorspann { font-size: clamp(19px, 2.1vw, 22px); font-weight: 300; line-height: 1.45; max-width: 46ch; }
.themen { margin-top: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--linie); }
.thema { border-top: 1px solid var(--linie); padding: 22px 0 20px; }
.thema p { margin-bottom: .6em; }
.thema > p:last-child, .mehr-inhalt p:last-child { margin-bottom: 0; }

/* Aufklappbarer Rest eines Textes */
.mehr summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--akzent); padding: 6px 0; list-style: none; }
.mehr summary::-webkit-details-marker { display: none; }
.mehr summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mehr[open] summary::after { transform: translateY(2px) rotate(225deg); }
.mehr summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.mehr-inhalt { padding-top: 6px; }

/* Listen mit Strich */
.auftakt { font-size: clamp(19px, 2.1vw, 22px); font-weight: 300; margin-bottom: 20px; }
.striche { list-style: none; margin: 0; padding: 0; max-width: 60ch; }
.striche li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--linie); }
.striche li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 18px; height: 2px; border-radius: 2px; background: var(--akzent); }
@media (min-width: 900px) { .striche.zweispaltig { max-width: none; columns: 2; column-gap: 56px; } .striche.zweispaltig li { break-inside: avoid; } }

/* Zitat mit rundem Foto */
.zitat { display: grid; gap: 28px; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.zitat img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; border-radius: 50%; justify-self: center; }
.zitat blockquote { margin: 0; }
.zitat blockquote p { font-family: var(--zitat); font-style: italic; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.2; max-width: 22ch; margin: 0; }
.zitat cite { display: block; margin-top: 18px; font-style: normal; font-size: 16px; color: var(--akzent); font-weight: 500; }
@media (min-width: 760px) { .zitat { grid-template-columns: 260px 1fr; gap: 56px; } }

/* Ort: ein großes Bild, zwei kleine */
.ort-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ort-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.ort-gross { grid-column: 1 / -1; }
.ort-gross img { aspect-ratio: 16 / 10; border-radius: 12px 12px 12px 120px; }

/* Sarah */
.sarah-raster { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sarah-bild img { width: min(100%, 400px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; border-radius: 999px 999px 14px 14px; }
.gruss { font-family: var(--zitat); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; margin: 26px 0 4px; }
.unterschrift { font-weight: 600; color: var(--akzent); margin: 0; }
@media (min-width: 900px) { .sarah-raster { grid-template-columns: .8fr 1.2fr; } }

/* Für wen */
.fuerwen-raster { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.fuerwen-seite { display: grid; gap: 28px; justify-items: center; }
.fuerwen-seite img { width: min(100%, 300px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (min-width: 900px) { .fuerwen-raster { grid-template-columns: 1.2fr .8fr; } }
.hinweis { border-left: 3px solid var(--akzent); background: var(--karte); border-radius: 0 12px 12px 0; padding: 20px 24px; font-size: 16px; }
.hinweis p { margin: 0; max-width: none; }
.hinweis strong { font-weight: 600; }

/* Preise */
.preistafel { margin: 0; border-top: 1px solid var(--linie); }
.preistafel > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--linie); }
.preistafel dt { font-size: 20px; font-weight: 500; }
.preistafel dt small { display: block; color: var(--leise); font-weight: 400; margin-top: 2px; }
.preistafel dd { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.02em; color: var(--akzent); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.preistafel dd small { display: block; font-size: 15px; letter-spacing: 0; color: var(--leise); font-weight: 400; }

/* Anfrage */
.anfrage h2 { max-width: 24ch; }
.anfrage-raster { display: grid; gap: clamp(36px, 5vw, 72px); margin-top: 12px; align-items: start; }
@media (min-width: 900px) { .anfrage-raster { grid-template-columns: 1.5fr 1fr; } }
.feldreihe { display: grid; gap: 0 22px; }
@media (min-width: 620px) { .feldreihe { grid-template-columns: 1fr 1fr; } }
.feld { margin-bottom: 20px; }
.feld label { display: block; font-weight: 500; font-size: 16px; margin-bottom: 7px; }
.frei { font-weight: 400; color: var(--leise); }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld select, .feld textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--feld);
  border: 1.5px solid var(--feld-rand); border-radius: 10px; padding: 13px 14px; min-height: 52px;
}
.feld select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233d5f45' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 12px; }
.feld textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--moos); }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--moos); outline-offset: 1px; border-color: var(--moos); }
.feld [aria-invalid="true"] { border-color: #b3261e; }
.fehler { color: #a3241c; font-size: 15px; margin: 6px 0 0; }
.fehler:empty { display: none; }
.haken { display: grid !important; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; line-height: 1.45; cursor: pointer; }
.haken input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--moos); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 30px; }
.formular-fuss small { color: var(--leise); }
.meldung { margin: 22px 0 0; padding: 14px 18px; border-radius: 10px; font-weight: 500; }
.meldung:empty { display: none; }
.meldung.gut { background: #e3ecd9; border: 1px solid var(--moos); }
.meldung.schlecht { background: #f8e3df; border: 1px solid #b3261e; }
.direkt { background: var(--karte); border-radius: 14px; padding: clamp(24px, 3vw, 34px); }
.direkt h3 { font-size: 22px; margin-bottom: 14px; }
.direkt .name { font-weight: 500; margin-bottom: 18px; }
.direkt p { margin-bottom: 14px; }
.direkt p:last-child { margin-bottom: 0; }
.direkt span { display: block; font-size: 15px; color: var(--leise); }
.direkt a { display: inline-block; padding-block: 4px; color: var(--akzent); font-weight: 600; overflow-wrap: anywhere; }

/* Fuß */
.fuss { background: var(--wald); color: var(--nebel); padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); font-size: 16px; }
.fuss .innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.fuss nav { display: flex; gap: 24px; }
.fuss a { padding-block: 6px; }

/* Textseiten (Impressum, Datenschutz) */
.textseite { padding-block: clamp(48px, 7vw, 88px) var(--abstand); }
.textseite h1 { font-weight: 300; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 36px; }
.textseite h2 { font-weight: 600; font-size: 22px; line-height: 1.25; margin: 40px 0 12px; }
.textseite p, .textseite li { max-width: 68ch; }
.textseite mark { background: #f6e27a; color: #1c2a20; padding: 1px 5px; border-radius: 3px; }
.textseite .entwurf { border: 1.5px dashed var(--moos); border-radius: 10px; padding: 16px 20px; }

/* Bewegung: nur wenn sie nicht stört */
@media (prefers-reduced-motion: no-preference) {
  .welle { animation: welle 45s linear infinite; }
  .knopf::before { animation: atem 8s ease-in-out infinite; }
  .einstieg-bild { animation: kamera 26s ease-in-out infinite alternate; }
  .knopf, .nav-knopf { transition: background-color .2s ease, color .2s ease, transform .12s ease; }
  @keyframes welle { to { transform: translateX(-50%); } }
  @keyframes atem { 0%, 100% { transform: scale(1); opacity: .4; } 50% { transform: scale(1.06, 1.22); opacity: 0; } }
  @keyframes kamera { from { transform: scale(1); } to { transform: scale(1.14) translateY(-2%); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (hover: none) { .knopf:hover { background: var(--knopf); } .nav-knopf:hover { background: rgba(23, 42, 31, .4); color: inherit; } }
