/* =========================================================
   Zahnarztpraxis Muster & Partner – Demo von JLPStudios
   Statisch, ohne Build-Schritt. Tokens zuerst, dann Komponenten.
   ========================================================= */

:root {
  /* Farben (Vorgabe) */
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --primary: #326A70;
  --primary-deep: #285A5F;
  --ink: #20282B;
  --muted: #788285;
  --mint: #EAF4F0;
  --sand: #F1EDE7;
  --line: rgba(32, 40, 43, 0.09);

  /* Text auf Petrol */
  --on-primary: #FAFAF7;
  --on-primary-muted: rgba(250, 250, 247, 0.74);

  /* Typografie */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: 1.0625rem;                                   /* 17px */
  --fs-small: 0.875rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.18rem + 0.3vw, 1.4375rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.7vw, 3.625rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 3.9vw, 4.875rem);

  /* Raster & Abstände */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 7vw + 48px, 160px);

  /* Radien nach Hierarchie */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Typo-Bausteine ---------- */
.h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 340;
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
}

.note {
  margin-top: 20px;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.note::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.55;
  transform: translateY(-2px);
}
.note--center { justify-content: center; text-align: left; margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

.btn--primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); }
.btn--primary:hover { --btn-bg: var(--primary-deep); box-shadow: 0 10px 24px -12px rgba(50, 106, 112, 0.7); }

.btn--ghost { --btn-border: rgba(32, 40, 43, 0.18); }
.btn--ghost:hover { --btn-border: var(--ink); --btn-bg: var(--card); }

.btn--light { --btn-bg: var(--bg); --btn-fg: var(--primary-deep); }
.btn--light:hover { --btn-bg: var(--mint); }

.btn--outline-light { --btn-border: rgba(250, 250, 247, 0.38); --btn-fg: var(--on-primary); }
.btn--outline-light:hover { --btn-border: var(--on-primary); --btn-bg: rgba(250, 250, 247, 0.08); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.45s var(--ease), background-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.nav.is-scrolled {
  height: 68px;
  background: rgba(250, 250, 247, 0.84);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 420;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
}
.brand__sub {
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 28px; }
.burger[aria-expanded="true"] span:first-child { top: 23.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23.5px; transform: rotate(-45deg); }

/* Mobiles Menü */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.sheet[hidden] { display: none; }
.sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s;
}
.sheet__links { display: flex; flex-direction: column; }
.sheet__links a {
  font-family: var(--serif);
  font-size: clamp(2.125rem, 9vw, 2.75rem);
  font-weight: 340;
  line-height: 1.2;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.sheet__links a.is-active { color: var(--primary); }
.sheet.is-open .sheet__links a { opacity: 1; transform: none; }
.sheet.is-open .sheet__links a:nth-child(1) { transition-delay: 0.05s; }
.sheet.is-open .sheet__links a:nth-child(2) { transition-delay: 0.09s; }
.sheet.is-open .sheet__links a:nth-child(3) { transition-delay: 0.13s; }
.sheet.is-open .sheet__links a:nth-child(4) { transition-delay: 0.17s; }
.sheet.is-open .sheet__links a:nth-child(5) { transition-delay: 0.21s; }

.sheet__foot { display: grid; gap: 14px; padding-top: 28px; }
.sheet__tel {
  text-align: center;
  font-weight: 500;
  padding: 8px;
}
.sheet__addr { text-align: center; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 56px));
  padding-bottom: clamp(56px, 6vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: min(calc(100svh - var(--nav-h) - 80px), 820px);
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 320;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
@media (min-width: 641px) { .hero__title .line > span { white-space: nowrap; } }

.hero__lead {
  margin-top: clamp(24px, 2.4vw, 36px);
  max-width: 30em;
  font-size: var(--fs-lead);
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 3vw, 44px);
}

.hero__facts {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.hero__facts dt { color: var(--muted); font-size: 0.8125rem; margin-bottom: 4px; }
.hero__facts dd { line-height: 1.5; }
.hero__facts a { transition: color 0.3s; }
.hero__facts a:hover { color: var(--primary); }

.hero__media { position: relative; }
.arch {
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: min(78svh, 720px);
  width: 100%;
  margin-left: auto;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--sand);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}

.status {
  position: absolute;
  left: clamp(-36px, -2.5vw, -16px);
  bottom: clamp(28px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 18px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px -28px rgba(32, 40, 43, 0.35), 0 0 0 1px var(--line);
  font-size: 0.875rem;
  line-height: 1.35;
}
.status__dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.status.is-open .status__dot { background: #3E9A7A; }
.status.is-open .status__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid #3E9A7A;
  animation: pulse 2.4s var(--ease) infinite;
}
.status__text { display: flex; flex-direction: column; }
.status__text strong { font-weight: 600; }
.status__text span { color: var(--muted); }

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Hero-Einstieg: eine orchestrierte Sequenz */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__lead,
.js .hero__actions,
.js .hero__facts { opacity: 0; transform: translateY(12px); }
.js .arch { clip-path: inset(100% 0 0 0 round 999px 999px var(--r-lg) var(--r-lg)); }
.js .arch img { transform: scale(1.12); }
.js .status { opacity: 0; transform: translateY(10px); }

.is-loaded .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.is-loaded .hero__lead,
.is-loaded .hero__actions,
.is-loaded .hero__facts { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.is-loaded .hero__lead { transition-delay: 0.35s; }
.is-loaded .hero__actions { transition-delay: 0.45s; }
.is-loaded .hero__facts { transition-delay: 0.55s; }
.is-loaded .arch { clip-path: inset(0 0 0 0 round 999px 999px var(--r-lg) var(--r-lg)); transition: clip-path 1.4s var(--ease) 0.1s; }
.is-loaded .arch img { transform: scale(1); transition: transform 2.2s var(--ease) 0.1s; }
.is-loaded .status { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) 1s, transform 0.8s var(--ease) 1s; }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 80px);
}
.section-head > div > p:first-child,
.section-head > p { color: var(--muted); max-width: 34em; }
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 20px;
}
.section-head--center .h2 { max-width: 14em; }

/* Reveal beim Scrollen: dezent */
/* nutzt `translate`, damit `transform` für Hover-Effekte frei bleibt */
.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 1s var(--ease), translate 1s var(--ease),
              transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; translate: none; }

/* ---------- Praxis ---------- */
.praxis__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.praxis__media { position: relative; padding-bottom: 12%; padding-right: 10%; }
.praxis__media figure { margin: 0; overflow: hidden; }
.praxis__main { border-radius: var(--r-lg); aspect-ratio: 5 / 6; background: var(--sand); }
.praxis__main img,
.praxis__inset img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.praxis__media:hover .praxis__main img { transform: scale(1.03); }
.praxis__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid var(--bg);
  background: var(--sand);
}

.praxis__text .h2 { max-width: 12em; }
.praxis__text .lead { margin-top: 32px; max-width: 32em; }
.praxis__text > p:not(.lead):not(.note) { margin-top: 18px; color: var(--muted); max-width: 34em; }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.values h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 420;
  line-height: 1.25;
  font-variation-settings: "opsz" 24;
}
.values p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }

/* ---------- Leistungen ---------- */
.leistungen {
  background: var(--sand);
  border-radius: clamp(28px, 4vw, 48px);
  margin-inline: clamp(8px, 1.4vw, 20px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.6vw, 40px);
  min-height: 300px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px rgba(32, 40, 43, 0.04);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 1s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(50, 106, 112, 0.12), 0 28px 50px -30px rgba(50, 106, 112, 0.45);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--primary);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--primary); color: var(--on-primary); }
.card h3 {
  margin-top: auto;
  padding-top: 48px;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 420;
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 32;
}
.card p { margin-top: 10px; font-size: 0.96875rem; line-height: 1.6; color: var(--muted); }

/* ---------- Team ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 940px;
  margin-inline: auto;
}
.person { display: flex; flex-direction: column; }
.person__portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--r-lg);
  background: var(--sand);
  overflow: hidden;
}
.person:nth-child(2) .person__portrait { background: var(--mint); }
.person__portrait::before {
  /* zarter Bogen als Bildrahmen-Andeutung */
  content: "";
  position: absolute;
  inset: 12% 18% -10%;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(32, 40, 43, 0.08);
  transition: transform 1.2s var(--ease);
}
.person:hover .person__portrait::before { transform: translateY(-10px); }
.person__initials {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 3rem + 5vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--primary);
  opacity: 0.32;
  font-variation-settings: "opsz" 72;
}
.person__hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}
.person__body { padding: 24px 6px 0; display: flex; flex-direction: column; gap: 4px; }
.person__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 380;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.person__body p { color: var(--muted); }

/* ---------- Galerie ---------- */
.einblicke { padding-top: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: clamp(280px, 30vw, 440px) clamp(220px, 24vw, 340px);
  grid-template-areas:
    "a a a a a a a b b b b b"
    "c c c c d d d d e e e e";
  gap: clamp(12px, 1.4vw, 20px);
}
.g1 { grid-area: a; } .g2 { grid-area: b; } .g3 { grid-area: c; } .g4 { grid-area: d; } .g5 { grid-area: e; }

.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 40, 43, 0.42), rgba(32, 40, 43, 0) 45%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.gallery__cap {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.045); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 26, 28, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.45s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 72px clamp(16px, 8vw, 120px) 32px;
  max-height: 100dvh;
}
.lightbox__figure img {
  max-width: min(1200px, 100%);
  max-height: calc(100dvh - 150px);
  width: auto;
  border-radius: var(--r-sm);
  object-fit: contain;
  transition: opacity 0.3s;
}
.lightbox__figure figcaption { font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); text-align: center; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt ---------- */
.kontakt { padding-top: 0; }
.kontakt__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 6vw, 104px);
  padding: clamp(36px, 6vw, 96px);
  border-radius: clamp(28px, 3.4vw, 44px);
  background: var(--primary);
  color: var(--on-primary);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.kontakt__panel::before {
  /* ein großer, sehr zarter Bogen als Bezug zum Hero-Motiv */
  content: "";
  position: absolute;
  z-index: -1;
  width: 62%;
  aspect-ratio: 4 / 5;
  right: -14%;
  top: -22%;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(250, 250, 247, 0.1);
}
.kontakt__intro .h2 { max-width: 11em; }
.kontakt__intro > p { margin-top: 24px; max-width: 28em; color: var(--on-primary-muted); font-size: var(--fs-lead); }
.kontakt__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.contact-list dt { font-size: 0.8125rem; color: var(--on-primary-muted); margin-bottom: 6px; }
.contact-list dd { line-height: 1.5; overflow-wrap: anywhere; }
.contact-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }

.hours { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(250, 250, 247, 0.18); }
.hours h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 380; margin-bottom: 14px; }
.hours table { width: 100%; border-collapse: collapse; font-size: 0.96875rem; }
.hours th, .hours td { padding: 10px 0; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid rgba(250, 250, 247, 0.1); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--on-primary-muted); }
.hours td span { display: inline-block; }
.hours td span + span { margin-left: 18px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--on-primary); font-weight: 600; }
.hours tr.is-today th::after {
  content: "heute";
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(250, 250, 247, 0.14);
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: 2px;
}
.hours__note { margin-top: 14px; font-size: 0.8125rem; color: var(--on-primary-muted); }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 6vw, 96px) 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.footer__brand .brand__name { font-size: 1.5rem; }
.footer__title { font-size: 0.8125rem; color: var(--muted); font-weight: 400; margin-bottom: 10px; }
.footer p { line-height: 1.7; }
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--primary); }
.footer__nav { display: grid; gap: 4px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 48px; /* Platz für den Entwurfs-Hinweis */
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Entwurfs-Kennzeichnung ---------- */
.demo-tag {
  position: fixed;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(32, 40, 43, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(250, 250, 247, 0.9);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.demo-tag button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.demo-tag button:hover { background: rgba(250, 250, 247, 0.12); }
.demo-tag svg { width: 14px; height: 14px; }
.demo-tag.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { gap: 0; }
  .nav__links a { padding: 10px 10px; }
  .nav__links a::after { left: 10px; right: 10px; }
  .nav__inner { gap: 20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --nav-h: 72px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav.is-scrolled { height: 64px; }
  .nav.is-menu { background: var(--bg); box-shadow: none; }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 48px;
  }
  .arch { max-height: none; aspect-ratio: 5 / 5.4; max-width: 560px; margin-left: 0; }
  .praxis__media { max-width: 560px; }
  .status { left: 16px; bottom: 16px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }

  .praxis__grid { grid-template-columns: 1fr; }
  .praxis__media { max-width: 640px; }

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

@media (max-width: 640px) {
  :root { --section: 88px; }
  body { font-size: 1rem; }
  .brand__name { font-size: 1.125rem; }
  .brand__sub { font-size: 0.6875rem; }

  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.25rem); line-height: 1.04; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { flex-direction: column; gap: 18px; }
  .hero__facts > div { display: flex; justify-content: space-between; gap: 16px; }
  .hero__facts dd { text-align: right; }
  .arch { aspect-ratio: 4 / 4.6; border-radius: 999px 999px var(--r-md) var(--r-md); }
  .js .arch { clip-path: inset(100% 0 0 0 round 999px 999px var(--r-md) var(--r-md)); }
  .is-loaded .arch { clip-path: inset(0 0 0 0 round 999px 999px var(--r-md) var(--r-md)); }

  .values { grid-template-columns: 1fr; gap: 18px; }
  .values li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; align-items: baseline; }
  .values p { margin-top: 0; }

  .leistungen { margin-inline: 0; border-radius: 28px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { padding-top: 28px; }

  .team__grid { grid-template-columns: 1fr; gap: 36px; }
  .person__portrait { aspect-ratio: 5 / 5.2; }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 200px 200px;
    grid-template-areas:
      "a a"
      "b c"
      "d e";
    gap: 10px;
  }
  .gallery__item { border-radius: var(--r-sm); }
  .gallery__cap { left: 12px; bottom: 10px; font-size: 0.8125rem; opacity: 1; transform: none; }
  .gallery__item::after { opacity: 1; }

  .kontakt__panel { padding: 40px 24px 32px; border-radius: 28px; }
  .kontakt__panel::before { width: 120%; right: -60%; top: -6%; }
  .kontakt__actions { flex-direction: column; }
  .kontakt__actions .btn { width: 100%; }
  .contact-list { grid-template-columns: 1fr; gap: 20px; }

  .demo-tag { left: 12px; font-size: 0.6875rem; padding: 3px 3px 3px 12px; }
  .demo-tag button { width: 26px; height: 26px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; padding-bottom: 56px; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__figure { padding: 64px 12px 96px; }
  .lightbox__figure img { max-height: calc(100dvh - 200px); }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
