:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #262626;
  background: #eee8e8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #eee8e8;
}

/* Keep the landing page in one viewport; the legal pages retain normal scrolling. */
body.home-page {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  height: clamp(68px, 5.56vw, 80px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: #262626;
  color: #fff;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.15vw, 31px);
  color: inherit;
  font-size: clamp(15px, 1.18vw, 17px);
  text-decoration: none;
}

.brand__logo { width: 34px; height: 37px; object-fit: contain; }

.hero {
  position: relative;
  height: clamp(390px, 37.5vw, 540px);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #14102f;
}

.hero__photo, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo { z-index: -2; object-fit: cover; object-position: center; }
.hero__veil { z-index: -1; background: rgba(20, 16, 47, .83); }

.hero__content {
  width: min(942px, calc(100% - 48px));
  margin-left: max(24px, calc((100% - 942px) / 2 + 67px));
  margin-right: auto;
  display: grid;
  grid-template-columns: clamp(116px, 14.65vw, 211px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.82vw, 55px);
  color: #fff;
  transform: translateY(clamp(0px, calc((100vw - 760px) * .1), 18px));
}

.hero__tooth-wrap {
  width: clamp(116px, 14.65vw, 211px);
  aspect-ratio: 1;
  overflow: hidden;
}
.hero__tooth { display: block; transform: scale(clamp(.55, calc(100vw / 1440px), 1)); transform-origin: top left; }
.hero__copy h1 { margin: 0 0 clamp(18px, 1.88vw, 27px); font-size: clamp(38px, 3.75vw, 54px); line-height: 1.15; font-weight: 700; }
.hero__copy .hero__headline { margin: 0 0 clamp(18px, 1.88vw, 27px); font-size: clamp(38px, 3.75vw, 54px); line-height: 1.15; font-weight: 700; }
.hero__copy p { margin: 0; font-size: clamp(19px, 2.083vw, 30px); line-height: 1.15; font-weight: 700; }

.details { min-height: 280px; padding: 57px 24px 38px; }
.home-page main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.home-page .hero { height: auto; min-height: 0; flex: 1 1 auto; }
.home-page .details {
  flex: 0 0 auto;
  min-height: 0;
  padding: clamp(14px, 3.2vh, 38px) 24px;
}
.home-page .details__inner { font-size: clamp(14px, 1.32vw, 19px); line-height: clamp(1.3, 2vw, 1.85); }
.home-page .hours h2, .home-page .hours p { line-height: inherit; }
.home-page .appointment { margin-top: 8px !important; font-size: clamp(15px, 1.46vw, 21px) !important; line-height: 1.2 !important; }
.home-page .contact__row { min-height: 1.85em; }
.home-page .insurance { margin-top: 14px; font-size: clamp(15px, 1.53vw, 22px); }
.details__inner {
  max-width: 729px;
  margin: 0 auto;
  transform: translateX(clamp(0px, calc((100vw - 1280px) * .2), 32px));
  display: grid;
  grid-template-columns: 307px 1fr;
  gap: 60px;
  font-weight: 700;
  font-size: 19px;
  line-height: 35px;
}

.hours h2, .hours p { margin: 0; font-size: inherit; line-height: 35px; }
.hours h2 { font-weight: 700; }
.appointment { margin-top: 14px !important; color: #e23d30; font-size: 21px !important; line-height: 25px !important; }

.contact__row {
  min-height: 35px;
  margin: 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 33px;
}

.contact__row img { display: block; justify-self: center; }
.contact__row a { color: inherit; }
.insurance { margin: 35px 0 0 55px; font-size: 22px; line-height: 1.2; white-space: nowrap; }

.site-footer {
  min-height: 43px;
  flex: 0 0 auto;
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 60px;
  padding: 8px 24px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.home-page .site-footer { background: transparent; }
.site-footer a { color: #262626; text-decoration: none; }

@media (max-width: 760px) {
  .site-header { padding: 0 18px; }
  .brand { gap: 16px; }
  .brand__logo { width: 30px; height: 34px; }
  .hero { min-height: 0; padding: clamp(16px, 3vh, 30px) 0; }
  .hero__copy h1, .hero__copy .hero__headline { margin-bottom: clamp(18px, 3vw, 22px); font-size: clamp(34px, 6vw, 46px); }
  .hero__copy p { font-size: clamp(18px, 3.3vw, 24px); }
  .desktop-break { display: none; }
  .details { padding: 38px 24px 34px; }
  .details__inner { max-width: 520px; margin: 0 auto; transform: none; grid-template-columns: 1fr; gap: 28px; font-size: 18px; }
  .contact__row { column-gap: 20px; }
  .insurance { margin: 18px 0 0 42px; font-size: 20px; white-space: normal; }
  .site-footer { margin-top: auto; justify-content: center; gap: 32px; background: transparent; }
  .home-page .details { padding: clamp(12px, 2.2vh, 20px) 20px; }
  .home-page .details__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(10px, 4vw, 24px); font-size: clamp(12px, 3.4vw, 16px); line-height: 1.35; }
  .home-page .contact__row { grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; min-height: 1.8em; }
  .home-page .contact__row img { max-width: 18px; }
  .home-page .insurance { margin: 10px 0 0 26px; font-size: clamp(12px, 3.5vw, 16px); }
  .home-page .appointment { font-size: clamp(12px, 3.6vw, 16px) !important; }
}

@media (max-width: 560px) {
  .home-page .hero__content { grid-template-columns: clamp(72px, 21vw, 108px) minmax(0, 1fr); justify-items: initial; text-align: left; gap: clamp(12px, 4vw, 22px); margin: 0 auto; }
  .home-page .hero__tooth-wrap { width: clamp(72px, 21vw, 108px); }
  .home-page .hero__tooth { width: 108px; height: 108px; transform: scale(clamp(.67, calc(100vw / 420px), 1)); }
  .home-page .hero__copy h1, .home-page .hero__copy .hero__headline { font-size: clamp(26px, 7.2vw, 38px); }
  .home-page .hero__copy p { font-size: clamp(14px, 4vw, 19px); }
}

@media (max-height: 700px) {
  .home-page .details { padding-top: 10px; padding-bottom: 10px; }
  .home-page .details__inner { gap: 18px; }
  .home-page .insurance { margin-top: 8px; }
  .home-page .site-footer { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
  .home-page .hero { padding-top: 10px; padding-bottom: 10px; }
}

/* Shared legal-page layout */
.legal-content {
  width: min(1156px, calc(100% - 48px));
  margin: 0 auto;
  padding: 141px 0 64px;
}
.legal-content h1 { margin: 0 0 35px; font-size: 54px; line-height: 1.12; }
.legal-content h2 { margin: 32px 0 18px; font-size: 31px; line-height: 1.2; font-weight: 400; }
.legal-content h3 { margin: 28px 0 12px; font-size: 20px; line-height: 1.3; }
.legal-content h4 { margin: 24px 0 10px; font-size: 18px; line-height: 1.35; }
.legal-content p { margin: 0 0 14px; font-size: 18px; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere; }
.legal-content a { color: inherit; }
.legal-content--privacy h1 { margin-bottom: 18px; }
.legal-content--privacy h2:first-of-type { margin-top: 0; }
.legal-content--imprint { width: min(865px, calc(100% - 48px)); margin-left: max(24px, calc((100% - 865px) / 2 + 28px)); margin-right: auto; }
.legal-content--imprint h1 { margin-bottom: 65px; }
.imprint-grid { display: grid; grid-template-columns: minmax(0, 307px) minmax(0, 426px); gap: clamp(28px, 9.17vw, 132px); }
.imprint-grid dl { margin: 0; }
.imprint-item { margin: 0 0 8px; font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.imprint-item dt { font-weight: 700; }
.imprint-item dd { margin: 0; }
.imprint-extra { margin-top: 0; }
.legal-footer { position: static; margin-top: 0; }

@media (max-width: 760px) {
  .legal-content { width: min(100% - 40px, 620px); padding: 52px 0 48px; }
  .legal-content h1 { font-size: clamp(38px, 8vw, 48px); }
  .legal-content h2 { font-size: clamp(25px, 5vw, 31px); }
  .legal-content--imprint { width: min(100% - 40px, 620px); margin: 0 auto; }
  .legal-content--imprint h1 { margin-bottom: 35px; }
  .imprint-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .imprint-item { font-size: 19px; }
}
