/**
 * PhysioOS — Website-Stylesheet (öffentliches Frontend, Welle 3)
 *
 * Implementiert das ghos-* Designsystem, das der BlockRenderer ausgibt,
 * plus Layout-Chrome (Header, Navigation, Footer, Lightbox). Single-File,
 * keine externen Fonts/Requests (Shared-Hosting-tauglich).
 *
 * Ästhetik: ruhig, professionell, vertrauenswürdig — mobile Physiopraxis.
 * Warmes Off-White, Teal-Akzent (#2b7a78, identisch zur App/PWA), viel
 * Weißraum, weiche Radien. System-Schriftstapel (Serif-Display + Sans-Body).
 *
 * @copyright (C) Jens Richter Agentur
 * @license   Proprietary
 */

:root {
  --ghos-bg:          #faf8f4;
  --ghos-surface:     #ffffff;
  --ghos-surface-alt: #f1ece4;
  --ghos-ink:         #21302e;
  --ghos-ink-soft:    #4a5a57;
  --ghos-muted:       #7c8a87;
  --ghos-accent:      #2b7a78;
  --ghos-accent-dark: #205c5a;
  --ghos-accent-soft: #e3efee;
  --ghos-line:        #e4ddd2;
  --ghos-radius:      14px;
  --ghos-radius-lg:   24px;
  --ghos-shadow:      0 1px 2px rgba(33,48,46,.04), 0 8px 28px rgba(33,48,46,.06);
  --ghos-shadow-lg:   0 12px 48px rgba(33,48,46,.12);
  --ghos-maxw:        1140px;
  --ghos-maxw-schmal: 760px;
  --ghos-font-body:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ghos-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ghos-header-h:    72px;
}

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

.ghos-site {
  margin: 0;
  font-family: var(--ghos-font-body);
  color: var(--ghos-ink);
  background: var(--ghos-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ghos-site.ghos-nav-offen { overflow: hidden; }

.ghos-site img { max-width: 100%; height: auto; display: block; }
.ghos-site a { color: var(--ghos-accent); text-decoration: none; }
.ghos-site a:hover { color: var(--ghos-accent-dark); }

.ghos-skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ghos-accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.ghos-skiplink:focus { left: 0; }

/* ─────────────────────────────────────────────────────────────────────
   Container
───────────────────────────────────────────────────────────────────── */
.ghos-container {
  width: 100%;
  max-width: var(--ghos-maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.ghos-container--schmal { max-width: var(--ghos-maxw-schmal); }

/* ─────────────────────────────────────────────────────────────────────
   Header / Navigation
───────────────────────────────────────────────────────────────────── */
.ghos-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ghos-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.ghos-header.is-scrolled {
  border-bottom-color: var(--ghos-line);
  box-shadow: 0 6px 24px rgba(33,48,46,.05);
}

/* ── Header-Skins je Vorlage (Layout-Charakter) ───────────────────────
   bar         (Klassisch)  — solide Leiste mit Trennlinie (Default oben).
   floating    (Editorial)  — abgesetzte, schwebende Pill-Leiste.
   transparent (Magazin)    — über dem Hero transparent, beim Scrollen solide. */

/* bar: Trennlinie dauerhaft sichtbar, ruhig & seriös. */
.ghos-header--bar { border-bottom-color: var(--ghos-line); }

/* floating: schwebt mit Abstand, abgerundet, leichter Schatten. */
.ghos-header--floating {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 0; padding: 12px 0;
}
.ghos-header--floating .ghos-header__inner {
  background: color-mix(in srgb, var(--ghos-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 6px 20px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(33,48,46,.10);
  border: 1px solid var(--ghos-line);
}
.ghos-header--floating.is-scrolled { box-shadow: none; }
.ghos-header--floating.is-scrolled .ghos-header__inner {
  box-shadow: 0 10px 34px rgba(33,48,46,.14);
}

/* transparent: nahtlos über dem Hero; Schrift hell. Beim Scrollen wird die
   Leiste solide und der Text wieder dunkel (is-scrolled vom Header-JS). */
.ghos-header--transparent {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.ghos-header--transparent .ghos-header__brand,
.ghos-header--transparent .ghos-nav__link { color: #fff; }
.ghos-header--transparent .ghos-header__burger span { background: #fff; }
.ghos-header--transparent.is-scrolled {
  background: color-mix(in srgb, var(--ghos-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--ghos-line);
}
.ghos-header--transparent.is-scrolled .ghos-header__brand,
.ghos-header--transparent.is-scrolled .ghos-nav__link { color: var(--ghos-ink); }
.ghos-header--transparent.is-scrolled .ghos-header__burger span { background: var(--ghos-ink); }

/* Magazin-Vorlage: der transparente Header schwebt ÜBER dem ersten Hero —
   dafür den Inhalt um die Headerhöhe nach oben ziehen, sofern die Seite mit
   einem Hero beginnt. Hat die Seite keinen führenden Hero, bleibt alles
   normal (kein negativer Versatz auf gewöhnlichen Sections). */
.ghos-tpl-magazin .ghos-main > .ghos-hero:first-child {
  margin-top: calc(-1 * var(--ghos-header-h));
}
.ghos-tpl-magazin .ghos-main > .ghos-hero:first-child .ghos-hero__inner {
  padding-top: var(--ghos-header-h);
}
.ghos-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--ghos-header-h);
}
.ghos-header__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ghos-font-display);
  font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--ghos-ink);
}
.ghos-header__brand:hover { color: var(--ghos-ink); }
.ghos-header__brand-mark {
  display: inline-flex; width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: var(--ghos-accent-soft); color: var(--ghos-accent);
  border-radius: 10px;
}
.ghos-header__brand-mark svg { width: 20px; height: 20px; }
.ghos-header__brand-logo {
  display: block;
  width: var(--ghos-logo-breite, auto);
  height: auto;
  /* Höhendeckel: Default 56px (begrenzt das Logo auf die Kopfzeile, wenn KEINE
     px-Breite gesetzt ist). Sobald eine Breite gesetzt wird, hebt der
     BrandingService --ghos-logo-maxh an, damit die Breitenangabe wirkt und
     nicht von max-height zurückskaliert wird. */
  max-height: var(--ghos-logo-maxh, 56px);
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 600px) {
  .ghos-header__brand-logo { max-width: 60vw; }
}

.ghos-nav { display: flex; align-items: center; gap: .35rem; }
.ghos-nav__item { position: relative; }
.ghos-nav__link {
  display: inline-block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--ghos-ink-soft); font-weight: 500; font-size: .96rem;
  transition: background .18s ease, color .18s ease;
}
.ghos-nav__link:hover { background: var(--ghos-surface-alt); color: var(--ghos-ink); }
.ghos-nav__link.is-active { color: var(--ghos-accent); background: var(--ghos-accent-soft); }

.ghos-nav__sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--ghos-surface); border: 1px solid var(--ghos-line);
  border-radius: var(--ghos-radius); box-shadow: var(--ghos-shadow-lg);
  padding: .4rem; display: none; flex-direction: column; gap: 2px;
}
.ghos-nav__item--has-sub:hover .ghos-nav__sub,
.ghos-nav__item--has-sub:focus-within .ghos-nav__sub { display: flex; }
.ghos-nav__sublink {
  padding: .5rem .7rem; border-radius: 9px; color: var(--ghos-ink-soft); font-size: .92rem;
}
.ghos-nav__sublink:hover { background: var(--ghos-surface-alt); color: var(--ghos-ink); }

.ghos-header__burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; border-radius: 10px;
}
.ghos-header__burger span {
  display: block; height: 2px; background: var(--ghos-ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.ghos-header__burger span + span { margin-top: 5px; }
.ghos-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ghos-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ghos-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .ghos-header__burger { display: block; }
  .ghos-nav {
    position: fixed; inset: var(--ghos-header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--ghos-bg); padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .ghos-nav.is-open { transform: translateX(0); }
  .ghos-nav__link { font-size: 1.1rem; padding: .8rem 1rem; border-radius: 12px; }
  .ghos-nav__sub {
    position: static; display: flex; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 .4rem 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   Typografie / generische Blockhülle
───────────────────────────────────────────────────────────────────── */
.ghos-main { display: block; }
.ghos-block { padding-block: clamp(2.75rem, 6vw, 5rem); }

.ghos-h1, .ghos-h2 {
  font-family: var(--ghos-font-display); font-weight: 600;
  line-height: 1.12; letter-spacing: -.015em; color: var(--ghos-ink); margin: 0 0 .6em;
}
.ghos-h1 { font-size: clamp(2rem, 5vw, 3rem); }
.ghos-h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
.ghos-h2--zentriert { text-align: center; }

.ghos-kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ghos-accent); margin-bottom: .65rem;
}
.ghos-kicker--zentriert { text-align: center; }

.ghos-lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ghos-ink-soft); line-height: 1.55; margin: 0 0 1rem;
}

.ghos-prose { color: var(--ghos-ink-soft); font-size: 1.05rem; }
.ghos-prose > :first-child { margin-top: 0; }
.ghos-prose > :last-child { margin-bottom: 0; }
.ghos-prose p { margin: 0 0 1rem; }
.ghos-prose h2, .ghos-prose h3, .ghos-prose h4 {
  font-family: var(--ghos-font-display); color: var(--ghos-ink); line-height: 1.2; margin: 1.6em 0 .5em;
}
.ghos-prose h2 { font-size: 1.5rem; } .ghos-prose h3 { font-size: 1.25rem; } .ghos-prose h4 { font-size: 1.08rem; }
.ghos-prose a { text-decoration: underline; text-underline-offset: 2px; }
.ghos-prose ul, .ghos-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.ghos-prose li { margin: .3rem 0; }
.ghos-prose blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.2rem;
  border-left: 3px solid var(--ghos-accent); color: var(--ghos-ink); font-style: italic;
}
.ghos-prose img { border-radius: var(--ghos-radius); margin: 1.25rem 0; }
.ghos-prose strong { color: var(--ghos-ink); }

.ghos-block--breite-schmal .ghos-container,
.ghos-block--text.ghos-block--breite-schmal .ghos-container { max-width: var(--ghos-maxw-schmal); }
.ghos-block--breite-breit .ghos-container { max-width: 1320px; }
.ghos-block--align-zentriert { text-align: center; }
.ghos-block--align-zentriert .ghos-prose { margin-inline: auto; max-width: var(--ghos-maxw-schmal); }
.ghos-block--align-rechts { text-align: right; }

.ghos-block__header { margin-bottom: 2.25rem; max-width: 46rem; }

/* eigenständige Heading-Blöcke */
.ghos-prose-heading {
  font-family: var(--ghos-font-display); color: var(--ghos-ink); line-height: 1.15; letter-spacing: -.01em; margin: 0;
}
.ghos-prose-heading--h1 { font-size: clamp(2rem, 5vw, 3rem); }
.ghos-prose-heading--h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
.ghos-prose-heading--h3 { font-size: 1.5rem; }
.ghos-prose-heading--h4 { font-size: 1.25rem; }
.ghos-prose-heading--h5 { font-size: 1.1rem; }
.ghos-prose-heading--h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ghos-muted); }

/* ─────────────────────────────────────────────────────────────────────
   Buttons
───────────────────────────────────────────────────────────────────── */
.ghos-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  line-height: 1; cursor: pointer; border: 1px solid transparent; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.ghos-btn:hover { transform: translateY(-1px); text-decoration: none; }
/* Basis-Button ohne Modifier: sichtbarer Default statt transparent.
   Verhindert „unsichtbare" Buttons, falls eine Variante mal ohne
   --primaer gerendert wird. */
.ghos-btn:not([class*="--"]) { background: var(--ghos-accent-soft); color: var(--ghos-accent-dark); }
.ghos-btn:not([class*="--"]):hover { background: var(--ghos-accent); color: var(--ghos-on-accent, #fff); }
.ghos-btn--primaer { background: var(--ghos-accent); color: var(--ghos-on-accent, #fff); box-shadow: 0 6px 18px rgba(43,122,120,.28); }
.ghos-btn--primaer:hover { background: var(--ghos-accent-dark); color: var(--ghos-on-accent, #fff); box-shadow: 0 10px 26px rgba(43,122,120,.32); }
.ghos-btn--gross { padding: 1rem 2rem; font-size: 1.08rem; }

/* ─────────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────────── */
.ghos-hero { position: relative; background-size: cover; background-position: center; color: var(--ghos-ink); overflow: hidden; }
.ghos-hero__inner {
  position: relative; z-index: 2; max-width: var(--ghos-maxw); margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  display: flex; flex-direction: column;
}
.ghos-hero--h-klein  .ghos-hero__inner { min-height: 38vh; }
.ghos-hero--h-mittel .ghos-hero__inner { min-height: 56vh; }
.ghos-hero--h-gross  .ghos-hero__inner { min-height: 76vh; }
.ghos-hero--h-voll   .ghos-hero__inner { min-height: calc(100vh - var(--ghos-header-h)); }
.ghos-hero--a-mitte  .ghos-hero__inner { align-items: center; text-align: center; justify-content: center; }
.ghos-hero--a-links  .ghos-hero__inner { align-items: flex-start; justify-content: center; }
.ghos-hero--a-rechts .ghos-hero__inner { align-items: flex-end; text-align: right; justify-content: center; }

.ghos-hero__kicker { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; opacity: .9; }
.ghos-hero__titel { font-family: var(--ghos-font-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1rem; max-width: 18ch; }
.ghos-hero--a-mitte .ghos-hero__titel { max-width: 22ch; }
.ghos-hero__untertitel { font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.5; margin: 0 0 1.75rem; max-width: 52ch; opacity: .95; }
.ghos-hero__cta, .ghos-hero__cta-zeile { margin-top: .5rem; }
.ghos-hero__cta-zeile { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Overlay (Bild-Hero) */
.ghos-hero[style*="background-image"]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.ghos-hero--ov-leicht[style*="background-image"]::before { background: rgba(20,30,28,.28); }
.ghos-hero--ov-mittel[style*="background-image"]::before { background: rgba(20,30,28,.46); }
.ghos-hero--ov-stark[style*="background-image"]::before  { background: rgba(20,30,28,.62); }
.ghos-hero--t-hell  { color: #fff; }
.ghos-hero--t-hell .ghos-hero__titel { color: #fff; }
.ghos-hero--t-dunkel { color: var(--ghos-ink); }

/* Klassisch ohne Bild → warmer Verlauf */
.ghos-hero--klassisch:not([style*="background-image"]) {
  background: radial-gradient(120% 120% at 80% 0%, var(--ghos-accent-soft) 0%, var(--ghos-bg) 55%);
}
.ghos-hero--platzhalter { background: linear-gradient(135deg, var(--ghos-accent) 0%, var(--ghos-accent-dark) 100%); color: #fff; }
.ghos-hero--platzhalter .ghos-hero__titel { color: #fff; }

/* Magazin */
.ghos-hero--magazin .ghos-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(15,24,22,.82) 0%, rgba(15,24,22,.15) 45%, rgba(15,24,22,0) 75%);
}
.ghos-hero--magazin .ghos-hero__inner--magazin { justify-content: flex-end; align-items: flex-start; color: #fff; }
.ghos-hero--magazin .ghos-hero__titel { color: #fff; }

/* Editorial (Split) */
.ghos-hero--editorial { background: var(--ghos-surface-alt); }
.ghos-hero__inner--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ghos-hero__col-text { display: flex; flex-direction: column; justify-content: center; }
.ghos-hero__pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.ghos-pill {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: var(--ghos-surface); border: 1px solid var(--ghos-line);
  font-size: .82rem; font-weight: 600; color: var(--ghos-accent-dark);
}
.ghos-hero__col-bild { align-self: stretch; min-height: 360px; }
.ghos-hero__bild { width: 100%; height: 100%; min-height: 360px; background-size: cover; background-position: center; border-radius: var(--ghos-radius-lg); box-shadow: var(--ghos-shadow-lg); }
@media (max-width: 820px) {
  .ghos-hero__inner--split { grid-template-columns: 1fr; }
  .ghos-hero__col-bild { min-height: 260px; }
}

/* ─────────────────────────────────────────────────────────────────────
   TEXT + BILD
───────────────────────────────────────────────────────────────────── */
.ghos-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ghos-block--text-bild.ghos-block--bg-sanft  { background: var(--ghos-surface-alt); }
.ghos-block--text-bild.ghos-block--bg-akzent { background: var(--ghos-accent-soft); }
.ghos-tb__text > :last-child { margin-bottom: 0; }
.ghos-tb__text .ghos-btn { margin-top: 1.25rem; }
.ghos-tb__bild { margin: 0; }
.ghos-tb__bild img { width: 100%; border-radius: var(--ghos-radius-lg); box-shadow: var(--ghos-shadow); }
.ghos-tb__bild figcaption { margin-top: .6rem; font-size: .88rem; color: var(--ghos-muted); text-align: center; }
@media (max-width: 800px) {
  .ghos-grid-2 { grid-template-columns: 1fr; }
  .ghos-block--bild-links .ghos-tb__bild { order: -1; }
}

/* ─────────────────────────────────────────────────────────────────────
   BILD (eigenständig)
───────────────────────────────────────────────────────────────────── */
.ghos-bild__figure { margin: 0; }
.ghos-block--bild-schmal  .ghos-container { max-width: var(--ghos-maxw-schmal); }
.ghos-block--bild-breit   .ghos-container { max-width: 1320px; }
.ghos-bild__figure img { width: 100%; border-radius: var(--ghos-radius-lg); box-shadow: var(--ghos-shadow); }
.ghos-bild__link { display: block; cursor: zoom-in; }
.ghos-bild__caption { margin-top: .7rem; font-size: .9rem; color: var(--ghos-muted); text-align: center; }

/* ─────────────────────────────────────────────────────────────────────
   GALERIE
───────────────────────────────────────────────────────────────────── */
.ghos-galerie__titel { text-align: center; margin-bottom: 2rem; }
.ghos-galerie__grid { display: grid; gap: 1rem; }
.ghos-galerie--cols-2 .ghos-galerie__grid { grid-template-columns: repeat(2, 1fr); }
.ghos-galerie--cols-3 .ghos-galerie__grid { grid-template-columns: repeat(3, 1fr); }
.ghos-galerie--cols-4 .ghos-galerie__grid { grid-template-columns: repeat(4, 1fr); }
.ghos-galerie__item { position: relative; display: block; border-radius: var(--ghos-radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; box-shadow: var(--ghos-shadow); }
.ghos-galerie--stil-masonry .ghos-galerie__item { aspect-ratio: auto; }
.ghos-galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ghos-galerie__item:hover img { transform: scale(1.05); }
.ghos-galerie__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem; font-size: .85rem; color: #fff;
  background: linear-gradient(to top, rgba(15,24,22,.78), transparent); opacity: 0; transition: opacity .25s ease;
}
.ghos-galerie__item:hover .ghos-galerie__caption { opacity: 1; }
@media (max-width: 720px) {
  .ghos-galerie--cols-3 .ghos-galerie__grid,
  .ghos-galerie--cols-4 .ghos-galerie__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────
   TILES
───────────────────────────────────────────────────────────────────── */
.ghos-tiles__grid { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.ghos-tiles--cols-2 .ghos-tiles__grid { grid-template-columns: repeat(2, 1fr); }
.ghos-tiles--cols-3 .ghos-tiles__grid { grid-template-columns: repeat(3, 1fr); }
.ghos-tiles--cols-4 .ghos-tiles__grid { grid-template-columns: repeat(4, 1fr); }
.ghos-tile {
  display: flex; flex-direction: column; background: var(--ghos-surface);
  border: 1px solid var(--ghos-line); border-radius: var(--ghos-radius-lg); overflow: hidden;
  box-shadow: var(--ghos-shadow); transition: transform .2s ease, box-shadow .25s ease; color: inherit;
}
a.ghos-tile:hover { transform: translateY(-4px); box-shadow: var(--ghos-shadow-lg); text-decoration: none; color: inherit; }
.ghos-tile__bild { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.ghos-tile__inhalt { padding: 1.4rem 1.5rem; }
.ghos-tile__titel { font-family: var(--ghos-font-display); font-size: 1.2rem; margin: 0 0 .4rem; color: var(--ghos-ink); }
.ghos-tile__untertitel { margin: 0; color: var(--ghos-ink-soft); font-size: .98rem; }
@media (max-width: 760px) {
  .ghos-tiles--cols-3 .ghos-tiles__grid,
  .ghos-tiles--cols-4 .ghos-tiles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ghos-tiles__grid { grid-template-columns: 1fr !important; }
}

/* ─────────────────────────────────────────────────────────────────────
   FEATURES
───────────────────────────────────────────────────────────────────── */
.ghos-features__grid { display: grid; gap: 1.75rem 2rem; }
.ghos-features--cols-2 .ghos-features__grid { grid-template-columns: repeat(2, 1fr); }
.ghos-features--cols-3 .ghos-features__grid { grid-template-columns: repeat(3, 1fr); }
.ghos-features--cols-4 .ghos-features__grid { grid-template-columns: repeat(4, 1fr); }
.ghos-feature { display: flex; flex-direction: column; gap: .6rem; }
.ghos-feature__icon {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ghos-accent-soft); color: var(--ghos-accent); border-radius: 14px;
}
.ghos-feature__icon svg { width: 26px; height: 26px; }
.ghos-feature__titel { font-family: var(--ghos-font-display); font-size: 1.18rem; margin: .2rem 0 0; color: var(--ghos-ink); }
.ghos-feature__text { margin: 0; color: var(--ghos-ink-soft); }
.ghos-icon-fallback { font-size: 1.4rem; }
@media (max-width: 760px) {
  .ghos-features--cols-3 .ghos-features__grid,
  .ghos-features--cols-4 .ghos-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ghos-features__grid { grid-template-columns: 1fr !important; }
}

/* ─────────────────────────────────────────────────────────────────────
   ZIELGRUPPEN
───────────────────────────────────────────────────────────────────── */
.ghos-zielgruppen__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ghos-zielgruppe-tile {
  --ghos-zielgruppe-akzent: var(--ghos-accent);
  display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem;
  background: var(--ghos-surface); border: 1px solid var(--ghos-line);
  border-top: 3px solid var(--ghos-zielgruppe-akzent); border-radius: var(--ghos-radius-lg);
  box-shadow: var(--ghos-shadow); color: inherit; transition: transform .2s ease, box-shadow .25s ease;
}
a.ghos-zielgruppe-tile:hover { transform: translateY(-4px); box-shadow: var(--ghos-shadow-lg); text-decoration: none; color: inherit; }
.ghos-zielgruppe-tile__icon {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ghos-zielgruppe-akzent);
  background: color-mix(in srgb, var(--ghos-zielgruppe-akzent) 12%, #fff); border-radius: 12px;
}
.ghos-zielgruppe-tile__icon svg { width: 26px; height: 26px; }
.ghos-zielgruppe-tile__titel { font-family: var(--ghos-font-display); font-size: 1.25rem; margin: 0; color: var(--ghos-ink); }
.ghos-zielgruppe-tile__text { margin: 0; color: var(--ghos-ink-soft); }
.ghos-zielgruppe-tile__cta { margin-top: auto; font-weight: 600; color: var(--ghos-zielgruppe-akzent); }
.ghos-zielgruppe-tile__cta::after { content: " →"; }

/* ─────────────────────────────────────────────────────────────────────
   STATS
───────────────────────────────────────────────────────────────────── */
.ghos-block--stats .ghos-stats__grid { display: grid; gap: 1.5rem; }
.ghos-stats--cols-2 .ghos-stats__grid { grid-template-columns: repeat(2, 1fr); }
.ghos-stats--cols-3 .ghos-stats__grid { grid-template-columns: repeat(3, 1fr); }
.ghos-stats--cols-4 .ghos-stats__grid { grid-template-columns: repeat(4, 1fr); }
.ghos-stats__item { display: flex; flex-direction: column; gap: .25rem; }
.ghos-stats--zentriert .ghos-stats__item { text-align: center; align-items: center; }
.ghos-stats__zahl { font-family: var(--ghos-font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; color: var(--ghos-accent); line-height: 1; }
.ghos-stats__label { color: var(--ghos-ink-soft); font-size: .98rem; }
@media (max-width: 620px) {
  .ghos-stats--cols-3 .ghos-stats__grid,
  .ghos-stats--cols-4 .ghos-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────────────────────────────
   CTA
───────────────────────────────────────────────────────────────────── */
.ghos-block--cta { background-size: cover; background-position: center; }
.ghos-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; max-width: 48rem; margin-inline: auto; }
.ghos-cta__titel { font-family: var(--ghos-font-display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0; color: inherit; }
.ghos-cta__text { font-size: 1.1rem; margin: 0; opacity: .95; }
.ghos-cta--stil-solid { background: var(--ghos-accent); color: var(--ghos-on-accent, #fff); }
.ghos-cta--stil-solid .ghos-btn--primaer { background: #fff; color: var(--ghos-accent-dark); box-shadow: none; }
.ghos-cta--stil-solid .ghos-btn--primaer:hover { background: rgba(255,255,255,.9); color: var(--ghos-accent-dark); }
.ghos-cta--stil-sanft { background: var(--ghos-accent-soft); color: var(--ghos-ink); }
.ghos-cta--stil-umriss .ghos-cta__inner { border: 1px solid var(--ghos-line); border-radius: var(--ghos-radius-lg); padding: clamp(2rem,5vw,3.5rem); background: var(--ghos-surface); box-shadow: var(--ghos-shadow); }
/* Registry-konforme Stile: 'umrandet' (= Rahmen) und 'minimal'.
   Vorher ohne CSS → transparenter Button auf transparentem Grund (unsichtbar). */
.ghos-cta--stil-umrandet .ghos-cta__inner { border: 1px solid var(--ghos-line); border-radius: var(--ghos-radius-lg); padding: clamp(2rem,5vw,3.5rem); background: var(--ghos-surface); box-shadow: var(--ghos-shadow); }
.ghos-cta--stil-minimal { background: transparent; color: var(--ghos-ink); }
.ghos-cta--stil-minimal .ghos-cta__inner { padding-block: 1rem; }
.ghos-cta--mit-bild { position: relative; color: #fff; }
.ghos-cta--mit-bild::before { content: ""; position: absolute; inset: 0; background: rgba(20,30,28,.55); }
.ghos-cta--mit-bild .ghos-container { position: relative; z-index: 2; }
.ghos-cta--mit-bild .ghos-cta__titel { color: #fff; }

/* ─────────────────────────────────────────────────────────────────────
   AKKORDEON
───────────────────────────────────────────────────────────────────── */
.ghos-akkordeon { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.ghos-akkordeon__item { background: var(--ghos-surface); border: 1px solid var(--ghos-line); border-radius: var(--ghos-radius); overflow: hidden; }
.ghos-akkordeon__frage {
  cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 600; color: var(--ghos-ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.ghos-akkordeon__frage::-webkit-details-marker { display: none; }
.ghos-akkordeon__frage::after { content: "+"; font-size: 1.4rem; color: var(--ghos-accent); transition: transform .2s ease; line-height: 1; }
.ghos-akkordeon__item[open] .ghos-akkordeon__frage::after { transform: rotate(45deg); }
.ghos-akkordeon__antwort { padding: 0 1.35rem 1.2rem; }

/* ─────────────────────────────────────────────────────────────────────
   EMBED
───────────────────────────────────────────────────────────────────── */
.ghos-embed-wrap { position: relative; width: 100%; height: 0; border-radius: var(--ghos-radius-lg); overflow: hidden; box-shadow: var(--ghos-shadow); margin-top: 1.5rem; }
.ghos-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ─────────────────────────────────────────────────────────────────────
   TRENNER
───────────────────────────────────────────────────────────────────── */
.ghos-block--trenner { padding-block: 0; }
.ghos-trenner--abstand-klein  { padding-block: 1rem; }
.ghos-trenner--abstand-mittel { padding-block: 2.25rem; }
.ghos-trenner--abstand-gross  { padding-block: 4rem; }
.ghos-trenner__linie { border: 0; border-top: 1px solid var(--ghos-line); margin: 0; }
.ghos-trenner__punkte, .ghos-trenner__ornament { text-align: center; color: var(--ghos-muted); letter-spacing: .3em; }
.ghos-trenner__ornament { color: var(--ghos-accent); font-size: 1.3rem; }

/* ─────────────────────────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────────────────────────── */
.ghos-footer { background: var(--ghos-ink); color: #cfd9d7; margin-top: 2rem; }
.ghos-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding-block: 2.5rem;
}
.ghos-footer__brand { display: flex; flex-direction: column; gap: .25rem; }
.ghos-footer__name { font-family: var(--ghos-font-display); font-size: 1.2rem; color: #fff; }
.ghos-footer__mail { color: #9fc6c4; }
.ghos-footer__mail:hover { color: #fff; }
.ghos-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.ghos-footer__links a { color: #cfd9d7; font-size: .95rem; }
.ghos-footer__links a:hover { color: #fff; }
.ghos-footer__meta { width: 100%; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8aa3a0; }

/* ─────────────────────────────────────────────────────────────────────
   Lightbox
───────────────────────────────────────────────────────────────────── */
.ghos-lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(15,24,22,.9); padding: 2rem; cursor: zoom-out;
}
.ghos-lightbox.is-open { display: flex; }
.ghos-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--ghos-radius); box-shadow: var(--ghos-shadow-lg); }
.ghos-lightbox__close { position: absolute; top: 1rem; right: 1.25rem; background: transparent; border: 0; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; }

/* ─────────────────────────────────────────────────────────────────────
   Reduced motion
───────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ghos-site *, .ghos-site *::before, .ghos-site *::after { transition: none !important; animation: none !important; }
}

/* ── Kontaktformular (anfrage_form, Welle 11) ───────────────────────── */
.ghos-block--form .ghos-h2 { margin-bottom: .4rem; }
.ghos-form { margin-top: 1.5rem; }
.ghos-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ghos-form__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1rem;
}
@media (max-width: 640px) { .ghos-form__grid { grid-template-columns: 1fr; } }
.ghos-form__feld { display: flex; flex-direction: column; gap: .4rem; }
.ghos-form__feld--voll { margin-bottom: 1rem; }
.ghos-form__feld > span { font-size: .9rem; font-weight: 600; color: var(--ghos-ink-soft); }
.ghos-form input[type="text"],
.ghos-form input[type="email"],
.ghos-form input[type="tel"],
.ghos-form textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ghos-ink);
  background: var(--ghos-surface); border: 1px solid var(--ghos-line);
  border-radius: var(--ghos-radius); transition: border-color .15s, box-shadow .15s;
}
.ghos-form input:focus, .ghos-form textarea:focus {
  outline: none; border-color: var(--ghos-accent);
  box-shadow: 0 0 0 3px var(--ghos-accent-soft);
}
.ghos-form textarea { resize: vertical; min-height: 140px; }
.ghos-form__check {
  display: flex; gap: .65rem; align-items: flex-start; margin: .25rem 0 1.5rem;
  font-size: .9rem; color: var(--ghos-ink-soft); line-height: 1.5;
}
.ghos-form__check input { margin-top: .2rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--ghos-accent); }
.ghos-form__check a { color: var(--ghos-accent-dark); text-decoration: underline; }
.ghos-form__aktion { display: flex; }
.ghos-form__hinweis {
  padding: .9rem 1.1rem; border-radius: var(--ghos-radius); margin-bottom: 1.25rem;
  font-size: .95rem; border: 1px solid transparent;
}
.ghos-form__hinweis--ok {
  background: var(--ghos-accent-soft); color: var(--ghos-accent-dark); border-color: #bfe0de;
}
.ghos-form__hinweis--fehler {
  background: #fcebe9; color: #9a2820; border-color: #f3c6c1;
}
