:root {
  --blue: #076cba;
  --sky-blue: #38b6ff;
  --blue-tint: #edf6fd;
  --heading: #234b68;
  --text: #354b5c;
  --muted: #607788;
  --border: #d9e7f1;
}

html,
body {
  min-height: 100%;
}

html {
  font-size: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;

  background: #fff;
  color: var(--text);
}

/* Main content */

main {
  width: min(90%, 1200px);
  margin-inline: auto;
  flex: 1;
}

.main-content {
  padding: 40px 0;
}

/* Navbar */

.navbar {
  width: 100%;
  min-height: 70px;

  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 20px;

  padding: 5px clamp(16px, 3vw, 48px);

  background: var(--sky-blue);
  border-bottom: 1px solid rgba(35, 75, 104, 0.12);
  box-shadow: 0 3px 14px rgba(35, 75, 104, 0.1);
}

/* Logo image */

.circular-bg img {
  display: block;
  width: 60px;
  height: auto;
}

/* Practice name */

.logo {
  color: var(--heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

/* Navigation */

.nav-links {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links > a {
  position: relative;
  display: inline-block;

  padding: 8px 10px;
  border-radius: 8px;

  color: var(--heading);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;

  transition: background-color 0.2s ease;
}

.nav-links > a::after {
  content: "";

  position: absolute;
  left: 10px;
  bottom: 4px;

  width: 0;
  height: 2px;

  background: var(--heading);

  transition: width 0.3s ease;
}

.nav-links > a:hover::after,
.nav-links > a.active::after {
  width: calc(100% - 20px);
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--heading);
}

.nav-links > a:focus-visible {
  outline-color: var(--heading);
}

/* Language selector */

.language {
  position: relative;
}

.language img {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  pointer-events: none;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;

  background: #fff;
  color: var(--heading);

  border: 1px solid var(--border);
  border-radius: 8px;

  font-size: 14px;
  cursor: pointer;
  min-height: 42px;


  box-shadow: 0 2px 6px rgba(35, 75, 104, 0.06);
}

.language button {
  font-family: inherit;
}

.language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(35, 75, 104, 0.14);
}

.language-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--heading);
  font-size: 14px;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-checked="true"] {
  background: var(--blue-tint);
}

.language button:focus-visible {
  outline: 3px solid var(--heading);
  outline-offset: 2px;
}

/* Headings */

h1,
h2[data-i18n="subtitle"] {
  text-align: center;
  color: var(--heading);
}

h2 {
  color: var(--heading);
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.5px;
}

main > h1 {
  margin-top: 54px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

main > h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 20px auto;
  background: var(--blue);
  border-radius: 3px;
}

h2[data-i18n="subtitle"] {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 400;
}

/* Welcome page */

#lake {
  display: block;

  width: min(100%, 900px);
  height: auto;

  margin: 32px auto 54px;

  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(35, 75, 104, 0.1);
}

/* About page */

.about-container {
  width: min(92%, 1200px);
  margin: 55px auto;

  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  align-items: start;

  gap: 36px;
}

.about-profile {
  margin: 0;
}

.about-profile figcaption {
  padding-top: 20px;
}

.profile-name {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.profile-specialty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

#photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;

  margin: 0;

  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(35, 75, 104, 0.1);
}

#uebermich {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;

}

#uebermich .career-section {
  padding: 0;
}

#uebermich .career-section + .career-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

#uebermich .career-section p {
  grid-template-columns: 92px minmax(0, 1fr);
  margin-bottom: 22px;
  column-gap: 16px;
}

#uebermich .career-section p:last-child {
  margin-bottom: 0;
}

#uebermich .career-section span + br + span {
  color: var(--muted);
  font-size: 1rem;
}

#uebermich h2,
.services-page h2 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 1.5rem;
}

#uebermich p,
.services-page p {
  margin: 0 0 1.1em;
}

.services-page {
  width: min(90%, 850px);
  margin: 55px auto;
  padding: 0;
}

.services-page section + section,
#uebermich section + section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.services-page strong,
#uebermich strong {
  color: var(--heading);
}

.career-section p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 20px;
  padding: 0;
}

.career-section strong {
  grid-column: 1;
  grid-row: 1 / span 3;
  font-size: 0.9rem;
}

.career-section span {
  grid-column: 2;
}

.career-section br {
  display: none;
}

.treatment-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.treatment-section h2 {
  grid-column: 1 / -1;
}

.services-page .treatment-section p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.treatment-section p[data-i18n="services_28"] {
  grid-column: 1 / -1;
}

/* Contact page */

.contact-page {
  width: min(90%, 1100px);
  margin: 60px auto;
}

.contact-intro {
  max-width: 750px;
  margin-bottom: 40px;
}

.contact-intro h1 {
  margin: 0 0 15px;
  text-align: left;
  font-size: clamp(2rem, 5vw, 3rem);
}

.contact-intro p {
  margin: 0;
  line-height: 1.7;
}

.contact-container {
  display: flex;
  align-items: stretch;
  gap: 50px;
}

.contact-details {
  width: 50%;
  padding: 32px;

  background: white;
  border-radius: 16px;

  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(35, 75, 104, 0.05);
}

.contact-details h2 {
  margin-top: 0;
  margin-bottom: 25px;
}

.contact-details p {
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-details a {
  color: var(--blue);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

#contact-img {
  width: 50%;
  min-width: 0;
  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: 16px;
}

/* Footer */

.footer {
  width: 100%;
  margin-top: auto;
  padding: 28px 8%;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;

  gap: 30px;

  background: var(--blue-tint);
  border-top: 1px solid var(--border);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer h2 {
  margin: 0 0 10px;
}

.footer p {
  margin: 0;

  color: var(--text);
  font-size: 15px;
}

.footer a {
  color: var(--blue);
  font-size: 15px;
  text-decoration: none;

  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--heading);
  text-decoration: underline;
}

.footer-links {
  gap: 10px;
}

.footer .footer-credit {
  flex-basis: 100%;
  width: 100%;
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

#Rechte {
  margin: 0;

  color: var(--muted);
  font-size: 13px;
}

/* Selected text */

::selection {
  background-color: var(--blue);
  color: white;
}

::-moz-selection {
  background-color: var(--blue);
  color: white;
}

/* Phone and tablet */

@media (min-width: 751px) and (max-width: 950px) {
  .about-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-profile {
    width: 380px;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 750px) {
  .navbar {
    height: auto;

    justify-content: center;
    flex-wrap: wrap;

    padding: 8px 15px;
  }

  .circular-bg img {
    width: 52px;
  }

  .logo {
    font-size: 22px;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;

    justify-content: center;
    flex-wrap: wrap;

    gap: 16px;
    padding-bottom: 8px;
  }

  .nav-links > a {
    font-size: 15px;
  }

  main {
    width: 90%;
  }

  h1 {
    font-size: 28px;
  }

  h2[data-i18n="subtitle"] {
    font-size: 20px;
  }

  #lake {
    width: 100%;
    max-height: 300px;

    margin-top: 20px;

    object-fit: contain;
  }

  .about-container {
    width: 90%;
    margin: 30px auto;

    grid-template-columns: minmax(0, 1fr);

    gap: 25px;
  }

  .about-profile {
    width: min(100%, 380px);
    margin-inline: auto;
    text-align: center;
  }

  #uebermich .career-section {
    padding: 0;
  }

  #uebermich .career-section + .career-section {
    padding-top: 28px;
  }

  #uebermich .career-section p {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-page {
    margin: 30px auto;
  }

  .career-section p {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .career-section strong {
    grid-row: auto;
  }

  .career-section span {
    grid-column: 1;
  }

  .treatment-section {
    grid-template-columns: minmax(0, 1fr);
  }

  #photo {
    width: 100%;
    flex: none;
  }

  #uebermich {
    width: 100%;
  }

  .contact-page {
    width: 90%;
    margin: 35px auto;
  }

  .contact-intro {
    margin-bottom: 25px;
  }

  .contact-intro h1 {
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    gap: 25px;
  }

  .contact-details,
  #contact-img {
    width: 100%;
  }

  .contact-details {
    padding: 24px;
  }

  #contact-img {
    height: 300px;
    order: -1;
  }

  .footer {
    flex-direction: column;
    align-items: center;

    text-align: center;
  }

  .footer-column {
    align-items: center;
  }
}
/* Keep navigation usable on intermediate screen sizes. */
@media (min-width: 751px) and (max-width: 1200px) {
  .navbar { flex-wrap: wrap; padding-block: 8px; }
  .nav-links { width: 100%; margin-left: 0; justify-content: center; flex-wrap: wrap; gap: 20px; }
}
a:focus-visible, select:focus-visible { outline: 3px solid var(--heading); outline-offset: 4px; }
.contact-details { min-width: 0; overflow-wrap: anywhere; }
.footer a { overflow-wrap: anywhere; }
