/* Zahnärzte am Halensee – Interim-Website
   Farbwelt „Seeblick“ (Farbvorschlag B), Schrift Nunito (lokal eingebunden) */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.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;
}

:root {
  color-scheme: light;
  /* Seeblick */
  --tiefsee: #1C2E44;       /* Text, Fuß */
  --wasser: #6297CE;        /* Zeichen, Akzente */
  --wasser-tief: #3B6CA6;   /* Buttons, Links */
  --wasser-hell: #EAF1FA;   /* Fläche Einstieg */
  --sand: #D6C19C;          /* Striche, Fläche */
  --nebel: #B4CCE8;         /* Zeichen rechts */
  --sand-hauch: #F4F0E8;    /* zweite Fläche */
  --nebel-hell: #DAE6F4;    /* auf Dunkel */
  --warm: #7D6139;          /* Ziffern */
  --papier: #FCFBF8;
  --weiss: #FFFFFF;
  --linie: rgba(28, 46, 68, .10);

  --f: "Nunito", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --breite: 1120px;
  --rand: clamp(16px, 4vw, 48px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--weiss);
  color: var(--tiefsee);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--wasser-tief); text-underline-offset: 3px; }
a:hover { color: var(--tiefsee); }
:focus-visible { outline: 3px solid var(--wasser); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.wrap { max-width: var(--breite); margin: 0 auto; padding-inline: var(--rand); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--tiefsee); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; color: #fff; }

/* Kicker / Labels */
.kick {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--tiefsee); margin-bottom: 18px;
}
.kick::before { content: ""; flex: none; width: 26px; height: 3px; border-radius: 2px; background: var(--sand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wasser-tief); color: #fff;
  padding: 13px 20px; border-radius: 8px;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--tiefsee); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--hell { background: #fff; color: var(--tiefsee); }
.btn--hell:hover { background: var(--nebel-hell); color: var(--tiefsee); }
.lnk { font-weight: 700; font-size: 15px; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kopf.ist-gescrollt { border-bottom-color: var(--linie); box-shadow: 0 6px 24px rgba(28, 46, 68, .06); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.kopf .logo img { width: 168px; height: auto; }
.kopf nav ul { list-style: none; display: flex; gap: 36px; }
.kopf nav a { color: var(--tiefsee); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.kopf nav a:hover { color: var(--wasser-tief); }
.kopf .btn { padding: 11px 16px; font-size: 14.5px; }

/* Einstieg mit Übernahme-Hinweis */
.einstieg { background: var(--wasser-hell); padding-block: clamp(64px, 9vw, 136px); }
.einstieg .wrap { isolation: isolate; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.h1-keyword {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(15px, 1.4vw, 17px); font-weight: 700; letter-spacing: .01em; line-height: 1.35;
  color: var(--wasser-tief); margin-bottom: 22px;
}
.h1-keyword::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 2px; background: var(--sand); }
.aufmacher { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; margin-bottom: 26px; }
.einstieg .lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 44ch; margin-bottom: 36px; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.hinweis {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px); border: 1px solid var(--linie);
  box-shadow: 0 20px 50px rgba(28, 46, 68, .08);
}
.hinweis-rahmen { position: relative; isolation: isolate; }
.hinweis-rahmen::before {
  content: ""; position: absolute; left: -12px; bottom: -12px; z-index: -1;
  width: 55%; height: 60%; border-radius: var(--radius); background: var(--sand); opacity: .45;
}
.hinweis-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hinweis-kopf h2 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.hinweis-kopf img { width: 40px; height: 40px; }
.hinweis dl { display: grid; gap: 16px; }
.hinweis dl div { padding-top: 16px; border-top: 1px solid var(--linie); }
.hinweis dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wasser-tief); margin-bottom: 2px; }
.hinweis dd { font-size: 16px; font-weight: 600; }
.hinweis dd small { display: block; font-size: 14px; font-weight: 400; }
.hinweis .neu { font-size: 20px; font-weight: 700; }
.zeiten-kurz { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; font-variant-numeric: tabular-nums; }
.zeiten-kurz span:nth-child(odd) { font-weight: 400; }

/* Abschnitte */
.abschnitt { padding-block: clamp(80px, 11vw, 152px); background: var(--weiss); }
.abschnitt--sand { background: var(--sand-hauch); }
.abschnitt h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.intro { max-width: 58ch; margin-bottom: clamp(40px, 5vw, 64px); }

/* Beratung */
.beratung .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.zitat p { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.zitat footer { margin-top: 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--wasser-tief); }
.beratung .text p + p { margin-top: 16px; }
.beratung .text strong { font-weight: 700; }

/* Leistungen */
.leistungen { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: l; }
.leistungen li {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 34px 32px 38px; counter-increment: l;
}
.leistungen li::before {
  content: counter(l, decimal-leading-zero);
  display: block; font-size: 22px; font-weight: 300; color: var(--warm); line-height: 1; margin-bottom: 20px;
}
.leistungen h3 { font-size: 18px; margin-bottom: 10px; }
.leistungen p { font-size: 15px; }

/* Wissenswert */
.wissen { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 64px) clamp(40px, 7vw, 104px); }
.wissen article { position: relative; padding-top: 28px; }
.wissen article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sand); }
.wissen h3 { font-size: 20px; margin-bottom: 12px; }
.wissen p { font-size: 16px; }

/* Behandler */
.person .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.person .zitat { margin-top: 36px; }
.person .zitat::before {
  content: ""; display: block; width: 56px; height: 56px; margin-bottom: 18px;
  background: url("../img/zeichen.svg") no-repeat center / contain;
}
.person .bio { margin-bottom: 28px; }
.fakten { list-style: none; display: grid; gap: 14px; }
.fakten li { position: relative; padding-left: 26px; }
.fakten li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; border-radius: 2px; background: var(--wasser); }
.kollegin { margin-top: 40px; padding: 24px 28px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); font-size: 16px; }
.kollegin strong { display: block; }

/* Kontakt */
.kontakt .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.kontakt-karte { background: var(--wasser-hell); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 44px); }
.kontakt-karte address { font-style: normal; font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.kontakt-karte dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin-bottom: 24px; }
.kontakt-karte dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wasser-tief); padding-top: 4px; }
.kontakt-karte dd a { font-weight: 700; text-decoration: none; color: var(--tiefsee); }
.kontakt-karte dd a:hover { color: var(--wasser-tief); text-decoration: underline; }
.kontakt p + p { margin-top: 16px; }

/* Fuß */
.fuss { background: var(--tiefsee); color: #fff; padding-block: clamp(64px, 8vw, 104px) 36px; font-size: 15px; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--nebel-hell); }
.fuss .raster { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .8fr; gap: 40px; }
.fuss .logo img { width: 200px; margin-bottom: 14px; }
.fuss .zusatz { color: var(--nebel-hell); max-width: 32ch; }
.fuss h2 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.fuss h2::before { content: ""; display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--sand); margin-bottom: 12px; }
.fuss address { font-style: normal; }
.fuss ul { list-style: none; display: grid; gap: 6px; }
.fuss .unten {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--nebel-hell);
}

/* Rechtstexte */
.recht { padding-block: clamp(56px, 8vw, 104px) clamp(80px, 10vw, 136px); }
.recht .wrap { max-width: 800px; }
.recht h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 28px; }
.recht h2 { font-size: 21px; margin: 44px 0 12px; }
.recht h3 { font-size: 17px; margin: 22px 0 6px; }
.recht p, .recht ul, .recht address { margin-bottom: 12px; }
.recht address { font-style: normal; }
.recht ul { padding-left: 20px; }
.recht li { margin-bottom: 4px; }
.recht .stand { margin-top: 36px; font-size: 14px; opacity: .8; }
.zurueck { display: inline-block; margin-bottom: 20px; font-weight: 700; font-size: 15px; }

/* --- Bewegung: ruhig und präzise, nur wenn erwünscht ----------------- */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* weich auslaufend */
  --dauer: 1s;
  --weg: 22px;
}
@keyframes auftauchen {
  from { opacity: 0; transform: translate3d(0, var(--weg), 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes linie {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Einstieg: beim Laden, reines CSS */
  .einstieg-text > * { animation: auftauchen var(--dauer) var(--ease-out) both; }
  .einstieg-text > :nth-child(2) { animation-delay: .09s; }
  .einstieg-text > :nth-child(3) { animation-delay: .18s; }
  .einstieg-text > :nth-child(4) { animation-delay: .27s; }
  .h1-keyword::before { transform-origin: left center; animation: linie .9s var(--ease-out) .35s both; }
  .hinweis-rahmen { animation: auftauchen 1.1s var(--ease-out) .22s both; }

  /* Scroll-Reveal: Klassen setzt main.js, ohne JS bleibt alles sichtbar */
  .js-reveal .reveal {
    opacity: 0;
    transform: translate3d(0, var(--weg), 0);
    transition:
      opacity .8s var(--ease-out) var(--verzug, 0ms),
      transform var(--dauer) var(--ease-out) var(--verzug, 0ms);
    will-change: opacity, transform;
  }
  .js-reveal .reveal.ist-sichtbar { opacity: 1; transform: none; }
  .js-reveal .reveal.sofort { transition: none; }

  /* Feine Linien ziehen sich auf, kurz nach ihrem Element */
  .js-reveal .reveal.kick::before,
  .js-reveal .wissen > article.reveal::before {
    transform: scaleX(0); transform-origin: left center;
    transition: transform 1.1s var(--ease-out) calc(var(--verzug, 0ms) + 150ms);
  }
  .js-reveal .reveal.kick.ist-sichtbar::before,
  .js-reveal .wissen > article.reveal.ist-sichtbar::before { transform: none; }

  /* Karten: kaum merkliches Anheben */
  .leistungen li { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
  .leistungen li:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(28, 46, 68, .07); }
}

/* Responsiv */
@media (max-width: 960px) {
  .fuss .raster { grid-template-columns: 1fr 1fr; }
  .leistungen { grid-template-columns: repeat(2, 1fr); }
  .kopf nav { display: none; }
}
@media (max-width: 820px) {
  .einstieg .wrap, .beratung .wrap, .person .wrap, .kontakt .wrap, .fuss .raster { grid-template-columns: 1fr; }
  .wissen { grid-template-columns: 1fr; gap: 40px; }
  .hinweis-rahmen::before { left: -8px; bottom: -8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .leistungen { grid-template-columns: 1fr; }
  .kopf .wrap { min-height: 64px; }
  .kopf .logo img { width: 136px; }
  .kopf .btn span { display: none; }
  .kopf .btn { padding: 10px 12px; }
  .kontakt-karte dl { grid-template-columns: 1fr; gap: 2px; }
  .kontakt-karte dd { margin-bottom: 10px; }
}

@media print {
  .kopf, .skip, .aktionen { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
  .einstieg, .abschnitt--sand, .fuss { background: #fff; color: #000; }
}

.mit-abstand { margin-bottom: clamp(40px, 5vw, 64px) !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
