/* ════════════════════════════════════════════════════════════
   Gotastic · Orthopädieschuhtechnik
   Aesthetic: editorial + warm parchment, Logo-grün als Akzent
   Display: Fraunces (variable, opsz + SOFT, dramatic italics)
   Body:    Instrument Sans (humanist)
   Mono:    JetBrains Mono
   ════════════════════════════════════════════════════════════ */

:root {
  /* Logo-treue Palette */
  --bg:           #F2EFE5;          /* warmes Pergament */
  --bg2:          #E7E2D2;          /* tieferes Pergament */
  --card:         #FBF8EE;          /* Elfenbein */
  --fg:           #1B2A24;          /* Logo dunkel — Forest */
  --ink-soft:     #2d3d36;
  --muted:        #5d6b65;
  --muted-2:      #8c958f;
  --line:         #D6D1BE;
  --line-soft:    #E2DDC9;
  --accent:       #0E8F73;          /* Logo grün */
  --accent-deep:  #086752;
  --accent-soft:  #4DBB9F;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --display-weight: 460;
  --display-italic-weight: 380;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  --ease-soft: cubic-bezier(.2,.7,.2,1);

  /* enge vertikale Sektion-Padding */
  --sec-py: clamp(48px, 6vw, 88px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss02", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
}
.display em, .display .italic {
  font-style: italic;
  font-weight: var(--display-italic-weight);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
  letter-spacing: -0.015em;
  padding-right: 0.04em;
}
.mono, .mono span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--line);
  transition: transform 0.32s var(--ease-soft);
  will-change: transform;
}
.topbar.is-hidden { transform: translateY(-105%); }
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  transition: padding 0.25s ease;
}
.topbar.is-scrolled .topbar-inner { padding: 12px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  transition: height 0.25s ease;
}
.topbar.is-scrolled .brand-logo { height: 44px; }

.topnav { display: flex; gap: 28px; justify-content: center; }
.topnav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--fg);
  position: relative;
  padding: 4px 0;
  font-weight: 500;
}
.topnav a:hover { color: var(--accent); }
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.4s var(--ease-soft);
}
.topnav a:hover::after { right: 0; }

.cta-pill {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--fg);
  color: var(--bg);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-soft);
}
.cta-pill:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.topbar-burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.burger-lines { display: inline-flex; flex-direction: column; gap: 5px; width: 18px; }
.burger-lines span {
  display: block; height: 1.5px; width: 100%;
  background: currentColor;
  transition: transform 0.3s ease;
  transform-origin: center;
}
.is-menu-open .burger-lines span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.is-menu-open .burger-lines span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--pad) 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-soft), opacity 0.25s ease;
  max-height: calc(100vh - 100%);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav { display: grid; gap: 0; padding: 8px 0 14px; }
.mobile-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 7vw, 36px);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.025em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-menu-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 16px; flex-wrap: wrap;
}
.mobile-call { text-decoration: none; color: var(--fg) !important; font-size: 13px !important; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-soft);
  cursor: pointer;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--fg);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* ── Sections ───────────────────────────────────────── */
section { padding: var(--sec-py) var(--pad); position: relative; }

.section-head {
  max-width: var(--maxw);
  margin: 0 auto clamp(28px, 4vw, 48px);
  display: grid;
  gap: 14px;
}
.section-head > .mono {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head > .mono::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section-head .display {
  font-size: clamp(34px, 5vw, 64px);
  max-width: 22ch;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section-lede {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(50px, 6vw, 90px); }
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 48px);
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft) !important;
}
.hero-dot {
  display: inline-block;
  color: var(--accent) !important;
  font-size: 9px !important;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero h1.display {
  font-size: clamp(44px, 7.5vw, 108px);
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 0.96;
  text-wrap: balance;
}
.hero h1.display em {
  font-size: 1.05em;
  margin: 0 -0.04em 0 0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 360;
}
.hero-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 56ch;
  color: var(--fg);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-facts {
  list-style: none;
  margin: 8px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero-facts li { display: grid; gap: 6px; }
.hero-facts strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 60, "SOFT" 30;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ── Leistungen ─────────────────────────────────────── */
.leistungen { background: var(--bg2); }
.leist-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.leist-card {
  background: var(--bg2);
  padding: clamp(22px, 2.6vw, 36px);
  display: grid;
  gap: 14px;
  align-content: start;
  position: relative;
  transition: background 0.3s ease;
}
.leist-card:hover { background: var(--card); }
.leist-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-soft);
}
.leist-card:hover::before { width: 100%; }
.leist-no { color: var(--accent) !important; }
.leist-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  margin: 0;
}
.leist-card:hover .leist-title em,
.leist-card:hover .leist-title {
  color: var(--accent);
}
.leist-card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
}
.leist-tags {
  list-style: none;
  padding: 0; margin: 4px 0 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.leist-tags li {
  border: 1px solid var(--line);
  padding: 5px 9px;
  background: var(--bg);
  font-size: 10.5px !important;
  letter-spacing: 0.12em !important;
}

/* ── Galerie (Kachel-Raster) ─────────────────────────── */
.galerie { background: var(--bg); }
.galerie-mosaic {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
/* Genau 2 Reihen pro Breakpoint sichtbar */
.galerie-mosaic .galerie-tile:nth-child(n+9) { display: none; }
@media (max-width: 980px) {
  .galerie-mosaic .galerie-tile:nth-child(n+7) { display: none; }
}
@media (max-width: 720px) {
  .galerie-mosaic .galerie-tile:nth-child(n+5) { display: none; }
}
.galerie-tile {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--card);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s ease, border-color 0.3s ease;
}
.galerie-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-soft), filter 0.4s ease;
  filter: saturate(1.02);
}
.galerie-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 24px 40px -22px rgba(27,42,36,0.35);
}
.galerie-tile:hover img { transform: scale(1.04); }
.galerie-tile-spec {
  position: absolute;
  left: 10px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: color-mix(in oklab, var(--fg) 78%, transparent);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.galerie-tile:hover .galerie-tile-spec { opacity: 1; transform: translateY(0); }
.galerie-foot {
  max-width: var(--maxw);
  margin: clamp(20px, 2.5vw, 32px) auto 0;
  display: flex; justify-content: center;
}

/* ── Standorte (mit echter Leaflet-Karte) ────────────── */
.standorte { background: var(--bg2); }
.standorte-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}
.standorte-list { display: grid; gap: 10px; align-content: start; }
.standort-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 4px;
  display: grid; gap: 6px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
  position: relative;
}
.standort-card:hover { border-color: var(--fg); transform: translateY(-1px); }
.standort-card.is-active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--card) 78%, var(--accent) 7%);
}
.standort-card.is-active::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.standort-card-head { display: flex; gap: 12px; align-items: center; }
.standort-district { color: var(--accent) !important; }
.standort-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.0;
  margin: 0;
}
.standort-card.is-active .standort-name {
  font-style: italic;
  font-weight: var(--display-italic-weight);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.standort-addr { margin: 0; font-size: 14px; color: var(--ink-soft); }
.standort-meta { font-size: 10.5px !important; letter-spacing: 0.12em !important; }
.standort-route {
  display: none;
  font-size: 10.5px !important;
  text-decoration: none;
  color: var(--accent) !important;
}

/* Leaflet container */
.standorte-map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  min-height: 420px;
  display: flex; flex-direction: column;
}
.osm-map { flex: 1; width: 100%; min-height: 420px; }
.osm-credit {
  position: absolute;
  bottom: 6px; right: 6px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  padding: 3px 7px;
  font-size: 9px !important;
  letter-spacing: 0.1em !important;
  color: var(--ink-soft) !important;
  text-decoration: none;
  border-radius: 2px;
  z-index: 500;
}

/* Leaflet override for visual cohesion */
.leaflet-container {
  font-family: var(--font-body) !important;
  background: var(--bg2);
}
.leaflet-control-zoom a {
  background-color: var(--card) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
  font-family: var(--font-body) !important;
}
.leaflet-control-zoom a:hover { background-color: var(--bg) !important; color: var(--accent) !important; }
.leaflet-control-attribution { display: none !important; }
.leaflet-popup-content-wrapper {
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 16px 32px -16px rgba(27,42,36,0.4);
  border: 1px solid var(--line);
}
.leaflet-popup-tip { background: var(--card); border: 1px solid var(--line); }
.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg);
}
.leaflet-popup-content strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--display-italic-weight);
  font-variation-settings: "opsz" 60, "SOFT" 100;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin-bottom: 2px;
}

/* Custom marker (DivIcon) */
.gota-marker {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
  box-shadow: 0 4px 14px rgba(14,143,115,0.55);
  position: relative;
}
.gota-marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  animation: pin-pulse 2.4s ease-in-out infinite;
}
.gota-marker.is-active { background: var(--accent-deep); transform: scale(1.15); }
@keyframes pin-pulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Lightbox ───────────────────────────────────────── */
.galerie-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: color-mix(in oklab, var(--fg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center;
  padding: clamp(24px, 5vw, 80px);
  animation: lb-fade 0.3s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure {
  position: relative; margin: 0;
  display: grid; gap: 18px;
  max-width: min(90vw, 1100px); max-height: 88vh;
  animation: lb-zoom 0.4s var(--ease-soft);
}
@keyframes lb-zoom {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-figure img {
  display: block;
  max-width: 100%; max-height: 78vh;
  object-fit: contain;
  background: var(--card);
  box-shadow: 0 50px 110px -20px rgba(0,0,0,0.7);
  user-select: none;
}
.lb-cap { display: grid; gap: 6px; color: var(--bg); text-align: center; }
.lb-cap .mono { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.lb-cap .display {
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  font-weight: var(--display-italic-weight);
  font-variation-settings: "opsz" 60, "SOFT" 100;
  color: var(--bg);
}
.lb-sub { letter-spacing: 0.16em; }
.lb-close {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--bg) 30%, transparent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lb-close:hover { background: color-mix(in oklab, var(--bg) 12%, transparent); border-color: var(--bg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--bg) 30%, transparent);
  color: var(--bg);
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: grid; place-items: center;
  transition: background 0.2s ease, transform 0.3s ease;
}
.lb-nav:hover { background: color-mix(in oklab, var(--bg) 14%, transparent); }
.lb-prev { left: clamp(16px, 3vw, 40px); }
.lb-next { right: clamp(16px, 3vw, 40px); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

/* ── Fachbereich ────────────────────────────────────── */
.fachbereich {
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 60%),
    var(--fg);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.fachbereich .mono { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.fach-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
.fach-side { display: grid; gap: 22px; align-content: start; }
.fach-side .display {
  font-size: clamp(36px, 5vw, 64px);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.fach-side .display em {
  color: var(--accent-soft);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.fach-side > p {
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--bg) 82%, transparent);
}
.fach-bullets {
  list-style: none;
  padding: 0;
  display: grid; gap: 0;
  margin: 6px 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.fach-bullets li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.fach-bullets .mono { color: var(--accent-soft) !important; font-size: 16px !important; }
.fach-bullets strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.fach-bullets p {
  font-size: 14px;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  margin: 0;
}
.fach-side .btn-primary {
  background: var(--accent);
  color: var(--bg);
  justify-self: start;
  border-color: var(--accent);
}
.fach-side .btn-primary:hover { background: var(--bg); color: var(--fg); border-color: var(--bg); }

.fach-card {
  background: color-mix(in oklab, var(--bg) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  padding: 28px;
  display: grid; gap: 14px;
  align-self: start;
  border-radius: 4px;
  position: relative;
  backdrop-filter: blur(6px);
}
.fach-card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 40px; height: 40px;
  border-top: 1px solid var(--accent-soft);
  border-right: 1px solid var(--accent-soft);
}
.fach-card-label { color: var(--accent-soft) !important; }
.fach-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.fach-row:last-of-type { border-bottom: none; }
.fach-row .display {
  font-size: 18px;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--bg);
}
.fach-row a.display:hover { color: var(--accent-soft); }
.fach-divider { height: 1px; background: color-mix(in oklab, var(--bg) 18%, transparent); }
.fach-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.fach-tag {
  border: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  padding: 6px 10px;
  font-size: 10.5px !important;
  letter-spacing: 0.12em !important;
  color: color-mix(in oklab, var(--bg) 70%, transparent) !important;
  transition: border-color 0.3s, color 0.3s;
}
.fach-tag:hover { border-color: var(--accent-soft); color: var(--accent-soft) !important; }

/* ── FAQ (native <details>) ─────────────────────────── */
.faq { background: var(--bg); }
.faq-list {
  max-width: 940px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.faq-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.4s var(--ease-soft);
}
.faq-item[open]::before { width: 3px; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 50px 1fr 32px;
  gap: 18px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-text {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.15;
  transition: color 0.3s, font-style 0s;
}
.faq-item[open] .faq-q-text {
  font-style: italic;
  font-weight: var(--display-italic-weight);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}
.faq-toggle {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  text-align: right;
  transition: transform 0.35s var(--ease-soft);
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-a {
  padding: 0 32px 20px 68px;
  animation: faq-fade 0.35s var(--ease-soft);
}
.faq-a p {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}
@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--fg);
  color: var(--bg);
  padding: 0 var(--pad) 22px;
}
.footer .footer-top {
  padding-top: clamp(50px, 6vw, 90px);
}

/* Standorte als erster Block im Footer (auf hellem Pergament) */
.footer-standorte {
  margin: 0 calc(-1 * var(--pad));
  background: var(--bg2);
  color: var(--fg);
  padding: clamp(50px, 6vw, 90px) var(--pad) clamp(50px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
}
.footer-standorte .section-head { color: var(--fg); }
.footer-standorte .section-head .display { color: var(--fg); font-size: clamp(30px, 4.5vw, 56px); }
.footer-standorte .section-lede { color: var(--ink-soft); }
.footer .mono { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.footer-cta { display: grid; gap: 18px; align-content: start; }
.footer-cta .display {
  font-size: clamp(34px, 4.5vw, 60px);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.footer-cta .display em { color: var(--accent-soft); }
.footer-cta p {
  max-width: 50ch;
  color: color-mix(in oklab, var(--bg) 78%, transparent);
  font-size: 16px;
}
.footer-contact { display: grid; gap: 4px; margin-top: 8px; }
.footer-link {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--display-italic-weight);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.025em;
  font-size: clamp(22px, 2.4vw, 32px);
  text-decoration: none;
  color: var(--bg);
  width: max-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.footer-link:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }

.footer-socials { margin-top: 18px; display: grid; gap: 10px; }
.footer-socials-row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid color-mix(in oklab, var(--bg) 22%, transparent);
  border-radius: 999px;
  text-decoration: none;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, transform 0.25s;
}
.footer-social:hover { color: var(--accent-soft); border-color: var(--accent-soft); transform: translateY(-1px); }

.footer-meta {
  display: grid; gap: 12px;
  align-content: start;
}
.footer-meta p { margin: 0; color: color-mix(in oklab, var(--bg) 78%, transparent); font-size: 14px; line-height: 1.5; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 11px !important;
  color: color-mix(in oklab, var(--bg) 60%, transparent) !important;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-soft); }
.footer-sep { color: var(--accent-soft); }

/* ── Reveal animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 980px) {
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto auto; }
  .hero-grid, .standorte-grid, .fach-inner, .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
  .leist-grid { grid-template-columns: 1fr; }
  .galerie-mosaic { grid-template-columns: repeat(3, 1fr); }
  .standorte-map { min-height: 360px; }
  .osm-map { min-height: 360px; }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 12px var(--pad);
    gap: 12px;
    grid-template-columns: 1fr auto auto;
  }
  .topbar.is-scrolled .topbar-inner { padding: 8px var(--pad); }
  .brand-logo { height: 44px; }
  .topbar.is-scrolled .brand-logo { height: 38px; }
  .cta-pill-desktop { display: none; }
  .topbar-burger { display: inline-flex; }
  .mobile-menu { display: block; }

  section { padding: 48px var(--pad); }
  .section-head { margin-bottom: 22px; gap: 10px; }
  .section-head .display { font-size: clamp(30px, 8vw, 42px); }

  .hero { padding: 26px var(--pad) 50px; }
  .hero h1.display { font-size: clamp(36px, 11vw, 56px) !important; line-height: 0.96; }
  .hero-lede { font-size: 15.5px; }
  .hero-actions { gap: 8px; }
  .hero-facts { padding-top: 18px; gap: 14px 22px; }
  .hero-facts strong { font-size: 20px; }

  .galerie-mosaic { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .galerie-tile-spec { display: none; }

  .standorte-grid { gap: 14px; }
  .standort-card { padding: 16px 18px; }
  .standort-name { font-size: 22px; }
  .standort-route {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    color: var(--fg) !important;
    font-size: 10.5px !important;
    align-self: flex-start;
    width: fit-content;
  }

  .fach-card { padding: 22px; }
  .fach-card::before { width: 28px; height: 28px; }

  .faq-item summary { padding: 18px 0; grid-template-columns: 36px 1fr 24px; gap: 12px; }
  .faq-q-text { font-size: 17px; }
  .faq-a { padding-left: 48px; }

  .footer { padding: 50px var(--pad) 22px; }
  .footer-top { gap: 30px; padding-bottom: 28px; }
  .footer-cta .display { font-size: 34px; line-height: 1.02; }
  .footer-link { font-size: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-bottom .footer-sep { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .gota-marker::after { display: none; }
}

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

/* ════════════════════════════════════════════════════════════
   Legal pages (Impressum / Datenschutz / AGB)
   ════════════════════════════════════════════════════════════ */
.legal-page {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  min-height: 100vh;
}
.legal-topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  font-size: 20px;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.legal-brand .dot { color: var(--accent); }
.legal-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--accent); }

.legal-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 110px) var(--pad) clamp(32px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.legal-hero .mono { display: block; margin-bottom: 18px; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 96px);
}
.legal-hero h1 em {
  font-style: italic;
  font-weight: var(--display-italic-weight);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}
.legal-hero .legal-lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--pad) clamp(60px, 8vw, 120px);
}
.legal-section { padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); }
.legal-section:first-child { border-top: none; padding-top: 0; }
.legal-section .mono { display: block; margin-bottom: 12px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
}
.legal-section h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
  font-size: clamp(17px, 1.4vw, 21px);
}
.legal-section p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  text-wrap: pretty;
  margin: 0 0 12px;
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-section a:hover { text-decoration-thickness: 2px; }
.legal-section ul {
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}
.legal-section ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  line-height: 1.55;
}
.legal-section ul li::before {
  content: "·";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}
.legal-keyvals {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 10px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 6px 0 14px;
}
.legal-keyvals dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.legal-keyvals dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
}
.legal-callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 28px);
  margin: 18px 0;
  display: grid;
  gap: 6px;
  border-radius: 2px;
}
.legal-callout strong { font-weight: 600; }

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-footer-links { display: flex; gap: 18px; }
.legal-footer a { color: inherit; text-decoration: none; }
.legal-footer a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .legal-keyvals { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-keyvals dt { padding-top: 14px; }
  .legal-keyvals dt:first-child { padding-top: 0; }
}
