/* ============================================================
   Hausarztpraxis am Stadtgarten — Konzept-Demo · MOBILE-FIRST
   Register: clinical, sachlich, Trust + Funktion. Geist durchgehend,
   ruhige Petrol-Palette, Hairlines, viel Ruhe. Keine Editorial-Serif.
   Basis = 375px, min-width-Queries erweitern nach oben.
   ============================================================ */

:root {
  --petrol: #0e6e82;
  --petrol-deep: #0a5263;
  --petrol-tint: #e4f1f4;
  --petrol-tint-2: #f0f7f9;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --ink: #16202a;
  --ink-soft: #25323f;
  --muted: #51616f;
  --dim: #6a7785;

  --ok: #1c8a5b;
  --ok-tint: #e6f4ec;
  --alert: #b5462f;
  --alert-tint: #fbece8;

  --hair: rgba(16, 32, 42, 0.10);
  --hair-soft: rgba(16, 32, 42, 0.06);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 9999px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --pad: 20px;
  --sec: 56px;
  --maxw: 1180px;

  --shadow-card: 0 1px 2px rgba(16,32,42,0.04), 0 8px 24px -18px rgba(16,32,42,0.30);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Konzept-Banner ---------- */
.concept-banner {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 12.5px; line-height: 1.45; padding: 8px 16px;
}
.concept-banner strong { font-weight: 650; }
.concept-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Topnav ---------- */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(246,248,251,0.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--hair); }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--petrol); color: #fff;
  position: relative;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text .b1 { font-weight: 680; font-size: 15.5px; letter-spacing: -0.02em; color: var(--ink); }
.brand-text .b2 { font-size: 11px; letter-spacing: 0.04em; color: var(--dim); }
.topnav-links { display: none; }
.topnav-actions { display: flex; align-items: center; gap: 10px; }
.btn-call {
  display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--hair); color: var(--ink);
  font-weight: 600; font-size: 15px; background: var(--surface);
}
.btn-call svg { width: 17px; height: 17px; color: var(--petrol); }
.nav-toggle {
  width: 48px; height: 48px; border: 1px solid var(--hair); background: var(--surface);
  border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(16,32,42,0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px); background: var(--surface); padding: 22px var(--pad); transform: translateX(100%); transition: transform 0.32s var(--ease); display: flex; flex-direction: column; gap: 4px; }
.drawer.open .drawer-panel { transform: none; }
.drawer-close { align-self: flex-end; width: 44px; height: 44px; border: none; background: none; font-size: 26px; color: var(--ink); cursor: pointer; }
.drawer a { padding: 14px 6px; font-size: 18px; font-weight: 550; color: var(--ink); border-bottom: 1px solid var(--hair-soft); }
.drawer a.cta { margin-top: 14px; background: var(--petrol); color: #fff; border: none; border-radius: var(--r-pill); text-align: center; font-weight: 650; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 650; font-size: 16px; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), background 0.2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--petrol); }

/* ---------- Hero / Status ---------- */
.hero { padding-top: 30px; padding-bottom: 8px; }
.eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--petrol); margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
.hero .lead { margin-top: 16px; font-size: 17.5px; color: var(--muted); max-width: 38ch; }
.hero-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.hero-cta .btn { width: 100%; }

.status-card { margin-top: 26px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.status-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--hair-soft); }
.status-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }
.status-dot.closed { background: var(--alert); box-shadow: 0 0 0 4px var(--alert-tint); }
.status-label { font-weight: 650; color: var(--ink); font-size: 16px; }
.status-sub { font-size: 14px; color: var(--dim); margin-left: auto; text-align: right; }
.hours { padding: 8px 20px 16px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--hair-soft); font-size: 15px; }
.hours-row:last-child { border-bottom: none; }
.hours-row.today { font-weight: 650; color: var(--ink); }
.hours-row .day { color: var(--muted); }
.hours-row.today .day { color: var(--ink); }
.hours-row .time { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.status-phone { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px; background: var(--petrol-tint-2); border-top: 1px solid var(--hair-soft); font-weight: 600; color: var(--petrol-deep); }
.status-phone svg { width: 17px; height: 17px; }

/* ---------- Akut-Hinweis ---------- */
.acute { margin-top: 26px; border: 1px solid var(--hair); border-left: 4px solid var(--alert); background: var(--surface); border-radius: var(--r-md); padding: 16px 18px; }
.acute h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.acute h3 svg { width: 18px; height: 18px; color: var(--alert); }
.acute p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.acute .nums { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.acute .num { font-weight: 650; color: var(--ink); background: var(--surface-2); border-radius: var(--r-sm); padding: 7px 12px; font-size: 14px; }
.acute .num b { color: var(--alert); }

/* ---------- Sections ---------- */
section.block { padding-top: var(--sec); padding-bottom: var(--sec); }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
.sec-head p { margin-top: 10px; color: var(--muted); max-width: 52ch; }
.divline { border: none; border-top: 1px solid var(--hair); margin: 0; }

/* Leistungen */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.svc { background: var(--surface); padding: 20px; display: flex; gap: 15px; align-items: flex-start; }
.svc .ic { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--petrol-tint); color: var(--petrol-deep); display: grid; place-items: center; flex: none; }
.svc .ic svg { width: 22px; height: 22px; }
.svc h3 { font-size: 16.5px; }
.svc p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* Ablauf */
.steps { display: grid; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 20px; display: flex; gap: 16px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; font-size: 16px; }
.step h3 { font-size: 16.5px; }
.step p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* Team */
.team-grid { display: grid; gap: 14px; }
.doc { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 22px; display: flex; gap: 16px; align-items: center; }
.avatar { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 680; font-size: 21px; color: #fff; background: linear-gradient(150deg, var(--petrol), var(--petrol-deep)); letter-spacing: 0.02em; }
.doc h3 { font-size: 17px; }
.doc .role { font-size: 14px; color: var(--petrol-deep); font-weight: 600; margin-top: 2px; }
.doc .meta { font-size: 13.5px; color: var(--dim); margin-top: 4px; }

/* Anfahrt */
.map-ph { aspect-ratio: 16 / 11; border-radius: var(--r-lg); border: 1px solid var(--hair); background:
  repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 14px, #e7edf2 14px, #e7edf2 28px);
  display: grid; place-items: center; color: var(--dim); font-weight: 600; font-size: 14px; }
.contact-lines { margin-top: 20px; display: grid; gap: 14px; }
.cl { display: flex; gap: 13px; align-items: flex-start; }
.cl .ic { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--petrol-tint); color: var(--petrol-deep); display: grid; place-items: center; flex: none; }
.cl .ic svg { width: 19px; height: 19px; }
.cl .k { font-size: 13px; color: var(--dim); letter-spacing: 0.02em; }
.cl .v { font-weight: 600; color: var(--ink); }
.cl a.v { color: var(--petrol-deep); }

/* CTA-Band */
.cta-band { background: var(--petrol); color: #fff; border-radius: var(--r-lg); padding: 30px 24px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 6vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 10px; }
.cta-band .btn { margin-top: 20px; background: #fff; color: var(--petrol-deep); }
.cta-band .btn:hover { background: #eef6f8; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #cdd6de; padding: 44px 0 28px; margin-top: var(--sec); }
.foot-grid { display: grid; gap: 28px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot a { color: #cdd6de; }
.foot a:hover { color: #fff; }
.foot .fcol p, .foot .fcol li { font-size: 14.5px; margin-bottom: 7px; }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #8e9aa5; }
.sig { color: #aeb9c2; }
.sig em { font-style: italic; color: #fff; }
.sig b { color: #fff; font-weight: 600; }
.sig .dot { color: var(--petrol); }

/* ---------- Termin-Flow ---------- */
.booking { max-width: 720px; margin: 0 auto; }
.progress { display: flex; gap: 8px; margin: 22px 0 26px; }
.progress .p { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.progress .p.done, .progress .p.active { background: var(--petrol); }
.progress .p.active { opacity: 0.55; }
.step-pane { display: none; }
.step-pane.active { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-pane h2 { font-size: 1.5rem; }
.step-pane .hint { color: var(--muted); margin-top: 8px; font-size: 15px; }
.choices { margin-top: 22px; display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--hair); border-radius: var(--r-md); padding: 16px 18px; cursor: pointer; min-height: 60px; transition: border-color 0.18s ease, background 0.18s ease; font: inherit; color: var(--ink); }
.choice:hover { border-color: var(--petrol); }
.choice.sel { border-color: var(--petrol); background: var(--petrol-tint-2); }
.choice .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--petrol-tint); color: var(--petrol-deep); display: grid; place-items: center; flex: none; }
.choice .ic svg { width: 21px; height: 21px; }
.choice .t { font-weight: 600; }
.choice .d { font-size: 13.5px; color: var(--dim); font-weight: 400; }
.choice .check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hair); flex: none; display: grid; place-items: center; }
.choice.sel .check { background: var(--petrol); border-color: var(--petrol); }
.choice.sel .check::after { content: ""; width: 7px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-1px); }

.slots { margin-top: 20px; }
.daygroup { margin-bottom: 18px; }
.daygroup .dh { font-weight: 650; color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.slot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { height: 46px; border: 1.5px solid var(--hair); border-radius: var(--r-sm); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink); transition: border-color 0.15s ease; }
.slot:hover { border-color: var(--petrol); }
.slot.sel { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.field { margin-top: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--alert); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--hair); border-radius: var(--r-sm);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--petrol); }
.field .err { color: var(--alert); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--alert); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--petrol); }

.flow-nav { margin-top: 26px; display: flex; gap: 12px; }
.flow-nav .btn { flex: 1; }
.flow-nav .btn-back { flex: 0 0 auto; }

.summary { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 18px 20px; margin-top: 18px; }
.summary .sr { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hair-soft); font-size: 15px; }
.summary .sr:last-child { border-bottom: none; }
.summary .sr .k { color: var(--dim); }
.summary .sr .v { font-weight: 600; color: var(--ink); text-align: right; }

.done-card { text-align: center; padding: 12px 0; }
.done-card .big { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-tint); display: grid; place-items: center; margin: 0 auto 20px; }
.done-card .big svg { width: 34px; height: 34px; color: var(--ok); }

.note-box { font-size: 13.5px; color: var(--dim); background: var(--petrol-tint-2); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 20px; }

/* generic page header */
.page-hero { padding: 34px 0 8px; }
.page-hero h1 { font-size: clamp(1.8rem, 7.4vw, 2.4rem); }
.page-hero p { margin-top: 12px; color: var(--muted); max-width: 54ch; }
.crumb { font-size: 13.5px; color: var(--dim); margin-bottom: 12px; }
.crumb a { color: var(--petrol-deep); }

.prose p { margin-top: 14px; color: var(--ink-soft); }
.prose h2 { margin-top: 30px; font-size: 1.4rem; }

.note { font-size: 13px; color: var(--dim); font-style: italic; }

/* ============================================================
   >= 720px  (Tablet)
   ============================================================ */
@media (min-width: 720px) {
  :root { --pad: 32px; --sec: 80px; }
  .hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; padding-top: 44px; }
  .hero-main { grid-column: 1; }
  .status-card { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .acute { grid-column: 1; max-width: none; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { width: auto; }
  .hero .lead { font-size: 18.5px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .anfahrt-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .slot-row { grid-template-columns: repeat(4, 1fr); }
  .nav-toggle { display: none; }
  .topnav-links { display: flex; align-items: center; gap: 4px; }
  .topnav-links a { padding: 9px 14px; border-radius: var(--r-sm); font-size: 15.5px; font-weight: 550; color: var(--ink-soft); }
  .topnav-links a:hover { background: var(--surface-2); color: var(--ink); }
  .topnav-links a.active { color: var(--petrol-deep); font-weight: 650; }
  .btn-call { display: inline-flex; }
}

/* ============================================================
   >= 1024px  (Desktop)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --sec: 92px; }
  .hero h1 { font-size: 2.9rem; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .step-pane.active { animation: none; }
  .btn, .choice, .slot, .drawer, .drawer-panel { transition: none; }
}
