/* ==========================================================
   Dr. Mario Herzog – Wahlarztpraxis TCM & TEM
   Eigenständige Website, ohne Abhängigkeiten
   ========================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
  --green: #135d22;
  --green-dark: #0d4418;
  --green-soft: #e9f0ea;
  --teal: #015450;
  --text: #161616;
  --muted: #434744;
  --bg: #ffffff;
  --bg-soft: #f5f6f2;
  --line: #e4e7e2;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Nunito Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --radius: 6px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --max: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* ---------- Seitenübergänge (View Transitions, Chrome/Edge/Safari) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: header; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { touch-action: manipulation; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--green); margin: 0 0 .5em; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
h3 { font-size: clamp(1.45rem, 3vw, 1.8rem); }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: #fff; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  color: #111;
  transition: color .4s var(--ease);
}
/* Glas-Hintergrund als eigenes Element, damit das fixierte Mobile-Menü nicht eingefangen wird */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 20px -12px rgba(0,0,0,.18);
  transition: opacity .4s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; transition: filter .4s var(--ease); }
.nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 52px); }
.nav > a {
  position: relative; text-decoration: none; font-size: .95rem; font-weight: 400;
  padding: 6px 0; transition: color .25s var(--ease);
}
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--green); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--green); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: background-color .2s, color .4s var(--ease), transform .15s;
}
.icon-btn:hover { background: rgba(19,93,34,.08); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-toggle { display: none; color: #111; }

/* Startseite: Header transparent über dem Bild, beim Scrollen weiß */
.has-hero .site-header { position: fixed; left: 0; right: 0; color: #fff; }
.has-hero .site-header::before { opacity: 0; }
.has-hero .site-header .nav > a[aria-current="page"],
.has-hero .site-header .nav > a:hover { color: #fff; }
.has-hero .site-header .icon-btn { color: #fff; }
.has-hero .site-header .icon-btn:hover { background: rgba(255,255,255,.14); }
.has-hero .site-header .brand img { filter: brightness(0) invert(1); }
.has-hero.is-scrolled .site-header, .has-hero.menu-open .site-header { color: #111; }
.has-hero.is-scrolled .site-header::before, .has-hero.menu-open .site-header::before { opacity: 1; }
.has-hero.is-scrolled .site-header .nav > a[aria-current="page"],
.has-hero.is-scrolled .site-header .nav > a:hover { color: var(--green); }
.has-hero.is-scrolled .site-header .icon-btn, .has-hero.menu-open .site-header .icon-btn { color: var(--green); }
.has-hero.is-scrolled .site-header .menu-toggle, .has-hero.menu-open .site-header .menu-toggle { color: #111; }
.has-hero.is-scrolled .site-header .brand img, .has-hero.menu-open .site-header .brand img { filter: none; }

/* Hamburger */
.burger { width: 22px; height: 14px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), opacity .2s, top .4s var(--ease-out); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.menu-open .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-contact { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .menu-toggle { display: inline-grid; }
  .header-actions .icon-btn:not(.menu-toggle) { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 99;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0;
    padding: 20px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: #fff;
    color: #111;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .5s var(--ease-out), visibility 0s .5s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-out); }
  .nav > a, .nav-contact {
    opacity: 0; transform: translateY(14px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .menu-open .nav > a, .menu-open .nav-contact { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
  .menu-open .nav > a:nth-child(1) { transition-delay: .08s; }
  .menu-open .nav > a:nth-child(2) { transition-delay: .13s; }
  .menu-open .nav > a:nth-child(3) { transition-delay: .18s; }
  .menu-open .nav > a:nth-child(4) { transition-delay: .23s; }
  .menu-open .nav-contact { transition-delay: .3s; }
  .nav > a { font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.2rem); font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); color: #111 !important; }
  .nav > a[aria-current="page"] { color: var(--green) !important; }
  .nav > a::after { display: none; }
  .nav-contact { display: grid; gap: 10px; margin-top: 28px; }
  .nav-contact a { font-size: 1rem; border: 1px solid var(--line); border-radius: 40px; padding: 13px 18px; display: flex; align-items: center; gap: 12px; text-decoration: none; transition: background-color .2s; }
  .nav-contact a:active { background: var(--bg-soft); }
  .nav-contact svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; color: #fff;
  overflow: hidden; background: #55634f;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
/* unscharfes Mini-Vorschaubild (wenige Bytes), bis das echte Bild geladen ist */
.hero__media::before {
  content: ""; position: absolute; inset: -40px; background: inherit; filter: blur(24px);
}
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img {
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 2.6s var(--ease-out);
}
.hero.is-loaded .hero__media img { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.1) 28%, rgba(0,0,0,.16) 58%, rgba(0,0,0,.38) 100%); }
.hero__content { padding: calc(var(--header-h) + 40px) var(--gutter) 90px; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(2rem, 6.4vw, 4rem); line-height: 1.22; margin: 0 0 .8em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 > span { display: block; animation: rise 1.1s var(--ease-out) both; }
.hero h1 > span:nth-child(1) { animation-delay: .15s; }
.hero h1 > span:nth-child(2) { animation-delay: .3s; }
.hero .btn { animation: rise 1.1s .5s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); margin-left: -13px; width: 26px; height: 40px;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 14px; animation: rise 1s .9s var(--ease-out) both;
}
.hero__scroll::before { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Parallax über scroll-getriebene CSS-Animation (läuft auf der GPU, kein JS) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__content { animation: fadeup linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes parallax { to { transform: translate3d(0, 22vh, 0); } }
    @keyframes fadeup { to { opacity: 0; transform: translate3d(0, -6vh, 0); } }
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 26px; border-radius: 999px;
  font: 400 .95rem/1 var(--sans); letter-spacing: .08em; text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease), box-shadow .3s;
}
.btn:active { transform: scale(.96); }
.btn--light { color: #fff; border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--green); }
.btn--solid { background: var(--green); border-color: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 10px 24px -12px rgba(19,93,34,.7); }
.btn--outline { color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.linklike { background: none; border: 0; padding: 8px 2px; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--green); }

/* ---------- Info-Karussell (natives Scroll-Snap = butterweich auf dem Handy) ---------- */
.slider { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.slider__viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__track { display: flex; }
.slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  padding: 0 64px; min-height: 340px; display: flex; flex-direction: column; align-items: center;
}
.slide h2 { margin-bottom: .2em; }
.slide__sub { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 600; color: #111; margin: 0 0 1.3em; }
.slide__body { font-size: 1rem; line-height: 2; }
.slide__body p { margin: 0; }
.slide address { font-style: normal; }
.hours { list-style: none; margin: 0 auto; padding: 0; display: inline-grid; gap: 2px; text-align: left; }
.hours li { display: grid; grid-template-columns: 2.4em auto; gap: 8px; padding: 6px 14px; line-height: 1.6; border-radius: 30px; transition: background-color .3s; }
.hours li.is-today { grid-template-columns: 2.4em auto auto; background: var(--green-soft); color: var(--green); font-weight: 500; }
.hours li.is-today::after { content: "heute"; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; align-self: center; margin-left: 8px; }
.contact-list { list-style: none; padding: 0; margin: 0 auto; display: inline-grid; gap: 14px; text-align: left; }
.contact-list a { display: flex; align-items: center; gap: 18px; text-decoration: none; padding: 4px 0; transition: color .2s; }
.contact-list a:hover { color: var(--green); }
.contact-list svg { width: 26px; height: 26px; flex-shrink: 0; color: #111; }
.slider__arrow {
  position: absolute; top: 42%; margin-top: -24px; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; background: none; color: #111; cursor: pointer; border-radius: 50%; transition: background-color .2s, color .2s, transform .15s;
}
.slider__arrow:hover { background: var(--bg-soft); color: var(--green); }
.slider__arrow:active { transform: scale(.9); }
.slider__arrow svg { width: 22px; height: 40px; }
.slider__arrow--prev { left: -8px; }
.slider__arrow--next { right: -8px; }
.slider__dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.slider__dots button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.slider__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #c9cdc7; transition: width .4s var(--ease-out), background-color .3s; }
.slider__dots button[aria-current="true"]::before { width: 24px; background: var(--green); }
@media (max-width: 600px) {
  .slide { padding: 0 6px; min-height: 0; }
  .slider__arrow { display: none; }
}

/* ---------- Inhaltsseiten ---------- */
.page-head { padding: clamp(48px, 8vw, 90px) 0 clamp(16px, 3vw, 28px); text-align: center; }
.page-head h1 { margin: 0; }
.page-head .eyebrow { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.prose { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose p { margin-bottom: 1.25em; }
@media (max-width: 600px) { .prose { text-align: left; } }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__img { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.about__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 55% 30%; border-radius: var(--radius-lg); }
.about__lead { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--green); font-weight: 500; margin-bottom: .8em; line-height: 1.3; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__img { position: static; order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .about__img img { aspect-ratio: 4/3.6; }
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 64px); }
.facts div { background: var(--bg-soft); padding: 24px 18px; text-align: center; border-radius: var(--radius-lg); }
.facts strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--green); line-height: 1.1; }
.facts span { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; gap: 10px; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1.4vw, 16px); margin: clamp(32px, 5vw, 56px) 0; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft); cursor: zoom-in; }
.gallery picture, .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery img { object-fit: cover; transition: transform .9s var(--ease-out); }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:active img { transform: scale(.98); transition-duration: .2s; }
.gallery a:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.gallery a:nth-child(2) { grid-column: span 5; }
.gallery a:nth-child(3), .gallery a:nth-child(4), .gallery a:nth-child(5) { grid-column: span 4; aspect-ratio: 4/3.4; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:nth-child(n) { grid-column: span 1; aspect-ratio: 1; }
  .gallery a:nth-child(1) { grid-column: span 2; aspect-ratio: 4/3; }
}

.therapies { list-style: none; padding: 0; margin: 0 0 2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.therapies li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; line-height: 1.4; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.therapies li:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(19,93,34,.55); }
.therapies li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.callout { background: var(--green-soft); padding: clamp(20px, 3vw, 30px) clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); margin: 2em 0; position: relative; }
.callout::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--green); }
.callout p:last-child { margin-bottom: 0; }

.cta { background: var(--bg-soft); text-align: center; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.4em; }
@media (max-width: 480px) { .cta__buttons .btn { width: 100%; } }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); }
.contact-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: .6em; }
.contact-card p { margin: 0; line-height: 1.9; }
.contact-card .hours { margin: 0 0 0 -14px; }
.contact-card .contact-list { margin: 0; }
.contact-card address { font-style: normal; }
.contact-card .btn { margin-top: 18px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.map {
  position: relative; margin-top: clamp(24px, 4vw, 40px); height: clamp(340px, 55vh, 600px);
  background: var(--bg-soft) url("../img/hero-1200.jpg") center/cover; border-radius: var(--radius-lg); overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: center;
}
.map__consent > div { max-width: 460px; }
.map__consent h3 { margin-bottom: .3em; }
.map__consent p { font-size: .92rem; color: var(--muted); }
.map__consent label { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; margin-top: 14px; cursor: pointer; }
.map__consent input { width: 18px; height: 18px; accent-color: var(--green); }
.map__consent .btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Rechtstexte */
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--teal); overflow-wrap: anywhere; }
.legal address { font-style: normal; margin-bottom: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 8vw, 90px) 0 calc(36px + env(safe-area-inset-bottom)); text-align: center; color: var(--teal); font-size: .88rem; border-top: 1px solid var(--line); }
.site-footer .logo { width: 150px; margin: 0 auto 22px; }
.site-footer a { color: var(--teal); }
.site-footer a:hover { color: var(--green); }
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px clamp(20px, 4vw, 44px); margin-top: 26px; padding: 0; list-style: none; font-size: .95rem; }
.footer-links a { display: inline-block; padding: 8px 2px; }
.site-footer .copy { margin-top: 22px; color: var(--muted); font-size: .8rem; }

/* ---------- Datenschutz-Dialog ---------- */
.privacy {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 0; border-radius: 22px; padding: 0; color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.privacy::backdrop { background: rgba(15,22,17,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.privacy[open] { animation: pop .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.privacy form { padding: clamp(22px, 4vw, 32px); }
.privacy h2 { font-size: 1.9rem; }
.privacy p { font-size: .95rem; color: var(--muted); }
.switch { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; line-height: 1.45; }
.switch small { color: var(--muted); font-size: .85rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 44px; height: 26px; border-radius: 99px; background: #cfd3cd; position: relative; transition: background-color .25s; margin-top: 2px; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease-out); }
.switch input:checked + .switch__ui { background: var(--green); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--green); outline-offset: 2px; }
.privacy__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.privacy__actions a { color: var(--teal); font-size: .9rem; }

/* ---------- Mobile Schnellkontakt-Leiste ---------- */
.quickbar { display: none; }
@media (max-width: 600px) {
  .quickbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,.3);
    transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease-out);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; text-decoration: none; font-size: .72rem; font-weight: 500; color: var(--green); transition: background-color .15s; }
  .quickbar a + a { border-left: 1px solid rgba(0,0,0,.06); }
  .quickbar a:active { background: rgba(19,93,34,.08); }
  .quickbar svg { width: 22px; height: 22px; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  body.menu-open .quickbar { transform: translateY(calc(100% + 30px)); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: rgba(10,14,11,.95); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  touch-action: pan-y; overscroll-behavior: contain;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 82vh; max-height: 82svh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .25s; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .15s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button:active { transform: scale(.92); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -26px; }
.lightbox__count { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .1em; pointer-events: none; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; margin-top: 0; bottom: calc(12px + env(safe-area-inset-bottom)); } }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .slider__viewport { scroll-behavior: auto; }
}

@media print {
  .site-header, .quickbar, .map, .slider__arrow, .slider__dots, .hero__scroll, .privacy { display: none !important; }
  .slider__viewport { overflow: visible; }
  .slider__track { flex-direction: column; }
  .reveal { opacity: 1; transform: none; }
}
