/* Gestaltung angelehnt an hno-volksbankhaus.de:
   Weinrot #902228, Anthrazit #333, Hellgrau #F8F9FA, Futura (hier: Jost, frei lizenziert) + Helvetica. */

@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --red: #902228;
  --red-hover: #ac595e;
  --red-dark: #761b20;
  --rose: #e3c8c9;
  --rose-soft: #f6eded;
  --ink: #333333;
  --text: #5b5b5b;
  --muted: #7c7c7c;
  --light: #f8f9fa;
  --line: #e6e7e9;
  --dark: #2f2f2f;
  --ok: #2f6f45;
  --ok-soft: #e8f2eb;
  --warn: #8a5a12;
  --warn-soft: #fbf1e0;
  --futura: "Jost", "Futura", "Futura PT", "Century Gothic", sans-serif;
  --helv: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 4px 18px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 16px/1.55 var(--helv);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: var(--red); }
a:hover { color: var(--red-hover); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--light); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.inline { display: inline; margin: 0; }
.accent { color: var(--red); }

/* Infoleiste oben */
.topbar { background: var(--dark); color: #fff; font-size: 14px; letter-spacing: .01em; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }

/* Kopfzeile */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .07); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 10px 0; }
.logo-img { display: block; height: 60px; width: auto; }
.logo-sub { font: 400 13px/1.2 var(--helv); color: var(--muted); }
.logo-text { display: flex; flex-direction: column; line-height: 1.12; border-left: 3px solid var(--red); padding-left: 10px; }
.logo-l1, .logo-l2 { font: 700 13px var(--helv); color: var(--red); }
.logo-l3 { font: 400 10.5px var(--helv); color: var(--muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 44px; }
.nav a { font: 700 14px var(--helv); color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--red); }
.nav-user { display: flex; align-items: center; gap: 44px; font: 400 14px var(--helv); color: var(--muted); }

/* Kopfbereich */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 56px; padding-bottom: 44px; }
.hero-text { max-width: 680px; }
.hero h1 { font: 700 clamp(30px, 3.6vw, 42px)/1.22 var(--helv); color: var(--ink); margin: 0 0 18px; }
.hero h1 .accent { display: block; }
.lead { font: 400 18px/1.6 var(--helv); color: var(--text); margin: 0; }

/* Abschnittsüberschriften wie „Unser Behandlungsspektrum“ */
.section-title { font: 400 30px/1.25 var(--futura); color: var(--ink); text-align: center; margin: 0 0 12px; }
.section-sub { font: 400 18px/1.5 var(--futura); color: var(--text); text-align: center; max-width: 62ch; margin: 0 auto 36px; }

/* Graue Fläche mit weißen Karten (wie „Unser Behandlungsspektrum“) */
.band { background: #fff; padding: 48px 0 72px; flex: 1; }
.band-full { padding-top: 56px; }
.form-section { padding: 56px 0 72px; background: #fff; flex: 1; }
.form-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 64px; align-items: start; }
.form-col .section-title { text-align: left; scroll-margin-top: 110px; }
.form-col .section-sub { text-align: left; margin: 0 0 26px; }
.form-next { margin-top: 44px; }
.consent { scroll-margin-top: 110px; }
.more { margin-top: 18px; }
.more summary { cursor: pointer; font: 700 15px var(--helv); color: var(--red); }
.more .terms { margin-top: 14px; }

/* Agenda am Rand */
.agenda { position: sticky; top: 112px; }
.agenda-title { font: 700 14px var(--helv); color: var(--ink); margin: 0 0 12px; }
.agenda ol { list-style: none; margin: 0; padding: 0; }
.agenda li { position: relative; padding: 0 0 22px 24px; font-size: 15px; line-height: 20px; color: var(--muted); }
.agenda li:last-child { padding-bottom: 0; }
.agenda li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border: 2px solid #c9ccd0; border-radius: 50%; background: #fff; }
.agenda li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 2px; background: #e1e3e6; }
.agenda a { color: var(--text); text-decoration: none; }
.agenda a:hover { color: var(--red); }
.agenda li.is-active::before, .agenda li.is-done::before { border-color: var(--red); background: var(--red); }
.agenda li.is-active a { color: var(--red); font-weight: 700; }
.agenda li.is-done:not(:last-child)::after { background: var(--red); }
.points { margin: 0; padding-left: 20px; }
.points li { margin-bottom: 8px; }
.form-col .btn-block, .card-center .btn-block { width: auto; }
.card-center { max-width: 680px; }
.note { margin: 28px 0 0; font-size: 15px; color: var(--text); }
.card { background: #fff; }
.card + .card { margin-top: 32px; }
.narrow { max-width: 440px; margin: 0 auto; }
.narrow-left { max-width: 640px; margin-top: 24px; }

h1, h2, h3 { margin: 0 0 .5em; }
.card h2, .band h1 { font: 400 26px/1.25 var(--futura); color: var(--ink); }
.band-admin h1 { font: 400 30px/1.2 var(--futura); }
.card h2 + .hint { margin-top: -6px; }
.form h2 { margin-top: 34px; }
.form h2:first-of-type { margin-top: 0; }
.hint { font: 400 16px/1.5 var(--futura); color: var(--text); margin: 0 0 18px; }
.fine { font-size: 13px; color: var(--muted); }
.center { text-align: center; }

/* Formular */
.field { display: block; font: 700 14px var(--helv); color: var(--ink); margin-bottom: 18px; }
.field input, .field select, .search input {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  font: 400 16px var(--helv); color: var(--ink); background: #fff;
  border: 1px solid #cfd2d6; border-radius: 4px;
}
.field input:focus, .field select:focus, .search input:focus { outline: 1px solid var(--red); border-color: var(--red); }
.field input[aria-invalid=true] { border-color: var(--red); background: var(--rose-soft); }
.field-dob input { max-width: 240px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.err { color: var(--red); font: 500 13.5px var(--helv); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.terms { padding: 24px 28px; background: var(--light); border-radius: 4px; font-size: 15.5px; color: var(--ink); }
.terms h3 { font: 700 15px var(--helv); color: var(--red); margin: 16px 0 4px; }
.terms h3:first-child { margin-top: 0; }
.terms p { margin: 0 0 8px; line-height: 1.55; }

.services { margin: 10px 0 8px; }
.services summary { cursor: pointer; font: 700 15px var(--helv); color: var(--red); }
.services-body { padding: 6px 0 4px; }
.services h4 { font: 700 15px var(--helv); color: var(--ink); margin: 12px 0 4px; }
.services ul { list-style: none; padding: 0; margin: 0; }
.services li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--line); font-size: 15px; position: relative; }
.services li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.services .price { color: var(--muted); white-space: nowrap; font-size: 14px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 4px; font-size: 15.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }

/* Buttons wie „Online Termin Buchen“ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--helv); letter-spacing: 1.5px;
  padding: 16px 26px; border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; margin-top: 26px; }
.btn-sm { padding: 11px 16px; font-size: 13.5px; letter-spacing: .8px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.alert { background: var(--rose-soft); color: var(--red-dark); padding: 12px 16px; margin: 0 0 20px; font-size: 15px; border-radius: 4px; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }

/* Danke-Seite */
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 16px; color: var(--ink); }
.checks .ico { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }

/* Rezeption */
.linkish { background: none; border: 0; padding: 0; font: 700 14px var(--helv); color: var(--ink); cursor: pointer; }
.linkish:hover { color: var(--red); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { margin-bottom: 4px; }
.dash-head .hint { margin: 0; }
.search { display: flex; gap: 8px; min-width: min(100%, 380px); }
.search input { margin-top: 0; flex: 1; min-width: 0; }
.tabs { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { text-decoration: none; color: var(--ink); font: 700 14px var(--helv); }
.tab:hover, .tab.is-active { color: var(--red); }
.table-wrap { overflow-x: auto; }
.entries { width: 100%; border-collapse: collapse; font-size: 15px; }
.entries th { text-align: left; font: 700 14px var(--helv); color: var(--ink); padding: 12px 20px 12px 0; border-bottom: 1px solid var(--ink); }
.entries td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.entries td.empty { color: var(--muted); padding: 32px 0; }
.entries td[data-l="Eingang"] { white-space: nowrap; color: var(--text); }
.actions > a, .actions > form { display: inline-block; margin: 0 16px 6px 0; }
.chip { background: none; border: 0; padding: 0; font: 700 14px var(--helv); color: var(--ink); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--red); }
.chip-print { color: var(--red); }
.chip-muted { color: var(--muted); font-weight: 400; }
.chip-danger { color: var(--muted); font-weight: 400; }
.chip-danger:hover { color: var(--red); }
.status { white-space: nowrap; }
.st-open { font-weight: 700; color: var(--ink); }
.st-found { color: var(--ink); }
.st-done { color: var(--ok); }
.st-cancel { color: var(--muted); }
.by { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.minor { display: block; color: var(--red); font-size: 13px; margin-top: 2px; cursor: help; }
.help { margin-top: 36px; }
.help summary { cursor: pointer; font: 700 15px var(--helv); color: var(--red); }
.help ol { margin: 14px 0 0; padding-left: 20px; color: var(--text); max-width: 760px; }
.help li { margin-bottom: 8px; }
.qr { display: block; margin: 8px auto 6px; }

/* Footer wie Praxisseite */
.footer { background: var(--dark); color: #a9a9a9; font-size: 15px; padding: 46px 0 28px; }
.footer h4 { font: 700 15px var(--helv); color: #fff; margin: 0 0 14px; }
.footer p { margin: 0 0 14px; line-height: 1.8; }
.footer a { color: #a9a9a9; }
.footer a.light { color: #fff; }
.footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid #4a4a4a; margin-top: 18px; padding-top: 20px; font-size: 14px; }
.footer-slim { padding: 18px 0; font-size: 13px; }

@media (max-width: 960px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .agenda { display: none; }
  .nav { gap: 26px; }
}
@media (max-width: 720px) {
  .topbar-phones { display: none; }
  .header { position: static; }
  .header-inner { min-height: 64px; }
  .area-public .nav { display: none; }
  .nav { gap: 16px; flex-wrap: wrap; padding-bottom: 10px; }
  .hero-inner { padding-top: 34px; padding-bottom: 28px; }
  .lead { font-size: 17px; }
  .band, .form-section { padding: 32px 0 48px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 17px; margin-bottom: 26px; }
  .form-next { margin-top: 40px; }
  .terms { padding: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 8px; }
  .search { width: 100%; }
  .entries thead { display: none; }
  .entries tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .entries td { display: flex; gap: 12px; padding: 4px 0; border: 0; }
  .entries td::before { content: attr(data-l); flex: 0 0 104px; color: var(--muted); font-size: 13px; }
  .entries td.actions { flex-wrap: wrap; padding-top: 10px; }
  .entries td.actions::before { flex-basis: 100%; }
  .entries td.empty::before { content: none; }
}
@media print {
  .topbar, .header, .footer, .search, .tabs, .actions, .help { display: none !important; }
  .band { background: #fff; padding: 0; }
}
