/* =========================================================================
   Zahnarztpraxis Saei — Aachen
   Design: "Editorial Clinic" — warmes Papier, Fraunces-Serif, Apfelgrün als
   präziser Akzent. Alles selbst gehostet (DSGVO), keine externen Requests.
   ========================================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/schibsted-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/schibsted-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #14180f;
  --ink-2: #3c4436;
  --ink-3: #6d7566;
  --paper: #f7f5ef;
  --paper-2: #efece1;
  --surface: #fffefb;
  --forest: #1a2915;
  --forest-2: #24371c;
  --apple: #8cc63f;
  --apple-deep: #6b9c22;
  --mint: #e6efd9;
  --line: rgba(20, 24, 15, 0.14);
  --line-soft: rgba(20, 24, 15, 0.07);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

/* figure/blockquote bringen 40px Seitenrand mit — der zerlegt sonst jedes Raster */
figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }

::selection { background: var(--apple); color: var(--forest); }

:focus-visible {
  outline: 2px solid var(--apple-deep);
  outline-offset: 3px;
}

/* Papierkorn — gibt der Fläche Textur statt flachem Beige */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, 1320px);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - var(--gutter) * 2, 860px); }

.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Abschnittsmarke: Nummer + Label, hängend in der Marginalspalte */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--apple-deep);
  flex: none;
  transform: translateY(-0.3em);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--forest);
  color: #fff;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(247, 245, 239, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 5rem;
}

.brand { flex: none; line-height: 0; }
.brand img { width: clamp(9.5rem, 15vw, 12.5rem); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.1rem);
}
.nav a {
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
  padding-block: 0.35rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--apple-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

/* Der CTA im Menü ist ein Button, kein Navigationslink — Button-Farben gewinnen */
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: var(--forest); }
.nav a.btn::after { display: none; }

.header-phone {
  text-align: right;
  line-height: 1.25;
  flex: none;
}
.header-phone .label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.header-phone a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.header-phone a:hover { color: var(--apple-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--apple);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--forest); border-color: var(--apple); }
.btn:hover::before { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--forest); border-color: var(--apple); }

.btn--light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--light:hover { color: var(--forest); border-color: var(--apple); }

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.66rem; }

/* Textlink mit wanderndem Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow svg { transition: transform 0.4s var(--ease); flex: none; }
.link-arrow:hover { color: var(--apple-deep); border-color: var(--apple); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Mobile-Navigation ---------- */
/* Beschrifteter Knopf statt Hamburger: „Menü" ist eindeutig, und die Fläche
   liegt deutlich über den 44px, die sich mit dem Daumen sicher treffen lassen. */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.nav-toggle[aria-expanded='true'] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.nav-toggle-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Zwei ungleich lange Striche — beim Öffnen kreuzen sie sich. */
.nav-toggle-mark {
  position: relative;
  width: 1.15rem;
  height: 0.7rem;
  flex: none;
}
.nav-toggle-mark i {
  position: absolute;
  left: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.nav-toggle-mark i:nth-child(1) { top: 0.1rem; width: 100%; }
.nav-toggle-mark i:nth-child(2) { bottom: 0.1rem; width: 62%; }
.nav-toggle[aria-expanded='true'] .nav-toggle-mark i:nth-child(1) {
  transform: translateY(0.24rem) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-mark i:nth-child(2) {
  width: 100%;
  transform: translateY(-0.24rem) rotate(-45deg);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::after {
  /* weicher Grünschimmer oben rechts */
  content: '';
  position: absolute;
  top: -22vw;
  right: -14vw;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(140, 198, 63, 0.19), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

/* Grid-Kinder dürfen sonst nicht unter ihre Inhaltsbreite schrumpfen und
   ziehen die ganze Seite breiter als den Viewport. */
.hero-grid > *,
.split > *,
.team-grid > *,
.contact-grid > *,
.stats > *,
.quotes > *,
.anamnese > * { min-width: 0; }

.hero-title {
  font-size: clamp(2.35rem, 7.6vw, 6.6rem);
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: 'SOFT' 80, 'WONK' 1;
  position: relative;
}
/* Der Markerstrich braucht ein ungebrochenes Wort — auf schmalen Schirmen
   ist der Umbruch aber wichtiger als der Strich. */
@media (min-width: 640px) {
  .hero-title em { white-space: nowrap; }
}
/* Markerstrich, der die Unterlängen des Kursivworts überlagert */
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.1em;
  height: 0.13em;
  opacity: 0.9;
  background: var(--apple);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: swash 1s var(--ease) 0.55s forwards;
}
@keyframes swash { to { transform: scaleX(1); } }

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 44ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 3.35;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* die alten Stockfotos sind kühl-blau — hier warm angeglichen */
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-media { position: relative; }

.hero-badge {
  margin: 0;
  background: var(--paper);
  max-width: 17rem;
  text-align: left;
}
/* Erst wenn genug Bildfläche da ist, darf das Badge ins Foto ragen. */
@media (min-width: 700px) {
  .hero-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.15rem 1.6rem 1.15rem 1.4rem;
  }
}
@media (max-width: 699px) {
  .hero-badge { padding-top: 1.15rem; max-width: none; }
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  color: var(--apple-deep);
}
.hero-badge span {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.4;
  display: block;
  margin-top: 0.35rem;
}

/* ---------- Kennzahlen-Band ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(0.75rem, 2vw, 1.75rem);
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.25rem);
  line-height: 1;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  margin-bottom: 0.6rem;
}
.stat dd {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.45;
  max-width: 20ch;
}

/* =========================================================================
   Editorial-Textblöcke
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 1.5rem;
}
.section-title--lg { font-size: clamp(2.4rem, 6vw, 4.6rem); }

.prose { max-width: var(--measure); color: var(--ink-2); }
.prose > :last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Notiz-Karten (Was mitbringen / Wichtig zu beachten) */
.notes {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 720px) { .notes { grid-template-columns: 1fr 1fr; } }
.note {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.note h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}
.note p { font-size: 0.94rem; color: var(--ink-2); }
.note > :last-child { margin-bottom: 0; }

/* Bild mit Bildunterschrift */
.figure { position: relative; }
.figure img {
  width: 100%;
  border-radius: var(--radius);
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
}
.figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* =========================================================================
   Leistungsspektrum — editoriale Zeilen statt Karten
   ========================================================================= */
.services { border-top: 1px solid var(--line); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.2vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: color 0.4s var(--ease);
}
.service::before {
  /* grüner Wischer, der beim Hover von links einfährt */
  content: '';
  position: absolute;
  inset: 0 -1.25rem;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.service:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  transition: transform 0.5s var(--ease);
}
.service:hover .service-name { transform: translateX(0.5rem); }
.service-desc {
  font-size: 0.94rem;
  color: var(--ink-3);
  margin: 0;
  max-width: 46ch;
}
.service-go {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.service-go svg { transition: transform 0.4s var(--ease); }
.service:hover .service-go {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  transform: rotate(45deg);
}

/* Am Desktop zeigt die Cursor-Vorschau das Bild — hier wäre es doppelt. */
.service-img { display: none; }

/* Bildvorschau, die dem Cursor folgt (nur Zeigegeräte) */
.service-peek {
  position: fixed;
  top: 0;
  left: 0;
  width: 17rem;
  aspect-ratio: 4 / 3;
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  border-radius: var(--radius);
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  box-shadow: 0 2rem 4rem rgba(20, 24, 15, 0.22);
}
.service-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
}
.service-peek.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* =========================================================================
   Team
   ========================================================================= */
.team {
  background: var(--forest);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.team::after {
  content: '';
  position: absolute;
  left: -12vw;
  bottom: -24vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(140, 198, 63, 0.16), transparent 65%);
  pointer-events: none;
}
.team .eyebrow { color: rgba(247, 245, 239, 0.6); }
.team .eyebrow::before { background: var(--apple); }

.team-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.team-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--forest-2);
}
.team-portrait img { width: 100%; filter: saturate(0.9) contrast(1.03); }

.team-name {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 0.5rem;
}
.team-role {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--apple);
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.team-text { color: rgba(247, 245, 239, 0.78); max-width: 46ch; }

.job-card {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(247, 245, 239, 0.2);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius);
}
.job-card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.job-card p { margin: 0; font-size: 0.85rem; color: rgba(247, 245, 239, 0.65); }

/* =========================================================================
   Stimmen
   ========================================================================= */
.quotes {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.quote:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 3rem rgba(20, 24, 15, 0.07);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--apple);
  margin-bottom: 1.1rem;
  display: block;
}
.quote blockquote {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  font-variation-settings: 'SOFT' 40, 'WONK' 0;
  color: var(--ink);
}
.quote figcaption {
  margin-top: auto;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stars { color: var(--apple-deep); letter-spacing: 0.15em; margin-bottom: 0.4rem; display: block; }

/* =========================================================================
   Anamnese-Banner
   ========================================================================= */
.anamnese {
  background: var(--mint);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}
.anamnese h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
.anamnese p { color: var(--ink-2); max-width: 48ch; margin-bottom: 1.5rem; }
.anamnese-qr {
  background: var(--surface);
  padding: 0.9rem;
  border-radius: var(--radius);
  width: 9.5rem;
  flex: none;
}

/* =========================================================================
   Kontakt
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.contact-list { display: grid; gap: 1px; background: var(--line-soft); }
.contact-row {
  background: var(--paper);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
}
.contact-row dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.contact-row dd { margin: 0; }
.contact-row dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-row dd a:hover { color: var(--apple-deep); border-color: var(--apple); }

.hours { border-top: 1px solid var(--line); }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.hours-row .day { font-weight: 600; font-size: 0.92rem; }
.hours-row .time {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: right;
  white-space: nowrap;
}
.hours-row .time span { display: block; }
.hours-note { font-size: 0.82rem; color: var(--ink-3); margin-top: 1.1rem; }

/* Anfahrt statt leerem Kartenrahmen — eine Karte bräuchte externe Tiles
   und damit eine Einwilligung, die hier niemandem etwas bringt. */
.arrival {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: start;
}
.arrival-item h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.arrival-item p { font-size: 0.9rem; color: var(--ink-3); margin: 0; max-width: 32ch; }
.arrival-cta { align-self: center; }

@media (max-width: 900px) {
  .arrival { grid-template-columns: 1fr 1fr; }
  .arrival-cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .arrival { grid-template-columns: 1fr; }
}

/* =========================================================================
   Unterseiten (Leistungen)
   ========================================================================= */
.page-hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -20vw;
  right: -16vw;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(140, 198, 63, 0.16), transparent 66%);
  pointer-events: none;
}
.breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--apple-deep); }
.breadcrumb span { margin-inline: 0.6rem; opacity: 0.5; }

.page-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 7.2vw, 5.6rem);
  overflow-wrap: break-word;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.page-lead {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 34ch;
  font-variation-settings: 'SOFT' 40, 'WONK' 0;
}

.page-figure {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}
.page-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
}

/* Textspalten der Leistungsseiten */
.detail-intro .prose { font-size: 1.05rem; }
.details { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.detail h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 0.9rem;
}
.detail + .detail { border-top: 1px solid var(--line-soft); padding-top: clamp(2rem, 4vw, 3rem); }

/* Aufzählung mit Apfel-Marker */
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.8rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--apple);
  border-radius: 50%;
}

/* Zitat-Band am Seitenende */
.claim {
  background: var(--forest);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.claim::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -30vw;
  transform: translateX(-50%);
  width: 60vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(140, 198, 63, 0.18), transparent 65%);
  pointer-events: none;
}
.claim-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 20ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
}
.claim .btn { position: relative; z-index: 1; }

/* Weitere Leistungen */
.more-services {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.more-service {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2rem);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.4s var(--ease);
}
.more-service:hover { background: var(--mint); }
.more-service .name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
}
.more-service .go { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: auto; padding-top: 1.5rem; }

/* Rechtstexte */
.legal { max-width: var(--measure); }
.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
}
.legal h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.96rem; }
.legal a { color: var(--apple-deep); }
.legal ul { padding-left: 1.15rem; }
.legal address { font-style: normal; margin-bottom: 1.1rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--forest);
  color: rgba(247, 245, 239, 0.72);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(247, 245, 239, 0.14);
}
.footer-brand img { width: 11rem; margin-bottom: 1.4rem; }
.footer-claim {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
  max-width: 20ch;
  line-height: 1.2;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.5);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { text-decoration: none; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--apple); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(247, 245, 239, 0.5);
}
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--apple); }

/* =========================================================================
   Scroll-Reveal
   ========================================================================= */
/* Nur wenn JavaScript läuft, darf überhaupt etwas versteckt werden — sonst
   wäre die Seite ohne JS leer. Die Klasse setzt ein Inline-Script im <head>. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16 / 10; }
  .split,
  .split--even,
  .team-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .team-portrait { max-width: 26rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  /* Nur mit JavaScript darf das Menü überhaupt eingeklappt werden — sonst
     wäre die Navigation ohne JS nicht erreichbar. */
  .js .nav {
    position: fixed;
    inset: 5rem 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 2rem;
    transform: translateY(-120%);
    transition: transform 0.5s var(--ease);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    box-shadow: 0 1.5rem 3rem rgba(20, 24, 15, 0.1);
  }
  .js .nav.is-open { transform: translateY(0); }

  /* Große Zeilen: volle Breite, 4rem hoch, mit Pfeil als Zielhinweis. */
  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    text-transform: none;
    font-weight: 400;
    color: var(--ink);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a::after { display: none; }
  .nav a:not(.btn):not(.nav-phone)::before {
    content: '';
    width: 0.85rem;
    height: 0.85rem;
    flex: none;
    order: 2;
    background: currentColor;
    opacity: 0.35;
    clip-path: polygon(20% 0, 100% 50%, 20% 100%, 8% 86%, 66% 50%, 8% 14%);
  }
  .nav a:active { color: var(--apple-deep); }

  .nav .btn {
    margin-top: 1.5rem;
    min-height: 3.75rem;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 0;
  }

  .nav-phone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
  }
  .nav-phone-label {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .nav-phone-number {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ink);
  }
}

/* Auf großen Schirmen steht die Nummer bereits im Header. */
@media (min-width: 901px) {
  .nav-phone { display: none; }
}

/* Ohne Maus gibt es keine Hover-Vorschau — dort steht das Foto direkt in der
   Zeile, sonst wäre die Liste eine reine Textwüste. */
@media (max-width: 900px) {
  .service {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    grid-template-areas:
      'bild bild bild'
      'num  name go'
      '.    text text';
    align-items: center;
    row-gap: 0.9rem;
    padding-bottom: clamp(2rem, 4vw, 2.75rem);
  }
  .service-img {
    display: block;
    grid-area: bild;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.35rem;
    filter: saturate(0.82) contrast(1.04) sepia(0.06);
  }
  .service-num { grid-area: num; }
  .service-name { grid-area: name; }
  .service-desc { grid-area: text; }
  .service-go { grid-area: go; width: 2.6rem; height: 2.6rem; }
  /* Der Wischer würde das Foto überdecken. */
  .service::before { display: none; }
  .service:hover .service-name { transform: none; }
}

@media (max-width: 780px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .anamnese { grid-template-columns: 1fr; }
  .anamnese-qr { display: none; }
  .contact-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .job-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hours-row { flex-direction: column; gap: 0.2rem; }
  .hours-row .time { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-title em::after { transform: scaleX(1); }
}

@media print {
  .site-header, .site-footer, .service-peek, .btn { display: none; }
  body { background: #fff; }
  body::before { display: none; }
}
