/* ==========================================================================
   Naturheilpraxis Kirsten Thagaard – Stylesheet
   Aufbau:
   1. Schriften
   2. Farben und Grundwerte (hier Farben zentral aendern)
   3. Grundlayout und Typografie
   4. Hilfsklassen (Abstaende, Breiten)
   5. Buttons
   6. Header und Navigation
   7. Footer
   8. Startseite
   9. Animationen und "Nach oben"-Button
   ========================================================================== */


/* 1. Schriften ------------------------------------------------------------- */
/* Variable Schriften: eine Datei enthaelt alle Schriftstaerken. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/nunito-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/nunito-sans-italic.woff2") format("woff2");
}


/* 2. Farben und Grundwerte ------------------------------------------------- */
:root {
  --font-text: "Nunito Sans", sans-serif;
  --font-heading: "Cormorant Garamond", serif;

  --neutral-0: #fff;
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  --brand-primary: #688181;    /* Salbeigruen: Ueberschriften, Links, Buttons */
  --brand-secondary: #ACBABA;  /* helles Graugruen: Hover, Menue */
  --beige: #e9e4db;
  --beige-hell: #F5F4EF;       /* Seitenhintergrund */
  --bronze: #806a44;           /* Footer-Leiste */
  --footer: #7e9292;           /* Footer-Hintergrund */
  --sterne: #c9ae20;           /* Bewertungssterne */

  --padding-seite: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}


/* 3. Grundlayout und Typografie -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--beige-hell);
  color: var(--neutral-700);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word; /* sehr lange Woerter umbrechen statt ueberstehen */
}
@media (max-width: 768px) {
  body { font-size: 19px; }
}

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

/* Eigene Scrollleiste (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 15px; }
::-webkit-scrollbar-track { box-shadow: inset 0 0 5px #ccc; }
::-webkit-scrollbar-thumb { background: #ccc7c7; border-radius: 8px; }

/* Links ohne Unterstrich; beim Hover nehmen sie die Textfarbe an */
a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out;
}
a:is(:hover, :focus, :active) { color: var(--neutral-700); }

p { margin: 0 0 1.5em; text-wrap: pretty; }
p:last-child:last-of-type { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 20px;
  text-wrap: balance;
}
h2, h3, h4, h5 { hyphens: auto; }
h1 { font-size: clamp(2.25rem, 2.0568rem + 0.6vw, 2.625rem); color: var(--neutral-700); }
h2 { font-size: clamp(2rem, 1.8409rem + 0.5vw, 2.3125rem); color: var(--brand-primary); }
h3 { font-size: clamp(1.625rem, 1.4659rem + 0.5vw, 1.9375rem); }
h4 { font-size: clamp(1.375rem, 1.2841rem + 0.3vw, 1.5625rem); color: var(--brand-primary); line-height: 1.5; }
h5, h6 { color: var(--brand-primary); }

ul, ol { margin: 0 0 1.5em 1.2em; padding: 0; }
li { text-wrap: pretty; }
ul li::marker, ol li::marker { color: var(--brand-primary); }

/* Aeusserer Rahmen: Inhalt maximal 1920px breit */
.site-wrapper { width: 100%; max-width: 1920px; margin-inline: auto; }

/* Sprunglink fuer Tastatur-Nutzer, nur bei Fokus sichtbar */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--neutral-0); padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

.visually-hidden {
  clip: rect(0 0 0 0); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden;
  position: absolute; white-space: nowrap;
}


/* 4. Hilfsklassen ---------------------------------------------------------- */
/* Innenabstaende fuer Abschnitte */
.section-xs { padding: 1rem var(--padding-seite); }
.section-s  { padding: 1.5rem var(--padding-seite); }
.section-m  { padding: clamp(1.5rem, 1.197rem + 1.515vw, 2.5rem) var(--padding-seite); }
.section-d  { padding: clamp(3rem, 2.394rem + 3.03vw, 5rem) var(--padding-seite); }
.section-l  { padding: clamp(4.5rem, 3.591rem + 4.545vw, 7.5rem) var(--padding-seite); }

/* Inhaltsbreiten */
.wrapper-xs { max-width: 632px; width: 100%; margin-inline: auto; }
.wrapper-s  { max-width: 848px; width: 100%; margin-inline: auto; }
.wrapper-m  {
  max-width: 1080px; margin-inline: auto;
  padding-inline: clamp(20px, 5vw - 14px, 56px);
}

.text-center { text-align: center; }


/* 5. Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
  padding: 8px 24px;
  border: 2px solid;
  border-radius: 5px;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.5s ease;
}
.button svg { width: 1em; height: 1em; fill: currentColor; }

.button-primary { color: var(--brand-primary); border-color: var(--brand-primary); }
.button-primary:is(:hover, :focus) { background-color: var(--brand-primary); color: var(--neutral-0); }

.button-secondary { color: var(--neutral-700); border-color: var(--neutral-700); }
.button-secondary:is(:hover, :focus) {
  background-color: var(--brand-secondary); border-color: var(--brand-secondary); color: var(--neutral-0);
}

.button-white { color: var(--neutral-0); border-color: var(--neutral-0); }
.button-white:is(:hover, :focus) {
  background-color: var(--neutral-0); border-color: var(--brand-primary); color: var(--brand-secondary);
}

.button-akzent { color: var(--bronze); border-color: var(--bronze); }
.button-akzent:is(:hover, :focus) { background-color: var(--bronze); color: var(--neutral-0); }


/* 6. Header und Navigation ------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 1rem var(--padding-seite);
  background-color: var(--neutral-50);
  transition: transform 0.3s ease;
}
/* Mitlaufender Header: erscheint beim Hochscrollen (gesteuert von main.js) */
.site-header.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-logo { display: block; width: 100%; max-width: 200px; }
.site-logo img { display: inline; width: 100%; height: auto; }

.main-nav { margin-left: auto; display: flex; align-items: center; }

.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li { position: relative; margin: 0; padding: 0; list-style: none; font-size: 0.9em; }
.menu a,
.menu .submenu-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.7em clamp(10px, -45.625px + 4.6875vw, 20px);
  color: var(--neutral-900);
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu .submenu-button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
}
.menu .submenu-button svg { width: 1em; height: 1em; fill: currentColor; margin-top: 3px; }
.menu li:is(:hover, :focus-within) > :is(a, .submenu-button),
.menu a[aria-current="page"] { color: var(--brand-primary); }

/* Untermenue "Weitere Angebote" */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--neutral-0);
  width: 260px;
  z-index: 100;
}
.submenu li { font-size: 1em; }
.submenu li:is(:hover, :focus-within) > a { color: var(--brand-secondary); }

.menu-toggle {
  display: none;
  align-items: center;
  padding: 10px;
  background: none;
  border: 0;
  color: var(--neutral-900);
  cursor: pointer;
  z-index: 2;
}
.menu-toggle:is(:hover, :focus) { color: var(--brand-primary); }
.menu-toggle svg { width: 25px; height: 25px; fill: currentColor; }
.menu-toggle .icon-close { display: none; }

.nav-button { font-size: 0.9em; padding-inline: 12px; }

/* Desktop ab 1025px */
@media (min-width: 1025px) {
  .main-nav { transform: translateY(14px); }
  .menu-container { display: flex; align-items: center; column-gap: 20px; }
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }
  .has-submenu:is(:hover, :focus-within) > .submenu { opacity: 1; visibility: visible; }
  .menu .submenu-button svg { margin-left: -12px; }
}

/* Schrift im Menue etwas kleiner, wenn es eng wird */
@media (min-width: 1025px) and (max-width: 1180px) {
  .menu a, .menu .submenu-button, .nav-button { font-size: clamp(15px, 22.66px - 0.4808vw, 16px); }
}
@media (min-width: 1181px) and (max-width: 1335px) {
  .menu a, .menu .submenu-button, .nav-button { font-size: clamp(15px, -0.974px + 1.2987vw, 16px); }
}

/* Mobil bis 1024px: Menue als Overlay unter dem Header */
@media (max-width: 1024px) {
  .site-header { justify-content: space-between; }
  .menu-toggle { display: flex; }
  .menu-container {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-hoehe, 80px);
    bottom: 0;
    overflow-y: auto;
    background-color: var(--neutral-0);
    padding-bottom: 60px;
  }
  .nav-open .menu-container { display: block; }
  .nav-open .menu-toggle { color: var(--brand-primary); }
  .nav-open .menu-toggle .icon-open { display: none; }
  .nav-open .menu-toggle .icon-close { display: block; }

  .menu { flex-direction: column; }
  .menu li { font-size: 1em; background-color: var(--brand-secondary); }
  .menu a, .menu .submenu-button { color: var(--neutral-0); }
  .menu li:is(:hover, :focus-within),
  .menu li:has(> a[aria-current="page"]) { background-color: var(--beige-hell); }
  .menu li:is(:hover, :focus-within) > :is(a, .submenu-button),
  .menu a[aria-current="page"] { color: var(--neutral-900); }

  .submenu { display: none; width: 100%; }
  .has-submenu.is-open > .submenu { display: block; }
  .submenu li { padding-left: 20px; }

  .nav-button {
    display: flex;
    width: 100%;
    border: 0;
    border-radius: 0;
    font-size: 1em;
    background-color: var(--brand-primary);
    color: var(--neutral-0);
    padding: 0.7em clamp(10px, -45.625px + 4.6875vw, 20px);
  }
}


/* 7. Footer ---------------------------------------------------------------- */
.footer-main {
  background-color: var(--footer);
  color: var(--neutral-0);
  padding: 4em clamp(80px, 44.944vw - 490.38px, 200px);
}
.footer-columns { display: flex; column-gap: 2rem; row-gap: 2rem; }
.footer-col { width: 33%; }
.footer-col h2 {
  font-size: clamp(1.375rem, 1.2841rem + 0.3vw, 1.5625rem); /* Groesse wie h4 */
  color: var(--neutral-0);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 10px;
}
.footer-col:first-child h2 { line-height: 36px; }
.footer-col a { color: var(--neutral-0); text-decoration: none; }
.footer-col-kontakt { border-right: 2px solid var(--neutral-0); }
.footer-col-kontakt .button { margin-top: -10px; }
.footer-col-links { display: flex; flex-direction: column; width: 20%; margin-left: clamp(0px, 11.236vw - 132.58px, 40px); }
.footer-col-links p { margin-bottom: 5px; }

.footer-bar {
  background-color: var(--bronze);
  color: var(--neutral-0);
  padding: 1.5em clamp(80px, 44.944vw - 490.38px, 200px);
}
.footer-bar-inhalt { font-size: 0.9em; }
.footer-bar a { color: var(--neutral-0); text-decoration: none; }
.footer-bar-inhalt { display: flex; flex-direction: column; row-gap: 5px; }
.footer-bar ul { display: inline-flex; column-gap: 1rem; list-style: none; margin: 0; }

@media (max-width: 1024px) {
  .footer-columns { flex-direction: column; }
  .footer-col, .footer-col-links { width: 100%; margin-left: 0; }
  .footer-col-kontakt { border-right: 0; }
}
@media (max-width: 767px) {
  .footer-main { padding-inline: 40px; }
  .footer-col h2 { font-size: 32px; margin-top: 20px; }
  .footer-col-kontakt { margin-top: -10px; }
  .footer-col-links { margin-top: 10px; }
  .footer-bar { padding: 0; }
  .footer-bar-inhalt { padding: 1rem 40px; }
  .footer-bar-inhalt > * { font-size: 0.85em; }
}


/* 8. Startseite ------------------------------------------------------------ */

/* Titelbild mit Textkasten */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(82vh, 700px);
  overflow: hidden;
  background-image: url("../img/kirsten-thagaard-heilpraktikerin-naturheilpraxis-berlin-zehlendorf.webp");
  background-position: 72% 7%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-box {
  width: 500px;
  max-width: 100%;
  margin-left: clamp(32px, 5vw, 120px);
  margin-right: 80px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px 30px;
  color: var(--brand-primary);
  letter-spacing: 0.06em;
}
.hero-kicker { font-family: var(--font-heading); font-size: 20px; font-weight: 400; }
.hero-title  { font-family: var(--font-heading); font-size: 36px; font-weight: 400; margin-top: 10px; }
.hero-list   { margin: 0 0 1.5em 1.2em; padding: 20px 0 0 10px; }
.hero-list li { font-size: 18px; }
@media (max-width: 1024px) {
  .hero { align-items: flex-start; padding: 80px 40px 40px; }
  .hero-box { margin-left: 20px; margin-top: 220px; width: 400px; }
  .hero-list li { padding-bottom: 5px; }
}
@media (max-width: 767px) {
  .hero { background-position: 73% 23%; padding: 80px 20px 20px; }
  .hero-box { margin: 280px 20px 0; width: auto; padding: 24px; letter-spacing: 0.05em; }
  .hero-kicker { font-size: 18px; line-height: 1.1; }
  .hero-title { font-size: 30px; line-height: 1.1; }
  .hero-list { padding-left: 0; line-height: 1.1; }
}

.intro { padding-bottom: 0; }

/* Bild links, Text rechts */
.bild-text {
  display: flex;
  align-items: center;
  padding-block: 40px;
}
.bild-text-bild {
  width: 50%;
  height: 460px;
  margin: 40px;
  overflow: hidden;
  border-radius: 10px 100px;
}
.bild-text-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.bild-text-text { width: 50%; padding: 40px; }
.button-group { display: flex; column-gap: 1rem; margin-top: 2rem; }
@media (max-width: 1024px) {
  .bild-text { flex-wrap: wrap; }
  .bild-text-bild { width: 100%; height: 500px; margin: 0; }
  .bild-text-bild img { object-position: 100% 50%; }
  .bild-text-text { width: 100%; padding: 80px 0; }
}
@media (max-width: 767px) {
  .bild-text-bild { height: 300px; }
  .bild-text-bild img { object-position: 60% 50%; }
  .bild-text-text { padding: 60px 20px 80px; }
  .button-group { flex-wrap: wrap; row-gap: 40px; }
}

/* Vier Kacheln mit Hintergrundbild */
.kacheln-section { margin-inline: 4rem; position: relative; z-index: 10; }
.kacheln {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 40px;
  font-size: 1.2em;
  container-type: inline-size;
}
.kachel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc((100cqw - 2rem) / 3);
  padding: clamp(1.5rem, 14%, 5rem);
  color: var(--neutral-0);
  text-decoration: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.14); /* leichte Abdunklung */
  transition: box-shadow 0.5s ease;
  hyphens: auto;
  overflow-wrap: break-word;
}
.kachel:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.5); color: var(--neutral-0); }
.kachel:focus-visible { outline: 3px solid var(--neutral-0); outline-offset: -8px; }
.kachel-titel {
  color: var(--neutral-0);
  font-size: clamp(2rem, 1.8409rem + 0.5vw, 2.3125rem); /* Groesse wie h2 */
  text-wrap: stable;
}
.kachel-text {
  max-width: 20em;
  margin-bottom: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.kachel:is(:hover, :focus-visible) .kachel-text { opacity: 1; }
/* Auf Touch-Geraeten (ohne Hover) Text und Abdunklung immer zeigen */
@media (hover: none) {
  .kachel { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.5); }
  .kachel-text { opacity: 1; }
}
.kachel-colon   { background-image: url("../img/bauchmassage-colon-hydro-therapie.webp"); }
.kachel-bioresonanz { background-image: url("../img/bioresonanz-geraet-naturheilpraxis-berlin-zehlendorf.webp"); }
.kachel-infusion { background-image: url("../img/infusionsflasche-vitamin-infusion.webp"); background-position: 81% 71%; }
.kachel-ernaehrung { background-image: url("../img/stoffwechselprogramm-gesund-und-aktiv.webp"); background-position: 37% 60%; }
@media (max-width: 1199px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kachel { min-height: calc((100cqw - 1rem) / 2); }
}
@media (max-width: 1024px) {
  .kacheln-section { margin-inline: 1rem; }
}
@media (max-width: 767px) {
  .kacheln-section { margin: 0; padding-inline: 20px; }
  .kacheln { grid-template-columns: 1fr; }
  .kachel { min-height: 100cqw; padding: 2rem 1.5rem; }
}

/* Patientenstimmen-Slider */
.stimmen { margin-bottom: 12vh; }
.stimmen h2 { margin-bottom: 60px; text-align: center; }
.slider {
  position: relative;
  width: 80vw;
  margin-inline: auto;
}
.slider-viewport { overflow: hidden; }
.slider-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
}
.slide {
  flex: 0 0 calc(33.333% - 1rem * 2 / 3);  /* Desktop: 3 Karten */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 540px;
  padding: 3%;
  text-align: center;
  background-color: var(--neutral-0);
  border-radius: 15px;
}
.slide-sterne { color: var(--sterne); width: 6rem; height: 6rem; margin: -20px auto -10px; }
.slide-sterne svg { width: 100%; height: 100%; fill: currentColor; }
.slide-name { margin: 0; }
@media (max-width: 1366px) {
  .slide { flex-basis: calc(50% - 1rem / 2); }   /* Tablet: 2 Karten */
}
@media (max-width: 1024px) {
  .slide { flex-basis: 100%; padding-block: 6%; } /* Mobil: 1 Karte */
}
@media (max-width: 767px) {
  .stimmen { margin-inline: 4vw; padding-bottom: 100px; }
  .slide { min-height: 640px; padding: 24px; }
}

.slider-button {
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--neutral-0);
  color: var(--brand-primary);
  cursor: pointer;
}
.slider-button:hover { background: var(--brand-secondary); color: var(--neutral-0); }
.slider-button svg { width: 60%; height: 60%; fill: currentColor; }
.slider-prev { left: 0; transform: translateX(-3.5rem) translateY(-50%); }
.slider-next { right: 0; transform: translateX(3.5rem) translateY(-50%); }

.slider-dots {
  position: absolute;
  bottom: -3.5rem;
  width: 100%;
  display: none;
  justify-content: center;
  gap: 0.5rem;
}
.slider-dots button {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  opacity: 0.25;
  cursor: pointer;
}
.slider-dots button[aria-current="true"] { opacity: 1; }
@media (max-width: 768px) {
  .slider-button { display: none; }
  .slider-dots { display: flex; }
}


/* 8b. Bausteine fuer Unterseiten ------------------------------------------- */

/* Titelbild oben auf Unterseiten. Bild und Ausschnitt stehen direkt im HTML (style="..."). */
.titelbild {
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
}
.titelbild-gross {
  min-height: 50vh;
  padding: clamp(6rem, 4.788rem + 6.061vw, 10rem) var(--padding-seite);
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 1024px) {
  .titelbild { min-height: 20vh; }
  .titelbild-gross { min-height: 40vh; }
}

/* Bild und Text nebeneinander (halbe/halbe Breite), mobil untereinander */
.split { display: flex; align-items: center; }
.split-bild { display: flex; width: 50%; flex: 1 1 50%; overflow: hidden; height: 500px; }
.split-bild img { width: 100%; height: 100%; object-fit: cover; }
.split-text { width: 50%; padding: 40px; }
@media (max-width: 1024px) {
  .split { flex-direction: column; }
  .split-bild, .split-text { width: 100%; }
  .split-text { padding-left: 30px; }
}
@media (max-width: 767px) {
  .split-text { padding-left: 20px; }
}

/* Variante mit gruenem Hintergrund und weisser Schrift */
.split-gruen { background-color: var(--brand-primary); color: var(--neutral-0); }
.split-gruen :is(h2, h3) { color: var(--neutral-0); }
.split-gruen h3 { margin-top: 40px; }

/* Einleitung mit zentrierter Ueberschrift (Seitentitel) */
.titel-text { text-align: center; }
.titel-text h1, .preise h1 { font-weight: 400; }

/* Abschnitt mit weissem Hintergrund */
.bg-weiss { background-color: var(--neutral-0); }
.bg-beige { background-color: var(--beige); }

/* Rechtstexte (Impressum, Datenschutz) */
.rechtstext { padding-bottom: 80px; }

/* Gruppe von Buttons mit Symbol */
.buttons { display: flex; align-items: center; gap: 1em; margin-top: 30px; }
@media (max-width: 767px) {
  .buttons { flex-direction: column; align-items: flex-start; }
}

hr {
  height: 0;
  border: 0;
  border-top: 2px solid #808080;
  margin: 40px 0;
}


/* 8c. Ueber mich ---------------------------------------------------------- */
.ueber-intro { background-color: var(--brand-primary); }
.ueber-intro .split-bild { height: 600px; }
.ueber-intro .split-text { padding: 60px; color: var(--neutral-0); }
.ueber-intro h1 {
  color: var(--neutral-0);
  font-size: clamp(2rem, 1.8409rem + 0.5vw, 2.3125rem); /* Groesse wie h2 */
}

.ueber-werte .split-bild img { object-position: 99% 50%; }

.schwerpunkte { text-align: center; }
.schwerpunkte h2 { margin-bottom: 40px; }
.schwerpunkte p { font-size: 1.1em; }

/* Ausbildungen: Jahr links, Text rechts, mobil untereinander */
.ausbildungen { border-top: 1px solid rgba(0, 0, 0, 0.12); }
.ausbildung {
  display: grid;
  grid-template-columns: 130px 1fr;
  column-gap: 24px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.ausbildung-jahr { font-weight: 700; }
@media (max-width: 767px) {
  .ausbildung { grid-template-columns: 1fr; row-gap: 2px; }
}

/* Kontaktkasten mit rundem Foto */
.kontakt-box { display: flex; align-items: center; padding-block: 40px; }
.kontakt-box-text { width: 60%; }
.kontakt-box-bild { width: 40%; }
.kontakt-box-bild img {
  width: 300px;
  height: 300px;
  margin-inline: auto;
  object-fit: cover;
  border-radius: 9999px;
}
@media (max-width: 1024px) {
  .kontakt-box { flex-direction: column-reverse; padding-inline: 0; }
  .kontakt-box-text { width: 100%; padding: 24px; display: flex; flex-direction: column; }
  .kontakt-box-bild { display: flex; width: 100%; padding: 24px; }
}


/* 8d. Preise -------------------------------------------------------------- */
.preise-kasse .split-bild { height: 800px; }
@media (max-width: 1024px) {
  .preise-kasse .split-text { padding: 80px 40px 80px 30px; }
}
@media (max-width: 767px) {
  .preise-kasse .split-text { padding-left: 20px; }
}


/* 8e. Termin buchen ------------------------------------------------------- */
.termin { padding-bottom: 80px; }
.termin-spalten { display: flex; column-gap: 2em; row-gap: 1em; max-width: 1080px; width: 100%; margin-inline: auto; }
.termin-spalten > div:first-child { width: 50%; flex-shrink: 0; }
.termin-spalten > div:last-child { flex: 1; }
.termin h1 {
  color: var(--brand-primary);
  font-size: clamp(2rem, 1.8409rem + 0.5vw, 2.3125rem); /* Groesse wie h2 */
  margin: 0;
  padding-bottom: 30px;
}
.termin-fragen { padding-top: 30px; }
.termin-spalten > div:first-child a { color: var(--neutral-700); }
.termin-spalten > div:first-child a:hover { color: var(--brand-primary); }
.termin-name { margin-bottom: 10px; }
@media (max-width: 1024px) {
  .termin-spalten { flex-direction: column; }
  .termin-spalten > div:is(:first-child, :last-child) { width: 100%; }
  .termin-spalten h2 { margin-top: 30px; }
}
@media (max-width: 767px) {
  .termin-spalten { padding-inline: 20px; }
  .termin-spalten > div + div { margin-top: 30px; }
}

/* Google-Karte erst nach Klick laden (Datenschutz) */
.karte {
  position: relative;
  width: 100%;
  height: 500px;
  background: #E6ECEA;
  border-radius: 16px;
  overflow: hidden;
}
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-hinweis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  color: #4F5F5D;
  font-size: 15px;
  line-height: 1.6;
}
.karte-hinweis p { max-width: 460px; margin: 0; }
.karte-hinweis a { color: #5E8582; text-decoration: underline; text-underline-offset: 3px; }
.karte-hinweis a:hover { color: #7B5E3E; }
.karte-icon { width: 40px; height: 40px; color: #7A9592; }
.karte-button { cursor: pointer; font: inherit; font-size: 17px; line-height: 1.5; }
.karte-merken { font-size: 13px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.karte-merken input { accent-color: #7A9592; }
.karte-route { font-size: 13px; }
@media (max-width: 600px) {
  .karte { height: 380px; }
}


/* 8g. Therapieseiten ------------------------------------------------------ */

/* Ablauf in vier Karten (2 Spalten, mobil 1 Spalte) */
.schritte-titel { margin-bottom: 40px; }
.schritte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-inline: 5vw;
}
.schritt {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 1em;
  background-color: var(--neutral-0);
}
/* Farbbalken oben, wird beim Hover breiter */
.schritt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--brand-secondary);
  transition: height 0.2s ease;
}
.schritt:hover::before { height: 12px; }
.schritt > div { padding-top: 20px; }
.schritt h3 { font-size: 1.5em; font-weight: 400; }
@media (max-width: 1024px) {
  .schritte { margin-inline: 20px; }
}
@media (max-width: 767px) {
  .schritte { grid-template-columns: 1fr; }
}

/* Button "Buchen Sie Ihren Wunschtermin" mit Pfeil nach unten */
#cta { scroll-margin-top: 80px; }

/* Haeufige Fragen (aufklappbar) */
.faq-section h2 { margin-bottom: 40px; }
.faq-liste { padding-bottom: 40px; }
.faq {
  margin-bottom: 1.3em;
  background-color: var(--brand-primary);
  border-radius: 5px 5px 0 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: calc(1.5em + 24px);
  padding: 12px 2em;
  color: var(--neutral-0);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--neutral-0);
}
.faq summary svg { width: 1em; height: 1em; flex-shrink: 0; }
.faq .icon-zu { display: none; }
.faq[open] .icon-auf { display: none; }
.faq[open] .icon-zu { display: block; }
.faq-antwort {
  padding: 1em;
  background-color: var(--neutral-50);
  border-radius: 0 0 5px 5px;
  animation: einblenden 0.25s ease;
}
.faq-antwort > :first-child { margin-top: 1em; }
.faq-antwort a { color: var(--brand-primary); }

/* Video: erst nach Klick laden (Datenschutz) */
.video {
  position: relative;
  width: 100%;
  min-width: 300px;
  padding-top: 56.25%;  /* Seitenverhaeltnis 16:9 */
  background: #2b3a3a center / cover no-repeat;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-hinweis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}
.video-hinweis p { max-width: 500px; margin: 0; font-size: 14px; }
.video-hinweis a { color: #fff; text-decoration: underline; }
.video-start {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  padding: 0 0 0 6px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #2b3a3a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}


/* 8f. Impressum----------------------------------------------------------- */
.impressum-inhalt { margin-inline: 20%; }
@media (max-width: 1024px) {
  .impressum-inhalt { margin-inline: 0; padding: 1.5em 0; }
}
/* Lange Links (z. B. Bildnachweise) duerfen umbrechen */
.rechtstext a { overflow-wrap: anywhere; }


/* 8h. Fehlerseite (404) --------------------------------------------------- */
.fehlerseite { max-width: 900px; margin-inline: auto; padding-block: 0; }
.fehlerseite-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
  height: 500px;
}
.fehlerseite h1 {
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--neutral-700);
  margin-bottom: 20px;
}
.fehlerseite p { font-size: 16px; margin-bottom: 24px; }
.fehlerseite-button { margin-top: 40px; }
.fehlerseite-bild img { display: inline; width: 400px; height: auto; border-radius: 5px; }
@media (max-width: 767px) {
  .fehlerseite-raster { grid-template-columns: 1fr; height: auto; margin-inline: 30px; }
}


/* 9. Animationen und "Nach oben"-Button ------------------------------------ */
/* Einblenden, sobald ein Element ins Bild scrollt (main.js setzt dann .is-inview).
   Ohne JavaScript oder bei "weniger Bewegung" ist alles sofort sichtbar.
   .slow = 2 Sekunden, .slower = 3 Sekunden, sonst 1 Sekunde. */
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes einblenden-hoch {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to   { opacity: 1; transform: none; }
}
.js :is(.fade-in, .fade-in-up):not(.is-inview) { visibility: hidden; }
.fade-in.is-inview    { animation: einblenden 1s both; }
.fade-in-up.is-inview { animation: einblenden-hoch 1s both; }
.is-inview.slow   { animation-duration: 2s; animation-delay: 0.2s; }
.is-inview.slower { animation-duration: 3s; animation-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
  .js :is(.fade-in, .fade-in-up):not(.is-inview) { visibility: visible; }
  .is-inview { animation: none !important; }
  html { scroll-behavior: auto; }
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 100%;
  border-right: 1px solid #fff;
  border-bottom: 3px solid #fff;
  background-color: var(--brand-primary);
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transform: translateY(1000px);
  transition: opacity 0.3s ease-in-out;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:is(:hover, :focus) { background-color: var(--brand-secondary); color: #fff; }
.back-to-top svg { width: 1em; height: 1em; fill: currentColor; }
@media (max-width: 768px) {
  .back-to-top { margin: 0 -15px -15px 0; }
}
