/* nooriagency, look "Porzellan": clinic white, graphite, one petrol tone, light weight type.
   Shape rule: images and panels 14px, small entries 10px, tags 6px. No pills.
   Each section borrows a document from the practice: anatomy chart, lab sheet, appointment book. */

@font-face { font-family: 'Hanken'; src: url('fonts/hanken.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f6f8;
  --fg: #14171c;
  --dim: #5f6875;
  --accent: #0b6165;
  --on-accent: #f3f8f8;
  --line: rgba(20, 23, 28, .14);
  --tint: rgba(11, 97, 101, .075);
  --pad: clamp(18px, 3.4vw, 52px);
  --max: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.5 'Hanken', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.label { font: 500 12.5px/1.4 'Hanken', sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }
h2 { font: 300 clamp(34px, 5.2vw, 78px)/1.02 'Hanken', sans-serif; letter-spacing: -.052em; max-width: 15ch; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--dim); max-width: 48ch; margin-top: 20px; }
.kopf { margin-bottom: clamp(36px, 5vw, 72px); }
.kopf .label { margin-bottom: 18px; }
main > section { padding: clamp(80px, 11vw, 170px) max(var(--pad), calc((100vw - var(--max)) / 2)); }
.btn { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 10px; font-weight: 550; font-size: 17px; white-space: nowrap; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }

/* ---------- x-ray lens (xr.js) ---------- */
[data-xr] { position: relative; overflow: hidden; --x: 50%; --y: 46%; --r: 0px; --tx: 0; --ty: 0; }
.xr-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; clip-path: circle(var(--r) at var(--x) var(--y));
  --bg: #0b5d61; --fg: #f3f8f8; --dim: rgba(243, 248, 248, .74); --accent: #f3f8f8; --line: rgba(243, 248, 248, .24); }
.xr-ring { position: absolute; left: 0; top: 0; z-index: 6; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; pointer-events: none; transform: translate3d(calc(var(--x) - var(--r)), calc(var(--y) - var(--r)), 0); border: 1px solid rgba(243, 248, 248, .85); box-shadow: 0 24px 60px -24px rgba(11, 93, 97, .7); }

/* ---------- hero ---------- */
.buehne { min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: var(--fg); background: var(--bg); }
[data-xr-base].buehne { background: radial-gradient(58% 62% at 50% 48%, #ffffff 0%, var(--bg) 100%); }
.xr-layer .buehne { height: 100%; }
.bar { display: flex; align-items: center; gap: 34px; height: 76px; padding-inline: var(--pad); }
.brand { font-weight: 650; font-size: 21px; letter-spacing: -.035em; }
.bar nav { margin-left: auto; display: flex; gap: 30px; font-size: 15px; color: var(--dim); }
.bar nav a { transition: color .2s; }
.bar nav a:hover { color: var(--fg); }
.cta { font-weight: 550; font-size: 15px; padding-bottom: 3px; border-bottom: 1.5px solid var(--accent); color: var(--accent); }
.mitte { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding-inline: var(--pad); min-height: 0; }
h1 { display: contents; font: 300 clamp(40px, 7.2vw, 124px)/1 'Hanken', sans-serif; letter-spacing: -.058em; }
h1 .l, h1 .r { white-space: nowrap; transform: translateY(-8vh); position: relative; z-index: 1; }
h1 .l { order: 1; justify-self: end; margin-right: -2.4vw; }
h1 .r { order: 3; justify-self: start; margin-left: -2.4vw; }
h1 b { font-weight: 600; color: var(--accent); }
.zahn { order: 2; position: relative; height: min(68vh, 47vw); aspect-ratio: 4 / 5; z-index: 2; }
.zahn img { width: 100%; height: 100%; object-fit: contain; transform: translate3d(calc(var(--tx) * 1px), calc(var(--ty) * 1px), 0); filter: drop-shadow(0 34px 34px rgba(20, 23, 28, .13)); }
.xr-layer .zahn img { filter: drop-shadow(0 0 14px rgba(243, 248, 248, .4)); }
.fuss { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--pad) clamp(20px, 4vh, 46px); }
.sub { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--dim); max-width: 34ch; }
.fuss .label { text-align: right; }

/* ---------- Anatomie: the tooth as a chart, every part is a service ---------- */
.tafel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 6vw, 110px); }
.schnitt { position: relative; align-self: center; height: min(76vh, 720px); aspect-ratio: 4 / 5; }
.schnitt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s var(--ease); }
.schnitt .aussen { filter: drop-shadow(0 34px 34px rgba(20, 23, 28, .12)); }
.schnitt .innen { opacity: 0; }
.tafel.is-innen .innen { opacity: 1; }
.tafel.is-innen .aussen { opacity: 0; }
.teile { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-block: 3%; }
.teile--l { align-items: flex-end; text-align: right; }
.teil { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: inherit; cursor: pointer; display: grid; gap: 7px; max-width: 30ch; opacity: .46; transition: opacity .35s; }
.teile--l .teil { justify-items: end; }
.teile--r .teil { justify-items: start; }
.teil__name { font: 300 clamp(30px, 3.5vw, 54px)/1 'Hanken', sans-serif; letter-spacing: -.05em; transition: color .35s; }
.teil__text { font-size: 15.5px; line-height: 1.45; color: var(--dim); }
.teil:hover, .teil:focus-visible, .teil.is-on { opacity: 1; }
.teil.is-on .teil__name { color: var(--accent); }
.linien { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.linien line { stroke: rgba(20, 23, 28, .2); stroke-width: 1; transition: stroke .35s; }
.linien line.is-on { stroke: var(--accent); stroke-width: 1.5; }
.punkt { position: absolute; z-index: 2; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg); transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.punkt.is-on { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.punkt.is-on::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent); animation: puls 2.2s ease-out infinite; }
@keyframes puls { from { transform: scale(.45); opacity: .8; } to { transform: scale(1.25); opacity: 0; } }

/* ---------- Laborwerte: the market as a lab sheet ---------- */
.labor { background: #eceef1; }
.labor__grid { display: grid; grid-template-columns: minmax(0, 8.6fr) minmax(0, 3.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.werte { width: 100%; border-collapse: collapse; }
.werte thead th { text-align: left; font: 500 12.5px/1.4 'Hanken', sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); padding: 0 16px 14px 0; border-bottom: 1px solid var(--fg); }
.werte tbody tr { border-bottom: 1px solid var(--line); }
.werte tbody th { text-align: left; font-weight: 400; font-size: 17px; width: 32%; }
.werte tbody th, .werte td { padding: 20px 16px 20px 0; vertical-align: middle; }
.wert { font: 300 clamp(34px, 4.4vw, 62px)/1 'Hanken', sans-serif; letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.marke { display: inline-block; font-weight: 500; font-size: 12.5px; letter-spacing: .04em; padding: 6px 10px; border-radius: 6px; background: var(--tint); color: var(--accent); white-space: nowrap; }
.marke--x { background: var(--fg); color: var(--bg); }
.quelle { font-size: 13.5px; color: var(--dim); }
.lesart { position: sticky; top: 32px; padding: 26px 26px 28px; border-radius: 14px; background: var(--bg); }
.lesart p:last-child { font-size: 18px; line-height: 1.5; margin-top: 14px; }

/* ---------- Terminbuch: the series as one day in the appointment book ---------- */
.buch { border-top: 1px solid var(--fg); }
.buch__kopf, .slot { display: grid; grid-template-columns: clamp(70px, 9vw, 130px) repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.buch__kopf { padding: 12px 0; border-bottom: 1px solid var(--line); }
.slot { min-height: 112px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.slot time { font: 300 clamp(22px, 2.2vw, 32px)/1 'Hanken', sans-serif; letter-spacing: -.04em; color: var(--dim); font-variant-numeric: tabular-nums; padding-top: 8px; }
.termin { border-radius: 10px; background: var(--tint); border-left: 3px solid var(--accent); padding: 14px 18px 16px; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.termin.s1 { grid-column: 2; }
.termin.s2 { grid-column: 3; }
.termin.s3 { grid-column: 4; }
.termin h3 { font: 500 clamp(19px, 1.7vw, 24px)/1.15 'Hanken', sans-serif; letter-spacing: -.025em; margin: 6px 0; }
.termin p:last-child { font-size: 15px; color: var(--dim); transition: color .3s; }
.termin .label { transition: color .3s; }
@media (hover: hover) {
  .termin:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
  .termin:hover .label, .termin:hover p:last-child { color: rgba(243, 248, 248, .8); }
}
.buch__fuss { margin-top: 28px; color: var(--dim); max-width: 54ch; }

/* ---------- Referenz ---------- */
.ref__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ref__bild { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(20, 23, 28, .35); }
.ref__bild img { width: 100%; height: auto; }
.ref__text h3 { font: 300 clamp(28px, 3vw, 44px)/1.05 'Hanken', sans-serif; letter-spacing: -.045em; }
.ref__text > p { color: var(--dim); margin-top: 16px; max-width: 44ch; }
.ref__text dl { margin-top: 28px; border-top: 1px solid var(--fg); }
.ref__text dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ref__text dd { text-align: right; }

/* ---------- Ablauf ---------- */
.ablauf { background: #eceef1; }
.ablauf h2 { max-width: 18ch; }
.schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.schritte li { border-top: 1px solid var(--fg); padding-top: 20px; }
.schritte h3 { font: 500 clamp(20px, 1.8vw, 26px)/1.15 'Hanken', sans-serif; letter-spacing: -.03em; }
.schritte p { color: var(--dim); margin-top: 10px; font-size: 16px; }
.recht { margin-top: clamp(40px, 6vw, 72px); max-width: 74ch; padding: 22px 26px; border-left: 3px solid var(--accent); border-radius: 10px; background: var(--bg); font-size: 16.5px; }

/* ---------- Über ---------- */
.ueber blockquote { font: 300 clamp(30px, 4.6vw, 68px)/1.08 'Hanken', sans-serif; letter-spacing: -.048em; max-width: 22ch; margin-top: 22px; text-wrap: balance; }
.ueber__wer { color: var(--dim); margin-top: 26px; }

/* ---------- Kontakt: the one colour block of the page ---------- */
main > .kontakt { background: var(--accent); color: var(--on-accent); text-align: center; }
.kontakt h2 { margin-inline: auto; max-width: 14ch; }
.kontakt .lead { margin-inline: auto; color: rgba(243, 248, 248, .8); }
.kontakt .btn { margin-top: 36px; background: var(--on-accent); color: var(--accent); }
.kontakt__mail { margin-top: 18px; font-size: 15px; }
.kontakt__mail a { border-bottom: 1px solid rgba(243, 248, 248, .5); }
.kontakt :focus-visible { outline-color: var(--on-accent); }
.ende { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 26px max(var(--pad), calc((100vw - var(--max)) / 2)); background: var(--accent); color: rgba(243, 248, 248, .8); border-top: 1px solid rgba(243, 248, 248, .22); font-size: 14.5px; }
.ende .brand { color: var(--on-accent); font-size: 18px; }
.ende nav { margin-left: auto; display: flex; gap: 24px; }

/* ---------- Impressum und Datenschutz ---------- */
.bar--seite .cta { margin-left: auto; }
.legal { max-width: 800px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--pad) clamp(80px, 10vw, 140px); min-height: calc(100dvh - 76px - 80px); }
.legal h1 { display: block; font: 300 clamp(40px, 6vw, 84px)/1 'Hanken', sans-serif; letter-spacing: -.052em; margin-bottom: clamp(28px, 4vw, 48px); }
.legal h2 { font: 550 20px/1.3 'Hanken', sans-serif; letter-spacing: -.02em; max-width: none; margin: 40px 0 10px; }
.legal p, .legal address, .legal li { font-style: normal; max-width: 64ch; }
.legal p + p, .legal address + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.legal a { border-bottom: 1px solid var(--accent); color: var(--accent); }
.legal .offen { color: var(--dim); }
.legal .entwurf { padding: 16px 20px; border-left: 3px solid var(--accent); border-radius: 10px; background: var(--tint); font-size: 16px; margin-bottom: 8px; }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .bar nav { display: none; }
  .cta { margin-left: auto; }
  .mitte { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; }
  h1 { font-size: 15.5vw; }
  h1 .l, h1 .r { transform: none; justify-self: center; margin: 0; }
  h1 .l { margin-bottom: -3vh; }
  h1 .r { margin-top: -3vh; }
  .zahn { height: 46vh; }
  .fuss { flex-direction: column; align-items: flex-start; }
  .fuss .label { text-align: left; }

  .tafel { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .schnitt { order: -1; justify-self: center; height: 52vh; margin-bottom: 20px; }
  .linien { display: none; }
  .teile { gap: 0; padding: 0; }
  .teile--l { align-items: stretch; text-align: left; }
  .teil { grid-template-columns: 34px minmax(0, 1fr); max-width: none; width: 100%; padding: 18px 0; border-top: 1px solid var(--line); }
  .teile--l .teil, .teile--r .teil { justify-items: start; }
  .teil::before { content: attr(data-nr); grid-row: 1 / span 3; font-size: 13px; color: var(--dim); padding-top: 2px; }
  .teil > * { grid-column: 2; }
  .punkt { width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
  .punkt::before { content: attr(data-nr); }
  .punkt.is-on { color: var(--on-accent); }

  .labor__grid, .ref__grid { grid-template-columns: minmax(0, 1fr); }
  .lesart { position: static; }
  .werte thead { display: none; }
  .werte tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 18px 0; }
  .werte tbody th, .werte td { padding: 0; width: auto; }
  .werte tbody th { grid-column: 1 / -1; }
  .quelle { grid-column: 1 / -1; }

  .buch__kopf { display: none; }
  .slot { grid-template-columns: 62px minmax(0, 1fr); }
  .termin.s1, .termin.s2, .termin.s3 { grid-column: 2; }
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ende nav { margin-left: 0; }
}
@media (max-width: 520px) {
  .schritte { grid-template-columns: minmax(0, 1fr); }
  .ref__text dl div { flex-direction: column; gap: 4px; }
  .ref__text dd { text-align: left; }
}

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