:root {
  --bg: #FEF6E2;
  --ink: #022F60;
  --red: #780000;
  --red-hover: #022F60;
  --blue: #699BBC;          /* CI-Hellblau fuer Flaechen und Akzente */
  --blue-deep: #022F60;     /* CI-Dunkelblau fuer Text und Icons */
  --blue-light: #FEF6E2;    /* CI-Creme fuer hohen Kontrast auf Dunkelblau */
  --ink-soft: rgba(2,47,96,0.78);      /* CI-Dunkelblau mit reduzierter Deckkraft */
  --hairline: rgba(2,47,96,0.10);
  /* Seitenrand: 26px Minimum auf schmalen Geraeten, 96px Maximum auf grossen.
     Prozentwerte allein schrumpfen dort, wo man den Rand am noetigsten braucht. */
  --gutter: clamp(26px, 8vw, 96px);
  --open: #022F60;          /* Statusfarbe innerhalb der CI */
  --open-dark: #FEF6E2;     /* Statusfarbe auf Dunkelblau */
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --space-8: 64px;
  --space-12: 96px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 112px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: var(--font-body); }
.icon svg { display: block; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
section.block { padding-block: var(--space-12); }

/* HEADER */
header {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: min(1120px, 92%); height: 80px;
  background: rgba(254,246,226,0.94);
  backdrop-filter: blur(20px) saturate(1.15); -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-radius: 22px; box-shadow: 0 4px 24px rgba(2,47,96,0.09);
  border: 1px solid rgba(2,47,96,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 28px; transition: all 0.5s var(--ease); z-index: 1000;
}
header.scrolled {
  top: 12px; width: min(880px, 94%); height: 60px; border-radius: 100px;
  padding: 0 12px 0 24px; box-shadow: 0 8px 26px rgba(2,47,96,0.16);
  background: rgba(254,246,226,0.97);
}
.logo { display: flex; align-items: center; width: 148px; height: 100%; text-decoration: none; color: var(--ink); }
.logo-image { display: block; width: auto; height: 58px; max-width: 82px; object-fit: contain; transition: height 0.35s var(--ease); }
header.scrolled .logo-image { height: 44px; }
.logo-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  width: 148px; height: 40px;
  border: 1.5px dashed rgba(2,47,96,0.35); border-radius: 10px;
  background: rgba(2,47,96,0.03);
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-soft);
}
.logo .short {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.3px;
}
header.scrolled .logo .full { display: none; }
header.scrolled .logo .short { display: flex; }

nav { display: flex; gap: 32px; }
nav a {
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500;
  position: relative; padding-bottom: 4px; white-space: nowrap;
}
nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--blue-deep); transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }
header.scrolled nav { gap: 22px; }
header.scrolled nav a { font-size: 13px; }

.cta-btn {
  background: var(--red); color: var(--bg); border: none; padding: 12px 24px;
  border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; min-height: 46px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
@media (hover: hover) {
  .cta-btn:hover { background: var(--red-hover); box-shadow: 0 0 0 5px rgba(120,0,0,0.16); }
}
.cta-btn:active { transform: scale(0.98); }
/* verhindert das graue Antipp-Rechteck auf Android/iOS */
.cta-btn, .btn-outline, .nav-toggle, .mobile-bar a, .trust-item {
  -webkit-tap-highlight-color: transparent;
}
header.scrolled .cta-btn { padding: 10px 18px; font-size: 12.5px; }

.btn-outline {
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  padding: 12px 24px; border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; min-height: 46px;
  transition: all 0.3s var(--ease);
}
@media (hover: hover) { .btn-outline:hover { background: var(--ink); color: var(--bg); } }
@media (hover: hover) {
  .hero-visual:hover img,
  .about-visual:hover img,
  .team-photo:hover img { transform: scale(1.06); }

  .hero-visual:hover,
  .about-visual:hover,
  .team-photo:hover { box-shadow: 0 20px 42px rgba(2,47,96,0.12); }
}

/* HERO (homepage) */
.hero {
  padding-block: 164px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}
.hero-copy {
  width: 100%;
  max-width: 820px;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 52px); font-weight: 400;
  line-height: 1.18; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--blue-deep); }
.hero p.lead {
  font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.75; color: var(--ink-soft);
  max-width: 650px; margin: 0 auto 28px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.hero-secondary { font-size: 14px; color: var(--ink-soft); }
.hero-secondary a { text-decoration: underline; text-underline-offset: 2px; }

.hero-visual {
  width: min(960px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(2,47,96,0.025);
  box-shadow: 0 12px 28px rgba(2,47,96,0.08);
  transition: box-shadow 0.35s var(--ease);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s var(--ease);
  transform-origin: center center;
  will-change: transform;
}


/* PAGE HERO (subpages) */
.page-hero { padding-block: 170px 56px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(27px, 4vw, 38px); font-weight: 400; line-height: 1.25; margin-bottom: 16px; max-width: 720px; }
.page-hero p.lead { font-size: clamp(16px, 1.3vw, 17.5px); color: var(--ink-soft); max-width: 620px; }

/* TRUST BAR */
.trust-bar {
  display: grid;
  /* auto-fit statt fester Spaltenzahl: bricht von selbst auf 3/2/1 um */
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 4px; background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 20px; overflow: hidden; margin-bottom: var(--space-12);
}
.trust-item {
  background: var(--bg); padding: 24px 22px;
  display: flex; align-items: flex-start; gap: 15px;
  min-height: 104px; text-decoration: none; color: inherit;
  transition: background 0.25s var(--ease);
}
a.trust-item:hover { background: rgba(105,155,188,0.10); }
a.trust-item:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: -3px; }
/* Icon in getoenter Kachel statt frei stehend - groesser, kraeftiger, hoeherer Kontrast */
.trust-item .icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(105,155,188,0.17);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-deep);
}
.trust-body { display: flex; flex-direction: column; gap: 5px; padding-top: 1px; min-width: 0; }
/* Textlabel ist Pflicht - Piktogramme allein sind fuer aeltere Nutzer nicht selbsterklaerend */
.trust-item .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--ink-soft); font-weight: 700; }
.trust-item .value { font-size: 16.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.trust-item .value .muted { display: block; font-size: 14.5px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.trust-item .nowrap { white-space: nowrap; }

.section-head { max-width: 620px; margin-bottom: var(--space-8); }
.section-head .eyebrow { color: var(--blue); }
.section-head .eyebrow::before { background: var(--blue); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 32px); font-weight: 400; line-height: 1.3; }
.section-head h2 em { font-style: normal; color: var(--blue-deep); }

/* ABOUT (homepage teaser) */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.about-visual {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 5/6;
  justify-self: start;
  border: 1px solid rgba(2,47,96,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(105,155,188,0.06);
  box-shadow: 0 12px 28px rgba(2,47,96,0.08);
  transition: box-shadow 0.35s var(--ease);
}
.about-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s var(--ease);
  transform-origin: center center;
  will-change: transform;
}
.about-text p { font-size: clamp(16px, 1.3vw, 17px); line-height: 1.8; color: var(--ink-soft); margin-bottom: 16px; }
.about-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blue-deep); text-decoration: none; margin-top: 8px; }
.about-link:hover { text-decoration: underline; }

/* LEISTUNGEN teaser grid (homepage) */
.section-lead {
  font-size: 16px; line-height: 1.7; color: var(--ink-soft);
  max-width: 64ch; margin: 14px auto 0;
}
.section-head { text-align: inherit; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card {
  background: rgba(254,246,226,0.72); border: 1px solid rgba(2,47,96,0.08); border-radius: var(--radius-md);
  padding: 28px 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(2,47,96,0.09); }
.service-card .icon { color: var(--blue-deep); margin-bottom: 16px; }
.service-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.services-more { margin-top: 32px; text-align: center; }
.homepage-services { padding-bottom: 40px; }
.homepage-contact { padding-top: 28px; }

/* SPRECHZEITEN & KONTAKT (homepage compact) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 40px;
  align-items: start;
}
.contact-left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: 100%;
}
.hours-table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(2,47,96,0.08); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.contact-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(2,47,96,0.08);
  box-shadow: 0 12px 28px rgba(2,47,96,0.08);
  background: rgba(2,47,96,0.03);
}
.contact-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Kompakte Kontaktkarte: Details im 2-Spalten-Raster statt untereinander */
.contact-card {
  background: var(--ink); color: var(--bg); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 22px;
  align-self: start;
  position: sticky; top: 108px;
  min-width: 0;
  width: 100%;
}
.contact-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px;
}
.contact-item { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.contact-item .icon { color: var(--blue-light); flex-shrink: 0; margin-top: 1px; }
.contact-item .ci-body { min-width: 0; }
.contact-item .ci-label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 3px;
}
.contact-item .ci-value { display: block; font-size: 15px; line-height: 1.45; word-break: break-word; }
.contact-item a.ci-value { color: var(--bg); text-decoration: none; }
.contact-item a.email-nowrap { white-space: nowrap; word-break: normal; font-size: 14px; letter-spacing: -0.1px; }
.contact-item a.ci-value:hover { text-decoration: underline; }
.contact-card .cta-btn { width: 100%; }
.contact-card .link-light {
  color: var(--blue-light); font-size: 13.5px; text-decoration: underline;
  text-underline-offset: 2px; text-align: center;
}

/* Karte INNERHALB der dunklen Karte - kompakt, dunkle Variante */
.contact-card .map-block { border-color: rgba(254,246,226,0.16); border-radius: var(--radius-md); }
.contact-card .map-consent { aspect-ratio: 16/10; padding: 22px 20px; gap: 4px; }
.contact-card .map-consent::before {
  background:
    linear-gradient(rgba(254,246,226,0.09) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(254,246,226,0.09) 1.5px, transparent 1.5px),
    linear-gradient(115deg, transparent 46%, rgba(254,246,226,0.14) 46%, rgba(254,246,226,0.14) 48.5%, transparent 48.5%),
    linear-gradient(28deg, transparent 62%, rgba(254,246,226,0.11) 62%, rgba(254,246,226,0.11) 64%, transparent 64%);
  background-size: 38px 38px, 38px 38px, 100% 100%, 100% 100%;
}
.contact-card .map-pin {
  width: 42px; height: 42px; margin-bottom: 4px;
  background: rgba(254,246,226,0.10); border-color: rgba(254,246,226,0.20);
  box-shadow: none;
}
.contact-card .map-pin svg { width: 20px; height: 20px; }
.contact-card .map-consent h3 { font-size: 17px; color: var(--bg); }
.contact-card .map-consent > p { font-size: 13.5px; color: rgba(254,246,226,0.82); }
.contact-card .map-actions { margin-top: 10px; gap: 8px; }
.contact-card .map-actions .cta-btn,
.contact-card .map-actions .btn-outline {
  width: auto; padding: 9px 16px; font-size: 13px; min-height: 40px;
}
.contact-card .map-actions .btn-outline { border-color: rgba(254,246,226,0.45); color: var(--bg); }
.contact-card .map-actions .btn-outline:hover { background: var(--bg); color: var(--ink); }
.contact-card .map-privacy { display: none; }   /* Hinweis steht gebuendelt unter der Karte */
.contact-card .map-note {
  font-size: 12px; line-height: 1.55; color: rgba(254,246,226,0.72); margin-top: -12px;
}
.contact-card .map-note a { color: var(--blue-light); }
.contact-card .map-foot {
  background: rgba(254,246,226,0.06); border-color: rgba(254,246,226,0.16);
  color: rgba(254,246,226,0.82); font-size: 12.5px; padding: 10px 14px;
}
.contact-card .map-foot button { color: var(--blue-light); font-size: 12.5px; min-height: 40px; }

@media (max-width: 860px) { .contact-card { position: static; } }
@media (max-width: 420px) { .contact-details { grid-template-columns: 1fr; } }

/* FINAL CTA */
.final-cta {
  text-align: center; padding: var(--space-12) var(--gutter); background: rgba(105,155,188,0.10);
  border-radius: 32px; margin: 0 auto var(--space-12); max-width: 1000px;
}
.final-cta h2 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 30px); font-weight: 400; margin-bottom: 14px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 26px; font-size: 16.5px; }

footer {
  border-top: 1px solid rgba(2,47,96,0.10);
  background: rgba(105,155,188,0.045);
  padding: 52px var(--gutter) 28px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(170px, 1fr));
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.footer-logo { flex: 0 0 auto; display: inline-flex; text-decoration: none; }
.footer-logo img { display: block; width: 68px; height: 68px; object-fit: contain; }
.footer-brand-copy { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.footer-brand-copy strong {
  display: block; color: var(--ink); font-family: var(--font-display);
  font-size: 16px; line-height: 1.35; margin-bottom: 6px;
}
.footer-brand-copy span, .footer-col > span, .footer-col > a { display: block; }
.footer-col { min-width: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
.footer-heading {
  color: var(--ink); font-size: 12px; font-weight: 750;
  letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 7px;
}
.footer-col a, .footer-bottom a { text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft);
  padding-top: 22px; border-top: 1px solid rgba(2,47,96,0.08);
}
.footer-legal { display: inline-flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  footer { padding-block: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* TEAM (Über uns) */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 12px; }
.team-photo {
  aspect-ratio: 4/3;
  border: 1px solid rgba(2,47,96,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(2,47,96,0.025);
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(2,47,96,0.07);
  transition: box-shadow 0.35s var(--ease);
}
.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s var(--ease);
  transform-origin: center center;
  will-change: transform;
}
.team-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.team-card .role { font-size: 13.5px; color: var(--blue-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; }
.team-card p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 10px; }

.philosophy-block { margin-top: var(--space-12); padding: 48px; background: rgba(105,155,188,0.06); border-radius: var(--radius-lg); }
.philosophy-block h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin-bottom: 16px; }
.philosophy-block p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.8; }

.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: var(--space-8); }
.gallery-item {
  aspect-ratio: 4/3;
  border: 1px solid rgba(2,47,96,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(2,47,96,0.02);
  box-shadow: 0 8px 22px rgba(2,47,96,0.06);
  transition: box-shadow 0.35s var(--ease);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--ease);
  transform-origin: center center;
  will-change: transform;
}
.practice-work-head { margin-top: var(--space-12); }
.work-gallery { margin-top: var(--space-8); }
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.055); }
  .gallery-item:hover { box-shadow: 0 16px 34px rgba(2,47,96,0.11); }
}


/* Klickbare Großansicht nur für Praxis-/Arbeitsgalerie */
.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: inherit;
  font: inherit;
}
.gallery-open:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: -4px;
  border-radius: var(--radius-md);
}
.gallery-open img { pointer-events: none; }

body.lightbox-open { overflow: hidden; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 34, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  height: min(840px, 90vh);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.gallery-lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.gallery-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 92px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  background: #fff;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.gallery-lightbox-close {
  position: absolute;
  top: -6px;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  z-index: 3;
}
.gallery-lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  z-index: 2;
}
.gallery-lightbox-close span,
.gallery-lightbox-nav span {
  display: block;
  line-height: 1;
  text-align: center;
}
.gallery-lightbox-close span {
  font-size: 31px;
  transform: translateY(-1px);
}
.gallery-lightbox-nav span {
  font-size: 42px;
  transform: translateY(-2px);
}
.gallery-lightbox-prev { grid-column: 1; grid-row: 1; justify-self: start; }
.gallery-lightbox-next { grid-column: 3; grid-row: 1; justify-self: end; }
.gallery-lightbox-counter {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
}
@media (hover: hover) {
  .gallery-lightbox-close:hover,
  .gallery-lightbox-nav:hover { background: rgba(255,255,255,0.20); transform: scale(1.05); }
}
@media (max-width: 640px) {
  .gallery-lightbox { padding: 14px; }
  .gallery-lightbox-dialog {
    width: 100%;
    height: 92vh;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 4px;
  }
  .gallery-lightbox-nav { width: 46px; height: 46px; }
  .gallery-lightbox-close { top: 0; right: 2px; width: 44px; height: 44px; }
  .gallery-lightbox-nav span { font-size: 34px; }
  .gallery-lightbox-close span { font-size: 28px; }
  .gallery-lightbox-stage img { max-height: calc(92vh - 110px); border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox { transition: none; }
  .gallery-lightbox-close,
  .gallery-lightbox-nav { transition: none; }
}

/* LEISTUNGEN (Vollständige Seite) */
.service-category { margin-bottom: var(--space-8); }
.category-intro {
  font-size: 15.5px; line-height: 1.7; color: var(--ink-soft);
  max-width: 62ch; margin: -6px 0 22px;
}
.service-category h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 20px; }
.service-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.service-list-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  background: rgba(254,246,226,0.72); border: 1px solid rgba(2,47,96,0.08); border-radius: var(--radius-md);
}
.service-list-item .icon { color: var(--blue-deep); flex-shrink: 0; margin-top: 2px; }
.service-list-item div strong { display: block; font-size: 15px; margin-bottom: 3px; }
.service-list-item div span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* LEGAL PAGES */
.legal-content { max-width: 760px; }
.legal-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 16px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 10px; }
.legal-placeholder-note {
  margin-bottom: var(--space-8); padding: 18px 20px; background: rgba(105,155,188,0.10);
  border-radius: var(--radius-md); font-size: 14px; color: var(--ink-soft); border-left: 3px solid var(--blue-deep);
}

@media (max-width: 860px) {
  .hero { padding-block-start: 148px; gap: 34px; }
  .hero-visual { order: initial; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { justify-self: center; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .service-list { grid-template-columns: 1fr; }
  nav { display: none; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding-block-start: 132px; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE NAVIGATION
   Grundzustand steht bewusst AUSSERHALB der Media Query.
   Sonst haben Panel und Scrim auf dem Desktop keine Regeln
   und rendern als normale Bloecke mitten in der Seite.
   ========================================================= */
.nav-toggle      { display: none; }
.mobile-nav      { display: none; }
.mobile-scrim    { display: none; }
.mobile-bar      { display: none; }

@media (max-width: 860px) {

  /* Menue-Button: Pille mit Strichmarke + Wortlabel.
     Ein nacktes Hamburger-Icon ist fuer aeltere Nutzer nicht
     selbsterklaerend - das Wort kostet ~40px und spart Raten. */
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 9px;
    background: transparent; cursor: pointer;
    border: 1.5px solid rgba(2,47,96,0.24);
    border-radius: var(--radius-pill);
    height: 46px; padding: 0 18px 0 15px;
    font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
    color: var(--ink); letter-spacing: 0.2px;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  }
  .nav-toggle:hover { border-color: var(--ink); background: rgba(105,155,188,0.12); }

  .nav-toggle .bars { position: relative; width: 18px; height: 12px; flex-shrink: 0; }
  .nav-toggle .bars span {
    position: absolute; left: 0; top: 50%;
    height: 1.6px; background: var(--ink); border-radius: 2px;
    transition: width 0.3s ease, transform 0.35s var(--ease);
  }
  .nav-toggle .bars span:nth-child(1) { width: 18px; transform: translateY(-4px); }
  .nav-toggle .bars span:nth-child(2) { width: 12px; transform: translateY(3px); }
  .nav-toggle:hover .bars span:nth-child(2) { width: 18px; }
  .nav-toggle[aria-expanded="true"] { border-color: var(--ink); }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { width: 18px; transform: rotate(-45deg); }
  .nav-toggle .lbl-close { display: none; }
  .nav-toggle[aria-expanded="true"] .lbl-open  { display: none; }
  .nav-toggle[aria-expanded="true"] .lbl-close { display: inline; }

  /* CTA wandert in die untere Leiste - im Header waere er doppelt */
  header > .cta-btn { display: none; }

  /* Logo-Bereich schmaler, damit er nicht mit dem Menü-Button kollidiert. */
  .logo { width: 112px; }
  .logo-image { height: 52px; max-width: 72px; }
  header.scrolled .logo-image { height: 42px; }

  /* Abstand unter dem fixierten Header: hatte auf Unterseiten keinen
     mobilen Wert, dadurch schob sich die H1 unter die Kopfleiste */
  .page-hero { padding-block: 132px 44px; }
  [id] { scroll-margin-top: 96px; }

  .mobile-scrim {
    display: block; position: fixed; inset: 0; z-index: 1050;
    background: rgba(2,47,96,0.38);
    opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
  }
  .mobile-scrim.open { opacity: 1; pointer-events: auto; }

  .mobile-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; z-index: 1100;
    width: min(80vw, 340px); height: 100dvh;
    background: var(--bg); box-shadow: -10px 0 40px rgba(2,47,96,0.20);
    padding: 92px 30px 30px; gap: 4px;
    transform: translateX(100%); transition: transform 0.38s var(--ease);
    overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }
  /* :not(.cta-btn) ist entscheidend - sonst erbt der Buchungs-Button
     die Trennlinie und das Zeilen-Padding der Navigationslinks */
  .mobile-nav a:not(.cta-btn) {
    text-decoration: none; color: var(--ink);
    font-size: 18px; font-weight: 500;
    padding: 15px 0; border-bottom: 1px solid var(--hairline);
    display: flex; align-items: center; min-height: 52px;
  }
  .mobile-nav a.active { color: var(--blue-deep); font-weight: 700; }
  .mobile-nav .cta-btn {
    margin-top: 26px; width: 100%;
    padding: 15px 24px; min-height: 54px; font-size: 15.5px;
    border-bottom: none;
  }

  /* Untere Aktionsleiste: Daumenreichweite.
     Bei einer Praxis ist der Anruf die haeufigste Handlung. */
  body { padding-bottom: 86px; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(254,246,226,0.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--hairline);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; border-radius: var(--radius-pill);
    font-size: 15px; font-weight: 600; text-decoration: none;
  }
  .mobile-bar .call { border: 1.5px solid var(--ink); color: var(--ink); }
  .mobile-bar .book { background: var(--red); color: var(--bg); }
}

@media (max-width: 520px) {
  .final-cta { border-radius: 24px; }
  /* Buttons untereinander und gleich breit - nebeneinander brechen sie
     bei unterschiedlicher Textlaenge unsauber um */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .cta-btn, .hero-actions .btn-outline { width: 100%; }
  .hours-panel { padding: 22px 20px 6px; }
  .hours-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .final-cta .cta-btn { width: 100%; }
  .philosophy-block { padding: 30px 24px; }
  .contact-card { padding: 28px 24px; }
}

/* =========================================================
   ZWEI-KLICK-KARTE (kontakt.html)
   Nichts wird von Google geladen, bevor geklickt wurde.
   ========================================================= */
.map-block { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--hairline); }
.map-consent {
  position: relative; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 28px; gap: 6px;
}
/* abstrakte Kartengrafik - reines CSS, kein externer Request */
.map-consent::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(105,155,188,0.13) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(105,155,188,0.13) 1.5px, transparent 1.5px),
    linear-gradient(115deg, transparent 46%, rgba(105,155,188,0.22) 46%, rgba(105,155,188,0.22) 49%, transparent 49%),
    linear-gradient(28deg, transparent 62%, rgba(105,155,188,0.18) 62%, rgba(105,155,188,0.18) 64.5%, transparent 64.5%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
}
.map-consent > * { position: relative; z-index: 1; }
.map-pin {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg);
  border: 1.5px solid var(--hairline); display: flex; align-items: center; justify-content: center;
  color: var(--red); margin-bottom: 10px; box-shadow: 0 4px 18px rgba(2,47,96,0.10);
}
.map-pin svg { width: 24px; height: 24px; }
.map-consent h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.map-consent > p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.map-privacy { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); max-width: 470px; margin-top: 12px; }
.map-privacy a { color: var(--blue-deep); }
.map-frame { display: none; }
.map-frame.active { display: block; }
.map-frame iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.map-block.loaded .map-consent { display: none; }
.map-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink-soft); background: rgba(2,47,96,0.02);
}
.map-foot button {
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 14px; color: var(--blue-deep); text-decoration: underline;
  padding: 8px 4px; min-height: 44px;
}
@media (max-width: 640px) {
  .map-consent { aspect-ratio: auto; padding: 34px 22px; }
  .map-actions { flex-direction: column; width: 100%; }
  .map-actions .cta-btn, .map-actions .btn-outline { width: 100%; }
}

/* =========================================================
   TRUST-BAR: gestaffeltes Einblenden je Kachel
   Vorher lag .reveal nur auf dem Container - alle vier
   Kacheln erschienen gleichzeitig als ein Block.
   ========================================================= */
.trust-bar.reveal { opacity: 1; transform: none; }   /* Container selbst nicht animieren */
.trust-bar .trust-item {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), background 0.25s var(--ease);
}
.trust-bar.revealed .trust-item { opacity: 1; transform: translateY(0); }
.trust-bar.revealed .trust-item:nth-child(2) { transition-delay: 0.09s; }
.trust-bar.revealed .trust-item:nth-child(3) { transition-delay: 0.18s; }
.trust-bar.revealed .trust-item:nth-child(4) { transition-delay: 0.27s; }

/* Werte oben buendig halten, damit unterschiedlich lange Texte
   die Kachelinhalte nicht gegeneinander verschieben */
.trust-bar .trust-body { justify-content: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .trust-bar .trust-item { opacity: 1; transform: none; transition: none; }
  .trust-bar.revealed .trust-item { transition-delay: 0s; }
}


/* =========================================================
   HINTERGRUND-TIEFE
   Zwei fixierte Ebenen hinter dem Inhalt: ein sehr weicher
   Farbverlauf und eine feine Koernung. Kein Bild, keine Ladezeit.
   ========================================================= */
body::before, body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(105,155,188,0.16), transparent 68%),
    radial-gradient(820px 480px at 102% 4%,  rgba(120,0,0,0.045), transparent 62%),
    radial-gradient(700px 520px at -8% 42%,  rgba(105,155,188,0.10), transparent 60%);
}
body::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' fill='%23022F60' filter='url(%23n)'/></svg>");
  opacity: 0.045;
}

/* =========================================================
   SPRECHZEITEN-STATUS
   Wird aus den hinterlegten Zeiten berechnet - kein externer Dienst.
   ========================================================= */
.hours-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 14px 7px 12px; border-radius: var(--radius-pill);
  background: rgba(2,47,96,0.05); border: 1px solid var(--hairline);
}
.hours-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-soft); flex-shrink: 0;
}
.hours-status.is-open { color: var(--open); background: rgba(2,47,96,0.09); border-color: rgba(2,47,96,0.22); }
.hours-status.is-open .dot { background: var(--open); box-shadow: 0 0 0 0 rgba(2,47,96,0.5); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(2,47,96,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(2,47,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(2,47,96,0); }
}
/* Variante auf der dunklen Kontaktkarte */
.contact-card .hours-status {
  background: rgba(254,246,226,0.08); border-color: rgba(254,246,226,0.18);
  color: rgba(254,246,226,0.82); align-self: flex-start;
}
.contact-card .hours-status .dot { background: rgba(254,246,226,0.6); }
.contact-card .hours-status.is-open { color: var(--open-dark); background: rgba(105,155,188,0.12); border-color: rgba(105,155,188,0.28); }
.contact-card .hours-status.is-open .dot { background: var(--open-dark); animation: pulse-dot-dark 2.4s ease-out infinite; }
@keyframes pulse-dot-dark {
  0%   { box-shadow: 0 0 0 0 rgba(105,155,188,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(105,155,188,0); }
  100% { box-shadow: 0 0 0 0 rgba(105,155,188,0); }
}
/* Sprechzeiten als geschlossener Block - der Status schwebt sonst frei darueber */
.hours-panel {
  background: rgba(105,155,188,0.07);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 30px 8px;
}
.hours-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}
.hours-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0; }
.hours-panel .hours-table tr:last-child td { border-bottom: none; }

/* =========================================================
   MIKROINTERAKTIONEN
   Jeweils unter 300ms, nur bei echter Maus, abschaltbar.
   ========================================================= */
@media (hover: hover) {
  .service-card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(2,47,96,0.09);
    border-color: rgba(105,155,188,0.45);
  }
  .service-list-item { transition: transform 0.22s var(--ease); }
  .service-list-item:hover { transform: translateX(3px); }
  .trust-item .icon { transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
  a.trust-item:hover .icon { transform: scale(1.06); background: rgba(105,155,188,0.26); }
  .team-card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
  .team-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(2,47,96,0.08); }
}

/* Pfeil als ::after statt im Text - nur so laesst er sich bewegen */
.about-link::after, .link-light::after, .services-more .btn-outline::after {
  content: '\2192'; display: inline-block; margin-left: 7px;
  transition: transform 0.24s var(--ease);
}
@media (hover: hover) {
  .about-link:hover::after, .link-light:hover::after, .services-more .btn-outline:hover::after {
    transform: translateX(4px);
  }
}

/* Karten-Pin: einmaliger, ruhiger Impuls beim Einscrollen */
.map-block .map-pin { animation: pin-settle 1.1s var(--ease) 0.25s both; }
@keyframes pin-settle {
  0%   { transform: translateY(-7px); opacity: 0; }
  60%  { transform: translateY(2px);  opacity: 1; }
  100% { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hours-status.is-open .dot { animation: none; }
  .map-block .map-pin { animation: none; }
  .about-link::after, .link-light::after, .services-more .btn-outline::after { transition: none; }
  body::after { display: none; }
}
