/* Zahnwerk Ansbach, Demo von Röhrl Media
   Radius rule: media + tiles 24px, small cards 18px, interactive controls full pill. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  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: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-ext-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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;
}

:root {
  --bg: #f4f7f6;
  --surface: #fbfcfc;
  --ink: #0f2224;
  --ink-2: #44585a;
  --line: #dbe4e3;
  --accent: #0d5c5f;        /* deep petrol, the only accent */
  --accent-ink: #f4f9f9;
  --accent-soft: #e2eeed;
  --shadow: 0 30px 60px -28px rgb(13 60 64 / .28), 0 8px 18px -10px rgb(13 60 64 / .14);
  --r-lg: 24px;
  --r-md: 18px;
  --wrap: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1617;
    --surface: #122022;
    --ink: #e8f0ef;
    --ink-2: #a3b5b4;
    --line: #213335;
    --accent: #5fb3b1;
    --accent-ink: #062022;
    --accent-soft: #16302f;
    --shadow: 0 30px 60px -28px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* Icons: Phosphor (light) SVGs used as masks so they take currentColor */
.i { display: inline-block; width: 1.25em; height: 1.25em; flex: none; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i--phone { --m: url("../assets/icons/phone.svg"); }
.i--arrow { --m: url("../assets/icons/arrow-right.svg"); }
.i--calendar { --m: url("../assets/icons/calendar-check.svg"); }
.i--moon { --m: url("../assets/icons/moon-stars.svg"); }
.i--clock { --m: url("../assets/icons/clock.svg"); }
.i--armchair { --m: url("../assets/icons/armchair.svg"); }
.i--shield { --m: url("../assets/icons/shield-check.svg"); }
.i--sparkle { --m: url("../assets/icons/sparkle.svg"); }
.i--tooth { --m: url("../assets/icons/tooth.svg"); }
.i--heart { --m: url("../assets/icons/heart.svg"); }
.i--smiley { --m: url("../assets/icons/smiley.svg"); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; white-space: nowrap;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -.005em;
  transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgb(13 92 95 / .7); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn--primary .i { transition: transform .35s var(--ease); }
.btn--primary:hover .i { transform: translateX(3px); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.nav__inner { height: 76px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 9px 9px 9px 9px; border-radius: 50%; background: var(--bg); transform: translate(5px, -5px); }
.brand__name { font-weight: 650; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; }
.brand__city { font-weight: 400; color: var(--ink-2); }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.nav__phone .i { color: var(--accent); }
.nav__burger { display: none; }

/* Hero */
.hero { padding: 8px 0 0; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center;
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero__title {
  margin-top: 26px; font-size: clamp(48px, 7vw, 100px); line-height: 1.0; font-weight: 520;
  letter-spacing: -.05em; max-width: 6.4em; text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 420; color: var(--accent); padding-right: .04em; }
.hero__lead { margin-top: 28px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.hero__ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media { position: relative; height: clamp(540px, calc(100dvh - 76px - 168px), 720px); margin: 12px 0 8px; }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; border-radius: var(--r-lg); }

.slots {
  position: absolute; left: -64px; bottom: 40px; width: 340px; padding: 20px;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.slots__head { display: flex; gap: 12px; align-items: center; }
.slots__head .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  -webkit-mask: none; mask: none; position: relative; }
.slots__head .i::after { content: ""; position: absolute; inset: 9px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.slots__head .i { background: var(--accent-soft); }
.slots__title { font-weight: 650; font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }
.slots__sub { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.slots__list { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  display: grid; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: 12.5px; color: var(--ink-2); line-height: 1.25;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.slot strong { font-size: 17px; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--accent); }
.slot:active { transform: scale(.97); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot[aria-pressed="true"] strong { color: var(--accent-ink); }

/* Facts strip */
.facts { padding: 26px 0 40px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 30px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .i { width: 26px; height: 26px; color: var(--accent); margin-top: 1px; }
.fact p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.fact strong { display: block; color: var(--ink); font-weight: 650; font-size: 16px; }

/* Services bento */
.services { padding: 120px 0 72px; }
.section-head { max-width: 640px; }
.section-head h2, .calm h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.04em; font-weight: 520; text-wrap: balance; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 34em; }

.bento {
  margin-top: 56px; grid-auto-rows: minmax(0, auto); display: grid; gap: 20px;
  grid-template-columns: 5fr 4fr 3fr;
  grid-template-rows: auto auto;
  grid-template-areas: "implant aesthetic aesthetic" "implant solid tint";
}
.tile { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile h3 { font-size: 26px; letter-spacing: -.03em; font-weight: 600; line-height: 1.15; }
.tile p { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.tile__body { padding: 28px 32px 32px; }
.tile__img { overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.035); }
.link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); font-size: 15.5px; }
.link .i { transition: transform .35s var(--ease); }
.link:hover .i { transform: translateX(3px); }

.tile--implant { grid-area: implant; }
.tile--implant .tile__img { flex: 1; min-height: 0; }
.tile--implant .tile__img img { object-position: 50% 40%; }
.tile--aesthetic { grid-area: aesthetic; flex-direction: row; }
.tile--aesthetic .tile__img { flex: 1 1 52%; min-height: 280px; }
.tile--aesthetic .tile__img img { object-position: 30% 50%; }
.tile--aesthetic .tile__body { flex: 1 1 48%; align-self: center; }
.tile--solid, .tile--tint { padding: 32px; justify-content: flex-end; min-height: 280px; }
.tile--solid .i, .tile--tint .i { width: 34px; height: 34px; margin-bottom: auto; }
.tile--solid h3, .tile--tint h3 { margin-top: 28px; }
.tile--solid { grid-area: solid; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile--solid p { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.tile--tint { grid-area: tint; background: var(--accent-soft); border-color: transparent; }
.tile--tint .i { color: var(--accent); }

/* Calm / Angstpatienten */
.calm { padding: 72px 0 140px; }
.calm__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.calm__media { grid-column: 1 / span 8; grid-row: 1; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.1; }
.calm__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.calm__panel {
  grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 1;
  background: var(--surface); border-radius: var(--r-lg); padding: 52px 52px 44px; box-shadow: var(--shadow);
}
.calm h2 { margin-top: 18px; font-size: clamp(30px, 3.3vw, 44px); }
.calm__lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.calm__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.calm__list li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.calm__list .i { width: 24px; height: 24px; color: var(--accent); }
.quote { margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.quote p { font-size: 19px; line-height: 1.45; letter-spacing: -.01em; font-style: italic; }
.quote footer { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }

/* Motion: entry on load + reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  .reveal-on-scroll { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal-on-scroll.is-in { opacity: 1; transform: none; }
  .bento .reveal-on-scroll:nth-child(2) { transition-delay: .08s; }
  .bento .reveal-on-scroll:nth-child(3) { transition-delay: .16s; }
  .bento .reveal-on-scroll:nth-child(4) { transition-delay: .24s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1180px) {
  .nav__phone { display: none; }
  .nav__links { gap: 24px; }
}
@media (max-width: 1023px) {
  .wrap { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .hero__media { height: auto; margin: 0; padding: 0 0 120px; }
  .hero__media > img { position: static; aspect-ratio: 4 / 3.4; height: auto; }
  .slots { left: 20px; bottom: 0; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "implant aesthetic" "implant aesthetic" "solid tint"; }
  .tile--aesthetic { flex-direction: column; }
  .tile--aesthetic .tile__img { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .calm__media, .calm__panel { grid-column: 1 / -1; }
  .calm__panel { grid-row: 2; margin: -80px 24px 0; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__inner { height: 64px; gap: 12px; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
  .brand__name { font-size: 18px; }
  .hero__grid { padding-top: 20px; gap: 32px; }
  .hero__title { font-size: 52px; margin-top: 18px; }
  .hero__lead { font-size: 17px; margin-top: 20px; }
  .hero__ctas { margin-top: 28px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__media { padding-bottom: 150px; }
  .slots { left: 12px; right: 12px; width: auto; }
  .facts__grid { grid-template-columns: 1fr; gap: 20px; }
  .services { padding: 80px 0 48px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "implant" "aesthetic" "solid" "tint"; margin-top: 36px; }
  .tile--implant .tile__img { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .tile__body { padding: 24px; }
  .tile--solid, .tile--tint { min-height: 0; padding: 24px; }
  .calm { padding: 48px 0 80px; }
  .calm__panel { margin: -48px 8px 0; padding: 28px 24px; }
}

/* Iteration 2: image tiles fill their cell instead of growing with the photo */
@media (min-width: 768px) {
  .tile--implant .tile__img, .tile--aesthetic .tile__img { position: relative; }
  .tile--implant .tile__img img, .tile--aesthetic .tile__img img { position: absolute; inset: 0; }
}
