/* =================================================================
   Zentrumspraxis — Gynäkologie Schönbühl
   Palette grounded in the practice's wall clock:
   steel-blue rods, honey wall, blush centre disc, near-black hands.
   Pure HTML/CSS, no JavaScript, no frameworks.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Figtree:wght@400;500;600&display=swap');

:root {
  /* --- Clock-derived palette --- */
  --slate:        #41606f;   /* the blue rods — primary accent */
  --slate-deep:   #2c4350;   /* deep shadow side of the rods   */
  --slate-soft:   #8aa3ae;   /* rods lifted, for tints         */
  --honey:        #d59b4f;   /* the lit wall — warm secondary  */
  --honey-soft:   #ecd9b9;   /* wall, far lighter              */
  --blush:        #ecddd3;   /* the calm centre disc           */
  --blush-deep:   #e3cabb;
  --cream:        #faf6f0;   /* page ground — wall, near-white */
  --paper:        #ffffff;
  --ink:          #25303a;   /* the clock hands, warmed        */
  --ink-soft:     #5b6b74;

  --line:         #e9e0d6;
  --shadow:       0 1px 2px rgba(37,48,58,.04), 0 12px 32px -16px rgba(44,67,80,.18);
  --shadow-lift:  0 2px 4px rgba(37,48,58,.05), 0 20px 44px -18px rgba(44,67,80,.28);

  --radius:       18px;
  --radius-lg:    26px;
  --container:    1080px;

  --display: 'Fraunces', Georgia, serif;
  --body:    'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'SOFT' 30, 'WONK' 0, 'opsz' 100;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--slate-deep);
}

p { margin: 0 0 1rem; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slate-deep); }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 1rem;
}
.eyebrow--slate { color: var(--slate-soft); }

/* =================================================================
   The signature: a pure-CSS emblem echoing the wall clock —
   twelve radiating rods around a calm centre disc.
   "Zentrum"-praxis: everything arranged around the middle.
   ================================================================= */
.emblem {
  --size: 340px;
  --rod: var(--slate);
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: none;
}
.emblem__rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -4deg,
    var(--rod) 0deg 8deg,
    transparent 8deg 30deg
  );
  -webkit-mask: radial-gradient(circle closest-side at center,
    transparent 0 45%, #000 47% 99%, transparent 100%);
          mask: radial-gradient(circle closest-side at center,
    transparent 0 45%, #000 47% 99%, transparent 100%);
}
.emblem__disc {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #fff 0%, var(--blush) 55%, var(--blush-deep) 100%);
  box-shadow: inset 0 1px 6px rgba(255,255,255,.7), 0 6px 18px -8px rgba(44,67,80,.4);
}
/* the two hands, frozen near eleven o'clock as in the photograph */
.emblem__disc::before,
.emblem__disc::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
  border-radius: 4px;
  transform-origin: bottom center;
}
.emblem__disc::before {   /* hour hand */
  width: 5px; height: 30%;
  transform: translate(-50%, -100%) rotate(-28deg);
}
.emblem__disc::after {    /* minute hand */
  width: 4px; height: 40%;
  transform: translate(-50%, -100%) rotate(8deg);
}
.emblem__pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* small mark used in the header and footer — rods + disc, no hands */
.mark {
  --size: 34px;
  --rod: var(--slate);
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: none;
}
.mark .emblem__rays {
  background: repeating-conic-gradient(
    from -3.5deg, var(--rod) 0deg 7deg, transparent 7deg 30deg);
}
.mark .emblem__disc {
  inset: 30%;
  box-shadow: none;
}
.mark .emblem__disc::before,
.mark .emblem__disc::after { display: none; }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-block: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--slate-deep);
}
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand__name span { color: var(--honey); }
.brand__logo {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 520px) {
  .brand__logo { height: 44px; }
}

.nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.nav a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--slate-deep); background: var(--blush); }
.nav a[aria-current="page"] {
  color: var(--slate-deep);
  background: var(--blush);
}

/* =================================================================
   Buttons
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary {
  background: var(--slate);
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--slate);
}
.btn--primary:hover { background: var(--slate-deep); color:#fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--slate-deep);
  border-color: var(--slate-soft);
}
.btn--ghost:hover { background: var(--paper); border-color: var(--slate); transform: translateY(-1px); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  font-variation-settings: 'SOFT' 40, 'opsz' 140, 'WONK' 1;
  margin-bottom: 1rem;
}
.hero__title em {
  font-style: italic;
  color: var(--honey);
  font-variation-settings: 'SOFT' 60, 'opsz' 144, 'WONK' 1;
}
.hero__lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__art {
  display: grid;
  place-items: center;
}
.hero .emblem { --size: clamp(240px, 32vw, 380px); }

/* =================================================================
   Generic page header (sub-pages)
   ================================================================= */
.pagehead {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}
.pagehead__title { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.pagehead__lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }

/* =================================================================
   Sections & layout helpers
   ================================================================= */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--blush { background: linear-gradient(180deg, var(--cream), var(--blush) 120%); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section__head { max-width: 58ch; margin-bottom: 2.5rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* =================================================================
   Cards
   ================================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.nav-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--blush-deep);
}
.nav-card__num {
  font-family: var(--display);
  font-size: .85rem;
  color: var(--honey);
  letter-spacing: .04em;
}
.nav-card h3 { font-size: 1.3rem; margin: .4rem 0 .35rem; }
.nav-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; flex: 1; }
.nav-card .go {
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: .94rem;
  color: var(--slate);
  display: inline-flex;
  gap: .4rem;
}
.nav-card:hover .go .arrow { transform: translateX(3px); }
.go .arrow { transition: transform .15s ease; }

/* =================================================================
   Booking cards (Terminvergabe)
   ================================================================= */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.booking__card { text-align: center; align-items: center; display: flex; flex-direction: column; }
.booking__photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--blush);
  box-shadow: var(--shadow);
}
.booking__card h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.booking__role { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; }
.booking__card .btn { margin-top: auto; }

.notice {
  display: flex;
  gap: 1rem;
  background: var(--honey-soft);
  border: 1px solid var(--blush-deep);
  border-left: 4px solid var(--honey);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  color: #6a4f24;
}
.notice strong { color: #5a4115; }
.notice__icon { font-size: 1.3rem; line-height: 1.4; flex: none; }
.notice p { margin: 0; }

/* =================================================================
   Team
   ================================================================= */
.doctor {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}
.doctor + .doctor { margin-top: 2.5rem; }
.doctor__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blush);
  box-shadow: var(--shadow);
}
.doctor__name { font-size: 1.5rem; margin-bottom: .2rem; }
.doctor__title { color: var(--honey); font-weight: 600; font-size: .9rem;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.person { text-align: center; }
.person__photo {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--blush);
  box-shadow: var(--shadow);
}
.person__photo--initials {
  display: grid; place-items: center;
  background: var(--blush);
  color: var(--slate);
  font-family: var(--display);
  font-size: 2.4rem;
}
.person h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.person p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* =================================================================
   Opening hours tables
   ================================================================= */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.hours {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hours__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 1.4rem;
  background: var(--slate);
  color: #fff;
}
.hours__head h3 { color: #fff; font-size: 1.25rem; margin: 0; }
.hours table { width: 100%; border-collapse: collapse; }
.hours td {
  padding: .7rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .98rem;
}
.hours tr:first-child td { border-top: none; }
.hours td:first-child { font-weight: 500; color: var(--ink); }
.hours td:last-child { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours td.closed { color: var(--slate-soft); font-style: italic; }

.ferien {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.ferien td { text-align: left !important; padding-inline: .6rem; }
.ferien td:first-child { color: var(--ink); }

/* =================================================================
   Anfahrt / map
   ================================================================= */
.map-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.6), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(65,96,111,.06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(65,96,111,.06) 38px 39px),
    linear-gradient(135deg, var(--honey-soft), var(--blush));
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.map-pin {
  width: 22px; height: 22px;
  background: var(--slate);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 16px -6px var(--slate-deep);
  margin: 0 auto 1.4rem;
  position: relative;
}
.map-pin::after {
  content:""; position:absolute; inset: 6px;
  background: var(--cream); border-radius: 50%;
}

.info-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding: .9rem 0; border-top: 1px solid var(--line); }
.detail-list li:first-child { border-top: none; }
.detail-list .label {
  display: block; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate-soft); margin-bottom: .15rem;
}
.detail-list .value { font-size: 1.05rem; color: var(--ink); }
.placeholder { color: var(--slate-soft); font-style: italic; }

/* =================================================================
   Empty state (Aktuelles)
   ================================================================= */
.empty {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
  padding-block: 2rem;
}
.empty .mark { --size: 56px; margin: 0 auto 1.5rem; }

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  background: var(--slate-deep);
  color: #cdd9df;
  padding-block: 3rem 2rem;
  margin-top: 1rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer .brand__name { color: #fff; }
.site-footer h4 {
  font-family: var(--body);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate-soft); margin: 0 0 .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li a { color: #cdd9df; text-decoration: none; }
.site-footer li a:hover { color: #fff; }
.footer-note {
  font-size: .85rem; color: var(--slate-soft);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* =================================================================
   Motion — one gentle entrance, honoured only when welcome
   ================================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; transform: scale(.94) rotate(-6deg); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero__copy > *:nth-child(2) { animation-delay: .07s; }
.hero__copy > *:nth-child(3) { animation-delay: .14s; }
.hero__copy > *:nth-child(4) { animation-delay: .21s; }
.hero__art { animation: bloom 1s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: .1s; }

/* =================================================================
   Focus & accessibility
   ================================================================= */
:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  background: var(--slate-deep); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 10px 10px; z-index: 100; transition: transform .15s ease;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .info-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid--3, .grid--2, .booking, .hours-grid, .people { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 220px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
}
