/* =====================================================================
   site.css – gemeinsame Komponenten der Wellness-Trust-Seite
   Wird auf allen Seiten per <link rel="stylesheet" href="/assets/site.css"> eingebunden
   (von nachbau-1zu1/tools/apply_global.py). Dokumentation: nachbau-1zu1/COMPONENTS.md

   Voraussetzung: Die Seite definiert im Inline-CSS die Variablen (:root: --teal, --teal-dark,
   --petrol, --gold, --gold-light, --gold-text, --ink, --muted, --ivory, --line, --font-head,
   --font-body, --maxw, --radius, --shadow, --shadow-soft) sowie .container, .btn, .sr-only.
   Keine externen Ressourcen, keine Frameworks. Ohne JS bleibt alles les- und bedienbar
   (html.js wird im <head> gesetzt).
   ===================================================================== */

/* ---------- Grundlagen: Sprungmarken, sanftes Scrollen, Header-Versatz ---------- */
:root { --header-h: 73px; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 73px) + 14px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.lb-open, html.lb-open body { overflow: hidden; }

/* =====================================================================
   1. Header und Hauptmenü
   Mobil/Tablet (< 1280 px): Hamburger mit Akkordeon-Untermenüs.
   Desktop (>= 1280 px): horizontale Leiste mit Aufklappmenüs.
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 244, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 225, 214, .8);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.scrolled { background: rgba(250, 248, 244, .98); box-shadow: 0 8px 28px rgba(14, 79, 75, .10); }
.nav-wrap {
  max-width: 1480px; margin: 0 auto; padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: padding .3s ease;
}
.site-header.scrolled .nav-wrap { padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--shadow-soft); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--petrol); letter-spacing: .02em; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; margin-right: -.5rem; }
.js .nav-toggle { display: block; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--petrol); margin: 6px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobil: Menü als Fläche unter dem Header --- */
.main-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h, 73px)); max-height: calc(100dvh - var(--header-h, 73px));
  overflow-y: auto; overscroll-behavior: contain;
}
.js .main-nav {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
}
.js .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.menu { list-style: none; margin: 0; padding: .4rem 0 1rem; }
.menu > li { margin: 0; }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .9rem 1.5rem; margin: 0;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; line-height: 1.3;
  letter-spacing: .06em; text-transform: uppercase; text-align: left;
  color: var(--ink); background: none; border: 0; border-radius: 0; cursor: pointer;
}
.nav-link:hover { color: var(--teal); }
.nav-link[aria-current="page"], .has-sub.is-current > .sub-toggle { color: var(--gold-text); }
.sub-toggle::after {
  content: ''; flex: 0 0 auto; width: .42em; height: .42em; margin-left: .6em;
  border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-.14em) rotate(45deg); transition: transform .2s ease;
}
.sub-toggle[aria-expanded="true"]::after { transform: translateY(.08em) rotate(-135deg); }
html:not(.js) .sub-toggle { cursor: default; }
html:not(.js) .sub-toggle::after { display: none; }   /* ohne JS (mobil) sind die Untermenüs ohnehin offen */
.sub-menu { list-style: none; margin: 0; padding: 0 0 .5rem; display: none; background: rgba(255, 255, 255, .6); }
.has-sub.open > .sub-menu, html:not(.js) .sub-menu { display: block; }
.sub-menu a {
  display: block; padding: .62rem 1.5rem .62rem 2.4rem;
  font-size: .98rem; line-height: 1.4; color: var(--ink);
}
.sub-menu a:hover { color: var(--teal); background: rgba(23, 126, 116, .06); }
.sub-menu a[aria-current="page"] { color: var(--gold-text); font-weight: 500; }
.menu a.nav-cta {
  display: inline-block; width: auto; margin: .6rem 1.5rem .2rem; padding: .6rem 2rem;
  background: var(--teal); color: #fff; border-radius: 999px; text-align: center;
}
.menu a.nav-cta:hover { background: var(--teal-dark); color: #fff; }
.menu a.nav-cta[aria-current="page"] { background: var(--petrol); color: #fff; }
:is(.nav-link, .sub-menu a, .nav-toggle):focus-visible { outline-offset: -3px; }
.menu a.nav-cta:focus-visible { outline-offset: 3px; }

/* Ohne JS (mobil): Menü als normale Liste im Kopf, nicht überlagernd */
html:not(.js) .site-header { position: relative; }
html:not(.js) .nav-wrap { flex-wrap: wrap; }
html:not(.js) .main-nav { position: static; box-shadow: none; border: 0; background: none; flex: 1 0 100%; max-height: none; overflow: visible; }

/* --- Desktop --- */
@media (min-width: 1280px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .main-nav, .js .main-nav, .js .main-nav.open {
    position: static; max-height: none; overflow: visible; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
  }
  html:not(.js) .main-nav { flex: 0 1 auto; }
  html:not(.js) .nav-wrap { flex-wrap: nowrap; }
  .menu { display: flex; align-items: center; gap: .2rem clamp(.7rem, 1.05vw, 1.4rem); padding: 0; }
  .menu > li { position: relative; }
  .nav-link {
    display: inline-flex; align-items: center; width: auto; padding: .45rem 0;
    font-size: .8rem; letter-spacing: .05em; white-space: nowrap;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat; background-position: 0 calc(100% - 1px); background-size: 0 2px;
    transition: color .2s ease, background-size .25s ease;
  }
  .nav-link:hover, .nav-link[aria-current="page"], .has-sub.is-current > .sub-toggle,
  .sub-toggle[aria-expanded="true"] { background-size: 100% 2px; }
  .nav-link:focus-visible { outline-offset: 4px; }
  .sub-toggle::after { margin-left: .5em; }
  html:not(.js) .sub-toggle::after { display: block; }
  .menu a.nav-cta {
    margin: 0 0 0 .2rem; padding: .55rem 1.25rem; font-size: .8rem; letter-spacing: .06em; background-image: none;
  }
  .sub-menu {
    display: block; position: absolute; top: calc(100% + .75rem); left: 0; z-index: 5;
    min-width: 16rem; width: max-content; max-width: min(26rem, calc(100vw - 2rem));
    max-height: calc(100vh - var(--header-h, 73px) - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
    padding: .5rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .2s ease, visibility 0s linear .2s;
  }
  /* unsichtbare Brücke, damit der Zeiger beim Wechsel vom Menüpunkt zur Liste nicht „verliert“ */
  .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
  .menu > li:last-child.has-sub > .sub-menu { left: auto; right: 0; }
  .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  html:not(.js) .has-sub:hover > .sub-menu, html:not(.js) .has-sub:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: none;
  }
  .sub-menu a { padding: .55rem .9rem; border-radius: 9px; font-size: .95rem; white-space: normal; }
  .sub-menu a:focus-visible { outline-offset: -2px; }
}
/* Zwischen 1280 und 1379 px passt Menü + Wortmarke nicht in eine Zeile: nur das Logo (Name steht im aria-label) */
@media (min-width: 1280px) and (max-width: 1379.98px) {
  .brand-name { display: none; }
}
@media (min-width: 1280px) and (prefers-reduced-motion: reduce) {
  .sub-menu { transition: none; transform: none; }
}

/* =====================================================================
   2. Footer
   ===================================================================== */
.site-footer { background: var(--petrol); color: rgba(255, 255, 255, .8); padding: 4.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1fr .9fr; gap: 2.2rem; padding-bottom: 3rem; }
.footer-title { color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer :is(a, button):focus-visible { outline-color: var(--gold-light); }
.footer-brand img { width: 110px; height: 110px; border-radius: 12px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .98rem; margin-bottom: .3rem; }
.footer-brand p + p { margin-top: .8rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.footer-social li { margin: 0; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--petrol); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15); padding: 1.4rem 0;
  font-size: .88rem; color: rgba(255, 255, 255, .72);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   3. Globaler Kontakt-/Newsletter-/Social-Block (section.global-contact)
   ===================================================================== */
.global-contact { background: #fff; border-top: 1px solid var(--line); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.gc-inner { max-width: var(--maxw, 1180px); margin: 0 auto; padding: 0 1.5rem; }
.global-contact .gc-title { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.gc-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.gc-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.6rem 2rem; text-align: center; box-shadow: var(--shadow-soft);
}
.gc-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--teal); display: grid; place-items: center;
}
.gc-icon svg { width: 25px; height: 25px; }
.gc-big {
  display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 700; line-height: 1.2; color: var(--teal); overflow-wrap: anywhere;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;   /* Telefonnummer gut lesbar (Cormorant hat sonst Mediäval-Ziffern) */
}
a.gc-big:hover { color: var(--teal-dark); }
.gc-sub { margin: .45rem 0 0; color: var(--muted); font-size: 1.02rem; }
.gc-sub a { font-weight: 500; }

.nl-panel {
  margin-top: 1.5rem; background: var(--petrol); color: #fff; border-radius: var(--radius);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  background-image: radial-gradient(circle at 85% 15%, rgba(191, 161, 95, .25), transparent 50%);
}
.nl-panel .nl-title { color: #fff; text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.6rem; }
.nl-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; max-width: 820px; margin: 0 auto; }
.nl-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.nl-field.is-wide { grid-column: 1 / -1; }
.nl-field label {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}
.nl-field input {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4; width: 100%; min-width: 0;
  padding: .8rem 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35);
  background: #fff; color: var(--ink);
}
.nl-field input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.nl-field input[aria-invalid="true"] { border-color: #e3a0a0; box-shadow: 0 0 0 2px #e3a0a0; }
.nl-hint { grid-column: 1 / -1; margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .78); }
.nl-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: flex-end; justify-content: space-between; }
.nl-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.nl-captcha label {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}
.nl-captcha .nl-q { font-size: 1.2rem; font-weight: 600; letter-spacing: .04em; color: #fff; margin: 0 .15em; white-space: nowrap; }
.nl-captcha input { width: 7rem; font-family: var(--font-body); font-size: 1rem; padding: .8rem 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35); background: #fff; color: var(--ink); text-align: center; }
.nl-captcha input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.nl-captcha input[aria-invalid="true"] { border-color: #e3a0a0; box-shadow: 0 0 0 2px #e3a0a0; }
.nl-submit {
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: .95rem 2.2rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  background: var(--gold); color: var(--petrol); transition: background-color .25s ease, transform .25s ease;
}
.nl-submit:hover { background: var(--gold-light); transform: translateY(-2px); }
.nl-submit:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.nl-status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; text-align: center; color: #fff; }
.nl-status a { color: var(--gold-light); text-decoration: underline; }
.nl-status.is-error { color: #ffd0d0; }

.social-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2rem 0 0; padding: 0; }
.social-links li { margin: 0; }
.social-links a {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.3rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--petrol); font-weight: 500; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-links a:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; flex: 0 0 auto; }

@media (max-width: 760px) {
  .gc-lines, .nl-form { grid-template-columns: 1fr; }
  .nl-bottom { align-items: stretch; flex-direction: column; }
  .nl-submit { width: 100%; padding-left: 1rem; padding-right: 1rem; }
  .nl-captcha input { width: 100%; max-width: 8rem; }
}
@media (max-width: 420px) { .social-links a { padding: .65rem 1.05rem; } }

/* =====================================================================
   4. Lightbox (a.lightbox)
   ===================================================================== */
a.lightbox { position: relative; display: block; cursor: zoom-in; }
a.lightbox:not(.no-zoom-icon)::after {
  content: ''; position: absolute; right: .6rem; bottom: .6rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: rgba(11, 59, 56, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 60% no-repeat;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
a.lightbox:hover::after, a.lightbox:focus-visible::after { opacity: 1; }
@media (hover: none) { a.lightbox:not(.no-zoom-icon)::after { opacity: .9; } }

.lb-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 1.5rem; background: rgba(5, 28, 26, .92);
  opacity: 0; transition: opacity .2s ease;
}
.lb-overlay.is-open { opacity: 1; }
.lb-overlay[hidden] { display: none; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); min-height: 4rem; }
.lb-img {
  display: block; max-width: min(96vw, 1500px); max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem);
  width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.lb-overlay.is-loading .lb-img { opacity: 0; }
.lb-overlay.is-loading .lb-stage::before {
  content: ''; position: absolute; width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: lb-spin .8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb-caption { margin: .9rem 0 0; max-width: 60rem; color: rgba(255, 255, 255, .92); text-align: center; font-size: .98rem; line-height: 1.5; }
.lb-counter { position: absolute; top: 1.1rem; left: 1.2rem; color: rgba(255, 255, 255, .8); font-size: .9rem; letter-spacing: .08em; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn:focus-visible { outline: 3px solid var(--gold-light, #d8c08a); outline-offset: 3px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: .9rem; right: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .8rem; }
.lb-next { right: .8rem; }
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-counter { display: none; }
@media (max-width: 600px) {
  .lb-overlay { padding: 3.6rem .5rem 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: .8rem; transform: none; }
  .lb-caption { margin-bottom: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) { .lb-overlay { transition: none; } .lb-overlay.is-loading .lb-stage::before { animation-duration: 2s !important; } }

/* =====================================================================
   5. Bildvergleich-Schieberegler (div.compare)
   ===================================================================== */
div.compare { position: relative; overflow: hidden; border-radius: var(--radius, 16px); line-height: 0; background: #eee; box-shadow: var(--shadow); }
div.compare img { display: block; width: 100%; height: auto; max-width: none; }
/* ohne JS: beide Bilder untereinander */
div.compare:not(.is-ready) img + img { margin-top: .6rem; }
div.compare.is-ready { --pos: 50%; }
div.compare.is-ready .compare-nach { position: relative; z-index: 1; }
div.compare.is-ready .compare-vor {
  position: absolute; inset: 0; z-index: 2; height: 100%; object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-label {
  position: absolute; z-index: 3; bottom: .8rem; max-width: calc(50% - 1.2rem);
  padding: .4rem .8rem; border-radius: 999px; background: rgba(11, 59, 56, .82); color: #fff;
  font-family: var(--font-body, sans-serif); font-size: .85rem; font-weight: 500; line-height: 1.3; letter-spacing: .03em;
  pointer-events: none;
}
.compare-label-vor { left: .8rem; }
.compare-label-nach { right: .8rem; }
.compare-handle {
  position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(11, 59, 56, .25); pointer-events: none;
}
.compare-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: var(--petrol, #0b3b38) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 62% no-repeat;
  border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.compare-range {
  position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100vh; }
.compare-range::-moz-range-thumb { width: 2px; height: 100vh; border: 0; }
.compare-range:focus-visible ~ .compare-handle::after { outline: 3px solid var(--gold, #bfa15f); outline-offset: 3px; }

/* =====================================================================
   6. Hotspots auf einem Bild (div.hotspots)
   ===================================================================== */
.hotspots { position: relative; }
.hotspots > img { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 2; width: 0; height: 0; }
.hotspot.is-open { z-index: 6; }
.hotspot-dot {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.hotspot-dot::before {            /* Punkt */
  content: ''; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal, #177e74); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background-color .2s ease;
}
.hotspot-dot::after {             /* Puls */
  content: ''; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--teal, #177e74); opacity: 0; animation: hotspot-pulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes hotspot-pulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(2.6); opacity: 0; } }
.hotspot-dot:hover::before, .hotspot.is-open .hotspot-dot::before { transform: scale(1.18); background: var(--teal-dark, #0e4f4b); }
.hotspot.is-open .hotspot-dot::after { animation: none; opacity: 0; }
.hotspot-dot:focus-visible { outline: 3px solid var(--gold, #bfa15f); outline-offset: 0; }
.hotspot-card {
  position: absolute; z-index: 3; left: 0; top: 18px; width: max-content; min-width: 11rem; max-width: min(19rem, 76vw);
  transform: translateX(calc(-50% + var(--shift, 0px)));
  padding: .9rem 1.05rem; background: #fff; color: var(--ink, #22332f); border: 1px solid var(--line, #e6e1d6);
  border-radius: 12px; box-shadow: var(--shadow, 0 14px 40px rgba(14, 79, 75, .15));
  font-size: .95rem; line-height: 1.5; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s linear .18s;
}
.hotspot.is-open > .hotspot-card { opacity: 1; visibility: visible; transition-delay: 0s; }
.hotspot[data-pos="top"] > .hotspot-card { top: auto; bottom: 18px; }
.hotspot-card .hotspot-icon { width: 44px; height: 44px; margin: 0 0 .5rem; object-fit: contain; }
.hotspot-title { display: block; font-family: var(--font-head, serif); font-size: 1.25rem; line-height: 1.2; font-weight: 600; color: var(--petrol, #0b3b38); }
.hotspot-text { margin: .35rem 0 0; color: var(--muted, #5e716c); font-size: .93rem; }
.hotspot-link { display: inline-block; margin-top: .55rem; font-weight: 500; }
/* ohne JS: Karten als Liste unter dem Bild, Punkte entfallen */
html:not(.js) .hotspots .hotspot { position: static; width: auto; height: auto; }
html:not(.js) .hotspots .hotspot-dot { display: none; }
html:not(.js) .hotspots .hotspot-card {
  position: static; transform: none; opacity: 1; visibility: visible; width: auto; max-width: none; margin-top: .8rem;
}
@media (prefers-reduced-motion: reduce) { .hotspot-dot::after { animation: none; opacity: 0; } .hotspot-card { transition: none; } }

/* =====================================================================
   7. Balken und Zähler (.bars / .bar, .count-up)
   ===================================================================== */
.bars { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; margin: 0; padding: 0; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: baseline; margin: 0; }
.bar-label { font-weight: 500; color: var(--petrol, #0b3b38); }
.bar-value { font-family: var(--font-head, serif); font-size: 1.35rem; font-weight: 700; color: var(--teal, #177e74); line-height: 1; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; display: block; height: 12px; border-radius: 999px; background: var(--line, #e6e1d6); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: calc(min(var(--v, 100), 100) * 1%); border-radius: inherit;
  background: linear-gradient(90deg, var(--teal, #177e74), var(--gold, #bfa15f));
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1);
}
.js .bars:not(.is-in) .bar-fill { width: 0; }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } .js .bars:not(.is-in) .bar-fill { width: calc(min(var(--v, 100), 100) * 1%); } }

/* =====================================================================
   8. YouTube-2-Klick-Einbettung (div.yt-embed)
   ===================================================================== */
.yt-embed {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--radius, 16px);
  background: var(--petrol, #0b3b38); color: #fff; box-shadow: var(--shadow);
}
.yt-embed .yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3rem); text-align: center;
  background: linear-gradient(rgba(7, 42, 40, .72), rgba(7, 42, 40, .82));
}
.yt-consent p { margin: 0; max-width: 40rem; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.yt-consent .yt-title { font-family: var(--font-head, serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: #fff; line-height: 1.25; }
.yt-load {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-body, sans-serif); font-size: .95rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; padding: .9rem 2rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--gold, #bfa15f); color: var(--petrol, #0b3b38); transition: background-color .25s ease, transform .25s ease;
}
.yt-load:hover { background: var(--gold-light, #d8c08a); transform: translateY(-2px); }
.yt-load:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.yt-load svg { width: 18px; height: 18px; }
.yt-consent a { color: var(--gold-light, #d8c08a); text-decoration: underline; }
/* ohne JS: nur Vorschaubild + Link */
.yt-embed:not(.is-ready) { display: flex; align-items: flex-end; }
.yt-embed:not(.is-ready) .yt-fallback { position: relative; z-index: 2; margin: 0 0 1rem 1rem; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; font-weight: 500; }
.yt-embed.is-ready .yt-fallback { display: none; }
@media (max-width: 520px) { .yt-consent { gap: .7rem; padding: .8rem; } .yt-consent p { font-size: .84rem; } }

/* =====================================================================
   9. Hintergrundvideo (.has-bg-video > video.bg-video)
   ===================================================================== */
.has-bg-video { position: relative; overflow: hidden; isolation: isolate; background-color: var(--petrol, #0b3b38); }
.has-bg-video::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-video-overlay, linear-gradient(rgba(7, 42, 40, .62), rgba(7, 42, 40, .72)));
  pointer-events: none;
}
.bg-video {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  background: var(--petrol, #0b3b38);
}
.has-bg-video > :not(.bg-video) { position: relative; }
@media print { .bg-video { display: none; } }

/* =====================================================================
   10. Ganzflächig klickbare Sektion (.section-link + a.section-link-anchor)
   ===================================================================== */
.section-link { position: relative; cursor: pointer; transition: filter .25s ease; }
.section-link:hover { filter: brightness(1.06); }
.section-link-anchor::after { content: ''; position: absolute; inset: 0; z-index: 3; }
/* weitere Links/Buttons in der Sektion bleiben einzeln klickbar */
.section-link a:not(.section-link-anchor), .section-link button { position: relative; z-index: 4; }
.section-link-anchor:focus-visible { outline: 3px solid var(--gold-light, #d8c08a); outline-offset: 4px; }
.section-link:has(.section-link-anchor:focus-visible) { outline: 3px solid var(--gold-light, #d8c08a); outline-offset: -6px; }
.section-link-anchor:focus-visible::after { outline: none; }
@media (prefers-reduced-motion: reduce) { .section-link { transition: none; } .section-link:hover { filter: none; } }

/* =====================================================================
   11. Druck
   ===================================================================== */
@media print {
  .site-header, .nav-toggle, .skip-link, .lb-overlay { display: none !important; }
  .global-contact { background: none !important; padding: 1rem 0; }
  .nl-panel, .social-links, .footer-social, .yt-load { display: none !important; }
  .gc-card { box-shadow: none; }
}
