/* Lokale Schriften */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/Light/OpenSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/Regular/OpenSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/Semibold/OpenSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto/roboto-slab/Roboto-Slab-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto/roboto-slab/Roboto-Slab-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* Grundeinstellungen */

:root {
  --text: #333;
  --background: #fff;
  --header-dark: #262626;
  --header-light: #404040;
  --navigation: #666;
  --navigation-hover: #5e5e5e;
  --accent: #427b93;
  --accent-hover: #2a4f5e;
  --light: #f4f4f4;
  --section-grey: #ececec;
  --border: #ddd;
  --content-width: 940px;
  --wide-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
  font: inherit;
}


/* Typografie */

h1,
h2,
h3,
h4 {
  font-family: "Roboto Slab", Georgia, serif;
  font-style: normal;
}

h1 {
  margin: 0 0 2rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: 3.2rem;
}

h2 {
  margin: 0 0 2rem;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 2.7rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5rem;
}

p,
ul,
ol,
table,
blockquote {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

strong {
  font-weight: 600;
}

hr {
  width: 75%;
  height: 1px;
  margin: 4rem auto;
  border: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.75),
    transparent
  );
}


/* Zugänglichkeit */

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #000;
}

.skip-link:focus {
  left: 0;
}


/* Header */

.site-header {
  padding: 0;
  color: #f0f0f0;
  background: linear-gradient(
    to bottom,
    var(--header-light),
    var(--header-dark)
  );
}

.site-header__inner {
  width: 100%;
  margin: 0;
  text-align: center;
}

.site-logo {
  display: inline-block;
  margin-top: 0.75rem;
}

.site-logo img {
  width: min(90vw, 760px);
  margin-inline: auto;
}

.site-header__subtitle {
  margin: 0.2rem 1rem 1.25rem;
  font-size: 0.9rem;
}

.site-navigation {
  width: 100%;
  margin: 0;
  background: var(--navigation);
}

.site-navigation.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}

.site-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation a {
  display: block;
  padding: 1rem 1.25rem;
  color: #fff;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  color: #fff;
  background: var(--navigation-hover);
}

.site-navigation a.is-active {
  margin: 0.4rem 0.3rem;
  padding: 0.6rem 1rem;
  color: #555;
  background: #fff;
  border-radius: 0.2rem;
}


/* Seiteninhalt */

main {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  padding-bottom: 5rem;
}

main > p:first-child {
  margin-bottom: 0;
}

main > p:first-child img {
  width: 100vw;
  max-width: none;
  height: 45vh;
  min-height: 280px;
  margin-left: calc(50% - 50vw);
  object-fit: cover;
}


/* Telefonnummer unter dem Bild */

main > p:nth-of-type(2) {
  display: none;
  margin: 1.75rem 0 0;
  text-align: center;
}

main > p:nth-of-type(2) a[href^="tel:"] {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  color: #fff;
  background: #5b8da7;
  border-radius: 0.25rem;
  text-decoration: none;
}


/* Zitat */

blockquote {
  max-width: 900px;
  margin: 5rem auto;
  padding: 0;
  border: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 100;
  line-height: 1.35;
  text-align: center;
}

blockquote p::before {
  content: "»";
}

blockquote p::after {
  content: "«";
}

blockquote p:last-child {
  margin-bottom: 0;
}


/* Grauer Bereich bis Expertise */

.overview {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 5rem 0;
  text-align: center;
  background-color: #e3e3e3;
  background-image: radial-gradient(circle, #fcfcfc, #e3e3e3);
  background-repeat: no-repeat;
}

.overview > * {
  width: min(100% - 2rem, 760px);
  margin-right: auto;
  margin-left: auto;
}

.overview > h2,
.overview > h2 + p,
.overview > h2 + p + p,
.overview > hr {
  text-align: center;
}

/* Personenblock */

.profile-intro {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 6rem;
  align-items: start;
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-bottom: 0.5rem;
}

.profile-intro > p:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin: 0;
  transform: translateY(0.5rem);
}

.profile-intro > p:first-child img {
  width: 100%;
  max-width: 350px;
  margin: 0;
}

.profile-intro > p:not(:first-child) {
  grid-column: 2;
}

.profile-intro > p:not(:first-child):last-child {
  margin-bottom: 0;
}

.profile-intro__text {
  max-width: 720px;
}

/* Tabellen */

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
}


/* Aufklappbereiche */

details {
  margin: 2rem 0;
  border: 1px solid var(--border);
  background: #fcfcfc;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
}

summary {
  padding: 1rem 1.25rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

details > :not(summary) {
  margin-right: 1.25rem;
  margin-left: 1.25rem;
}

details > :last-child {
  margin-bottom: 1.25rem;
}

.info-card {
  width: min(100%, 760px);
  margin: 2.5rem auto;
  text-align: left;
}

.info-card__content {
  padding: 2rem;
  text-align: left;
}

/* Praxisgalerie */

.practice-gallery {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 5rem 0 0 -50vw;
  overflow: hidden;
  background: #f0f0f0;
}

.practice-gallery__title {
  position: absolute;
  top: 1rem;
  left: calc(50% - 5.5rem);
  z-index: 3;
  width: min(100% - 2rem, 760px);
  margin: 0;
  color: #fff;
  text-align: left;
  text-shadow: none;
  transform: translateX(-50%);
}

.practice-gallery__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
}

.practice-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.practice-gallery__track {
  display: flex;
  width: 100%;
}

.practice-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.practice-gallery__slide picture,
.practice-gallery__slide img {
  display: block;
  width: 100%;
}

.practice-gallery__slide img {
  height: auto;
  margin: 0 auto;
}

.practice-gallery__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3.5rem;
  height: 5rem;
  margin-top: -2.5rem;
  padding: 0;
  color: #fcfcfc;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 0.25rem;
  font-family: Arial, sans-serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.1;
  transition: opacity 0.1s ease-out;
}

.practice-gallery:hover .practice-gallery__button,
.practice-gallery__button:focus-visible {
  opacity: 1;
}

.practice-gallery__button--previous {
  left: 1rem;
}

.practice-gallery__button--next {
  right: 1rem;
}

.practice-gallery__pagination {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.practice-gallery__pagination button {
  width: 16px;
  height: 16px;
  padding: 0;
  background: rgba(255, 255, 255, 0.65);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.practice-gallery__pagination button.is-active {
  background: #427b93;
}

/* Schaltflächenähnliche Links */

.button,
a[href^="tel:"],
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

/* Kontakt */

.contact-section {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 5rem max(1rem, calc((100vw - 760px) / 2));
  color: #fff;
  background:
    linear-gradient(
      to bottom,
      #2d2d2d,
      #383838
    );
}

.contact-section > h1 {
  margin-bottom: 2rem;
}

.contact-section a {
  color: #fff;
}

.contact-section a:hover,
.contact-section a:focus-visible {
  color: #b9dbe8;
}

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 2.5rem 0;
}

.contact-columns > div {
  min-width: 0;
}

.contact-columns h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  line-height: 1.2;
}

.contact-section p:last-child {
  margin-bottom: 0;
}

.contact-data {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  margin: 0;
}

.contact-data dt,
.contact-data dd {
  margin: 0;
}

.contact-data dt {
  font-weight: 400;
  white-space: nowrap;
}

.contact-data dd {
  min-width: 0;
}

.contact-data__whatsapp {
  margin-left: 0.75rem;
}

/* Mobile Darstellung */

@media (max-width: 767px) {
  body {
    padding-top: 0 !important;
  }

  .site-logo {
    margin-top: 0.6rem;
  }

  .site-logo img {
    width: min(92vw, 500px);
  }

  .site-header__subtitle {
    margin-bottom: 0.9rem;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .site-navigation,
  .site-navigation.is-fixed {
    display: none;
  }

  main {
    width: min(100% - 2rem, var(--content-width));
  }

  main > p:first-child img {
    height: auto;
    min-height: 0;
  }

  main > p:nth-of-type(2) {
    display: block;
    margin: 1.75rem 0 2.5rem;
  }

h1 {
  font-size: 2rem;
  line-height: 2.25rem;
}

h2 {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

  blockquote {
    margin: 0 auto 4rem;
    font-size: clamp(1.2rem, 4.2vw, 1.6rem);
    line-height: 1.4;
  }

  .overview {
    padding: 2.5rem 0 4rem;
  }

  .profile-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 3rem;
  }

.profile-intro {
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.profile-intro > p:first-child,
.profile-intro > p:not(:first-child) {
  grid-column: auto;
  grid-row: auto;
}

.profile-intro > p:first-child img {
  max-width: 260px;
  margin: 0 auto;
}

  .profile-intro img {
    max-width: 260px;
    margin: 0 auto;
  }

  .profile-intro > p {
    grid-column: auto;
  }

.practice-gallery {
  margin-top: 3.5rem;
}

.practice-gallery__title {
  top: 1rem;
  width: calc(100% - 2rem);
  font-size: 2rem;
  line-height: 2.25rem;
}

.practice-gallery__button {
  display: none;
}

.practice-gallery__pagination {
  bottom: 0.75rem;
  gap: 0.4rem;
}

.practice-gallery__pagination button {
  width: 12px;
  height: 12px;
}

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.6rem 0.35rem;
  }
}
