* {
  box-sizing: border-box;
}

:root {
  --header: #e2d5ee;
  --nav: #ceb2e0;
  --brand: #bf91c3;
  --nav-text: #594462;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
}

.site-header {
  background: var(--header);
  text-align: center;
  padding: 28px 20px 16px;
}

.brand {
  display: inline-block;
  color: var(--brand);
  font-size: 48px;
  line-height: 1.1;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto;
}

.site-header p {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: clamp(18px, 4vw, 24px);
}

/* Navigation: visible on desktop, toggled by the hamburger on mobile. */
.site-nav {
  padding: 6px 12px;
  background: var(--nav);
}

.menu-toggle,
.menu-button {
  display: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-links > a,
.nav-links summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 14px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 19px;
  cursor: pointer;
}

.nav-links > a:hover,
.nav-links summary:hover,
.nav-links a[aria-current="page"] {
  color: #392642;
}

.nav-links details {
  position: relative;
}

.nav-links summary {
  list-style: none;
}

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

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 260px;
  padding: 8px;
  background: #f4edf8;
  box-shadow: 0 4px 12px #0002;
}

.submenu a {
  display: block;
  min-height: 44px;
  padding: 12px;
  color: var(--nav-text);
  text-decoration: none;
}

.submenu a:hover {
  background: var(--header);
}

a:focus-visible,
.nav-links summary:focus-visible {
  outline: 3px solid var(--nav-text);
  outline-offset: 2px;
}

main {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 40px;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.home {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
}

.about {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

h1,
h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  margin: 0 0 18px;
}

p {
  margin: 0 0 20px;
  line-height: 1.55;
}

.price {
  font-size: inherit;
  font-weight: bold;
}
figure {
  margin: 0;
}

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

.service figure {
  padding-top: 28px;
}

.home figure img,
.service figure img {
  aspect-ratio: auto;
  object-fit: contain;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 100px);
}

.booking h2 {
  margin-top: 22px;
}

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

li {
  line-height: 1.55;
  margin-bottom: 6px;
}

main a {
  color: inherit;
}

@media (max-width: 760px) {
  .site-header {
    padding: 22px 16px 16px;
  }

  .brand {
    font-size: 38px;
  }

  .site-nav {
    position: relative;
    padding: 8px 16px;
  }

  /* Keep the checkbox available to keyboard and screen-reader users. */
  .menu-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--nav-text);
  }

  .menu-button:hover,
  .menu-toggle:checked + .menu-button {
    background: var(--header);
  }

  .menu-toggle:focus-visible + .menu-button {
    outline: 3px solid var(--nav-text);
    outline-offset: 2px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links > a,
  .nav-links summary {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px;
    text-align: left;
    font-size: 17px;
  }

  .nav-links details {
    min-width: 0;
  }

  .submenu {
    position: static;
    min-width: 0;
    max-width: none;
    box-shadow: none;
  }

  main {
    padding: 28px 20px;
  }

  .page,
  .home,
  .about,
  .booking {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .service figure {
    padding-top: 0;
  }

  figure {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 24px 16px;
  }

  .page,
  .home,
  .about,
  .booking {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  summary {
    transition: color 150ms ease, background-color 150ms ease;
  }
}

@media print {
  .site-nav {
    display: none;
  }

  main {
    padding: 24px;
  }
}
/* Clear paths from the homepage and scannable service overviews. */
.path-links,
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.path-card,
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid #e2d5ee;
  border-radius: 10px;
  background: #fbf8fc;
  text-decoration: none;
}

.path-card strong {
  font-size: 22px;
}

.path-card span,
.service-card p {
  line-height: 1.5;
}

.service-card h2 {
  margin: 0;
  font-size: 22px;
}

.service-card h2 a {
  text-decoration: none;
}

.service-card h2 a:hover,
.text-link:hover {
  text-decoration: underline;
}

.card-meta {
  margin: auto 0 0;
  font-weight: bold;
}

.text-link {
  margin-top: 6px;
  color: var(--nav-text);
  font-weight: bold;
}


.overview-intro {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--nav-text);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.button-link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--nav-text);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.button-link:hover {
  background: #392642;
}

.overview-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.birth-options .service-list {
  margin: 30px 0;
}

@media (max-width: 760px) {
  .path-links,
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* Center the two main visitor paths across the full homepage. */
.home .path-links {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 760px);
}

.home-booking {
  grid-column: 1 / -1;
  text-align: center;
}

/* Booking form: works with the existing booking HTML. */
.booking-with-form {
  --booking-ink: #493650;
  --booking-muted: #6d5c75;
  --booking-border: #d8c9df;
  --booking-accent: #654571;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.booking-with-form > section { min-width: 0; }
.booking-with-form > section:first-child > h1 { color: var(--booking-ink); }
.booking-with-form > section:last-child {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #e8deed;
  border-radius: 20px;
  background: #faf7fc;
  color: var(--booking-ink);
}
.booking-with-form > section:last-child h2 { font-size: 25px; }
.booking-with-form #afbudspolitik { scroll-margin-top: 24px; }
.booking [hidden] { display: none !important; }

.booking-form {
  padding: clamp(20px, 3vw, 36px);
  margin: 26px 0 36px;
  border: 1px solid var(--booking-border);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #faf6fc 100%);
  box-shadow: 0 12px 36px rgba(73, 54, 80, .08);
  color: var(--booking-ink);
}
.booking-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-bottom: 22px;
}
.booking-field label,
.booking-times legend {
  color: var(--booking-ink);
  font-weight: bold;
  font-size: 17px;
}
.booking-field label span,
.booking-field small {
  color: var(--booking-muted);
  font-weight: normal;
}
.booking-field small { font-size: 14px; line-height: 1.5; }
.booking-field input,
.booking-field select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #c7b5d0;
  border-radius: 10px;
  background: #fff;
  color: #382c3e;
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(73, 54, 80, .03);
  accent-color: var(--booking-accent);
  color-scheme: light;
}
.booking-field select { text-overflow: ellipsis; cursor: pointer; }
.booking-field input:hover,
.booking-field select:hover { border-color: #9d7dab; }
.booking-field input:focus,
.booking-field select:focus { border-color: var(--booking-accent); }
.booking-field input:disabled,
.booking-field select:disabled {
  background: #f0eaf3;
  color: #76647e;
  cursor: not-allowed;
}
.booking-field input[aria-invalid="true"],
.booking-field select[aria-invalid="true"] { border-color: #a13d48; background: #fff8f8; }

.booking-times {
  min-width: 0;
  margin: 4px 0 24px;
  padding: 16px 0 0;
  border: 0;
}
.booking-times legend { padding: 0; }
.booking-times p,
.booking-help,
.booking-status { color: var(--booking-muted); font-size: 15px; line-height: 1.6; }
.booking-times p { margin-bottom: 14px; }
.booking-times[aria-busy="true"] { opacity: .65; cursor: progress; }
.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 10px;
}
.booking-slot { position: relative; min-width: 0; cursor: pointer; }
.booking-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
}
.booking-slot span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  background: #fff;
  color: var(--booking-ink);
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.booking-slot:hover span { border-color: var(--booking-accent); background: #f2eaf6; }
.booking-slot input:checked + span {
  border-color: var(--booking-accent);
  background: var(--booking-accent);
  color: #fff;
  box-shadow: 0 3px 9px rgba(101, 69, 113, .18);
}
.booking-slot input:disabled + span {
  border-color: #e1d7e6;
  background: #f2edf5;
  color: #88788f;
  box-shadow: none;
  cursor: not-allowed;
}
.booking input:focus-visible,
.booking select:focus-visible,
.booking button:focus-visible,
.booking-slot input:focus-visible + span,
.booking-success:focus-visible {
  outline: 3px solid var(--booking-accent, #654571);
  outline-offset: 3px;
}

/* A clear divider introduces the patient contact details. */
.booking-form h2 {
  margin: 30px 0 10px;
  padding-top: 28px;
  border-top: 1px solid var(--booking-border);
  color: var(--booking-ink);
  font-size: clamp(23px, 3vw, 28px);
}
.booking-form h2 + .booking-help { margin: 0 0 24px; }
.booking-help { margin: 14px 0 0; }
.booking-selection,
.booking-demo,
.booking-success,
.booking-error {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--booking-border);
  border-left: 4px solid var(--booking-accent, #654571);
  border-radius: 12px;
  background: #f2eaf6;
  color: var(--booking-ink, #493650);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.booking-selection { font-weight: bold; }
.booking-success { border-color: #a9cbb4; border-left-color: #39714c; background: #f0f8f2; color: #275539; }
.booking-error { border-color: #e0b1b8; border-left-color: #a13d48; background: #fff3f4; color: #822d38; }
.booking-demo { border-color: #dfc78f; border-left-color: #957126; background: #fff8e8; color: #6b531d; }
.booking-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 22px;
  padding: 16px;
  border: 1px solid #e4d9e9;
  border-radius: 12px;
  background: #f5eff8;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}
.booking-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--booking-accent);
  cursor: pointer;
}
.booking-check span { min-width: 0; }
.booking-check a { text-underline-offset: 3px; }
.booking-submit {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--booking-accent, #654571);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(101, 69, 113, .16);
}
.booking-submit:hover:not(:disabled) { background: #51375b; }
.booking-submit:active:not(:disabled) { background: #432c4d; }
.booking-submit:disabled { background: #e0d5e5; color: #6b5775; cursor: not-allowed; box-shadow: none; }
.booking-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 760px) {
  .booking-with-form { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .booking-form { border-radius: 18px; }
  .booking-with-form > section:last-child { border-radius: 18px; }
}
@media (max-width: 380px) {
  .booking-form { padding: 18px 14px; }
  .booking-check { padding: 12px; gap: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .booking-field input,
  .booking-field select,
  .booking-slot span,
  .booking-submit { transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
}
@media print {
  .booking-form,
  .booking-with-form > section:last-child { box-shadow: none; background: #fff; }
}
