/* ---------- Tokens ---------- */
:root {
  --bg: #f5f8ef;
  --surface: #ffffff;
  --surface-alt: #eaf3dc;
  --text: #23301b;
  --text-muted: #5a6a4c;
  --accent: #45760f;
  --accent-hover: #365c0a;
  --accent-bright: #8cc63f;
  --accent-soft: #e0edc6;
  --warm: #e28a2b;
  --warm-text: #a85e15;
  --border: #dbe7c8;
  --shadow-sm: 0 1px 2px rgba(45, 65, 20, 0.06), 0 1px 3px rgba(45, 65, 20, 0.07);
  --shadow-md: 0 4px 16px rgba(45, 65, 20, 0.08), 0 2px 6px rgba(45, 65, 20, 0.06);
  --shadow-warm: 0 8px 24px rgba(45, 65, 20, 0.1), 0 12px 32px rgba(45, 65, 20, 0.06);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --max-w: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --sec-y: clamp(4rem, 9vw, 7rem);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
section[id] { scroll-margin-top: 70px; }

/* Paper grain — takes the flat digital feel off the cream */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--text);
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  letter-spacing: -0.005em;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 1rem;
  background: var(--text); color: #fff; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 1rem; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05em;
  letter-spacing: 0;
  margin-right: 0.7rem;
  opacity: 0.55;
}
.eyebrow-num::after {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 0.7rem;
  opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.ic { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-weight: 700; }
.brand-text span { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a:not(.nav-cta) {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
}
.primary-nav a:not(.nav-cta):hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  color: #fff;
}
.nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60% 80% at 90% 0%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, #f0ece0 0%, transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin-top: 0.25rem;
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.1vw, 3.4rem);
}
/* Hand-drawn swash under the italic emphasis */
.hero h1 em {
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.35em;
  bottom: -0.06em;
  height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M 2 7 Q 30 2 55 5 Q 80 8 98 4' fill='none' stroke='%2345760f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.45;
  pointer-events: none;
}

/* Big hero eye — the logo gimmick, promoted to hero art */
.hero-eye {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.big-eye {
  width: min(100%, 360px);
  color: var(--accent);
  overflow: visible;
}

/* Snellen chart sign-off — eye-test rows in descending sizes */
.snellen {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  color: var(--text-muted);
  user-select: none;
}
.snellen span {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.45em;
  padding-left: 0.45em;
  line-height: 1;
  white-space: nowrap;
}
.snellen .s1 { font-size: 1.55rem; color: var(--text); }
.snellen .s2 { font-size: 1rem; }
.snellen .s3 { font-size: 0.62rem; }
.snellen .s4 { font-size: 0.45rem; opacity: 0.75; }
.hero .lead {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-facts {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero-facts > div { min-width: 0; }
.hero-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.hero-facts dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--sec-y);
}
.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-top: 0.3rem; }
.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Hinweis-Banner (current notice / news) ---------- */
.hinweis-banner {
  background: linear-gradient(120deg, var(--accent), var(--accent-hover));
  padding-block: 0.8rem;
}
.hinweis-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  text-align: center;
}
.hinweis-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--text);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.hinweis-inner p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
}
.hinweis-inner strong { font-weight: 700; }
.hinweis-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.hinweis-close:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }
.hinweis-banner.is-dismissed { display: none; }

/* ---------- Kassen-Chip im Hero ---------- */
.kassen-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0.55rem 1rem;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}
.kassen-chip .ic { width: 1.05rem; height: 1.05rem; color: var(--accent); flex-shrink: 0; }
.kassen-list { color: var(--accent); font-weight: 600; }
@media (max-width: 480px) {
  .kassen-chip { font-size: 0.85rem; padding: 0.5rem 0.85rem; }
}

/* ---------- "Was mitbringen"-Section ---------- */
.bring-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2.5rem;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 880px;
}
.bring-grid li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.bring-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345760f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 8'/></svg>");
  background-size: 65%;
  background-position: center;
  background-repeat: no-repeat;
}
.bring-grid strong { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .bring-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ---------- Anfahrt-Block in Kontakt ---------- */
.anfahrt-block {
  margin-top: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.anfahrt-block h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  color: var(--text);
}
.anfahrt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.anfahrt-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}
.anfahrt-list .ic {
  color: var(--accent);
  margin-top: 0.18rem;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}
.anfahrt-list strong { color: var(--text); font-weight: 600; }

/* ---------- Welcome / personal section ---------- */
.welcome {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--surface-alt);
  position: relative;
}
.welcome::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.welcome::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.welcome > .container > .eyebrow {
  margin-bottom: 1.25rem;
}
.welcome h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 2.25rem;
  max-width: 22ch;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.welcome-grid > div > p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  font-size: 1.06rem;
  line-height: 1.7;
}
.welcome-grid > div > p:last-child { margin-bottom: 0; }
.signature-line {
  margin-top: 1.5rem !important;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem !important;
  color: var(--text) !important;
}
.welcome-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.85rem 1.85rem 2rem;
  box-shadow: var(--shadow-warm);
}
@media (prefers-reduced-motion: no-preference) {
  .welcome-card { transform: rotate(1.2deg); transition: transform 0.4s ease; }
  .welcome-card:hover { transform: rotate(0); }
}
.welcome-card .welcome-kicker {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  line-height: 1.2;
  margin: 0 0 1rem !important;
}
.welcome-card > p:not(.welcome-kicker) {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 !important;
}
@media (max-width: 720px) {
  .welcome-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards / Leistungen ---------- */
.cards {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.card-ic {
  width: 36px; height: 36px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Cards accordion (one-pager) ---------- */
.cards-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card-acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-acc:hover { border-color: var(--accent); }
.card-acc[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.card-acc summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  align-items: center;
  list-style: none;
  outline: none;
}
.card-acc summary::-webkit-details-marker { display: none; }
.card-acc summary::marker { content: ''; }
.card-acc summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.card-ic-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent-soft);
  border-radius: 14px;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.card-ic-wrap .card-ic {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin: 0;
  transition: color 0.25s ease;
}
.card-acc:hover .card-ic-wrap { transform: scale(1.05) rotate(-4deg); }
.card-acc[open] .card-ic-wrap { background: var(--accent); }
.card-acc[open] .card-ic-wrap .card-ic { color: var(--surface); }

.card-summary-text { min-width: 0; }
.card-summary-text h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  margin: 0 0 0.2rem;
  color: var(--text);
  line-height: 1.25;
}
.card-summary-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.card-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), color 0.25s ease;
}
.card-chevron svg { display: block; width: 22px; height: 22px; }
.card-acc[open] .card-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.card-body {
  padding: 0 1.6rem 1.6rem 5.6rem;
}
.card-body .check-list {
  margin: 0 0 1rem;
}
.card-body .detail-text {
  margin: 1rem 0 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Native smooth animation in Chrome 131+ (others snap, still works) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .card-acc::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size 0.35s ease, opacity 0.25s ease, content-visibility 0.35s allow-discrete;
  }
  .card-acc[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .card-acc summary {
    gap: 1rem;
    padding: 1.05rem 1.15rem;
  }
  .card-ic-wrap { width: 42px; height: 42px; border-radius: 12px; }
  .card-ic-wrap .card-ic { width: 23px; height: 23px; }
  .card-summary-text p { font-size: 0.9rem; }
  .card-body {
    padding: 0 1.15rem 1.3rem 1.15rem;
  }
}

/* ---------- Team (polaroid feel) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding-block: 1.5rem;
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  position: relative;
  padding: 0.75rem 0.75rem 1rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* Tape strip — only on the welcome card */
.welcome-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 82px;
  height: 28px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(205, 220, 180, 0.6);
  box-shadow: 0 1px 3px rgba(45, 65, 20, 0.1);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .team-card:hover .team-photo {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(45, 65, 20, 0.16);
  }
}
.team-card h3 {
  font-size: 1.2rem;
  margin-top: 0.4rem;
}
.team-card .role {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.team-card .role-focus {
  margin-top: 0.75rem;
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
}
.team-card-lead h3 { color: var(--accent); }

/* Wide group banners (Refraktionsteam, Ordinationsteam) */
.team-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.team-group { margin: 0; }
.team-group-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
  background: var(--surface-alt);
}
.team-group figcaption {
  text-align: center;
  margin-top: 1rem;
}
.team-group figcaption h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0;
}
.team-group figcaption .role {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Praxis building photo in contact section */
.kontakt-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-warm);
  margin: 1.5rem 0 2.5rem;
}

/* ---------- Hours / Two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hours {
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-width: 560px;
}
.hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row dt {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0;
}
.hours-row dd {
  margin: 0;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hours-row-closed dd {
  font-style: italic;
}
@media (max-width: 520px) {
  .hours-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-block: 1rem;
  }
  .hours-row dd {
    text-align: left;
    /* keep base flex-direction: column — times stack vertically */
  }
}
.hours-note {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 560px;
}
.emergency-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warm);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.emergency-box h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.emergency-box p { color: var(--text-muted); margin-bottom: 1rem; }
.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm);
}
.emergency-phone:hover { color: #93502d; text-decoration: none; }

/* ---------- Contact ---------- */
.contact-block {
  margin-top: 2rem;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
}
.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}
.contact-list .label {
  width: 6rem;
  flex-shrink: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-list a { font-weight: 500; }
.barrier-note {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.97rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
}
.barrier-note .ic { color: var(--accent); }

.emergency-note {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(226, 138, 43, 0.1);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warm);
}
.emergency-note .ic {
  color: var(--warm);
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
}
.emergency-note strong { color: var(--text); font-weight: 600; }
.emergency-note a {
  color: var(--warm-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.emergency-note a:hover { color: #6d3e22; }
.emergency-note em { font-style: italic; font-size: 0.88em; opacity: 0.85; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
}
.map-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Consent gate (DSGVO – OSM iframe loads only after explicit click) */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  min-height: 320px;
  background: var(--surface-alt);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(45, 65, 20, 0.07) 1px, transparent 0);
  background-size: 18px 18px;
  gap: 0.85rem;
}
.map-consent-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.map-consent-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.map-consent-text {
  margin: 0;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.map-consent-text a {
  color: var(--accent);
  font-weight: 500;
}
.map-consent button {
  margin-top: 0.5rem;
}

/* ---------- Leistung sub-pages ---------- */
.leistung-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(50% 80% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
}
.leistung-hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 16ch;
}
.leistung-hero .lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
}
.leistung-hero .hero-actions { margin-top: 2rem; }
.leistung-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.leistung-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.art-blob {
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--surface) 0%, var(--accent-soft) 50%, #c2c7a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-warm);
}
.art-icon {
  width: 52%;
  height: 52%;
  color: var(--accent);
}

.crumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { padding-inline: 0.45rem; opacity: 0.5; }

.leistung-detail {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.leistung-detail h2 { margin-bottom: 1.25rem; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6e6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 8'/></svg>");
  background-size: 65%;
  background-position: center;
  background-repeat: no-repeat;
}
.detail-text {
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 60ch;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.info-box h3 { margin-bottom: 0.5rem; }
.info-box p { color: var(--text-muted); margin: 0 0 0.85rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-tel a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; }

/* Card as link */
.card-link {
  display: block;
  height: 100%;
  color: var(--text);
}
.card-link:hover {
  text-decoration: none;
  color: var(--text);
}
.card-link h3 { color: var(--text); }
.card-link p { color: var(--text-muted); }

/* Team photos */
.team-photo {
  width: 180px;
  height: 180px;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  background: var(--surface-alt);
  box-shadow: 0 6px 20px rgba(45, 65, 20, 0.1);
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.45s ease;
}
@media (max-width: 400px) {
  .team-photo { width: 150px; height: 150px; }
}

@media (max-width: 880px) {
  .leistung-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .leistung-hero-art { order: -1; }
  .art-blob {
    width: clamp(140px, 35vw, 200px);
    height: clamp(140px, 35vw, 200px);
  }
  .info-box { position: static; }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.legal-inner {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal p, .legal ul {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.legal ul {
  padding-left: 1.25rem;
}
.legal ul li {
  margin-bottom: 0.35rem;
}
.legal strong { color: var(--text); }
.legal em { color: var(--text-muted); }
.legal section { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #d3dad9;
  padding-block: 2.5rem;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand { color: #fff; font-weight: 600; }
.footer-meta { color: #8aa09e; font-size: 0.92rem; margin-top: 0.15rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: #d3dad9; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: #8aa09e; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--pad-x) 1.5rem;
    gap: 0.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    padding: 0.65rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
    border-bottom: 0 !important;
  }

  .hero-facts { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-eye { order: -1; }
  .big-eye { width: min(44vw, 190px); }
  .snellen { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .contact-list .label { width: 5rem; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Modern motion ---------- */

/* Native cross-document fade (Chrome 126+, others gracefully ignore) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.35s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--warm));
  z-index: 100;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Image fade-in */
.team-photo {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.team-photo.loaded { opacity: 1; }

/* Brand mark — eye tracks cursor + natural blink (driven by JS, SVG transform attribute) */

/* Live "geöffnet" status dot */
.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.55rem;
  background: var(--text-muted);
  vertical-align: 0.08em;
}
.status-dot.is-open {
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot.is-open {
    animation: pulse-dot 2.2s ease-out infinite;
  }
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(47, 74, 54, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(47, 74, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 74, 54, 0); }
}

/* Phone icon "rings" when hovering call CTAs */
@media (prefers-reduced-motion: no-preference) {
  .btn-ghost:hover .ic,
  .emergency-phone:hover .ic {
    animation: phone-ring 0.55s ease-in-out;
    transform-origin: center;
  }
}
@keyframes phone-ring {
  0%, 100% { transform: rotate(0); }
  18%      { transform: rotate(-14deg); }
  35%      { transform: rotate(14deg); }
  53%      { transform: rotate(-8deg); }
  70%      { transform: rotate(8deg); }
}

/* Card icon micro-interaction — scale + playful tilt */
.card-ic { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1); }
.card:hover .card-ic,
.card-link:hover .card-ic { transform: scale(1.12) rotate(-5deg); }

/* Art-blob gentle float on sub-pages */
@media (prefers-reduced-motion: no-preference) {
  .art-blob { animation: blob-float 9s ease-in-out infinite; }
}
@keyframes blob-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Map shimmer skeleton */
.map-wrap { position: relative; }
.map-wrap.is-loading::before {
  content: "Karte wird geladen…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: linear-gradient(90deg, var(--surface-alt) 0%, var(--surface) 50%, var(--surface-alt) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  z-index: 1;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.map-wrap iframe { position: relative; z-index: 0; }

/* Hero entrance — staggered fade-up on page load */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-text > *,
  .hero .hero-eye,
  .hero .hero-facts {
    animation: fade-up 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
  }
  .hero .hero-text > *:nth-child(1) { animation-delay: 0.05s; }
  .hero .hero-text > *:nth-child(2) { animation-delay: 0.15s; }
  .hero .hero-text > *:nth-child(3) { animation-delay: 0.25s; }
  .hero .hero-text > *:nth-child(4) { animation-delay: 0.35s; }
  .hero .hero-text > *:nth-child(5) { animation-delay: 0.45s; }
  .hero .hero-eye { animation-delay: 0.3s; }
  .hero .hero-facts { animation-delay: 0.55s; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger inside card/team/accordion grids */
  .cards > li.reveal:nth-child(1),
  .cards-accordion > details.reveal:nth-child(1),
  .team-grid > article.reveal:nth-child(1) { transition-delay: 0ms; }
  .cards > li.reveal:nth-child(2),
  .cards-accordion > details.reveal:nth-child(2),
  .team-grid > article.reveal:nth-child(2) { transition-delay: 60ms; }
  .cards > li.reveal:nth-child(3),
  .cards-accordion > details.reveal:nth-child(3),
  .team-grid > article.reveal:nth-child(3) { transition-delay: 120ms; }
  .cards > li.reveal:nth-child(4),
  .cards-accordion > details.reveal:nth-child(4),
  .team-grid > article.reveal:nth-child(4) { transition-delay: 180ms; }
  .cards > li.reveal:nth-child(5),
  .cards-accordion > details.reveal:nth-child(5) { transition-delay: 240ms; }
  .cards > li.reveal:nth-child(6),
  .cards-accordion > details.reveal:nth-child(6) { transition-delay: 300ms; }
  .cards > li.reveal:nth-child(7),
  .cards-accordion > details.reveal:nth-child(7) { transition-delay: 360ms; }
  .cards > li.reveal:nth-child(8),
  .cards-accordion > details.reveal:nth-child(8) { transition-delay: 420ms; }
}

/* Count-up styling */
.count-up {
  display: inline-block;
  color: var(--accent);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  min-width: 1.5ch;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .scroll-progress { display: none; }
  .team-photo { opacity: 1; }
}

@media print {
  body::before { display: none; }
  .site-header, .nav-toggle, .hero-actions, .hero-eye, .map-wrap, .site-footer, .skip-link { display: none; }
  body { background: #fff; font-size: 12pt; }
  .section, .hero { padding-block: 1.5rem; }
  a { color: var(--text); text-decoration: none; }
}
