:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-strong: #edf1f8;
  --text: #13212a;
  --muted: #4c5768;
  --line: #cfd7e6;
  --accent: #5e8aac;
  --accent-strong: #44607f;
  --accent-soft: #dde4ec;
  --contrast: #3e444a;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(16, 36, 44, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

.logo-link,
.btn,
.nav-toggle {
  text-decoration: none;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.55rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  border: 2px solid #44607f;
  background: #ffffff;
  color: #3a4d65;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

main:focus {
  outline: 2px dashed #44607f;
  outline-offset: 4px;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 241, 248, 0.92) 100%),
    linear-gradient(90deg, rgba(68, 96, 127, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 68, 74, 0.05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.page-bg::before,
.page-bg::after {
  content: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.15rem;
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.lead {
  font-size: 1.16rem;
  color: #edf2ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(17, 35, 47, 0.12);
  box-shadow: 0 8px 18px rgba(14, 42, 51, 0.06);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  width: min(220px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 0.94rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.site-nav .nav-item {
  position: relative;
}

.site-nav > a,
.site-nav .nav-dropdown-toggle {
  color: var(--text);
  padding: 0.58rem 0.78rem;
  border-radius: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav > a:hover,
.site-nav .nav-dropdown-toggle:hover,
.site-nav .nav-dropdown.open .nav-dropdown-toggle {
  background: #e9effe;
  color: #354b99;
  text-decoration: none;
}

.site-nav > a[aria-current="page"]:not(.nav-emphasis) {
  background: #edf1ff;
  color: #3a4f6e;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 17rem;
  background: #ffffff;
  border: 1px solid #cfd8ec;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(20, 44, 55, 0.12);
  padding: 0.38rem;
  display: none;
  z-index: 60;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
  gap: 0.24rem;
}

.nav-dropdown-menu a {
  color: var(--text);
  border-radius: 6px;
  border: 1px solid #dbe3f4;
  background: #f6f8ff;
  text-decoration: none;
  padding: 0.52rem 0.62rem;
}

.nav-dropdown-menu a:hover {
  background: #eaf0ff;
  color: #354b99;
  text-decoration: none;
}

.site-nav .nav-emphasis {
  color: #ffffff;
  background: var(--accent);
  border-radius: 6px;
  padding: 0.64rem 1rem;
  text-decoration: none;
  border: 1px solid rgba(60, 80, 105, 0.24);
  box-shadow: 0 8px 18px rgba(68, 96, 127, 0.22);
}

.site-nav .nav-emphasis:hover,
.site-nav .nav-emphasis:focus-visible {
  background: var(--accent-strong);
  color: #ffffff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid #b8c5e2;
  background: #f5f7ff;
  color: #2c3b63;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.35rem;
  padding-bottom: 4.6rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(20, 29, 46, 0.9), rgba(40, 57, 108, 0.52)),
    url("./assets/images/praxis-empfang-1920.jpeg") center/cover no-repeat;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 2.2rem;
  align-items: start;
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.86rem 1.24rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 45, 49, 0.25);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: #eff3ff;
  color: var(--accent-strong);
  border: 1px solid #c7d2ed;
}

.btn-secondary:hover {
  background: #e6edff;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
  background: #ffffff;
  color: var(--accent-strong);
  border: 1px solid #c7d2ed;
}

.btn-tertiary:hover {
  background: #edf2ff;
}

.quickpanel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(12, 31, 38, 0.18);
  padding: 1.1rem;
}

.quickpanel h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.quickpanel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.quickpanel li {
  border-top: 1px solid #dfe5f2;
  padding-top: 0.85rem;
}

.quickpanel li:first-child {
  border-top: 0;
  padding-top: 0;
}

.quickpanel span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

.quickpanel strong {
  font-size: 1rem;
  font-weight: 600;
}

.section-head {
  max-width: 720px;
  margin-bottom: 1.65rem;
}

.section-head p {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 0.85rem;
}

.service-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  height: 100%;
  background: var(--surface);
  border: 1px solid #cbd4e8;
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 44, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
  border-color: #a3b5c7;
  box-shadow: 0 12px 28px rgba(20, 44, 55, 0.12);
  text-decoration: none;
}

.service-card img {
  grid-row: 1 / 4;
  width: 100%;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
}

.service-card h3,
.service-card p {
  padding-inline: 0.95rem;
}

.service-card h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
  min-height: auto;
  font-size: 1.12rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  min-height: 4.9em;
  font-size: 0.96rem;
  line-height: 1.48;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline: 0.95rem;
  margin-bottom: 0.95rem;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.card-cta::after {
  content: "->";
  line-height: 1;
}

.section-contrast {
  background: rgba(237, 241, 248, 0.82);
  border-top: 1px solid #dfe5f2;
  border-bottom: 1px solid #dfe5f2;
}

.split {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  padding-left: 1.45rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), #8aa4b8);
}

.about-image {
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(16, 36, 44, 0.12);
  max-height: 540px;
  object-fit: cover;
  width: 100%;
}

.contact-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr 1fr;
}

.panel {
  background: #fff;
  border: 1px solid #d1d9ea;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 8px 22px rgba(20, 44, 55, 0.07);
}

.panel h3 {
  margin-bottom: 0.7rem;
}

.hours {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  border-bottom: 1px dashed #d8dff0;
  padding-bottom: 0.34rem;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.small-note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.steps-list {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
}

.steps-list li {
  padding-left: 0.18rem;
}

.stacked-actions {
  display: grid;
  gap: 0.62rem;
}

.stacked-actions .btn {
  width: 100%;
}

.page-title-block {
  max-width: 780px;
}

.page-title-block p {
  color: var(--muted);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.appointment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.code-steps {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  align-items: start;
}

.mini-figure {
  margin: 0;
  background: #fff;
  border: 1px solid #d1d9ea;
  border-radius: var(--radius);
  padding: 0.75rem;
}

.mini-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0e7f4;
}

.mini-figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.mini-figure-spaced {
  margin-top: 0.8rem;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.2rem 0 0.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 28px rgba(20, 44, 55, 0.18);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Doctolib floating quick-access widget (always visible) */
.doctolib-widget {
  position: fixed;
  top: 200px;
  right: 0;
  display: block;
  text-align: center;
  background: #00264c;
  color: #00264c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  font-family: "Sora", "Montserrat", sans-serif;
  width: auto;
  border-radius: 4px 0 0 4px;
  padding: 5px;
  z-index: 999;
  opacity: 0.92;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

.doctolib-widget a {
  display: block;
  color: #00264c;
  text-decoration: none;
  padding: 6px 10px;
  margin-top: 5px;
  background: #fff;
  border-radius: 4px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.doctolib-widget a:hover,
.doctolib-widget a:focus-visible {
  opacity: 0.9;
  outline: 2px solid #f5f5f5;
  outline-offset: 2px;
  text-decoration: none;
}

.doctolib-widget img {
  display: inline-block;
  height: 18px;
  margin: 3px 0;
  vertical-align: middle;
  width: auto;
}

@media (max-width: 600px) {
  .doctolib-widget {
    top: auto;
    bottom: 10px;
    right: 0;
    width: auto;
    padding: 4px;
  }
  .doctolib-widget a {
    font-size: 15px;
    padding: 5px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doctolib-widget a {
    transition: none;
  }
}

.contact-summary {
  background: linear-gradient(180deg, rgba(235, 244, 241, 0.66), rgba(242, 247, 245, 0));
}

.visit-greeting {
  margin: 0;
  text-align: center;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quote {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.quote p {
  margin: 0 0 0.85rem;
  color: #3e444a;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.cta-band {
  padding-top: 3.2rem;
  padding-bottom: 4.2rem;
}

.cta-inner {
  background: linear-gradient(135deg, #3e444a, #44607f 58%, #8aa4b8);
  border-radius: var(--radius);
  color: #ffffff;
  padding: 2.25rem;
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  box-shadow: 0 18px 42px rgba(58, 80, 105, 0.26);
}

.cta-inner p {
  margin: 0;
  color: #edf2ff;
}

.cta-inner .btn-primary {
  background: #ffffff;
  color: #3a4d65;
}

.cta-inner .btn-primary:hover {
  background: #edf2ff;
}

.site-footer {
  border-top: 1px solid #dae1ee;
  background: #f8f9fd;
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-weight: 600;
}

.reveal {
  animation: reveal-in 0.65s ease both;
}

.services-grid .service-card:nth-child(2) {
  animation-delay: 0.04s;
}

.services-grid .service-card:nth-child(3) {
  animation-delay: 0.08s;
}

.services-grid .service-card:nth-child(4) {
  animation-delay: 0.12s;
}

.services-grid .service-card:nth-child(5) {
  animation-delay: 0.16s;
}

.services-grid .service-card:nth-child(6) {
  animation-delay: 0.2s;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legal pages */
.legal-body {
  min-height: 100vh;
}

.legal-wrap {
  padding: 3.5rem 0 4rem;
}

.legal-content {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem;
  box-shadow: 0 12px 30px rgba(16, 36, 44, 0.08);
}

.legal-content h1 {
  margin-bottom: 1.2rem;
}

.legal-content h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.15rem;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.legal-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.1rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-nav {
  margin-bottom: 1.1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.legal-nav a {
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .contact-grid,
  .quote-grid,
  .appointment-grid,
  .code-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
  }

  .hero {
    padding-top: 3.9rem;
  }

  .quickpanel {
    max-width: 540px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .section {
    padding: 3.1rem 0;
  }

  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.12rem;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: calc(100% + 0.6rem);
    background: #ffffff;
    border: 1px solid #c6d0e8;
    border-radius: var(--radius);
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.72rem;
    border-radius: 6px;
    background: #f5f7ff;
    border: 1px solid #dde3f2;
  }

  .site-nav .nav-dropdown-toggle {
    padding: 0.65rem 0.72rem;
    border-radius: 6px;
    background: #f5f7ff;
    border: 1px solid #dde3f2;
  }

  .site-nav .nav-item {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0.32rem 0 0;
  }

  .nav-dropdown-menu a {
    padding: 0.62rem 0.72rem;
    background: #f5f7ff;
    border: 1px solid #dde3f2;
  }

  .site-nav .nav-emphasis {
    text-align: center;
    border-color: transparent;
  }

  .services-grid,
  .contact-grid,
  .quote-grid,
  .appointment-grid,
  .code-steps {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
  }

  .service-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
  }

  .service-card img {
    grid-row: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .service-card p {
    min-height: auto;
  }

  .hero {
    padding-top: 3.25rem;
    padding-bottom: 3.4rem;
  }

  .hero-actions,
  .intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .intro-actions .btn {
    width: 100%;
  }

  .cta-inner,
  .legal-content {
    padding: 1.35rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead {
    font-size: 1rem;
  }
}

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

  .skip-link {
    transition: none;
  }

  .reveal {
    animation: none;
  }

  .btn,
  .service-card {
    transition: none;
  }
}
