@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --c-text: #1f1f1f;
  --c-grey: #acacac;
  --c-grey-dark: #c7c6c6;
  --c-light: #f8f8f8;
  --c-card: #f0f0f0;
  --c-faq: #f1f1f1;
  --c-cta: #3f444b;
  --c-dark: #1f1f1f;
  --c-white: #fff;
  --header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.7px;
  color: var(--c-text);
  background: var(--c-light);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -100vw;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--c-white);
}

/* Typography helpers */

.label {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.title {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: normal;
}

.title--italic {
  font-style: italic;
}

.center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid currentColor;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 4.8px;
  text-decoration: none;
  text-transform: uppercase;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.1);
}

.btn--light {
  color: var(--c-white);
}

@media (max-width: 1024px) {
  .title {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
    line-height: 2;
    letter-spacing: -0.2px;
  }

  .title {
    font-size: 1.3125rem;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 10px 2% 10px 3%;
  gap: 1rem;
}

.logo {
  font-size: 1.5625rem;
  line-height: 1;
  letter-spacing: normal;
  text-decoration: none;
  color: var(--c-text);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 26px;
  height: 4px;
  margin: auto;
  border-radius: 2px;
  background: var(--c-text);
}

.nav__toggle span {
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -9px;
}

.nav__toggle span::after {
  top: 9px;
}

.nav.is-open .nav__toggle span {
  background: transparent;
}

.nav.is-open .nav__toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.nav__list a {
  display: block;
  padding: 13px 20px;
  font-size: 1.125rem;
  line-height: 20px;
  letter-spacing: 5px;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--c-text);
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--c-grey);
}

@media (max-width: 1024px) {
  .site-header__inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 26px 20px 10px;
  }

  .logo {
    font-size: 1.5rem;
    letter-spacing: 1.2px;
    text-align: center;
    text-transform: uppercase;
  }

  .nav__toggle {
    display: block;
    margin: auto;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 0 1.5rem;
    text-align: center;
    background: var(--c-light);
  }

  .nav.is-open .nav__list {
    display: flex;
  }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  padding: var(--header-h) 3% 26px;
  color: var(--c-white);
  text-align: center;
  background: var(--c-dark) center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(163deg, rgb(2 1 1 / 0) 67%, #2a2a2a 100%);
}

.hero > * {
  position: relative;
}

.hero--home {
  background-image: url("../img/hero-home.jpg");
}

.hero--faqs {
  background-image: url("../img/hero-faqs.jpg");
}

.hero--zfa {
  background-image: url("../img/hero-zfa.jpg");
}

.hero .label {
  margin-bottom: 20px;
}

.hero__title {
  max-width: max(30vw, 380px);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: normal;
}

.hero__title--wide {
  max-width: none;
}

.hero__actions {
  position: absolute;
  right: 38px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.hero__down {
  position: absolute;
  left: 50%;
  bottom: 51px;
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  margin-left: -37.5px;
  border: 1px solid var(--c-white);
  border-radius: 50%;
  color: var(--c-white);
  transition: transform 0.3s;
}

.hero__down:hover,
.hero__down:focus-visible {
  transform: scale(1.1);
}

.hero__down::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .hero__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .hero__actions {
    left: 0;
    right: 0;
    bottom: 157px;
    align-items: center;
  }

  .hero__down {
    bottom: 40px;
  }
}

/* Home: intro */

.intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 150px 70px 50px;
  text-align: center;
}

.intro .title {
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .intro {
    padding: 70px 20px 50px;
  }

  .intro .title {
    margin-bottom: 20px;
    font-size: 1.625rem;
  }
}

/* Home: practice + slider */

.praxis {
  padding: 150px 56px 20px;
  text-align: center;
}

.praxis .label {
  position: relative;
  z-index: 3;
  margin-bottom: 30px;
  color: #000;
}

.praxis__title {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: inline-block;
  max-width: 260px;
  color: #000;
}

.praxis__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: var(--c-light);
}

.slider {
  position: relative;
  max-width: 1168px;
  margin: -60px auto 0;
}

.slider__track {
  display: flex;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__track li {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.slider__track img {
  width: 100%;
  aspect-ratio: 1168 / 711;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border: 0;
  background: none;
  cursor: pointer;
}

.slider__btn::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  border-left: 3px solid var(--c-white);
  border-bottom: 3px solid var(--c-white);
  filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.4));
}

.slider__btn--prev {
  left: 10px;
}

.slider__btn--prev::before {
  transform: rotate(45deg);
}

.slider__btn--next {
  right: 10px;
}

.slider__btn--next::before {
  transform: rotate(-135deg);
}

@media (max-width: 767px) {
  .praxis {
    padding: 100px 0 20px;
  }

  .praxis__title::before {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
  }

  .slider {
    margin-top: 40px;
  }

  .slider__track img {
    aspect-ratio: 390 / 299;
  }
}

/* Home: services */

.services {
  position: relative;
  z-index: 1;
  padding: 160px 20px 60px;
  color: var(--c-white);
  background: var(--c-grey) url("../img/tooth.png") right center no-repeat;
}

.services__inner {
  max-width: 989px;
  margin: 0 auto;
}

.services__inner > .title {
  margin-bottom: 20px;
}

.services__list {
  padding: 0 50px 50px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.services__sub {
  margin-bottom: 40px;
}

.columns {
  display: grid;
  gap: 0 19px;
  line-height: 36px;
  letter-spacing: normal;
}

@media (min-width: 768px) {
  .columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .services {
    padding: 80px 30px 60px;
    background-size: 80%;
  }

  .services__list {
    line-height: 1.8;
  }
}

/* Home: team */

.team {
  position: relative;
  display: grid;
  grid-template-columns: 66.8% 1fr;
  gap: 20px;
}

.team__text {
  padding: 200px 300px 200px 270px;
}

.team .label,
.team .title {
  margin-bottom: 20px;
}

.team__text p {
  line-height: 32px;
}

.team__img {
  margin-top: -180px;
  background: url("../img/dr-oberschelp.jpg") center / cover no-repeat;
}

.signature {
  width: 111px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .team__text {
    padding: 120px 8% 120px 10%;
  }
}

@media (max-width: 767px) {
  .team {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .team__text {
    padding: 80px 20px 60px;
  }

  .team__img {
    min-height: 520px;
    margin-top: 0;
  }
}

/* Home: jobs */

.jobs {
  padding: 100px 20px 110px;
  text-align: center;
  color: #000;
  background: var(--c-grey);
}

.jobs .label {
  margin-bottom: 30px;
}

.jobs__intro {
  max-width: 1009px;
  margin: 0 auto 30px;
  line-height: 32px;
  color: var(--c-text);
}

.cards {
  display: grid;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 35px;
  color: var(--c-cta);
  background: var(--c-card);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.card .btn {
  border-width: 2px;
}

/* ZFA */

.zfa-lead {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 10px 30px;
}

.split {
  display: grid;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 50px;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split__col {
  padding: 20px;
}

.split__col--img {
  padding: 0;
}

.subhead {
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: normal;
}

.list {
  padding-left: 20px;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 37px;
  list-style: circle;
}

.split__col .btn {
  display: table;
  margin: 50px auto 0;
}

.band {
  padding: 110px 0 60px;
  background: var(--c-grey-dark);
}

.band .list,
.band .list-text {
  font-weight: 400;
  line-height: 30px;
  letter-spacing: normal;
  color: var(--c-white);
}

.band .list-text {
  margin-bottom: 20px;
}

.statement {
  margin-bottom: 40px;
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 25px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.band .btn {
  color: var(--c-white);
}

.zfa-cta {
  padding-top: 90px;
}

.zfa-cta .title {
  margin-bottom: 20px;
}

.must {
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  color: #333;
}

.split__col--right {
  justify-self: end;
}

@media (max-width: 767px) {
  .split__col--right {
    justify-self: stretch;
  }
}

/* FAQ / accordion */

.faq {
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 10px 80px;
}

.faq > .title {
  margin-bottom: 40px;
}

.accordion details {
  border-bottom: 1px solid rgb(0 0 0 / 0.02);
}

.accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 46px 15px 15px;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  color: #333;
  background: var(--c-faq);
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "+";
  flex: 0 0 16px;
  margin: 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.accordion details[open] summary::before {
  content: "−";
}

.accordion summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid #444;
  border-bottom: 2px solid #444;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.accordion details[open] summary::after {
  transform: rotate(45deg);
}

.accordion__body {
  padding: 15px;
  border: 1px solid #eee;
  line-height: 34px;
  letter-spacing: normal;
  color: #333;
}

.accordion__body ul {
  padding-left: 1.25em;
}

@media (max-width: 767px) {
  .accordion summary {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* Legal */

.legal {
  max-width: 942px;
  margin: 0 auto;
  padding: 92px 10px 100px;
  text-align: center;
  overflow-wrap: break-word;
}

.legal h2 {
  margin: 50px 0 20px;
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #333;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h4 {
  margin: 50px 0 20px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}

.legal h2 + h4 {
  margin-top: 0;
}

.legal p,
.legal .title {
  margin-bottom: 20px;
}

/* Footer */

.site-footer {
  color: var(--c-grey);
  background: var(--c-dark);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1414px;
  margin: 0 auto;
  padding: 70px 40px;
}

.site-footer__grid > div {
  padding: 0 10px;
}

.site-footer h2 {
  margin-bottom: 20px;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-light);
}

.site-footer__grid p,
.site-footer__grid li {
  line-height: 30px;
  letter-spacing: normal;
}

.site-footer a {
  text-decoration: none;
}

.footer__links a {
  color: #999;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--c-white);
}

.tel {
  padding: 0;
  list-style: none;
}

.site-footer .tel li,
.layer .tel li {
  letter-spacing: 1.2px;
}

.site-footer .btn {
  margin-top: 20px;
  color: var(--c-white);
}

.site-footer__bottom {
  padding: 0 0 0 120px;
  font-size: 1rem;
  line-height: 30px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--c-text);
  background: var(--c-light);
}

.site-footer__bottom-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 1334px;
  margin: 0 auto;
  padding: 20px 0;
}

.site-footer__bottom p {
  padding: 10px;
}

.site-footer__bottom a {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
  }
}

@media (max-width: 767px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    padding: 70px 20px;
    text-align: center;
  }

  .site-footer h2 {
    font-size: 1.25rem;
  }

  .site-footer__bottom {
    padding: 0 10px;
    font-size: 0.875rem;
    letter-spacing: 3px;
    text-align: center;
  }

  .site-footer__bottom-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 15px 0;
  }

  .site-footer__bottom p {
    padding: 0;
  }
}

/* Layers (Kontakt / Öffnungszeiten) */

.layer {
  position: fixed;
  inset: auto 40px 0 auto;
  width: 366px;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 50px 20px;
  border: 0;
  color: var(--c-grey);
  text-align: center;
  background: var(--c-dark);
  box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 0.2);
}

.layer[open] {
  animation: layer-in 1.2s;
}

.layer::backdrop {
  background: transparent;
}

.layer h2 {
  margin-bottom: 20px;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-light);
}

.layer .tel li {
  margin-bottom: 20px;
  line-height: 30px;
}

.layer .tel a {
  text-decoration: none;
}

.layer__hours {
  font-size: 1rem;
  line-height: 30px;
  letter-spacing: 2px;
  color: var(--c-light);
}

.layer .btn {
  color: var(--c-white);
}

.layer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  font-size: 27px;
  line-height: 1;
  color: var(--c-white);
  background: none;
  cursor: pointer;
}

@keyframes layer-in {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .layer {
    inset: auto 0 0;
    width: 323px;
    margin: 0 auto;
    padding: 50px 20px 70px;
  }

  .layer .tel li {
    font-size: 1rem;
  }

  .layer__close {
    font-size: 37px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .layer[open] {
    animation: none;
  }
}
