/* Online-Termine (termin.pacomed.de). Eine Spalte, große Ziele für den Finger, Systemschrift (nichts wird nachgeladen). */
:root {
  --ink: #0b1f3a;
  --muted: #55627a;
  --line: #d9dfeb;
  --bg: #f4f6fb;
  --card: #ffffff;
  --primary: #1257b0;
  --primary-ink: #ffffff;
  --soft: #e8f0fc;
  --ok: #0b6b47;
  --ok-soft: #e3f4ec;
  --warn: #8a4b00;
  --warn-soft: #fdf1dc;
  --danger: #b3261e;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2fa;
    --muted: #aab4c8;
    --line: #2f3b52;
    --bg: #0e1626;
    --card: #162033;
    --primary: #8bb8ff;
    --primary-ink: #0b1f3a;
    --soft: #1d2c47;
    --ok: #7fd8ae;
    --ok-soft: #12332a;
    --warn: #ffcf87;
    --warn-soft: #3a2c12;
    --danger: #ff9a92;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page { max-width: 720px; margin: 0 auto; padding: 20px 16px 32px; }

a { color: var(--primary); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 10px; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
ul { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 2; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Kopf der Praxis */
.practice { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.practice h1 { font-size: 1.7rem; margin: 0; }
.practice h1 a { color: inherit; text-decoration: none; }
.practice-kicker { margin: 0 0 2px; color: var(--primary); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.practice-address { margin: 4px 0 0; color: var(--muted); }
.phone { display: flex; flex-direction: column; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; }
.phone-label { font-size: .8rem; color: var(--muted); }
.phone-number { font-weight: 700; color: var(--ink); }

.welcome { color: var(--muted); margin-bottom: 18px; white-space: pre-line; }

/* Karten und Schritte */
.card, .step, .summary, .aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.card.ok { border-color: var(--ok); background: var(--ok-soft); }
.step.done { padding-bottom: 14px; }
.step-no {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: 6px;
  border-radius: 50%; background: var(--soft); color: var(--primary); font-size: .9em; font-weight: 700;
}
.step.done .step-no { background: var(--ok-soft); color: var(--ok); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices.small { margin-bottom: 6px; }
.choice, .time, .offer, .button {
  display: inline-block; min-height: 44px; padding: 9px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.choice:hover, .time:hover, .offer:hover, .button:hover { border-color: var(--primary); }
.choice.on, .offer.on { border-color: var(--primary); background: var(--soft); color: var(--primary); }
.choices.small .choice { min-height: 38px; padding: 6px 13px; font-weight: 500; font-size: .95rem; }

.offers { display: grid; gap: 10px; }
.offer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; width: 100%; border-radius: var(--radius); padding: 12px 16px; }
.offer-meta { color: var(--muted); font-weight: 400; }
.offer.on .offer-meta { color: inherit; }

.day { color: var(--muted); font-weight: 600; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time { min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.more { margin: 18px 0 0; }

/* Hinweise */
.note { padding: 10px 14px; border-radius: 10px; background: var(--soft); white-space: pre-line; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.small { font-size: .9rem; color: var(--muted); }
.lines { white-space: pre-line; margin: 0; }
.aside { background: transparent; color: var(--muted); font-size: .95rem; }
.aside h2 { font-size: 1rem; color: var(--ink); }
.aside ul { list-style: disc; padding-left: 20px; }
.aside li { margin-bottom: 6px; }
.aside summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.aside[open] summary { margin-bottom: 10px; }

/* Zusammenfassung und Terminlink */
.summary { border-color: var(--primary); background: var(--soft); }
.summary-when, .when { font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; }
.summary-what { margin: 0; color: var(--muted); }
.when.struck { text-decoration: line-through; color: var(--muted); }

/* Formular */
.form { display: grid; gap: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: grid; gap: 5px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
input, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: inherit;
}
textarea { resize: vertical; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 14px 0 0; }
.button { border-radius: 12px; }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.button.danger { border-color: var(--danger); color: var(--danger); }
button.link { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; }

.foot { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; display: grid; gap: 2px; color: var(--muted); font-size: .85rem; }
.foot-note { font-size: .8rem; }
.foot-links { font-size: .85rem; }
.foot-links a { color: var(--muted); }
.legal h2 { margin-top: 22px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
form.inline { display: inline; }
.legal .lines { margin: 0 0 12px; }
