/* ============================================================
   Urologie Solln · Coming-Soon page
   Palette: Glacial Aesop (hell). Display: Cormorant Garamond.
   ============================================================ */

:root {
  --bg:        #F4F2EE;   /* greige stage */
  --surface:   #FFFFFF;   /* paper */
  --ink:       #1F1F1D;   /* text */
  --ink-muted: #5C5C56;   /* secondary text */
  --accent-1:  #A8C0B4;   /* frost-green / brand sage */
  --accent-2:  #8C8674;   /* warm khaki */
  --accent-3:  #3F4742;   /* slate, used for headlines & lines */

  --border:        color-mix(in oklab, var(--ink) 12%, transparent);
  --border-soft:   color-mix(in oklab, var(--ink)  6%, transparent);
  --accent-1-soft: color-mix(in oklab, var(--accent-1) 28%, var(--bg) 72%);
  /* Deep accent darkened to >=3:1 on white so large italic headings
     stay WCAG-readable; body links use --accent-3 instead. */
  --accent-1-deep: color-mix(in oklab, var(--accent-1) 55%, var(--accent-3) 45%);

  --font-display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --font-body:    'Albert Sans', system-ui, -apple-system, Segoe UI, sans-serif;

  --shell-max: 92rem;
  --shell-pad: clamp(1.25rem, 4vw, 3rem);
  --header-h:  clamp(5rem, 7vw, 6.5rem);  /* slightly taller header */
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.075rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--accent-3);
  margin: 0.75rem 0 1.5rem;
}
.display em {
  font-style: italic;
  color: var(--accent-1-deep);
}
.display-s {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--accent-3);
  margin: 0.5rem 0 1.25rem;
}
.display-s em { font-style: italic; color: var(--accent-1-deep); }

.lede {
  font-size: clamp(1.1rem, 1.1vw + 0.85rem, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 42rem;
  margin: 0 0 1rem;
}
.note {
  color: var(--ink-muted);
  max-width: 38rem;
  font-size: 0.98rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface); /* same white as the logo background */
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: calc(var(--header-h) - 1.4rem);
  width: auto;
  max-height: 5.5rem;
}
.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-1-deep);
  border-bottom-color: var(--accent-1-deep);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.25rem, 4.5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}
.hero::before {
  /* faint frost-green halo on the right */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 30rem at 92% 12%,
      color-mix(in oklab, var(--accent-1) 28%, transparent) 0%,
      transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.hero__text { max-width: 42rem; }
.hero__logo { display: none; }
@media (min-width: 56rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero__logo {
    display: block;
    justify-self: center;
  }
  .hero__logo img {
    width: min(30rem, 100%);
    height: auto;
  }
}

.booking {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--accent-3);
  max-width: 40rem;
}

/* Primary CTA button — slate for WCAG-AA contrast (frost green is
   reserved for surfaces and decorative lines). */
.btn-book {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--accent-3);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--accent-3);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-book:hover,
.btn-book:focus-visible {
  background: color-mix(in oklab, var(--accent-3) 82%, var(--accent-1) 18%);
  transform: translateY(-1px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}
.hero__mail {
  color: var(--accent-3);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__mail:hover { color: var(--ink); }

/* ---------- doctor ---------- */
.doctor {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.doctor__inner {
  display: grid;
  grid-template-columns: 1fr;      /* mobile: photo on top */
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
@media (min-width: 44rem) {
  .doctor__inner { grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); }
}
.doctor__photo {
  margin: 0;
  max-width: 21rem;
  justify-self: center;
}
@media (min-width: 44rem) {
  .doctor__photo { justify-self: start; }
}
.doctor__photo img {
  border: 1px solid var(--border-soft);
  border-radius: 2px;
}
.doctor__quote {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  max-width: 34rem;
}

.services__cta {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
}

/* ---------- services ---------- */
.services {
  padding-block: clamp(3rem, 6vw, 6rem);
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-lede { color: var(--ink-muted); margin: 0; max-width: 40rem; }


/* ---------- services ticker (one card tall, auto-scroll) ---------- */
.patients-line {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--accent-3);
  border-left: 2px solid var(--accent-1);
  padding-left: 0.75rem;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}
.ticker__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-width: 17rem;
  padding: 1.6rem 2rem;
  border-right: 1px solid var(--border-soft);
}
.ticker__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--accent-3);
  white-space: nowrap;
}
.ticker__sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}
@media (max-width: 40rem) {
  .ticker__card { min-width: 13rem; padding: 1.2rem 1.4rem; }
  .ticker__title { font-size: 1.2rem; white-space: normal; }
  .ticker__sub { white-space: normal; }
  .ticker__track { animation-duration: 36s; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* ---------- visit ---------- */
.visit {
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.visit__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 56rem) {
  .visit__inner { grid-template-columns: 1fr 1fr; }
}
.visit__details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.visit__row .eyebrow { display: block; margin-bottom: 0.35rem; }
.visit__row p,
.visit__row address {
  margin: 0;
  font-style: normal;
  color: var(--ink);
  font-size: 1rem;
}
.visit__row strong { font-weight: 600; }

.visit__hours {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
}
.visit__hours > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
}
.visit__hours dt { color: var(--ink-muted); }
.visit__hours dd { margin: 0; color: var(--ink); }

.visit__map {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  border: 1px solid var(--border);
  background: var(--bg);
}
.map {
  width: 100%;
  height: clamp(20rem, 38vw, 28rem);
  border: 0;
  display: block;
  filter: saturate(0.85) contrast(0.97);
}
.map--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(28rem 16rem at 50% 40%,
      color-mix(in oklab, var(--accent-1) 18%, transparent) 0%,
      transparent 70%),
    var(--bg);
  filter: none;
}
.map__pin { width: 2.4rem; height: 2.4rem; }
.map__address {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-3);
}
.map__consent {
  margin: 0;
  max-width: 26rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.map__consent a { color: var(--accent-3); }
.map__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border-soft);
}
.link-underline {
  color: var(--accent-3);
  text-decoration: underline;
  text-decoration-color: var(--accent-1-deep);
  text-underline-offset: 3px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 1.5rem;
  background: var(--bg);
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover { border-bottom-color: var(--accent-3); }

/* ---------- impressum page ---------- */
.legal {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--accent-3);
  margin: 0 0 1.5rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--accent-3);
  margin: 2rem 0 0.5rem;
}
.legal p, .legal address {
  font-style: normal;
  max-width: 44rem;
  margin: 0 0 1rem;
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p {
    animation: rise 0.9s ease-out both;
  }
  .hero p { animation-delay: 0.15s; }
  .hero .note { animation-delay: 0.3s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Doctolib widget (official template, adapted: "Termin"
   only, self-hosted logo image, no Montserrat download) ---------- */
.doctolib-widget {
  position: fixed;
  top: 200px;
  right: 0;
  display: block;
  text-align: center;
  background: #00264c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  width: auto;
  border-radius: 4px 0 0 4px;
  padding: 5px;
  z-index: 999;
  opacity: 0.9;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}
.doctolib-widget img {
  display: inline-block;
  height: 18px;
  margin: 3px 0;
  vertical-align: middle;
  width: auto;
}
.doctolib-widget a {
  display: block;
  color: #00264c;
  text-decoration: none;
  padding: 6px;
  margin-top: 5px;
  background: #fff;
  border-radius: 4px;
  font-weight: 700;
  transition: 0.2s;
}
.doctolib-widget a:hover,
.doctolib-widget a:focus {
  opacity: 0.9;
  outline: 2px solid #f5f5f5;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .doctolib-widget {
    top: auto;
    bottom: 10px;
    right: 0;
    width: auto;
    padding: 4px;
  }
  .doctolib-widget a {
    font-size: 16px;
    font-weight: 700;
    padding: 5px;
  }
}
