/* ==========================================================================
   SP-Naturcoaching – Stylesheet
   Aufbau:
     1. Schriften
     2. Variablen (Farben, Abstände)
     3. Basis / Reset
     4. Kopfbereich & Navigation
     5. Seitenkopf (Bild als Hintergrund mit Text darüber / ohne Bild)
     6. Inhaltsbereiche (Sektionen, weiche Bilder, Themen-Kacheln)
     7. Kundenstimmen
     8. Seiten-spezifisch (Über mich, Kontakt, Rechtstexte)
     9. Fußbereich
    10. Responsive Anpassungen
   ========================================================================== */

/* 1. Schriften (lokal eingebunden, keine externen Anfragen) ---------------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Variablen ------------------------------------------------------------- */
:root {
  --gruen-dunkel: #2e5b2f;
  --gruen-mittel: #3d7a3d;
  --gruen-hell: #6faf6a;
  --gruen-button: #4d7c4a;
  --gruen-transparent: rgba(46, 91, 47, 0.1);
  --gruen-zart: #eef3ec;
  --text: #151515;
  --text-leise: #575757;
  --hintergrund: #f8f8f8;
  --weiss: #ffffff;
  --rahmen: #d9ded9;

  --schrift-titel: "Playfair Display", Georgia, "Times New Roman", serif;
  --schrift-text: "Source Sans Pro", Arial, Helvetica, sans-serif;

  --breite-max: 1140px;
  --breite-text: 760px;
  --abstand: 1.5rem;
  --radius: 6px;
  --radius-gross: 18px;
  --schatten: 0 6px 24px rgba(21, 41, 21, 0.08);
}

/* 3. Basis / Reset --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.75em;
  color: var(--gruen-dunkel);
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--gruen-dunkel);
}

a:hover,
a:focus-visible {
  color: var(--gruen-mittel);
}

:focus-visible {
  outline: 2px solid var(--gruen-mittel);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2 * var(--abstand), var(--breite-max));
  margin-inline: auto;
}

.sprunglink {
  position: absolute;
  left: -9999px;
}

.sprunglink:focus {
  left: var(--abstand);
  top: var(--abstand);
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--weiss);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--gruen-button);
  border-radius: var(--radius);
  background: var(--gruen-button);
  color: var(--weiss);
  font-family: var(--schrift-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover,
.button:focus-visible {
  border-color: var(--gruen-dunkel);
  background: var(--gruen-dunkel);
  color: var(--weiss);
}

.button--hell {
  background: transparent;
  color: var(--gruen-button);
}

.button--hell:hover,
.button--hell:focus-visible {
  color: var(--weiss);
}

.button + p {
  margin-top: 1.5rem;
}

/* Textlink mit Pfeil, z. B. in Kacheln */
.pfeillink {
  font-weight: 600;
  text-decoration: none;
}

.pfeillink::after {
  content: " →";
}

.pfeillink:hover,
.pfeillink:focus-visible {
  text-decoration: underline;
}

/* 4. Kopfbereich & Navigation --------------------------------------------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(248, 248, 248, 0.96);
  border-bottom: 1px solid var(--rahmen);
}

.kopf__inhalt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.6rem;
}

.kopf__logo img {
  width: 170px;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.navigation a:hover,
.navigation a:focus-visible,
.navigation a[aria-current="page"] {
  background: var(--gruen-transparent);
  color: var(--gruen-dunkel);
}

/* 5. Seitenkopf ----------------------------------------------------------- */

/* Bild als Hintergrund, Text darüber */
.buehne {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(440px, 72vh, 680px);
  padding: 4rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--weiss);
  text-align: center;
}

.buehne--klein {
  min-height: clamp(320px, 48vh, 460px);
}

.buehne__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Abdunkeln für Lesbarkeit + weicher Übergang in den Seitenhintergrund */
.buehne::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(18, 38, 19, 0.45) 0%, rgba(18, 38, 19, 0.5) 70%, rgba(248, 248, 248, 0) 88%),
    linear-gradient(to top, var(--hintergrund) 0%, rgba(248, 248, 248, 0) 18%);
}

.buehne__inhalt {
  max-width: 820px;
}

.buehne h1 {
  color: var(--weiss);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.buehne p {
  font-size: 1.15rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.buehne .motto {
  color: #e3f0df;
}

.buehne .button {
  margin-top: 0.5rem;
  border-color: var(--weiss);
  background: var(--weiss);
  color: var(--gruen-dunkel);
}

.buehne .button:hover,
.buehne .button:focus-visible {
  border-color: var(--weiss);
  background: transparent;
  color: var(--weiss);
}

/* Seitenkopf ohne Bild (Impressum, Datenschutz) */
.seitenkopf {
  max-width: var(--breite-text);
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.seitenkopf h1 {
  margin-bottom: 0;
}

/* 6. Inhaltsbereiche ------------------------------------------------------- */
.sektion {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.sektion--weiss {
  background: var(--weiss);
}

.sektion--zart {
  background: var(--gruen-zart);
}

.zentriert {
  max-width: var(--breite-text);
  margin-inline: auto;
  text-align: center;
}

.einleitung {
  max-width: var(--breite-text);
  margin-inline: auto;
}

.motto {
  color: var(--gruen-mittel);
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-style: italic;
}

.oberzeile {
  margin-bottom: 0.4rem;
  color: var(--gruen-mittel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unterzeile {
  color: var(--text-leise);
  font-style: italic;
}

/* Weiche Bilder, die im Text stehen (Text fließt um das Bild) */
.text-mit-bild::after {
  content: "";
  display: block;
  clear: both;
}

.bild-weich {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 62%, transparent 100%);
}

.bild-rechts,
.bild-links {
  width: min(44%, 400px);
  margin-bottom: 1rem;
  shape-outside: ellipse(50% 50%);
}

.bild-rechts {
  float: right;
  margin-left: 2rem;
}

.bild-links {
  float: left;
  margin-right: 2rem;
}

/* Coaching-Themen als kompakte Kacheln */
.themen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thema {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-gross);
  background: var(--weiss);
  box-shadow: var(--schatten);
}

.thema__bild {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  /* Bild läuft unten weich in die Kachel aus */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.thema__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.25rem 1.5rem 1.5rem;
}

.thema h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.thema .unterzeile {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.thema p {
  font-size: 0.98rem;
}

.thema .pfeillink {
  margin-top: auto;
}

.thema--hinweis {
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--gruen-dunkel);
  color: var(--weiss);
  text-align: center;
}

.thema--hinweis h3 {
  color: var(--weiss);
}

.thema--hinweis .button {
  align-self: center;
  border-color: var(--weiss);
  background: var(--weiss);
  color: var(--gruen-dunkel);
}

.thema--hinweis .button:hover,
.thema--hinweis .button:focus-visible {
  background: transparent;
  color: var(--weiss);
}

/* Drei Merkmale nebeneinander (Seite „Natur“) */
.merkmale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merkmal {
  padding: 1.75rem;
  border-radius: var(--radius-gross);
  background: var(--weiss);
  box-shadow: var(--schatten);
}

.merkmal h3 {
  font-size: 1.2rem;
}

.merkmal p:last-child {
  margin-bottom: 0;
}

/* 7. Kundenstimmen --------------------------------------------------------- */
.stimmen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stimme {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: var(--radius-gross);
  background: var(--weiss);
  box-shadow: var(--schatten);
}

.stimme blockquote {
  flex: 1;
  margin: 0 0 1rem;
  font-family: var(--schrift-titel);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
}

.stimme blockquote::before {
  content: "“";
  display: block;
  height: 1.9rem;
  color: var(--gruen-hell);
  font-size: 3.5rem;
  font-style: normal;
  line-height: 1;
}

.stimme figcaption {
  color: var(--gruen-dunkel);
  font-weight: 600;
}

/* 7b. Häufige Fragen (aufklappbar, ohne JavaScript) ----------------------- */
.faq {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.faq__eintrag {
  border-radius: var(--radius);
  background: var(--weiss);
  box-shadow: var(--schatten);
}

.faq__eintrag summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  color: var(--gruen-dunkel);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__eintrag summary::-webkit-details-marker {
  display: none;
}

.faq__eintrag summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--gruen-hell);
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.faq__eintrag[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__eintrag summary:hover {
  color: var(--gruen-mittel);
}

.faq__eintrag p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
}

/* 8a. Über mich: Lebenslauf-Karten ---------------------------------------- */
.stationen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: station;
}

.station {
  padding: 1.5rem 1.5rem 1.1rem;
  border-radius: var(--radius-gross);
  background: var(--weiss);
  box-shadow: var(--schatten);
  counter-increment: station;
}

.station::before {
  content: counter(station, decimal-leading-zero);
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gruen-hell);
  font-family: var(--schrift-titel);
  font-size: 2rem;
  line-height: 1;
}

.station h3 {
  font-size: 1.15rem;
}

.station ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.98rem;
}

.station li::marker {
  color: var(--gruen-hell);
}

/* 8b. Kontakt ------------------------------------------------------------- */
.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.kontaktdaten {
  margin: 0 0 1.5rem;
  font-style: normal;
}

.kontaktdaten dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  margin: 1rem 0 0;
}

.kontaktdaten dt {
  font-weight: 600;
}

.kontaktdaten dd {
  margin: 0;
}

.formular {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-gross);
  background: var(--weiss);
  box-shadow: var(--schatten);
}

.formular__feld {
  display: grid;
  gap: 0.35rem;
}

.formular label {
  font-weight: 600;
}

.formular input[type="text"],
.formular input[type="email"],
.formular textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b9c2b9;
  border-radius: var(--radius);
  background: var(--hintergrund);
  color: var(--text);
  font: inherit;
}

.formular input:focus,
.formular textarea:focus {
  border-color: var(--gruen-mittel);
  outline: 2px solid var(--gruen-transparent);
}

.formular textarea {
  resize: vertical;
}

.formular__zustimmung {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400 !important;
}

.formular__zustimmung input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--gruen-button);
  flex-shrink: 0;
}

.formular__falle {
  position: absolute;
  left: -9999px;
}

.formular__hinweis {
  margin: 0;
  color: var(--text-leise);
  font-size: 0.9rem;
}

/* 8c. Rechtstexte --------------------------------------------------------- */
.rechtstext {
  max-width: var(--breite-text);
}

.rechtstext h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.rechtstext address {
  margin-bottom: 1em;
  font-style: normal;
}

/* Markierung für noch auszufüllende Stellen in Vorlagen */
.platzhalter {
  padding: 0 0.2em;
  background: #fff3b0;
}

/* 9. Fußbereich ----------------------------------------------------------- */
.fuss {
  padding-block: 3rem 1.5rem;
  background: var(--gruen-dunkel);
  color: var(--hintergrund);
  font-size: 0.95rem;
}

.fuss__raster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.fuss h2 {
  margin-bottom: 0.75rem;
  color: var(--weiss);
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fuss__logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--hintergrund);
}

.fuss__logo img {
  width: 140px;
}

.fuss p {
  margin: 0;
}

.fuss ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss a {
  color: var(--hintergrund);
}

.fuss a:hover,
.fuss a:focus-visible {
  color: var(--gruen-hell);
}

.fuss__unten {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(248, 248, 248, 0.2);
  font-size: 0.88rem;
  opacity: 0.85;
}

/* 10. Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .themen,
  .stimmen,
  .merkmale {
    grid-template-columns: repeat(2, 1fr);
  }

  .stationen {
    grid-template-columns: repeat(2, 1fr);
  }

  .fuss__raster {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .themen,
  .stimmen,
  .merkmale,
  .stationen,
  .zweispaltig,
  .fuss__raster {
    grid-template-columns: 1fr;
  }

  .bild-rechts,
  .bild-links {
    float: none;
    width: min(100%, 340px);
    margin: 0 auto 1rem;
  }

  .kopf {
    position: static;
  }

  .kopf__inhalt {
    justify-content: center;
  }

  .kopf__logo img {
    width: 140px;
  }

  .navigation ul {
    justify-content: center;
  }

  .navigation a {
    padding: 0.4rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
