/* ==========================================================================
   Touch and Bloom – Globale Styles
   Schriften: Allura (Titel), Alegreya Sans (Überschriften), Albert Sans (Fließtext)
   ========================================================================== */

:root {
  --font-display: "Allura", cursive;
  --font-heading: "Alegreya Sans", system-ui, sans-serif;
  --font-body: "Albert Sans", system-ui, sans-serif;

  --color-text: #3d4540;
  --color-text-light: #6b7570;
  --color-text-muted: #a8b2ac;
  --color-bg: #fafafa;
  --color-white: #ffffff;
  --color-border: rgba(61, 69, 64, 0.08);
  --color-signal: #e85d04;
  --color-signal-text: #ffffff;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --max-width: 72rem;
  --content-max-width: 72rem;
  --header-height: 5.5rem;
  --page-gutter: 1.75rem;
  --text-gutter: 2.75rem;
  --link-underline-width: 1px;
  --link-color-duration: 0.45s;
  --nav-underline-duration: 0.28s;

  /* Default / neutral – Fallback, überschrieben durch Panel (theme-colors) */
  --theme-bg: #f7f8f6;
  --theme-bg-soft: #eef0ec;
  --theme-primary: #8a9a8e;
  --theme-secondary: #5c6b60;
  --theme-accent: var(--theme-primary);
  --theme-accent-dark: var(--theme-secondary);
  --theme-highlight: color-mix(in srgb, var(--theme-primary) 12%, transparent);
  --area-allgemein-primary: #8a9a8e;
  --area-allgemein-secondary: #5c6b60;

  --heading-color: var(--theme-accent-dark);
  --heading-1-size: clamp(2rem, 4vw, 2.625rem);
  --heading-2-size: clamp(1.625rem, 3vw, 2rem);
  --heading-3-size: clamp(1.3125rem, 2.25vw, 1.4375rem);
  --heading-4-size: clamp(1.125rem, 2vw, 1.25rem);
}

/* Bereichs-Themen (pastellig) – Akzentfarben aus Panel */
[data-theme="yoga"] {
  --theme-bg: #eef6f9;
  --theme-bg-soft: #dceef4;
  --theme-highlight: color-mix(in srgb, var(--theme-accent) 15%, transparent);
}

[data-theme="heilpraxis"] {
  --theme-bg: #eef5ea;
  --theme-bg-soft: #ddebd6;
  --theme-highlight: color-mix(in srgb, var(--theme-accent) 15%, transparent);
}

[data-theme="massage"] {
  --theme-bg: #f9eeea;
  --theme-bg-soft: #f0ddd6;
  --theme-highlight: color-mix(in srgb, var(--theme-accent) 15%, transparent);
}

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

html {
  scroll-behavior: auto;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
html:has(.theme-scroll),
html:has(.theme-scroll) body {
  overscroll-behavior-y: none;
}

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

a {
  color: var(--theme-accent-dark);
  text-decoration: none;
}

.prose a,
.content-block a:not(.btn),
.contact-card a:not(.btn),
.theme-chapter__intro-lead a,
.theme-chapter__intro-body a,
.theme-chapter__text a {
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-width);
  text-underline-offset: 0.18em;
  text-decoration-color: currentColor;
  transition: color var(--link-color-duration) ease;
}

.prose a:hover,
.content-block a:not(.btn):hover,
.contact-card a:not(.btn):hover,
.theme-chapter__intro-lead a:hover,
.theme-chapter__intro-body a:hover,
.theme-chapter__text a:hover {
  color: var(--theme-accent);
}

/* --- Typografie --- */

.font-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

.font-handwritten,
.handwritten,
.prose .handwritten,
.theme-chapter__intro-lead .handwritten,
.theme-chapter__intro-body .handwritten,
.theme-chapter__text .handwritten {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin-left: .2em;
  margin-right: .2em;
}

h1, h2, h3, h4, .heading {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--heading-color);
  margin: 0 0 var(--space-sm);
}

h1 { font-size: var(--heading-1-size); }
h2 { font-size: var(--heading-2-size); }
h3 { font-size: var(--heading-3-size); }
h4 { font-size: var(--heading-4-size); }

p {
  margin: 0 0 var(--space-sm);
}

.text-lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

.text-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--theme-accent-dark);
  letter-spacing: 0.02em;
}

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

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

.prose .text-align-center,
.prose .text-align-right,
.theme-chapter__intro-lead .text-align-center,
.theme-chapter__intro-lead .text-align-right,
.theme-chapter__intro-body .text-align-center,
.theme-chapter__intro-body .text-align-right,
.theme-chapter__text .text-align-center,
.theme-chapter__text .text-align-right {
  margin-top: -2em;
  margin-bottom: var(--space-sm);
}

/* --- Layout --- */

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

#main .container {
  width: min(var(--content-max-width), 100% - 2 * var(--text-gutter));
}

@media (min-width: 769px) {
  :root {
    --content-max-width: 54rem;
    --header-height: 7.5rem;
  }

  /* Home, Wochenplan, Über mich, Kontakt, Bereichsseiten: kompakter Header */
  body:has(.theme-scroll--home),
  body[data-template="wochenplan"],
  body[data-template="about"],
  body[data-template="contact"],
  body.page-has-section-nav {
    --header-height: 6rem;
  }

  .site-logo img {
    height: 5.35rem;
  }

  body:has(.theme-scroll--home) .site-logo img,
  body[data-template="wochenplan"] .site-logo img,
  body[data-template="about"] .site-logo img,
  body[data-template="contact"] .site-logo img,
  body.page-has-section-nav .site-logo img {
    height: 4.25rem;
  }

  body.page-has-section-nav .section-nav {
    padding-top: 0;
    padding-bottom: 0.3rem;
  }

  body.page-has-section-nav .section-nav__list {
    gap: 0 1.1rem;
    font-size: 0.8125rem;
  }

  body.page-has-section-nav .section-nav .section-nav__link {
    padding-top: 0;
    padding-bottom: 0.12rem;
  }
}

.section {
  padding: var(--space-lg) 0;
}

.section--soft {
  background: var(--theme-bg-soft);
}

.section--theme {
  background: var(--theme-bg);
}

/* --- Header / Hauptmenü --- */

.site-nav-stack {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: none;
  overflow: visible;
}

.site-nav-stack:not(:has(.section-nav)) .site-header {
  border-bottom: 1px solid var(--color-border);
}

/* Bereichsseiten: gleicher Header, Submenü nur in .section-nav darunter */
.site-nav-stack:has(.section-nav) .site-header {
  border-bottom: none;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: var(--space-md);
  box-sizing: border-box;
  min-height: var(--header-height);
  height: var(--header-height);
  padding: 0.35rem 0;
}

.site-header__brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
}

.header-nav-areas {
  position: absolute;
  left: 50%;
  top: 0;
  height: var(--header-height);
  transform: translateX(-50%);
  z-index: 2;
  max-width: min(36rem, calc(100vw - 14rem));
  pointer-events: none;
  display: flex;
  align-items: center;
}

.header-nav-areas .header-nav__areas {
  pointer-events: auto;
  justify-content: center;
}

.site-header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
}

.header-nav {
  display: none;
  min-width: 0;
}

.header-nav__areas,
.header-nav__utility {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__areas {
  gap: 0.25rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.header-nav__utility {
  font-size: 0.875rem;
}

.header-nav__utility--desktop {
  gap: 0 0.625rem;
}

.header-nav__utility--desktop .header-nav__link {
  padding: 0.35rem 0;
}

.header-nav__utility--mobile {
  display: none;
}

.header-nav__areas--mobile {
  display: none;
}

.header-social {
  position: fixed;
  top: calc(var(--social-float-top, var(--header-height)) + 1em);
  right: 1em;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  transform: translateX(0);
  transition: transform 0.9s ease-in-out;
  pointer-events: auto;
}

.header-social.is-hidden {
  transform: translateX(calc(100% + 1em));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .header-social {
    transition: none;
  }
}

.header-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  line-height: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--area-allgemein-secondary, var(--theme-secondary)) 45%, #ffffff);
  background: #e8ece9;
  box-shadow: 0 1px 2px rgba(61, 69, 64, 0.04);
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.4s ease,
    transform 0.2s ease;
}

.header-social__link img,
.header-social__link picture,
.header-social__link .header-social__icon {
  display: block;
  width: auto;
  height: 1.1rem;
  max-width: 100%;
  filter: brightness(0) saturate(0) opacity(0.42);
  transition: filter 0.45s ease;
}

.header-social__link--facebook:is(:hover, :focus-visible, :active) {
  background: #1877f2;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.28);
}

.header-social__link--youtube:is(:hover, :focus-visible, :active) {
  background: #ff0000;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.22);
}

.header-social__link--instagram:is(:hover, :focus-visible, :active) {
  background: radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  box-shadow: 0 2px 6px rgba(193, 53, 132, 0.25);
}

.header-social__link--custom:is(:hover, :focus-visible, :active) {
  background: color-mix(in srgb, var(--color-text-light) 55%, #ffffff);
  box-shadow: 0 2px 5px rgba(61, 69, 64, 0.14);
}

.header-social__link:is(:hover, :focus-visible, :active) img,
.header-social__link:is(:hover, :focus-visible, :active) .header-social__icon {
  filter: none;
}

.header-social__link:is(:hover, :focus-visible, :active) {
  transform: translateY(-1px);
  border-color: transparent;
}

.site-logo-lockup {
  position: relative;
  display: inline-grid;
  align-items: end;
  flex-shrink: 0;
  max-width: min(100%, 16rem);
  margin: 0;
  font-size: clamp(1.05rem, 1.85vw, 1.4rem);
}

.site-logo__title {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(0.5em);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-bottom: none;
}

.site-logo-lockup .site-logo {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  justify-self: center;
  align-self: end;
  margin: 0;
}

.site-logo img {
  height: 5rem;
  width: auto;
  animation: logo-spin 90s linear infinite;
  animation-delay: var(--logo-spin-delay, 0s);
  transform-origin: center center;
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (min-width: 769px) {
  /* Nur die Gruppe als Ganzes zentrieren – Schrift/Logo-Verhältnis bleibt in den Basis-Styles */
  .site-header__inner {
    padding-block: 0;
    align-items: center;
  }

  .site-header__brand {
    align-self: center;
    height: 100%;
    display: flex;
    align-items: center;
    margin-inline-start: -0.35rem;
  }

  .site-logo-lockup {
    max-width: min(100%, 18rem);
  }

  .header-nav__areas {
    font-size: 1.5rem;
  }

  .header-nav__utility--desktop {
    font-size: 1.0625rem;
  }

  .site-header.is-nav-compact .header-nav__areas {
    font-size: clamp(1.125rem, 4.5vw, 1.4375rem);
  }
}

.header-nav__link {
  color: var(--theme-primary);
  padding: 0.35rem 0;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--link-color-duration) ease, background 0.2s;
}

.header-nav__areas .header-nav__link {
  padding: 0.35rem 0.65rem;
  border-bottom: none;
  border-radius: 2rem;
  transition: color 0.35s ease, background 0.35s ease;
}

.header-nav__areas .header-nav__link[data-area="heilpraxis"] {
  color: var(--area-heilpraxis-primary);
}

.header-nav__areas .header-nav__link[data-area="yoga"] {
  color: var(--area-yoga-primary);
}

.header-nav__areas .header-nav__link[data-area="massage"] {
  color: var(--area-massage-primary);
}

.header-nav__areas .header-nav__link--home {
  color: var(--area-allgemein-secondary);
}

.header-nav__areas .header-nav__link--home:is(:hover, :focus-visible, .is-active) {
  color: var(--area-allgemein-secondary);
  background: color-mix(in srgb, var(--area-allgemein-primary) 15%, transparent);
}

.header-nav__areas .header-nav__link[data-area="heilpraxis"]:hover,
.header-nav__areas .header-nav__link[data-area="heilpraxis"]:focus-visible,
.header-nav__areas .header-nav__link[data-area="heilpraxis"]:active,
.header-nav__areas .header-nav__link[data-area="heilpraxis"].is-active {
  color: var(--area-heilpraxis-secondary);
  background: color-mix(in srgb, var(--area-heilpraxis-primary) 15%, transparent);
}

.header-nav__areas .header-nav__link[data-area="yoga"]:hover,
.header-nav__areas .header-nav__link[data-area="yoga"]:focus-visible,
.header-nav__areas .header-nav__link[data-area="yoga"]:active,
.header-nav__areas .header-nav__link[data-area="yoga"].is-active {
  color: var(--area-yoga-secondary);
  background: color-mix(in srgb, var(--area-yoga-primary) 15%, transparent);
}

.header-nav__areas .header-nav__link[data-area="massage"]:hover,
.header-nav__areas .header-nav__link[data-area="massage"]:focus-visible,
.header-nav__areas .header-nav__link[data-area="massage"]:active,
.header-nav__areas .header-nav__link[data-area="massage"].is-active {
  color: var(--area-massage-secondary);
  background: color-mix(in srgb, var(--area-massage-primary) 15%, transparent);
}

.header-nav__utility .header-nav__link,
.section-nav .section-nav__link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color var(--link-color-duration) ease;
}

.header-nav__utility .header-nav__link::after,
.section-nav .section-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--link-underline-width);
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--nav-underline-duration) ease;
  pointer-events: none;
}

.header-nav__utility .header-nav__link:is(:hover, :focus-visible, .is-active)::after,
.section-nav .section-nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

@media (hover: hover) and (pointer: fine) and (not (pointer: coarse)) {
  .section-nav .section-nav__link:is(:hover, :focus-visible)::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@media (hover: none), (pointer: coarse) {
  .section-nav .section-nav__link:not(.is-active):hover::after {
    transform: scaleX(0);
  }
}

.header-nav__utility .header-nav__link {
  color: var(--area-allgemein-primary);
}

.header-nav__utility--desktop .header-nav__link {
  padding: 0.35rem 0;
}

.header-nav__utility .header-nav__link:hover,
.header-nav__utility .header-nav__link:focus-visible,
.header-nav__utility .header-nav__link.is-active {
  color: var(--area-allgemein-secondary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text);
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  width: 1.75rem;
  height: 1.75rem;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center center;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(0.55rem) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-0.55rem) rotate(-45deg);
}

/* Mobile-Hamburger: Seite bleibt sichtbar, nur Menü-Panel darüber ein-/ausblenden */
.site-header.is-mobile-nav-active {
  position: relative;
  z-index: 200;
  overflow: visible;
  background: rgba(255, 255, 255, 0.96);
  /* backdrop-filter würde position:fixed-Kinder auf Header-Höhe einsperren */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.site-header.is-mobile-nav-active .site-header__inner {
  position: relative;
  z-index: 2;
  height: var(--header-height);
  min-height: var(--header-height);
  grid-template-rows: var(--header-height);
  align-content: center;
  padding-bottom: 0;
  overflow: visible;
  background: rgba(255, 255, 255, 0.96);
}

/* Unsichtbare Fläche: Scroll/Klicks auf der Seite blockieren (unter Header + Menü) */
.site-header.is-mobile-nav-active::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-mobile-nav-active.is-mobile-nav-visible::before {
  opacity: 1;
  pointer-events: auto;
}

.site-header.is-mobile-nav-active .header-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-height));
  height: calc(100svh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  max-height: calc(100svh - var(--header-height));
  bottom: auto;
  z-index: 2;
  display: flex;
  flex: none;
  flex-direction: column;
  align-self: auto;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  align-items: stretch;
  padding: 1.25rem var(--page-gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  gap: 0.75rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  touch-action: pan-y;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-0.35rem);
  visibility: hidden;
  transition: opacity 0.44s cubic-bezier(0.4, 0, 1, 1),
    transform 0.44s cubic-bezier(0.4, 0, 1, 1),
    visibility 0s linear 0.44s;
}

.site-header.is-mobile-nav-active.is-mobile-nav-visible .header-nav {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    visibility 0s linear 0s;
}

.site-header.is-mobile-nav-active .site-header__end {
  position: relative;
  z-index: 3;
}

.site-header.is-mobile-nav-active .header-nav__primary,
.site-header.is-mobile-nav-active .header-nav__utility {
  flex: 0 0 auto;
  min-height: auto;
  width: 100%;
}

.site-header.is-mobile-nav-active.is-nav-compact .header-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-height));
  height: calc(100svh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  max-height: calc(100svh - var(--header-height));
  grid-row: auto;
  grid-column: auto;
  padding: 1.25rem var(--page-gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
}

.site-header.is-mobile-nav-active .header-nav-areas {
  display: none;
}

.site-nav-stack:has(.site-header.is-mobile-nav-active) {
  z-index: 200;
  overflow: visible;
}

.site-nav-stack:has(.site-header.is-mobile-nav-active) .section-nav {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-mobile-nav-active::before,
  .site-header.is-mobile-nav-active .header-nav {
    transition: none;
  }
}

/* Kompakt-Modus: bei Überlappung von Bereichs- und Utility-Navigation (JS) */
.site-header.is-nav-compact .site-header__inner {
  grid-template-columns: auto 1fr auto;
  grid-template-rows: var(--header-height) auto;
  align-items: center;
  column-gap: 0.35rem;
  height: auto;
  min-height: var(--header-height);
}

.site-header.is-nav-compact .header-nav-areas {
  position: static;
  transform: none;
  grid-row: 1;
  grid-column: 2;
  z-index: auto;
  max-width: none;
  min-width: 0;
  pointer-events: auto;
  container-type: inline-size;
}

.site-header.is-nav-compact .header-nav__areas {
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  gap: 0 clamp(0.3rem, 1.6vw, 0.85rem);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 4.5vw, 1.3125rem);
  letter-spacing: 0.01em;
}

.site-header.is-nav-compact .header-nav__areas .header-nav__link {
  padding: 0.2rem clamp(0.2rem, 1.1vw, 0.45rem);
  white-space: nowrap;
}

.site-header.is-nav-compact .site-header__end {
  grid-row: 1;
  grid-column: 3;
  gap: 0.35rem;
  margin-inline-end: -0.15rem;
}

.site-header.is-nav-compact .header-nav__utility--desktop {
  display: none;
}

.site-header.is-nav-compact .header-nav__utility--mobile {
  display: flex;
}

.site-header.is-nav-compact .header-nav__areas--mobile {
  display: flex;
}

.site-header.is-nav-compact .nav-toggle {
  display: inline-flex;
}

.site-header.is-nav-compact .site-header__brand {
  grid-row: 1;
  grid-column: 1;
}

@media (min-width: 769px) {
  .site-header.is-nav-compact .site-header__brand {
    margin-inline-start: -0.15rem;
  }
}

.site-header.is-nav-compact .header-nav {
  grid-row: 2;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: var(--color-white);
  padding: clamp(0.25rem, 1.2dvh, 0.65rem) 0 clamp(0.35rem, 1.5dvh, 0.75rem);
  border-top: 1px solid var(--color-border);
}

.site-header.is-nav-compact .header-nav.is-open {
  display: flex;
}

.site-header.is-nav-compact .header-nav__areas--mobile {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(0.1rem, 1.1dvh, 0.45rem);
  margin: 0;
  padding: 0 0 clamp(0.2rem, 0.9dvh, var(--space-sm));
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 3.1dvh, 1.25rem);
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.site-header.is-nav-compact .header-nav__areas--mobile .header-nav__link {
  text-align: center;
  padding-block: clamp(0.18rem, 0.8dvh, 0.6rem);
  padding-inline: 0.9rem;
  min-height: clamp(1.85rem, 4.6dvh, 2.75rem);
  line-height: 1.25;
}

.site-header.is-nav-compact .header-nav__utility {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(0.1rem, 1.1dvh, 0.45rem);
  text-align: center;
  font-size: clamp(1.05rem, 3.1dvh, 1.25rem);
  line-height: 1.25;
}

.site-header.is-nav-compact .header-nav__utility .header-nav__link {
  text-align: center;
  padding: clamp(0.18rem, 0.8dvh, 0.6rem) 0.9rem;
  min-height: clamp(1.85rem, 4.6dvh, 2.75rem);
}

.site-header.is-nav-compact .header-nav__utility--footer {
  padding-top: clamp(0.2rem, 0.9dvh, var(--space-sm));
  margin-top: 0;
  border-top: 1px solid var(--color-border);
}

html.is-mobile-nav-open,
body.is-mobile-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* --- Bereichs-Navigation (Scroll-Spy) --- */

.section-nav {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding-top: 0;
  padding-bottom: 0.45rem;
}

.section-nav__track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--page-gutter);
}

.section-nav__track::-webkit-scrollbar {
  display: none;
}

.section-nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  gap: 0 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0 var(--page-gutter) 2px;
  font-size: 0.875rem;
  text-align: center;
}

.section-nav.is-scrollable .section-nav__list {
  justify-content: flex-start;
}

.section-nav__edge {
  display: none;
}

.section-nav.is-scrollable .section-nav__edge {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  z-index: 2;
  padding: 0;
  border: none;
  background: var(--color-white);
  cursor: default;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.section-nav.is-scrollable .section-nav__edge--left {
  left: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    rgb(0 0 0 / 1) 0%,
    rgb(0 0 0 / 0.72) 28%,
    rgb(0 0 0 / 0.32) 58%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    rgb(0 0 0 / 1) 0%,
    rgb(0 0 0 / 0.72) 28%,
    rgb(0 0 0 / 0.32) 58%,
    transparent 100%
  );
}

.section-nav.is-scrollable .section-nav__edge--right {
  right: 0;
  -webkit-mask-image: linear-gradient(
    to left,
    rgb(0 0 0 / 1) 0%,
    rgb(0 0 0 / 0.72) 28%,
    rgb(0 0 0 / 0.32) 58%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to left,
    rgb(0 0 0 / 1) 0%,
    rgb(0 0 0 / 0.72) 28%,
    rgb(0 0 0 / 0.32) 58%,
    transparent 100%
  );
}

.section-nav.is-scrollable .section-nav__edge.is-disabled {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  .section-nav.is-scrollable .section-nav__edge {
    width: 4.5rem;
    cursor: pointer;
    pointer-events: auto;
  }
}

.section-nav .section-nav__link {
  color: var(--theme-primary);
  white-space: nowrap;
  padding-top: 0;
  padding-bottom: 0.15rem;
  line-height: 1.3;
}

.section-nav .section-nav__link.is-active {
  color: var(--theme-secondary);
}

@media (hover: hover) and (pointer: fine) and (not (pointer: coarse)) {
  .section-nav .section-nav__link:is(:hover, :focus-visible) {
    color: var(--theme-secondary);
  }
}

@media (hover: none), (pointer: coarse) {
  .section-nav .section-nav__link:not(.is-active):hover {
    color: var(--theme-primary);
  }
}

/* --- Bereichs-Kapitel (zusammenhängendes Scrollen) --- */

.theme-scroll {
  --scroll-offset: 8rem;
  --parallax-fixed-top: 8rem;
  --parallax-fixed-height: calc(100vh - 8rem);
  --parallax-fixed-height: calc(100lvh - 8rem);
  --intro-image-share: 0.618;
  --intro-text-share: 0.382;
  --intro-reveal-extra: 75px;
  --parallax-panel-extra: 2em;
  position: relative;
}

.theme-scroll__content {
  position: relative;
  z-index: 1;
}

/* Nav-Übergang: assets/css/nav-transition.css */

/* Fester Parallax-Hintergrund unter dem Untermenü */
.parallax-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--parallax-fixed-top);
  height: var(--parallax-fixed-height);
  min-height: calc(
    100lvh - var(--parallax-fixed-top) + env(safe-area-inset-bottom, 0px)
  );
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/*
 * Tablet-Firefox: sticky statt fixed (Toolbar-Bug), Inhalt darüber per negativem Margin.
 * Nur html.parallax-viewport--firefox-tablet (≥769px); Mobile unverändert.
 */
html.parallax-viewport--firefox-tablet .parallax-fixed {
  position: sticky;
  top: var(--parallax-fixed-top);
  left: 0;
  right: 0;
  width: 100%;
  height: var(--parallax-fixed-height);
  min-height: 0;
  margin-bottom: calc(-1 * var(--parallax-fixed-height));
  transform: none;
  contain: paint;
}

.parallax-fixed__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: none;
  overflow: hidden;
}

.parallax-fixed__layer picture,
.parallax-responsive__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Ein Bild – Desktop: volle Höhe, seitlicher Crop am Fokuspunkt (JS) */
.parallax-fixed__img,
.parallax-responsive__picture img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: var(--parallax-focus, 50% 50%);
}

@media (min-width: 769px) {
  .parallax-fixed__img,
  .parallax-fixed .parallax-responsive__picture img,
  .parallax-strip__img,
  .parallax-strip__bg .parallax-responsive__picture img {
    left: 0;
    top: 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    transform: none;
    object-fit: none;
  }
}

@media (max-width: 768px) {
  .parallax-fixed__img,
  .parallax-fixed .parallax-responsive__picture img,
  .parallax-strip__img,
  .parallax-strip__bg .parallax-responsive__picture img {
    left: 0;
    top: 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    transform: none;
    object-fit: none;
  }
}

.parallax-fixed__layer:not(.is-active) {
  visibility: hidden;
}

.parallax-fixed__layer.is-active {
  opacity: 1;
  z-index: 1;
}

.parallax-fixed__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

.theme-chapter {
  scroll-margin-top: var(--scroll-offset);
}

/* Textblock: deckend, volle Mindesthöhe (+ etwas Reserve, damit Parallax vollständig verdeckt wird) */
.theme-chapter__panel {
  min-height: calc(var(--parallax-fixed-height) + var(--parallax-panel-extra));
  box-sizing: border-box;
  background: var(--color-white);
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Freiraum zwischen Abschnitten – nur wenn Parallax-Bild gesetzt */
.theme-chapter__gap {
  min-height: var(--parallax-fixed-height);
  pointer-events: none;
}

.theme-chapter__panel > .container {
  width: 100%;
}

.theme-chapter__title {
  font-family: var(--font-heading);
  font-size: var(--heading-2-size);
  color: var(--heading-color);
  margin: 0 0 var(--space-md);
}

.theme-chapter__intro .theme-chapter__title--hero,
.theme-chapter__title--hero {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6.5vw, 4.25rem);
  line-height: 1.15;
}

.theme-chapter__intro {
  margin-bottom: var(--space-md);
}

.theme-chapter__action {
  margin-top: var(--space-md);
  text-align: center;
}

#start {
  scroll-margin-top: var(--scroll-offset);
}

.theme-chapter--start .theme-chapter__intro-reveal {
  height: calc(var(--parallax-fixed-height) * var(--intro-image-share) + var(--intro-reveal-extra));
  pointer-events: none;
}

.theme-chapter--start .theme-chapter__intro-panel {
  min-height: calc(var(--parallax-fixed-height) + var(--parallax-panel-extra));
  box-sizing: border-box;
  background: var(--color-white);
  padding: calc(var(--space-lg) - 1em) 0 var(--space-lg);
}

.theme-chapter--start .theme-chapter__intro-panel > .container {
  width: 100%;
}

.theme-chapter--start .theme-chapter__title--hero {
  margin: 0 0 var(--space-md);
}

.theme-chapter--start .theme-chapter__intro-lead {
  margin: 0;
}

.theme-chapter--start .theme-chapter__intro-body {
  margin-top: var(--space-md);
}

.home-intro__body.theme-chapter__intro-body,
.home-intro__body.theme-chapter__text {
  margin-top: 0;
}

.section-membership-logos {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: 0;
  width: 100%;
}

/* Verbands-Logos immer am unteren Rand der weißen Bereichs-Startfläche */
.theme-chapter--start:not(.theme-chapter--home) .theme-chapter__intro-panel:has(.section-membership-logos) {
  display: flex;
  flex-direction: column;
}

.theme-chapter--start:not(.theme-chapter--home) .theme-chapter__intro-panel:has(.section-membership-logos) > .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.theme-chapter--start:not(.theme-chapter--home) .home-intro__grid--with-logos {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}

.theme-chapter--start:not(.theme-chapter--home) .home-intro__grid--with-logos .home-intro__main,
.theme-chapter--start:not(.theme-chapter--home) .home-intro__grid--with-logos .section-membership-logos {
  justify-self: stretch;
  width: 100%;
}

.theme-chapter--start:not(.theme-chapter--home) .home-intro__grid--with-logos .home-intro__aside,
.theme-chapter--start:not(.theme-chapter--home) .home-intro__grid--with-logos .home-intro__body {
  justify-self: center;
}

.theme-chapter--start:not(.theme-chapter--home) .home-intro__grid--with-logos .section-membership-logos {
  margin-top: auto;
  margin-bottom: 0;
}

.section-membership-logos__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.section-membership-logos__text {
  margin: 0;
  font-size: var(--text-sm, 0.9375rem);
  line-height: 1.45;
  color: var(--area-allgemein-primary);
}

.section-membership-logos__logo {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.section-membership-logos__logo img {
  display: block;
  width: auto;
  max-width: min(100%, 11rem);
  max-height: 2.75rem;
  object-fit: contain;
  filter: grayscale(1) brightness(1.12);
  opacity: 0.45;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

@media (hover: hover) {
  .section-membership-logos__logo:hover img,
  .section-membership-logos__logo:focus-visible img {
    filter: none;
    opacity: 1;
  }
}

@media (hover: none) {
  .section-membership-logos__logo:active img {
    filter: none;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .section-membership-logos {
    align-items: center;
  }

  .section-membership-logos__row {
    justify-content: center;
    text-align: center;
  }
}

.theme-chapter--home .home-intro__head,
.section--about .home-intro__head {
  text-align: center;
  margin-bottom: var(--space-md);
}

.theme-chapter--home .home-intro__tagline,
.section--about .home-intro__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: lighter;
  /* font-style: italic; */
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  margin: 0 0 var(--space-sm);
}

.theme-chapter--home .home-intro__head .theme-chapter__title--hero,
.section--about .home-intro__head .theme-chapter__title--hero {
  margin: 0;
}

.home-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  justify-items: center;
}

.home-intro__grid--solo {
  max-width: 42rem;
  margin-inline: auto;
}

.home-intro__main {
  width: 100%;
}

.home-intro__aside {
  position: static;
  width: min(100%, 20.24rem);
  justify-self: center;
  margin-block: var(--space-sm);
}

.home-intro__body {
  width: 100%;
  max-width: 42rem;
  justify-self: center;
}

/* Quadratische Galerie – Foto + PNG-Randmaske als Overlay */
.image-square-soft {
  position: relative;
  margin: 0;
}

.image-square-soft__frame {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.image-square-soft--circle .image-square-soft__frame {
  display: block;
  position: relative;
}

.image-square-soft--circle .image-square-soft__frame > .image-square-soft__img {
  position: absolute;
  inset: 0;
}

.image-square-soft--circle .image-square-soft__frame > .image-square-soft__img picture,
.image-square-soft--circle .image-square-soft__frame .image-square-soft__img-el {
  display: block;
  width: 100%;
  height: 100%;
}

.image-square-soft--gallery .image-square-soft__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease-in-out;
  transition-duration: var(--gallery-transition, 10s);
  will-change: opacity;
}

.image-square-soft--gallery .image-square-soft__img.is-active {
  opacity: 1;
  z-index: 1;
}

.image-square-soft__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.image-square-soft__img-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.image-square-soft__mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.theme-chapter--home .image-square-soft.home-intro__image {
  margin: 0 auto;
  max-width: min(100%, 17.71rem);
}

.theme-chapter--home .home-intro__aside .image-square-soft.home-intro__image {
  max-width: 100%;
}

.theme-scroll--home .home-tiles {
  position: relative;
  z-index: 1;
}

.theme-scroll--home .home-tiles__panel {
  min-height: calc(var(--parallax-fixed-height) + 1.75em);
  box-sizing: border-box;
  background: var(--color-white);
  padding: var(--space-lg) 0 calc(var(--space-xl) + 4rem);
}

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 55, 50, 0.35) 0%,
    rgba(45, 55, 50, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-md);
  max-width: 40rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  opacity: 0.95;
  margin-bottom: var(--space-md);
}

.hero__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.92;
}

/* --- Parallax-Bildstreifen --- */

.parallax-strip {
  position: relative;
  height: clamp(16rem, 35vh, 28rem);
  overflow: hidden;
}

.parallax-strip__bg {
  position: absolute;
  inset: -20% 0;
  overflow: hidden;
  will-change: transform;
}

.parallax-strip__bg picture,
.parallax-responsive__picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.parallax-strip__img,
.parallax-strip__bg .parallax-responsive__picture img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: var(--parallax-focus, 50% 50%);
}

@media (min-width: 769px) {
  .parallax-strip__img,
  .parallax-strip__bg .parallax-responsive__picture img {
    left: 0;
    top: 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    transform: none;
    object-fit: none;
  }
}

.parallax-strip__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
}

/* --- Kacheln (Startseite) --- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

.tile {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  text-decoration: none;
  color: var(--color-white);
  border-bottom: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  color: var(--color-white);
  border-bottom-color: transparent;
}

.tile__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.tile__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.tile:hover .tile__bg {
  transform: scale(1.04);
}

.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.tile--heilpraxis .tile__overlay {
  background: linear-gradient(to top, color-mix(in srgb, var(--area-heilpraxis-secondary) 75%, transparent), transparent 48%);
}

.tile--yoga .tile__overlay {
  background: linear-gradient(to top, color-mix(in srgb, var(--area-yoga-secondary) 75%, transparent), transparent 48%);
}

.tile--massage .tile__overlay {
  background: linear-gradient(to top, color-mix(in srgb, var(--area-massage-secondary) 75%, transparent), transparent 48%);
}

.tile__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-white);
}

.tile__text {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0.25rem 0 0;
}

/* --- Inhaltsblöcke --- */

.content-block {
  max-width: 42rem;
}

.content-block--wide {
  max-width: var(--content-max-width);
}

.content-block + .content-block {
  margin-top: var(--space-lg);
}

/* Fließtext: Absatzwechsel = halbe Zeile, doppelte Leerzeile = ganze Zeile */
.prose p,
.theme-chapter__intro-lead p,
.theme-chapter__intro-body p,
.theme-chapter__text p {
  margin: 0;
}

.prose p + p,
.prose p + .text-gap,
.theme-chapter__intro-lead p + p,
.theme-chapter__intro-lead p + .text-gap,
.theme-chapter__intro-body p + p,
.theme-chapter__intro-body p + .text-gap,
.theme-chapter__text p + p,
.theme-chapter__text p + .text-gap {
  margin-top: 0.5lh;
}

.prose .text-gap + p,
.theme-chapter__intro-lead .text-gap + p,
.theme-chapter__intro-body .text-gap + p,
.theme-chapter__text .text-gap + p {
  margin-top: 0;
}

.text-gap {
  height: 0.5lh;
  margin: 0;
}

.theme-chapter__intro-lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.theme-chapter__intro :is(h1, h2, h3, h4):not(.theme-chapter__title--hero),
.theme-chapter__intro-body :is(h1, h2, h3, h4),
.theme-chapter__text :is(h1, h2, h3, h4),
.terminblock__intro :is(h1, h2, h3, h4),
.terminblock__category-text :is(h1, h2, h3, h4),
.termin-table__description :is(h1, h2, h3, h4),
.notice :is(h1, h2, h3, h4),
.content-block.prose :is(h1, h2, h3, h4) {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

.prose h1,
.theme-chapter__intro-body h1,
.theme-chapter__text h1,
.terminblock__intro h1,
.terminblock__category-text h1,
.termin-table__description h1,
.notice h1 { font-size: var(--heading-1-size); }

.prose h2,
.theme-chapter__intro-body h2,
.theme-chapter__text h2,
.terminblock__intro h2,
.terminblock__category-text h2,
.termin-table__description h2,
.notice h2 { font-size: var(--heading-2-size); }

.prose h3,
.theme-chapter__intro-body h3,
.theme-chapter__text h3,
.terminblock__intro h3,
.terminblock__category-text h3,
.termin-table__description h3,
.notice h3 { font-size: var(--heading-3-size); }

.prose h4,
.theme-chapter__intro-body h4,
.theme-chapter__text h4,
.terminblock__intro h4,
.terminblock__category-text h4,
.termin-table__description h4,
.notice h4 { font-size: var(--heading-4-size); }

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.theme-chapter__intro-body :is(h1, h2, h3, h4),
.theme-chapter__text :is(h1, h2, h3, h4),
.terminblock__intro :is(h1, h2, h3, h4),
.terminblock__category-text :is(h1, h2, h3, h4),
.termin-table__description :is(h1, h2, h3, h4),
.notice :is(h1, h2, h3, h4) {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child,
.theme-chapter__intro-body :is(h1, h2, h3, h4):first-child,
.theme-chapter__text :is(h1, h2, h3, h4):first-child,
.terminblock__intro :is(h1, h2, h3, h4):first-child,
.terminblock__category-text :is(h1, h2, h3, h4):first-child,
.termin-table__description :is(h1, h2, h3, h4):first-child,
.notice :is(h1, h2, h3, h4):first-child {
  margin-top: 0;
}

.prose h2 + h3,
.prose h3 + h2,
.theme-chapter__text h2 + h3,
.theme-chapter__text h3 + h2,
.terminblock__category-text h2 + h3,
.terminblock__category-text h3 + h2 {
  margin-top: var(--space-sm);
}

.prose strong {
  font-weight: 600;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-sm);
}

.prose li {
  margin-bottom: 0.35rem;
}

/* --- Preislisten --- */

.price-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.price-list__label {
  flex: 1;
}

.price-list__amount {
  font-weight: 500;
  color: var(--theme-accent-dark);
  white-space: nowrap;
}

.price-group {
  margin-bottom: var(--space-md);
}

.price-group h3 {
  margin-bottom: var(--space-xs);
}

.terminblock__category-title {
  margin-bottom: var(--space-sm);
}

/* --- Terminblock --- */

.terminblock {
  margin-top: var(--space-md);
}

.terminblock__intro {
  margin-bottom: var(--space-md);
}

.terminblock__intro :where(p, li) {
  color: var(--color-text-muted);
}

.terminblock__empty {
  color: var(--color-text-muted);
  font-style: italic;
}

.terminblock__empty-text :where(p, li) {
  color: var(--color-text-muted);
}

.terminblock__category + .terminblock__category {
  margin-top: var(--space-lg);
}

.termin-table {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.termin-table__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  overflow: visible;
}

.termin-table__booked {
  display: inline-block;
  padding: 0.12em 0.55em;
  background: #000;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}

.termin-table__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.termin-table__price-toggle {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--theme-secondary);
  line-height: 1.4;
  text-align: inherit;
  cursor: pointer;
  white-space: normal;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.5px;
  transition: color var(--link-color-duration) ease, text-decoration-color 0.35s ease;
}

.termin-table__price-toggle:hover,
.termin-table__price-toggle:focus-visible {
  color: var(--theme-secondary);
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

.termin-table__price-toggle:focus-visible {
  outline: none;
}

.termin-table__price-block.is-price-open .termin-table__price-toggle {
  display: none;
}

.termin-table__price-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  transition: grid-template-rows 0.35s ease;
}

.termin-table__price-block.is-price-open .termin-table__price-panel {
  grid-template-rows: 1fr;
  pointer-events: auto;
  cursor: pointer;
}

.termin-table__price-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.termin-table__price-panel-inner .termin-table__price {
  padding-top: 0.2rem;
}

.termin-table__row:first-child {
  border-top: 1px solid var(--color-border);
}

.termin-table__main {
  flex: 1 1 14rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.termin-table__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-secondary);
}

.termin-table__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  line-height: 1.4;
}

.termin-table__heading-sep,
.termin-table__units,
.termin-table__heading .termin-table__attendance {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--theme-secondary);
}

.termin-table__heading-sep {
  user-select: none;
}

.termin-table__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.termin-table__when-date {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--theme-secondary);
}

.termin-table__weekday {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--area-allgemein-secondary);
}

.termin-table__when,
.termin-table__dates-row,
.termin-table__schedules {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  line-height: 1.4;
}

.termin-table__schedules {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.2rem;
}

.termin-table__schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  line-height: 1.4;
}

.termin-table__dates-row .termin-table__dates {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--theme-accent-dark);
  letter-spacing: 0.01em;
}

.termin-table__times-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.termin-table__when .termin-table__times-sep {
  font-size: inherit;
  font-weight: 300;
  color: var(--theme-secondary);
  user-select: none;
}

.termin-table__times {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--area-allgemein-secondary);
}

.termin-table__times-prefix {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--area-allgemein-secondary);
}

.termin-table__cancel {
  font-size: 0.875rem;
  color: var(--area-allgemein-primary);
  font-style: italic;
}

.termin-table__meta {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.termin-table__location {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.termin-table__location a {
  color: var(--theme-accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.termin-table__description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.termin-table__description p {
  margin: 0;
}

.termin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  overflow: visible;
  --termin-btn-padding-y: 0.35rem;
  --termin-btn-padding-x: 0.65rem;
  --termin-btn-font-size: 0.75rem;
  --termin-btn-line-height: 1.35;
  --termin-register-btn-width: 6.25rem;
}

.termin-table__export-link,
.termin-table__register-link,
.content-block a.termin-table__export-link,
.content-block a.termin-table__register-link,
button.termin-table__register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: var(--termin-btn-padding-y) var(--termin-btn-padding-x);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--termin-btn-font-size);
  line-height: var(--termin-btn-line-height);
  font-weight: 500;
  color: var(--theme-primary);
  text-decoration: none;
  white-space: nowrap;
  background: var(--theme-bg);
  transition: background 0.35s ease, border-color 0.35s ease, color var(--link-color-duration) ease;
}

button.termin-table__register-link {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.termin-table__actions > .termin-table__register-link,
.termin-table__actions > button.termin-table__register-link,
.termin-table__action-menu:has(> .termin-table__register-link.termin-table__action-trigger) {
  width: var(--termin-register-btn-width);
  min-width: var(--termin-register-btn-width);
  max-width: var(--termin-register-btn-width);
}

.termin-table__actions > .termin-table__export-link,
.termin-table__export .termin-table__export-link,
.termin-table__export-menu:not(.termin-table__export-menu--help-inline) > .termin-table__export-link {
  font-size: var(--termin-btn-font-size);
  line-height: var(--termin-btn-line-height);
  padding: var(--termin-btn-padding-y) var(--termin-btn-padding-x);
}

.termin-table__actions > .termin-table__register-link--time-slot,
.termin-table__action-times .termin-table__register-link,
.termin-table__action-times .termin-table__register-link--time-slot,
.termin-table__action-times button.termin-table__register-link {
  width: 100%;
  min-width: 0;
  max-width: var(--termin-register-btn-width);
  box-sizing: border-box;
}

.termin-table__action-menu:has(.termin-table__register-link--time-slot),
.termin-table__action-menu:has(> .termin-table__register-link.termin-table__action-trigger) {
  width: var(--termin-register-btn-width);
  min-width: var(--termin-register-btn-width);
  max-width: var(--termin-register-btn-width);
}

.termin-table__export-link--google {
  display: none !important;
}

.termin-table__export-menu {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.termin-table__export-menu--help:hover,
.termin-table__export-menu--help:focus-within {
  z-index: 4;
}

.termin-table__export-menu--help-inline:hover,
.termin-table__export-menu--help-inline:focus-within {
  z-index: 5;
}

.termin-table__export {
  overflow: visible;
}

.termin-table__export-platforms {
  display: none;
}

.termin-table__export-platform {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.termin-table__export-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--theme-bg);
  cursor: help;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.termin-table__export-platform-btn:hover,
.termin-table__export-platform-btn:focus-visible {
  background: var(--theme-bg-soft);
  border-color: var(--theme-accent);
  outline: none;
}

.termin-table__export-platform-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.termin-table__export-platform-tip {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  z-index: 5;
  width: min(18rem, 72vw);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.65rem;
  background: var(--theme-bg);
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.2rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.termin-table__export-platform-tip-title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--theme-secondary);
}

.termin-table__export-platform-tip-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

@media (min-width: 769px) {
  .termin-table__export-link--ics {
    display: inline-flex !important;
  }

  .termin-table__export-menu--help-above .termin-table__export-platforms {
    position: absolute;
    bottom: 100%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(0.15rem);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .termin-table__export-menu--help-above:hover .termin-table__export-platforms,
  .termin-table__export-menu--help-above:focus-within .termin-table__export-platforms {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .termin-table__export-menu--help-inline {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .termin-table__export-menu--help-inline .termin-table__export-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  .termin-table__export-menu--help-inline .termin-table__export-platforms {
    position: absolute;
    top: 50%;
    left: 100%;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding-bottom: 0;
    padding-left: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(-0.15rem);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .termin-table__export-menu--help-inline:hover .termin-table__export-platforms,
  .termin-table__export-menu--help-inline:focus-within .termin-table__export-platforms {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }

  .termin-table__export-menu--help-inline .termin-table__export-platform-tip {
    bottom: calc(100% + 0.45rem);
    left: 50%;
    transform: translateX(-50%) translateY(0.15rem);
  }

  .termin-table__export-menu--help-inline .termin-table__export-platform:hover .termin-table__export-platform-tip,
  .termin-table__export-menu--help-inline .termin-table__export-platform:focus-within .termin-table__export-platform-tip {
    transform: translateX(-50%) translateY(0);
  }

  .termin-table__export-platform:hover .termin-table__export-platform-tip,
  .termin-table__export-platform:focus-within .termin-table__export-platform-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.termin-table__export-link:hover,
.termin-table__export-link:focus-visible,
.termin-table__register-link:hover,
.termin-table__register-link:focus-visible,
.content-block a.termin-table__export-link:hover,
.content-block a.termin-table__export-link:focus-visible,
.content-block a.termin-table__register-link:hover,
.content-block a.termin-table__register-link:focus-visible,
button.termin-table__register-link:hover,
button.termin-table__register-link:focus-visible {
  color: var(--theme-secondary);
  text-decoration: none;
  background: var(--theme-bg-soft);
  border-color: var(--theme-accent);
}

.termin-table__action-menu {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: fit-content;
  --termin-action-open: 1.1s;
  --termin-action-close: 1.45s;
  --termin-action-ease-open: cubic-bezier(0.22, 1, 0.36, 1);
  --termin-action-ease-close: linear;
}

.termin-table__action-menu:hover,
.termin-table__action-menu:focus-visible,
.termin-table__action-menu:focus-within:has(:focus-visible) {
  z-index: 1;
}

.termin-table__action-trigger {
  grid-area: 1 / 1;
  cursor: default;
  width: 100%;
  z-index: 2;
  opacity: 1;
  transition: opacity var(--termin-action-close) var(--termin-action-ease-close);
}

.termin-table__action-expanded {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: 0fr;
  width: 0;
  min-width: 0;
  overflow: hidden;
  transition:
    grid-template-rows var(--termin-action-close) var(--termin-action-ease-close),
    width 0s linear var(--termin-action-close);
}

.termin-table__action-expanded-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: 0;
  overflow: hidden;
  padding: 0.35rem 0;
  opacity: 0;
  transition: opacity var(--termin-action-close) var(--termin-action-ease-close);
}

.termin-table__action-menu:hover .termin-table__action-trigger,
.termin-table__action-menu:focus-visible .termin-table__action-trigger,
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-trigger {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--termin-action-open) var(--termin-action-ease-open);
}

.termin-table__action-menu:hover .termin-table__action-expanded,
.termin-table__action-menu:focus-visible .termin-table__action-expanded,
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-expanded {
  grid-template-rows: 1fr;
  width: 100%;
  min-width: 100%;
  transition:
    grid-template-rows var(--termin-action-open) var(--termin-action-ease-open) 0s,
    width 0s linear 0s;
}

.termin-table__action-menu:hover .termin-table__action-expanded-inner,
.termin-table__action-menu:focus-visible .termin-table__action-expanded-inner,
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-expanded-inner {
  opacity: 1;
  transition: opacity var(--termin-action-open) var(--termin-action-ease-open) 0s;
}

.termin-table__action-menu:focus-visible {
  outline: none;
}

.termin-table__action-expanded:has(.termin-table__export-menu--help),
.termin-table__action-expanded-inner:has(.termin-table__export-menu--help) {
  overflow: visible;
}

.termin-table__action-heading {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--theme-primary);
  text-align: center;
  white-space: nowrap;
}

.termin-table__action-times {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.termin-table__action-times .termin-table__export-menu {
  width: 100%;
  transform: translateY(0.15rem);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color var(--link-color-duration) ease,
    transform 0.35s ease;
}

.termin-table__action-times .termin-table__export-menu .termin-table__export-link {
  transform: none;
}

.termin-table__action-times .termin-table__register-link,
.termin-table__action-times .termin-table__export-link {
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transform: translateY(0.15rem);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color var(--link-color-duration) ease;
}

.termin-table__action-menu:hover .termin-table__action-times .termin-table__register-link,
.termin-table__action-menu:hover .termin-table__action-times .termin-table__export-link,
.termin-table__action-menu:hover .termin-table__action-times .termin-table__export-menu,
.termin-table__action-menu:focus-visible .termin-table__action-times .termin-table__register-link,
.termin-table__action-menu:focus-visible .termin-table__action-times .termin-table__export-link,
.termin-table__action-menu:focus-visible .termin-table__action-times .termin-table__export-menu,
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times .termin-table__register-link,
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times .termin-table__export-link,
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times .termin-table__export-menu {
  transform: translateY(0);
  transition:
    transform var(--termin-action-open) var(--termin-action-ease-open),
    background 0.35s ease,
    border-color 0.35s ease,
    color var(--link-color-duration) ease;
}

.termin-table__action-menu:hover .termin-table__action-times > :nth-child(1),
.termin-table__action-menu:focus-visible .termin-table__action-times > :nth-child(1),
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times > :nth-child(1),
.termin-table__action-menu:hover .termin-table__action-times > :nth-child(2),
.termin-table__action-menu:focus-visible .termin-table__action-times > :nth-child(2),
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times > :nth-child(2),
.termin-table__action-menu:hover .termin-table__action-times > :nth-child(3),
.termin-table__action-menu:focus-visible .termin-table__action-times > :nth-child(3),
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times > :nth-child(3),
.termin-table__action-menu:hover .termin-table__action-times > :nth-child(4),
.termin-table__action-menu:focus-visible .termin-table__action-times > :nth-child(4),
.termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times > :nth-child(4) {
  transition-delay: 0s;
}

.termin-table__action-times .termin-table__register-link,
.termin-table__action-times .termin-table__export-link {
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .termin-table__action-trigger,
  .termin-table__action-expanded,
  .termin-table__action-expanded-inner,
  .termin-table__action-times .termin-table__register-link,
  .termin-table__action-times .termin-table__export-link {
    transition: none;
    transform: none;
  }

  .termin-table__action-menu:hover .termin-table__action-trigger,
  .termin-table__action-menu:focus-visible .termin-table__action-trigger,
  .termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-trigger {
    opacity: 0;
  }

  .termin-table__action-menu:hover .termin-table__action-expanded,
  .termin-table__action-menu:focus-visible .termin-table__action-expanded,
  .termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-expanded {
    grid-template-rows: 1fr;
  }

  .termin-table__action-menu:hover .termin-table__action-expanded-inner,
  .termin-table__action-menu:focus-visible .termin-table__action-expanded-inner,
  .termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-expanded-inner,
  .termin-table__action-menu:hover .termin-table__action-times .termin-table__register-link,
  .termin-table__action-menu:hover .termin-table__action-times .termin-table__export-link,
  .termin-table__action-menu:focus-visible .termin-table__action-times .termin-table__register-link,
  .termin-table__action-menu:focus-visible .termin-table__action-times .termin-table__export-link,
  .termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times .termin-table__register-link,
  .termin-table__action-menu:focus-within:has(:focus-visible) .termin-table__action-times .termin-table__export-link {
    opacity: 1;
  }

  .termin-table__price-panel {
    transition: none;
  }
}

.terminblock__category-text {
  margin-top: var(--space-sm);
}

.terminblock__category-text :where(p, li) {
  color: var(--color-text-muted);
}

/* --- Ort-Seiten --- */

.ort-page__kicker {
  margin: 0 0 var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.section--theme:has(+ .section--ort) {
  padding-bottom: var(--space-sm);
}

.section--ort {
  padding-top: var(--space-sm);
}

.ort-card {
  max-width: 36rem;
  margin-inline: auto;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  background: var(--theme-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.ort-card__map {
  width: min(100%, 28rem);
  margin: var(--space-md) auto 0;
}

.ort-card__map.map-embed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-xs);
  overflow: visible;
}

.ort-card__map .map-embed__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ort-card__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.ort-card__contact-item {
  display: grid;
  gap: 0.15rem;
}

.ort-card__contact-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ort-card__contact-link {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--theme-accent-dark);
  text-decoration: none;
}

.ort-card__contact-link:hover,
.ort-card__contact-link:focus-visible {
  color: var(--theme-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ort-card__body > .ort-card__section + .ort-card__section {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.ort-card__heading {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--heading-3-size);
  font-weight: 400;
  line-height: 1.3;
  color: var(--heading-color);
}

.ort-card__address {
  font-style: normal;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--theme-accent-dark);
}

.ort-card__address-line {
  display: block;
}

.ort-card__address-line + .ort-card__address-line {
  margin-top: 0.2rem;
}

.ort-card__description :where(p, li) {
  color: var(--color-text-muted);
}

.ort-card__description :where(p:last-child) {
  margin-bottom: 0;
}

.ort-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.ort-card__actions--separated {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.ort-card__btn-maps {
  background: transparent;
  color: var(--theme-accent-dark);
  border: 1.5px solid var(--theme-accent);
  box-shadow: none;
}

.ort-card__btn-maps:hover,
.ort-card__btn-maps:focus-visible {
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  color: var(--theme-accent-dark);
  border-color: var(--theme-accent-dark);
  transform: translateY(-1px);
}

@media (max-width: 40rem) {
  .ort-card {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .ort-card__map {
    width: 100%;
  }

  .ort-card__map .map-embed__viewport {
    max-height: 11rem;
  }

  .ort-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ort-card__actions .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 40rem) {
  .termin-table__row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .termin-table__main {
    flex: 0 1 auto;
    width: 100%;
    gap: 0.2rem;
  }

  .termin-table__actions {
    width: 100%;
    align-self: stretch;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}

/* --- Wochenplan --- */

@media (min-width: 769px) {
  #main .section--wochenplan .container {
    width: min(calc(var(--max-width) * 0.8), 100% - 2 * var(--text-gutter));
  }

  #main .section--wochenplan .container.content-block--wide {
    max-width: none;
  }

  .section--wochenplan .schedule {
    width: 100%;
    gap: 1rem;
    margin-block: var(--space-sm);
  }
}

.theme-scroll--page .theme-chapter--page .theme-chapter__intro-panel {
  padding-bottom: var(--space-lg);
}

.theme-scroll--page .section--wochenplan,
.theme-scroll--page .section--contact,
.theme-scroll--page .section--about {
  background: transparent;
  padding-top: 0;
}

.theme-chapter__panel .section--wochenplan {
  background: transparent;
}

.theme-scroll--page .section--wochenplan .container:first-child h1,
.theme-scroll--page .section--contact h1 {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6.5vw, 4.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section--wochenplan .schedule {
  margin-top: var(--space-sm);
}

.schedule {
  display: grid;
  grid-template-columns: repeat(var(--schedule-columns, 5), 1fr);
  gap: var(--space-md);
  margin: var(--space-md) 0;
  --schedule-font-size: 1rem;
  --schedule-font-size-sm: 0.9375rem;
}

.schedule--legacy + .schedule-auto-note,
.schedule-auto-note {
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.schedule-day {
  background: var(--theme-bg);
  border-radius: 0.5rem;
  padding: var(--space-md);
  min-height: 12rem;
}

.schedule-day h3 {
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.125rem;
}

.schedule-entry {
  font-size: var(--schedule-font-size);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.schedule-entry__time {
  display: block;
  font-weight: 500;
  color: var(--color-text);
}

.schedule-entry__area-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.schedule-entry__area-wrap::after {
  content: '';
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  top: 100%;
  height: 0.85rem;
}

.schedule-entry__label--detail {
  cursor: default;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-underline-offset: 0.18em;
}

@media (pointer: coarse) {
  .schedule-entry__label--detail {
    cursor: pointer;
    padding-block: 0.2rem;
  }
}

.schedule-entry__label--detail:hover,
.schedule-entry__area-wrap.is-hover .schedule-entry__label--detail,
.schedule-entry__area-wrap:focus-within .schedule-entry__label--detail {
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
}

.schedule-entry__label--detail:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  outline-offset: 2px;
  border-radius: 0.15rem;
}

.schedule-entry__popover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 30;
  left: 0;
  top: 100%;
  margin-top: 0.2rem;
  width: max-content;
  max-width: min(20rem, calc(100vw - 2 * var(--page-gutter)));
  padding: 0.9rem 1.15rem;
  border-radius: 0.5rem;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border);
  box-shadow: 0 0.35rem 1.25rem rgb(0 0 0 / 0.12);
  transition: opacity 0.15s ease, visibility 0.15s ease;
  font-size: var(--schedule-font-size-sm);
}

.schedule-entry__popover::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.5rem;
}

.schedule-entry__area-wrap.is-hover .schedule-entry__popover,
.schedule-entry__area-wrap:focus-within .schedule-entry__popover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) and (not (pointer: coarse)) {
  .schedule-entry__area-wrap:hover .schedule-entry__popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

.schedule-popover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.schedule-popover__item {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.schedule-popover__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.schedule-popover__title {
  font-weight: 600;
  font-size: var(--schedule-font-size);
  color: var(--color-text);
  text-wrap: pretty;
}

.schedule-popover__subtitle {
  font-size: var(--schedule-font-size-sm);
  color: var(--color-text-muted);
}

.schedule-popover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: var(--schedule-font-size-sm);
}

.schedule-popover__area {
  font-weight: 500;
}

.schedule-popover__item--heilpraxis .schedule-popover__area { color: var(--area-heilpraxis-secondary); }
.schedule-popover__item--yoga .schedule-popover__area { color: var(--area-yoga-secondary); }
.schedule-popover__item--massage .schedule-popover__area { color: var(--area-massage-secondary); }

.schedule-popover__dates {
  color: var(--color-text-muted);
}

.schedule-popover__cancel {
  font-size: var(--schedule-font-size-sm);
  color: var(--color-text-muted);
}

.schedule-popover__action {
  margin: 0.5rem 0 0;
  display: flex;
}

.schedule-popover__action .btn--compact {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}

.schedule-entry__label {
  display: block;
}

.schedule-entry__areas {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.schedule-entry--heilpraxis { color: var(--area-heilpraxis-secondary); }
.schedule-entry--yoga { color: var(--area-yoga-secondary); }
.schedule-entry--massage { color: var(--area-massage-secondary); }

.schedule-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 769px) {
  .schedule-notes {
    --schedule-note-min: max(12rem, calc((100% - 3 * var(--space-md)) / 4));
    grid-template-columns: repeat(auto-fit, minmax(var(--schedule-note-min), 1fr));
  }
}

.schedule-note {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-md);
  background: var(--theme-bg-soft);
  border-radius: 0.5rem;
  text-align: center;
}

.schedule-note__title {
  margin-bottom: var(--space-xs);
}

.schedule-note__title.prose > :first-child {
  margin-top: 0;
}

.schedule-note__title.prose :is(h1, h2, h3, h4, p) {
  font-family: var(--font-heading);
  font-size: var(--heading-2-size);
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.25;
}

.schedule-note__text {
  margin-bottom: var(--space-sm);
}

.schedule-note__text :where(p) {
  margin: 0;
}

.schedule-note__action {
  margin: auto 0 0;
  padding-top: var(--space-sm);
}

/* --- Kontakt --- */

.section--theme:has(+ .section--contact) {
  padding-bottom: var(--space-sm);
}

.section--contact {
  padding-top: var(--space-sm);
}

.section--contact .container {
  text-align: center;
}

.section--contact h1 {
  text-align: center;
}

.contact-grid {
  --contact-btn-width: min(100%, calc(20rem + 4ch));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-md);
  margin: 0 auto;
  justify-items: center;
}

.contact-card {
  container-type: inline-size;
  background: var(--theme-bg);
  padding: var(--space-md);
  border-radius: 0.5rem;
  text-align: center;
  width: 100%;
  max-width: calc(22rem + 4ch);
}

.contact-card h3 {
  margin: 0 0 var(--space-sm);
}

.contact-card__channel + .contact-card__channel {
  margin-top: var(--space-md);
}

.contact-card__channel .contact-card__note:last-child {
  margin-bottom: 0;
}

.contact-card__action,
.contact-card__action--phone,
.contact-card__action--maps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--space-sm);
}

.contact-card__action .btn,
.contact-card__btn-maps {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: var(--contact-btn-width);
  max-width: 100%;
  min-height: 3.1rem;
  padding: 0.9rem 1.35rem;
  font-size: 1.125rem;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.contact-card__action .btn--allgemein {
  background: var(--area-allgemein-primary);
}

.contact-card__action .btn--allgemein:hover,
.contact-card__action .btn--allgemein:focus-visible {
  background: color-mix(in srgb, var(--area-allgemein-primary) 82%, #000);
}

.contact-card__action .contact-card__btn--whatsapp {
  background: var(--area-allgemein-primary);
  color: var(--color-white);
}

.contact-card__action .contact-card__btn--whatsapp:hover,
.contact-card__action .contact-card__btn--whatsapp:focus-visible {
  background: color-mix(in srgb, var(--area-allgemein-primary) 82%, #000);
  color: var(--color-white);
}

.contact-card__action .contact-card__btn--email {
  font-size: clamp(0.875rem, 0.78rem + 0.52cqi, 1.125rem);
  line-height: 1.25;
  white-space: nowrap;
  padding-inline: 0.75rem;
}

.contact-card__address {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--theme-accent-dark);
  font-weight: 500;
  text-align: center;
}

.contact-card__map {
  width: var(--contact-btn-width);
  max-width: 100%;
  margin: var(--space-sm) auto 0;
}

.contact-card__map.map-embed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-xs);
  overflow: visible;
}

.contact-card__map .map-embed__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  aspect-ratio: 16 / 9;
  max-height: 13rem;
  background: var(--color-white);
}

.map-embed__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.375rem;
  background: var(--color-white);
}

.map-embed.is-loaded .map-embed__overlay {
  display: none;
}

.map-embed__frame {
  display: none;
  height: 100%;
}

.map-embed.is-loaded .map-embed__frame {
  display: block;
  height: 100%;
}

.map-embed__text {
  margin: 0;
  width: 100%;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--area-allgemein-secondary);
  text-align: center;
}

.map-embed__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.map-embed__text a:hover,
.map-embed__text a:focus-visible {
  color: var(--area-allgemein-primary);
}

.map-embed__load {
  align-self: center;
  flex-shrink: 0;
}

.map-embed.is-loaded .map-embed__load {
  display: none;
}

.contact-card__note {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.contact-card__note :where(p) {
  margin: 0;
}

.contact-page__text {
  margin-top: var(--space-md);
  text-align: center;
}

.contact-page__intro,
.registration-lightbox-panel__intro {
  margin: calc(-1 * var(--space-xs)) 0 var(--space-md);
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
  color: var(--color-text-light);
}

.contact-page__intro p,
.registration-lightbox-panel__intro p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.contact-page__intro p + p,
.registration-lightbox-panel__intro p + p {
  margin-top: 0.25em;
}

/* --- Kontakt- & Anmeldeformular --- */

.contact-form-section {
  margin-top: var(--space-xl);
  max-width: 36rem;
  margin-inline: auto;
}

.section--contact .contact-form-section {
  margin-top: var(--space-md);
  width: 100%;
  max-width: none;
}

.section--contact .contact-form-section__inner {
  width: 100%;
  max-width: calc(22rem + 4ch);
  margin-inline: auto;
}

.contact-form-panel--card {
  background: var(--theme-bg);
  padding: var(--space-md);
  border-radius: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  overflow-x: clip;
}

.contact-form-panel--card .contact-form-panel__title {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.contact-form-panel--card .contact-form-panel__intro {
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.contact-form-panel--card .contact-form {
  gap: 0.65rem;
  text-align: left;
}

.contact-form-panel--card .contact-form__row {
  gap: 0.65rem;
}

.contact-form-panel--card .contact-form__field {
  gap: 0.25rem;
}

.contact-form-panel--card .contact-form__label {
  font-size: 0.875rem;
}

.contact-form-panel--card .contact-form__input,
.contact-form-panel--card .contact-form__textarea {
  padding: 0.5rem 0.7rem;
  font-size: 0.9375rem;
}

.contact-form-panel--card .contact-form__textarea--subject {
  min-height: 2.35rem;
}

.contact-form-panel--card .contact-form__textarea {
  min-height: 5rem;
  resize: vertical;
}

.contact-form-panel--card .contact-form__notice {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.contact-form-panel--card .contact-form__actions {
  justify-content: center;
  margin-top: 0.15rem;
}

.contact-form-panel--card .contact-form__submit {
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
}

.contact-form-panel__top-hint {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  color: var(--area-allgemein-secondary);
}

@media (max-width: 768px) {
  .section--contact .contact-form-section {
    padding-inline: 0;
  }
}

@media (min-width: 769px) {
  .section--contact .contact-form-section {
    --contact-btn-width: min(100%, calc(20rem + 4ch));
    max-width: calc(22rem + 4ch);
  }
}

.contact-form-section__intro {
  margin-bottom: var(--space-md);
  text-align: center;
  color: var(--color-text-light);
}

.contact-form-panel__title {
  margin: 0 0 var(--space-md);
  font-size: 1.35rem;
  text-align: center;
  color: var(--heading-color, var(--color-text));
}

.contact-form-panel__intro {
  margin-bottom: var(--space-md);
  text-align: center;
  color: var(--color-text-light);
}

.contact-form-panel__intro p {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: var(--space-md);
  min-width: 0;
}

.contact-form__row {
  display: grid;
  gap: var(--space-md);
  min-width: 0;
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.contact-form__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--heading-color, var(--color-text));
}

.contact-form__required {
  color: var(--area-allgemein-secondary);
  font-weight: 600;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
  border-radius: 0.5rem;
  font: inherit;
  background: var(--color-white, #fff);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 20%, transparent);
}

.contact-form__field--captcha {
  text-align: center;
  justify-items: center;
}

.contact-form__field--turnstile {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__input--captcha {
  max-width: 8rem;
  margin-inline: auto;
}

.contact-form__textarea--subject {
  resize: none;
  overflow: hidden;
  min-height: 3rem;
  max-width: 100%;
  field-sizing: fixed;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-start;
}

.contact-form__notice {
  padding: var(--space-md);
  border-radius: 0.5rem;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

.contact-form__notice--success {
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  border-left: 3px solid var(--theme-accent);
}

.contact-form__notice--error {
  background: color-mix(in srgb, #c0392b 10%, transparent);
  border-left: 3px solid #c0392b;
}

.contact-form__notice a {
  color: inherit;
  text-decoration: underline;
}

.registration-form__back {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.9375rem;
}

/* --- Formular-Lightbox (Anmeldung Terminblock) --- */

.form-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.form-lightbox[hidden] {
  display: none;
}

.form-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.6s ease, visibility 0s linear 0s;
}

.form-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.52);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.form-lightbox.is-open .form-lightbox__backdrop {
  opacity: 1;
}

.form-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  max-height: min(92vh, 48rem);
  overflow: auto;
  background: var(--color-white, #fff);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.22);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  opacity: 0;
  transform: translateY(0.75rem) scale(0.985);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-lightbox.is-open .form-lightbox__dialog {
  opacity: 1;
  transform: none;
}

@media (max-width: 40rem) {
  .form-lightbox {
    padding: 0;
    align-items: stretch;
  }

  .form-lightbox__dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(1rem);
  }

  .form-lightbox.is-open .form-lightbox__dialog {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-lightbox,
  .form-lightbox__backdrop,
  .form-lightbox__dialog {
    transition: none;
  }

  .form-lightbox__dialog {
    transform: none;
  }
}

.form-lightbox__close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  font-size: 2.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 0.35rem 0.55rem;
  min-width: 2.85rem;
  min-height: 2.85rem;
  border-radius: 0.35rem;
}

.form-lightbox__close:hover,
.form-lightbox__close:focus-visible {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
}

.form-lightbox__content .contact-form-panel--card {
  max-width: none;
}

.registration-lightbox-panel__form {
  margin-top: var(--space-sm);
}

.form-lightbox.is-loading .form-lightbox__content {
  min-height: 8rem;
  opacity: 0.55;
}

.termin-table__register-link--form {
  font: inherit;
  font-size: var(--termin-btn-font-size);
  line-height: var(--termin-btn-line-height);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.registration-lightbox-panel__title {
  margin: 0 0 var(--space-md);
  font-size: var(--font-size-h3, 1.35rem);
  line-height: 1.25;
}

.registration-lightbox-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  justify-content: center;
}

.registration-lightbox-panel__actions .registration-lightbox-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 40rem) {
  .registration-lightbox-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .registration-lightbox-panel__title,
  .registration-lightbox-panel__form {
    width: 100%;
  }

  .registration-lightbox-panel__actions {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr);
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    justify-items: stretch;
  }

  .registration-lightbox-panel__actions .registration-lightbox-panel__btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }
}

.registration-lightbox-panel__btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
}

.registration-lightbox-panel__btn--whatsapp:hover,
.registration-lightbox-panel__btn--whatsapp:focus-visible {
  background: #1ebe57;
  border-color: #1ebe57;
}

.registration-lightbox-panel__form .contact-form-panel__title {
  display: none;
}

html.is-form-lightbox-open,
body.is-form-lightbox-open {
  overflow: hidden;
}

.termin-table__action-times .termin-table__register-link--form {
  display: inline-block;
}

.termin-table__action-time-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
}

.termin-table__action-time-label {
  font-weight: 600;
  font-size: 0.8125rem;
  min-width: 3.5rem;
}

/* --- Hinweis-Box --- */

.notice {
  background: var(--theme-highlight);
  border-left: 3px solid var(--theme-accent);
  padding: var(--space-md);
  border-radius: 0 0.25rem 0.25rem 0;
  margin: var(--space-md) 0;
  font-size: 0.9375rem;
}

.notice--legal {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* --- Preisblock --- */

.preisblock__intro {
  margin-bottom: var(--space-md);
}

.preisblock__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.price-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.price-column__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--heading-3-size);
  font-weight: 400;
  line-height: 1.3;
  color: var(--heading-color);
}

.price-table {
  display: flex;
  flex: 1;
  flex-direction: column;
  background: var(--theme-bg);
  border-radius: 0.5rem;
  padding: var(--space-md);
}

.price-table__grid {
  flex: 1 0 auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.price-table__grid tr + tr {
  border-top: 1px solid var(--color-border);
}

.price-table__offer,
.price-table__price {
  padding: 0.65rem 0;
  vertical-align: top;
}

.price-table__offer {
  font-weight: 400;
  color: var(--color-text);
  text-align: left;
  width: 70%;
}

.price-table__offer-name {
  display: block;
  font-weight: 500;
}

.price-table__price {
  font-weight: 500;
  color: var(--theme-secondary);
  text-align: right;
  white-space: nowrap;
}

.price-table__note {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-light);
}

@media (min-width: 769px) {
  .price-table__grid tr.price-table__row-note {
    border-top: none;
  }

  .price-table__note-cell {
    padding: 0 0 0.65rem;
    vertical-align: top;
  }

  .price-table__row + .price-table__row-note .price-table__note-cell {
    padding-top: 0;
    margin-top: -0.35rem;
  }

  .price-table__row-note + .price-table__row {
    border-top: 1px solid var(--color-border);
  }

  .price-table__note-cell .price-table__note {
    width: 100%;
  }
}

.price-column__note {
  margin: auto 0 0;
  padding-top: var(--space-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--theme-secondary);
}

.termin-table__price {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--theme-secondary);
  line-height: 1.4;
}

.termin-table__price--missing {
  color: var(--color-negative, #c82828);
  font-style: italic;
}

.termin-table__event-link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
}

.content-block a.termin-table__event-link,
.termin-table__event-link a,
a.termin-table__event-link {
  color: var(--theme-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.content-block a.termin-table__event-link:hover,
.content-block a.termin-table__event-link:focus-visible,
.termin-table__event-link a:hover,
.termin-table__event-link a:focus-visible,
a.termin-table__event-link:hover,
a.termin-table__event-link:focus-visible {
  color: var(--theme-primary);
  text-decoration: underline;
}

.prose a.text-link-ort,
.content-block a.text-link-ort,
.termin-table__description a.text-link-ort {
  color: var(--theme-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a.text-link-ort:hover,
.prose a.text-link-ort:focus-visible,
.content-block a.text-link-ort:hover,
.content-block a.text-link-ort:focus-visible,
.termin-table__description a.text-link-ort:hover,
.termin-table__description a.text-link-ort:focus-visible {
  color: var(--theme-primary);
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .preisblock__columns {
    grid-template-columns: 1fr;
  }

  .price-column {
    width: 100%;
  }

  .price-table__offer,
  .price-table__price {
    display: block;
    width: 100%;
    text-align: center;
    padding-inline: 0;
  }

  .price-table__offer {
    padding-top: 0.35rem;
    padding-bottom: 0.15rem;
  }

  .price-table__price {
    padding-top: 0.1rem;
    padding-bottom: 1.05rem;
  }

  .price-table__grid tbody tr:not(:first-child) .price-table__offer {
    padding-top: 1.05rem;
  }

  .price-table__grid tr + tr {
    border-top: none;
  }

  .price-table__grid tbody tr {
    border-top: 1px solid var(--color-border);
  }

  .price-table__grid tbody tr:first-child {
    border-top: none;
  }

  .price-table__grid tbody tr.price-table__row-note {
    border-top: none;
  }

  .price-table__grid tbody tr.price-table__row-note + tr.price-table__row {
    border-top: 1px solid var(--color-border);
  }
}

/* --- Verbandslogo --- */

.association-logo {
  margin-top: var(--space-md);
  opacity: 0.7;
}

.association-logo img {
  max-height: 2.5rem;
  width: auto;
}

/* --- Footer --- */

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  margin-top: var(--space-xl);
  font-size: 0.875rem;
}

main:has(.theme-scroll) + .site-footer {
  margin-top: 0;
}

body.is-footer-scroll {
  overscroll-behavior-y: none;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--color-text-light);
}

.site-footer a:hover {
  color: var(--theme-accent-dark);
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--theme-accent);
  color: var(--color-white);
  border-radius: 2rem;
  font-size: 0.9375rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  border-bottom: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--theme-accent-dark);
  color: var(--color-white);
  border-bottom-color: transparent;
  transform: translateY(-1px);
}

.btn--compact {
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 1rem;
  line-height: 1.35;
}

.btn--allgemein {
  background: var(--area-allgemein-secondary);
}

.btn--allgemein:hover {
  background: color-mix(in srgb, var(--area-allgemein-secondary) 82%, #000);
}

.btn--heilpraxis {
  background: var(--area-heilpraxis-secondary);
}

.btn--heilpraxis:hover {
  background: color-mix(in srgb, var(--area-heilpraxis-secondary) 82%, #000);
}

.btn--yoga {
  background: var(--area-yoga-secondary);
}

.btn--yoga:hover {
  background: color-mix(in srgb, var(--area-yoga-secondary) 82%, #000);
}

.btn--massage {
  background: var(--area-massage-secondary);
}

.btn--massage:hover {
  background: color-mix(in srgb, var(--area-massage-secondary) 82%, #000);
}

.btn--allgemein,
.btn--heilpraxis,
.btn--yoga,
.btn--massage {
  color: var(--color-white);
}

.btn--allgemein:hover,
.btn--heilpraxis:hover,
.btn--yoga:hover,
.btn--massage:hover {
  color: var(--color-white);
  border-bottom-color: transparent;
  transform: translateY(-1px);
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-width);
  text-underline-offset: 0.18em;
  text-decoration-color: currentColor;
}

/* --- Brand name styling --- */

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35em;
  color: var(--theme-accent-dark);
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .tiles {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }

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

  .hero__bg {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 1.5rem;
    --text-gutter: 2rem;
    --header-gutter: 0.5rem;
    --header-height: 4rem;
    --header-logo-offset: calc(-0.6rem + 5px);
    --header-logo-image-height: 3.5rem;
    --header-toggle-size: 3rem;
  }

  /* Kein seitliches Wischen – Parallax bleibt unter dem Inhalt (Home + Bereiche) */
  html,
  body {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  .site-nav-stack {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    box-sizing: border-box;
  }

  body:has(.theme-scroll) {
    touch-action: pan-y;
  }

  .theme-scroll,
  .theme-scroll__content,
  #main {
    overflow-x: clip;
    max-width: 100%;
  }

  .parallax-fixed {
    width: 100%;
    max-width: 100%;
  }

  .theme-scroll {
    --intro-reveal-extra: 75px;
  }

  .theme-chapter--home .theme-chapter__intro-panel {
    padding-top: calc((var(--space-lg) - 1em) * 2 / 3);
  }

  .theme-chapter--start:not(.theme-chapter--home) .theme-chapter__intro-panel {
    padding-top: calc((var(--space-lg) - 1em) * 2 / 3);
  }

  .theme-chapter:not(.theme-chapter--start) .theme-chapter__panel {
    padding-top: calc(var(--space-lg) * 2 / 3);
  }

  /* Einheitliche Header-Zeile – auch Bereichsseiten (page-has-section-nav) */
  .site-header__inner,
  body:has(.theme-scroll--home) .site-header__inner,
  body.page-header--extended .site-header__inner,
  body.page-has-section-nav .site-header__inner {
    position: relative;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: var(--header-height) auto;
    align-items: center;
    column-gap: 0.35rem;
    box-sizing: border-box;
    min-height: unset;
    height: auto;
    padding-block: 0;
    padding-bottom: 0;
  }

  .site-header:not(:has(.header-nav.is-open)) .site-header__inner {
    height: var(--header-height);
    min-height: var(--header-height);
  }

  body:has(.header-nav.is-open) {
    overflow: hidden;
  }

  body.page-header--extended .section--wochenplan .container:first-child h1,
  body.page-header--extended .section--contact h1,
  body.page-header--extended .section--theme > .container > h1:first-child,
  body.page-header--extended .section--about h1,
  body.page-header--extended .section--about .home-intro__head {
    text-align: center;
  }

  .header-nav-areas {
    position: absolute;
    left: 50%;
    top: 0;
    height: var(--header-height);
    transform: translateX(-50%);
    grid-row: 1;
    grid-column: 1 / -1;
    z-index: 1;
    width: max-content;
    max-width: calc(100% - 6.5rem);
    min-width: 0;
    pointer-events: none;
    container-type: inline-size;
    display: flex;
    align-items: center;
  }

  .header-nav-areas .header-nav__areas {
    pointer-events: auto;
  }

  .header-nav__areas {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0 clamp(0.3rem, 1.6vw, 0.85rem);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 5.25vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.015em;
  }

  .header-nav__areas .header-nav__link {
    display: inline-flex;
    align-items: center;
    padding-block: 0.2rem;
    padding-inline: calc(clamp(0.2rem, 1.1vw, 0.45rem) + 2px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .site-header__end {
    position: relative;
    z-index: 2;
    grid-row: 1;
    grid-column: 3;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: var(--header-height);
    height: var(--header-height);
    gap: 0.35rem;
  }

  .header-nav__utility--desktop {
    display: none;
  }

  .header-nav__utility--mobile {
    display: flex;
  }

  .header-nav__areas--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: clamp(0.1rem, 1.1dvh, 0.45rem);
    margin: 0;
    padding: 0 0 clamp(0.2rem, 0.9dvh, var(--space-sm));
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 3.1dvh, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.015em;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
  }

  .header-nav__areas--mobile .header-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: clamp(0.18rem, 0.8dvh, 0.6rem);
    padding-inline: 0.9rem;
    min-height: clamp(1.85rem, 4.6dvh, 2.75rem);
    line-height: 1.25;
  }

  .header-social {
    gap: 0.45rem;
  }

  .header-social__link {
    width: 2rem;
    height: 2rem;
  }

  .header-social__link img,
  .header-social__link .header-social__icon {
    height: 1.2rem;
  }

  .site-header__brand {
    position: relative;
    z-index: 2;
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: var(--header-height);
    height: var(--header-height);
    margin-inline-start: 0;
    max-width: min(12.5rem, 55vw);
    flex-shrink: 0;
  }

  .site-header.is-nav-compact .site-header__brand {
    margin-inline-start: 0;
  }

  .site-header__brand .site-logo-lockup,
  .site-header__brand > .site-logo {
    margin: 0;
    min-height: 0;
    height: auto;
    max-width: 100%;
  }

  .site-header__brand .site-logo-lockup {
    display: contents;
  }

  .site-header__brand .site-logo-lockup .site-logo,
  .site-header__brand > .site-logo {
    display: flex;
    align-items: center;
    position: static;
    margin: 0;
    padding: 0;
  }

  .site-header__brand .site-logo-lockup .site-logo {
    grid-area: auto;
    align-self: center;
    justify-self: auto;
  }

  .site-logo__title {
    display: none;
  }

  .site-header__brand .site-logo img {
    height: var(--header-logo-image-height);
    width: auto;
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: var(--header-toggle-size);
    height: var(--header-toggle-size);
    flex-shrink: 0;
  }

  .header-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: transparent;
    padding: clamp(0.25rem, 1.2dvh, 0.65rem) 0 clamp(0.35rem, 1.5dvh, 0.75rem);
    border-top: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  }

  .header-nav__utility {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: clamp(0.1rem, 1.1dvh, 0.45rem);
    text-align: center;
    font-size: clamp(1.05rem, 3.1dvh, 1.25rem);
    line-height: 1.25;
  }

  .header-nav__utility .header-nav__link {
    text-align: center;
    padding: clamp(0.18rem, 0.8dvh, 0.6rem) 0.9rem;
    min-height: clamp(1.85rem, 4.6dvh, 2.75rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
  }

  .header-nav__utility--footer {
    padding-top: clamp(0.2rem, 0.9dvh, var(--space-sm));
    margin-top: 0;
    border-top: 1px solid var(--color-border);
  }

  .site-header.is-mobile-nav-active .site-header__inner,
  body:has(.theme-scroll--home) .site-header.is-mobile-nav-active .site-header__inner,
  body.page-header--extended .site-header.is-mobile-nav-active .site-header__inner,
  body.page-has-section-nav .site-header.is-mobile-nav-active .site-header__inner {
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    grid-template-rows: var(--header-height);
    overflow: visible;
  }

  .site-header.is-mobile-nav-active .header-nav,
  .site-header.is-mobile-nav-active.is-nav-compact .header-nav {
    display: flex;
    align-items: stretch;
  }

  .site-header__inner.container,
  body:has(.theme-scroll) .site-header__inner.container,
  body:has(.theme-scroll--home) .site-header__inner.container,
  body.page-header--extended .site-header__inner.container,
  body.page-has-section-nav .site-header__inner.container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline-end: var(--header-gutter);
    padding-inline-start: calc(var(--header-gutter) + var(--header-logo-offset));
    box-sizing: border-box;
  }

  .site-header__end {
    margin-inline-end: -0.15rem;
  }

  /* Wochenplan: ein Tag pro Zeile, zentriert */
  .section--wochenplan .schedule {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-inline: 0;
    --schedule-font-size: 1.125rem;
    --schedule-font-size-sm: 1rem;
  }

  .section--wochenplan .schedule-day {
    width: 100%;
    min-height: 0;
    padding: 1.15rem 1rem;
    text-align: center;
    background: color-mix(in srgb, var(--theme-bg-soft) 78%, var(--color-white));
    border: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
    border-radius: 0.65rem;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--color-text) 5%, transparent);
  }

  .section--wochenplan .schedule-day h3 {
    font-size: 1.1875rem;
    text-align: center;
  }

  .section--wochenplan .schedule-entry {
    text-align: center;
    margin-bottom: 0.55rem;
  }

  .section--wochenplan .schedule-entry__time {
    display: block;
    margin-top: calc(0.65rem + 5px);
    margin-bottom: 0.05rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--area-allgemein-secondary);
  }

  .section--wochenplan .schedule-entry__label {
    font-size: 1.3125rem;
    line-height: 1.3;
    margin-top: 0;
  }

  .section--wochenplan .schedule-entry__areas {
    align-items: center;
    gap: 0.1rem;
    margin-top: 0;
  }

  .section--wochenplan .schedule-entry__area-wrap {
    display: inline-block;
    text-align: center;
  }

  .section--contact,
  .section--about {
    overflow-x: clip;
  }

  .section--contact .prose,
  .section--about .prose,
  .contact-grid {
    overflow-wrap: anywhere;
  }

  .section--wochenplan .schedule {
    overflow-x: clip;
  }

  .section--wochenplan .schedule-entry__label,
  .section--wochenplan .schedule-day {
    overflow-wrap: anywhere;
  }

  .section--wochenplan .schedule-entry__popover {
    display: none;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 2 * var(--page-gutter));
  }

  .section--wochenplan .schedule-popover__action {
    justify-content: center;
  }

  .section--wochenplan .schedule-entry__area-wrap.is-hover .schedule-entry__popover,
  .section--wochenplan .schedule-entry__area-wrap:focus-within .schedule-entry__popover {
    display: block;
  }

  /* Preisblöcke: wie Wochenplan, zentriert */
  .preisblock__columns {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .price-column {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .price-column__title {
    width: 100%;
    margin: 0 0 var(--space-sm);
    padding-top: 0;
    border-top: none;
    font-size: 1.3125rem;
    text-align: center;
  }

  .price-column + .price-column .price-column__title {
    margin-top: var(--space-md);
    padding-top: 0;
    border-top: none;
  }

  .price-table {
    width: 100%;
    padding: 1.15rem 1rem;
    text-align: center;
    background: color-mix(in srgb, var(--theme-bg-soft) 78%, var(--color-white));
    border: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
    border-radius: 0.65rem;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--color-text) 5%, transparent);
  }

  .price-table__grid {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .price-table__offer,
  .price-table__price {
    display: block;
    width: 100%;
    text-align: center;
    padding-inline: 0;
  }

  .price-table__offer {
    padding-top: 0.35rem;
    padding-bottom: 0.15rem;
  }

  .price-table__price {
    padding-top: 0.1rem;
    padding-bottom: 1.05rem;
  }

  .price-table__grid tbody tr:not(:first-child) .price-table__offer {
    padding-top: 1.05rem;
  }

  .price-table__grid tr + tr {
    border-top: none;
  }

  .price-table__grid tbody tr {
    border-top: 1px solid var(--color-border);
  }

  .price-table__grid tbody tr:first-child {
    border-top: none;
  }

  .price-table__grid tbody tr.price-table__row-note {
    border-top: none;
  }

  .price-table__grid tbody tr.price-table__row-note + tr.price-table__row {
    border-top: 1px solid var(--color-border);
  }

  .price-table__offer-name {
    font-size: 1.1875rem;
    line-height: 1.35;
    font-weight: 400;
  }

  .price-table__price {
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--theme-secondary);
  }

  .price-table__note,
  .price-table__note-cell,
  .price-column__note {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }

  .price-table__note-cell {
    display: block;
    width: 100%;
    padding-inline: 0;
  }

  .price-column__note {
    width: 100%;
  }

  .theme-chapter--home .home-intro__tagline,
  .section--about .home-intro__tagline {
    font-size: clamp(1.3125rem, 5vw, 1.75rem);
    line-height: 1.4;
  }

  .theme-chapter--home .theme-chapter__title--hero,
  .section--about .theme-chapter__title--hero {
    font-size: clamp(3rem, 9vw, 4.25rem);
    line-height: 1.12;
  }

  .home-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .home-intro__aside {
    position: static;
    justify-self: center;
    width: min(100%, 20.24rem);
  }

  .section-nav {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  .section-nav__track {
    max-width: 100%;
    scroll-behavior: smooth;
    scroll-padding-inline: var(--page-gutter);
  }

  .section-nav__list {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    padding-inline: var(--page-gutter);
    padding-bottom: 2px;
    gap: 0 1.25rem;
  }
}

/* KirbyText – Farb-Tags aus dem Panel (Farben-Button) */

.text-allgemein-prim { color: var(--area-allgemein-primary); }
.text-allgemein-sek { color: var(--area-allgemein-secondary); }
.text-heilpraxis-prim { color: var(--area-heilpraxis-primary); }
.text-heilpraxis-sek { color: var(--area-heilpraxis-secondary); }
.text-yoga-prim { color: var(--area-yoga-primary); }
.text-yoga-sek { color: var(--area-yoga-secondary); }
.text-massage-prim { color: var(--area-massage-primary); }
.text-massage-sek { color: var(--area-massage-secondary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-logo img { animation: none; }
  .parallax-fixed__layer { transition: none; }
  .hero__bg {
    background-attachment: scroll;
  }

  .header-nav__utility .header-nav__link::after,
  .section-nav .section-nav__link::after {
    transition: none;
  }

  .image-square-soft--gallery .image-square-soft__img {
    transition: none;
  }
}

/* Hinweis-Band „Umbauarbeiten“ (Website-Einstellungen → Administration) */
.site-ribbon {
  position: fixed;
  inset: auto 0 0 auto;
  z-index: 9000;
  width: 16rem;
  height: 16rem;
  overflow: hidden;
  pointer-events: none;
}

.site-ribbon__band {
  position: absolute;
  right: -3.25rem;
  bottom: 3.25rem;
  width: 18rem;
  padding: 0.55rem 2.5rem;
  background: var(--color-signal);
  color: var(--color-signal-text);
  text-align: center;
  transform: rotate(-45deg);
  transform-origin: center center;
  box-shadow: 0 0.2rem 0.75rem rgba(0, 0, 0, 0.28);
}

.site-ribbon__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-ribbon__text {
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .site-ribbon {
    width: 12rem;
    height: 12rem;
  }

  .site-ribbon__band {
    right: -2.75rem;
    bottom: 2.5rem;
    width: 14rem;
    padding: 0.45rem 2rem;
  }

  .site-ribbon__title {
    font-size: 0.8rem;
  }

  .site-ribbon__text {
    font-size: 0.65rem;
  }
}
