/* Schwebende Kontakt-Buttons: weicher Hover.
   width:auto lässt sich nicht animieren (Original sprang sofort auf volle Breite),
   daher animiert max-width bei dauerhaft width:auto. */
.conatct-btn_content {
  width: auto;
  max-width: 3rem;
  transition: max-width 450ms ease-in-out;
}

.conatct-btn_content:hover,
.conatct-btn_content:focus-within {
  max-width: 20rem;
}

/* Team-Seite: H1 für SEO, optisch wie bisher die H2 */
.h1-looks-like-h2 {
  font-size: 3rem;
}
@media screen and (max-width: 767px) {
  .h1-looks-like-h2 {
    font-size: 2rem;
  }
}

/* Buttons, die einen Anruf auslösen, bekommen ein Telefon-Symbol (übernimmt die Textfarbe) */
a.button[href^="tel:"]::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.6em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: url("/assets/cdn.prod.website-files.com/667ea92d4de92801c7ad61d6/668130383ff5c392a54ec0a9_Phone.svg") center / contain no-repeat;
  mask: url("/assets/cdn.prod.website-files.com/667ea92d4de92801c7ad61d6/668130383ff5c392a54ec0a9_Phone.svg") center / contain no-repeat;
}

/* Zwei-Klick-Platzhalter für Karte und Video (Datenschutz) */
.embed-consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  padding: 1.25rem;
  box-sizing: border-box;
  background: var(--off-white, #eeece8);
  color: #222;
  font-size: 0.9rem;
  line-height: 1.4;
}
.w-video .embed-consent {
  position: absolute;
  inset: 0;
}
.embed-consent_text {
  margin: 0;
}
.embed-consent a {
  text-decoration: underline;
  color: inherit;
}
.embed-consent_btn {
  border: 1px solid var(--brown);
  background-color: var(--brown);
  color: var(--off-white);
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Rechtstexte (Impressum, Datenschutz) */
.legal h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.3;
}
.legal h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
  line-height: 1.3;
}
.legal p,
.legal ul {
  margin-top: 0;
  margin-bottom: 0.9rem;
}
.legal ul {
  padding-left: 1.25rem;
}

/* ---------- Bewegung ---------- */

/* Seitenwechsel-Overlay: nur sichtbar, wenn Bewegung aktiv ist (Klasse setzt <head>-Skript) */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--off-white, #eeece8);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Hintergrundbild im Kopfbereich darf bei Parallaxe/Zoom nicht überstehen */
.section.is-hero {
  overflow: clip;
}

/* Weiche Interaktionen */
.button,
.nav-link,
.footer-nav_link,
.sickness_card,
.home-features_card,
.feature-card_link {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }
  .sickness_card:hover,
  .home-features_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -18px rgb(40 30 20 / 0.35);
  }
  .galerie-grid > a img,
  .home-gal-grid > a img {
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .galerie-grid > a:hover img,
  .home-gal-grid > a:hover img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Dropdown "Leistungen" */
  .nav-link_dropdown-list.w--open {
    animation: dropIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes dropIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* Mobile Navigation: Abdunklung und gestaffeltes Einblenden der Einträge */
  .w-nav-overlay {
    background: rgb(34 30 26 / 0.38);
    animation: fadeIn 0.4s ease both;
  }
  .w-nav-overlay .nav-menu > * {
    animation: navItemIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .w-nav-overlay .nav-menu > :nth-child(1) { animation-delay: 0.12s; }
  .w-nav-overlay .nav-menu > :nth-child(2) { animation-delay: 0.18s; }
  .w-nav-overlay .nav-menu > :nth-child(3) { animation-delay: 0.24s; }
  .w-nav-overlay .nav-menu > :nth-child(4) { animation-delay: 0.3s; }
  .w-nav-overlay .nav-menu > :nth-child(5) { animation-delay: 0.36s; }
  .w-nav-overlay .nav-menu > :nth-child(n + 6) { animation-delay: 0.42s; }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes navItemIn {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Impressum / Datenschutz: ruhiger Hintergrund aus Verläufen statt gestrecktem Foto.
   Motiv: weiches Braun-Leuchten und feine Ringe wie von einer Klangschale, Positionen in px,
   damit die Seitenlänge keine Rolle spielt. */
.section_bg-img.is-legal {
  background-image:
    radial-gradient(circle 520px at 78% 260px, rgb(158 143 129 / 0.22), rgb(158 143 129 / 0) 70%),
    radial-gradient(circle 640px at 100% 1100px, rgb(158 143 129 / 0.12), rgb(158 143 129 / 0) 70%),
    linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #f7f5f2 0%, #fff 70%);
  background-position: 0 0;
  background-size: auto;
  background-repeat: no-repeat;
}
.section_bg-img.is-legal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 78% 260px, rgb(158 143 129 / 0.2) 0 1px, rgb(158 143 129 / 0) 1px 44px);
  -webkit-mask-image: radial-gradient(circle 480px at 78% 260px, #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 480px at 78% 260px, #000 0%, transparent 100%);
}
@media screen and (max-width: 767px) {
  .section_bg-img.is-legal {
    width: 100%;
    opacity: 0.8;
  }
  .section_bg-img.is-legal::before {
    background: repeating-radial-gradient(circle at 80% 160px, rgb(158 143 129 / 0.18) 0 1px, rgb(158 143 129 / 0) 1px 36px);
    -webkit-mask-image: radial-gradient(circle 300px at 80% 160px, #000 0%, transparent 100%);
    mask-image: radial-gradient(circle 300px at 80% 160px, #000 0%, transparent 100%);
  }
}

/* ---------- Typografie: saubere Umbrüche ---------- */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
p,
li {
  text-wrap: pretty;
}
/* sehr schmale Geräte: lange Wörter wie "Ergotherapie" passen sonst nicht in die Zeile */
@media screen and (max-width: 359px) {
  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .h1-looks-like-h2 {
    font-size: 1.75rem;
  }
}

/* Buttons mit E-Mail-Ziel bekommen ein Mail-Symbol, analog zu den Anruf-Buttons */
a.button[href^="mailto:"]::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.6em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: url("/assets/cdn.prod.website-files.com/667ea92d4de92801c7ad61d6/66813038622773c823a03808_Mail.svg") center / contain no-repeat;
  mask: url("/assets/cdn.prod.website-files.com/667ea92d4de92801c7ad61d6/66813038622773c823a03808_Mail.svg") center / contain no-repeat;
}

/* Schwebende Kontakt-Buttons: auf dem Handy unten rechts und beim Runterscrollen ausgeblendet,
   damit sie Text nicht verdecken. Beim Hochscrollen kommen sie zurück. */
@media screen and (max-width: 767px) {
  .contact-btns {
    inset: auto 0.9rem 1rem auto;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
  }
  .contact-btns.is-hidden {
    transform: translateX(calc(100% + 1.5rem));
    opacity: 0;
    pointer-events: none;
  }
}

/* Karten mit langen Fachwörtern ("Funktionsstörungen") dürfen trennen, statt das Raster zu sprengen */
.sickness_card,
.home-features_card {
  min-width: 0;
}
.sickness_card p,
.home-features_card p {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Video-Platzhalter: lokales Vorschaubild, Play-Button, Datenschutzhinweis (Zwei-Klick) */
.embed-consent.is-video {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(20 16 12 / 0.15) 0%, rgb(20 16 12 / 0.45) 100%),
    var(--poster) center / cover no-repeat,
    #3a342e;
}
.embed-consent_play {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s ease;
}
.embed-consent_playicon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.5rem;
  border-color: transparent transparent transparent var(--brown, #9e8f81);
}
.embed-consent.is-video:hover .embed-consent_play,
.embed-consent_play:focus-visible {
  transform: scale(1.08);
  background: #fff;
}
.embed-consent.is-video .embed-consent_text {
  max-width: none;
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(0deg, rgb(20 16 12 / 0.78), rgb(20 16 12 / 0));
  font-size: 0.85rem;
  line-height: 1.4;
}
.embed-consent.is-video .embed-consent_text a {
  color: #fff;
}
@media screen and (max-width: 479px) {
  .embed-consent_play {
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 2.6rem;
  }
  .embed-consent_playicon {
    border-width: 0.7rem 0 0.7rem 1.2rem;
  }
  .embed-consent.is-video .embed-consent_text {
    font-size: 0.78rem;
    padding: 2rem 0.9rem 0.8rem;
  }
}
.w-video .embed-consent.is-video {
  position: absolute;
  inset: 0;
  min-height: 0;
}

/* Karten-Platzhalter im Footer: lokale, neutrale "Karte" aus Verläufen, Pin als Play-Äquivalent */
.embed-consent.is-map {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(115deg, transparent 0 46%, rgb(255 255 255 / 0.75) 46% 48%, transparent 48%),
    linear-gradient(25deg, transparent 0 62%, rgb(255 255 255 / 0.65) 62% 63.6%, transparent 63.6%),
    linear-gradient(80deg, transparent 0 28%, rgb(255 255 255 / 0.55) 28% 29%, transparent 29%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.3) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.3) 0 1px, transparent 1px 38px),
    radial-gradient(circle at 18% 82%, rgb(158 143 129 / 0.2), transparent 42%),
    radial-gradient(circle at 86% 18%, rgb(158 143 129 / 0.16), transparent 38%),
    #e7e2da;
}
.embed-consent_pin {
  width: 2rem;
  height: 2rem;
  fill: var(--brown, #9e8f81);
}
.embed-consent.is-map:hover .embed-consent_play {
  transform: scale(1.08);
  background: #fff;
}
.embed-consent.is-map .embed-consent_text {
  max-width: none;
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7rem 1rem;
  background: rgb(255 255 255 / 0.78);
  color: #222;
  font-size: 0.85rem;
  line-height: 1.4;
}
.g-maps_embed .embed-consent_play {
  background: #fff;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.18);
}

/* Poster mit eingebautem Play-Button (Wistia-Screenshot): eigenen Button und Abdunklung weglassen */
.embed-consent.is-video.has-baked-play {
  background: var(--poster) center / cover no-repeat, #dfe6c9;
}
.embed-consent.is-video.has-baked-play .embed-consent_play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

/* Widerruf-Schalter in der Datenschutzerklärung */
.consent-revoke {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--brown, #9e8f81);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.consent-revoke:hover {
  background: var(--brown, #9e8f81);
  color: var(--off-white, #eeece8);
}

/* Mobil: keine Silbentrennung in der Hero-H1 (Hintergrundbild bleibt wie bei der alten Seite: rechte Hälfte mit Verlauf) */
@media (max-width: 767px) {
  .section.is-hero h1 {
    -webkit-hyphens: manual;
    hyphens: manual;
  }
}
