/* ===========================================================================
   AK Vorarlberg – Terminbuchung Steuerservice · Kunden-Flow
   Mobile-first, WCAG 2.1 AA.
   =========================================================================== */

:root {
  --rot:      #E30613;   /* Warnungen & Aktionen */
  --rot-dark: #c40010;
  /* Rot als TEXTfarbe (Fehlermeldungen, Countdown): AK-Rot erreicht auf --bg nur
     4,3:1, gefordert 4,5:1 (WCAG 1.4.3). Flächen/Buttons bleiben --rot. */
  --rot-text: #c40010;
  --blau:     #2F52A0;   /* Kalender-Auswahl & Dauer-Chip */
  --blauhell: #dff2fd;   /* getroffene Auswahl / Hinweise */
  --rothell:  #fdeaec;

  --bg:       #eef1f5;
  --card:     #ffffff;
  --ink:      #18202c;
  --muted:    #5b6472;
  --line:     #dfe4ea;

  --ok-bg:    #e7f5ec;
  --ok-line:  #b7dfc4;
  --ok-ink:   #1c5233;

  --radius: 10px;
  --maxw:   34rem;
  --font:   system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 1px 2px rgba(16,30,54,.06), 0 14px 34px -14px rgba(16,30,54,.28);

  /* AK-CI-Variablen fuer das interne Dashboard (dashboard.css nutzt diese aus app.css;
     hier definiert, damit die Dashboard-Shell Farben/Rahmen behaelt). */
  --ak-blau:        #003a70;
  --ak-blau-dunkel: #002648;
  --ak-akzent:      #e2001a;
  --ak-text:        #1a1a1a;
  --ak-text-leise:  #555a60;
  --ak-flaeche:     #ffffff;
  --ak-grund:       #f2f4f7;
  --ak-linie:       #d5dae1;
  --ak-fokus:       #1565c0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0e131b; --card:#151c27; --ink:#e7ecf3; --muted:#9aa5b4; --line:#26303e;
    --blauhell:#12324a; --rothell:#3a1417; --rot-text:#ff6b73;
    --ok-bg:#12321f; --ok-line:#2b6a41; --ok-ink:#b7dfc4;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 20px 44px -18px rgba(0,0,0,.65);
  }
}
:root[data-theme="dark"] {
  --bg:#0e131b; --card:#151c27; --ink:#e7ecf3; --muted:#9aa5b4; --line:#26303e;
  --blauhell:#12324a; --rothell:#3a1417; --rot-text:#ff6b73;
  --ok-bg:#12321f; --ok-line:#2b6a41; --ok-ink:#b7dfc4;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 20px 44px -18px rgba(0,0,0,.65);
}

/* --- Reset / Basis -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* hidden muss auch Komponenten mit eigener display-Regel (.note/.dauer) verbergen. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1rem/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; }
h1, h2, h3, p { margin: 0 0 1rem; }

/* --- a11y ----------------------------------------------------------------- */
.tb-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--rot); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.tb-skip:focus { left: .5rem; top: .5rem; }

/* --- Kennzeichnung Testumgebung (nur wenn nicht Produktion) --------------- */
.tb-envband {
  padding: .45rem 1rem;
  text-align: center;
  font-size: .85rem;
  line-height: 1.4;
  color: #5f370e;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0, 0, 0, .04) 14px 28px),
    #fff3c4;
  border-bottom: 3px solid #d69e2e;
}
:root[data-theme="dark"] .tb-envband { color: #f6e05e; background-color: #3a3115; border-bottom-color: #ecc94b; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.tb-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Header --------------------------------------------------------------- */
.tb-header { background: var(--card); border-bottom: 1px solid var(--line); }
.tb-header__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.tb-logo { height: 34px; width: auto; }
.tb-logo--dark { display: none; }
.tb-service {
  font-size: .72rem; font-weight: 700; color: var(--rot);
  letter-spacing: .06em; text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tb-logo--light { display: none; }
  :root:not([data-theme="light"]) .tb-logo--dark  { display: inline-block; }
}
:root[data-theme="dark"] .tb-logo--light { display: none; }
:root[data-theme="dark"] .tb-logo--dark  { display: inline-block; }

/* --- Eigener Header-Stil, .tb-header bleibt unberührt --- */
.tb-header--intern { background: var(--ak-blau); border-bottom: 1px solid var(--ak-blau-dunkel); }
.tb-header__inner--intern {
  max-width: var(--maxw); margin: 0 auto; padding: .75rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; text-align: center;
}
.tb-header__intern-titel { font-size: .95rem; font-weight: 700; color: #fff; }
.tb-header__intern-zurueck { font-size: .8rem; color: #fff; text-decoration: underline; opacity: .9; }
.tb-header__intern-zurueck:hover, .tb-header__intern-zurueck:focus-visible { opacity: 1; }

/* --- Stepper -------------------------------------------------------------- */
.tb-steps { background: var(--card); border-bottom: 1px solid var(--line); }
.tb-steps ol {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem .6rem .8rem;
  list-style: none; display: flex;
}
.tb-step {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.tb-step::before {
  content: ""; position: absolute; top: 12px; left: -50%;
  width: 100%; height: 2px; background: var(--line); z-index: 0;
}
.tb-step:first-child::before { display: none; }
.tb-step.is-done::before, .tb-step.is-active::before { background: var(--rot); }
.tb-step__dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--line); color: var(--muted);
  font-size: .75rem; font-weight: 700; position: relative; z-index: 1;
}
.tb-step.is-done .tb-step__dot, .tb-step.is-active .tb-step__dot {
  background: var(--rot); border-color: var(--rot); color: #fff;
}
.tb-step__label { font-size: .62rem; color: var(--muted); text-align: center; line-height: 1.15; }
.tb-step.is-active .tb-step__label { color: var(--ink); font-weight: 700; }

/* --- Main ----------------------------------------------------------------- */
.tb-main {
  flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}
.tb-main:focus { outline: none; }
.tb-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .3rem; }
.tb-lead  { color: var(--muted); margin: 0 0 1.1rem; }

/* --- Footer --------------------------------------------------------------- */
.tb-footer { background: var(--card); border-top: 1px solid var(--line); font-size: .78rem; }
.tb-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: .9rem 1rem 1.1rem; }
.tb-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin: 0 0 .2rem; }
.tb-footer a { color: var(--blau); text-decoration: none; }
.tb-footer a:hover { text-decoration: underline; }
.tb-sep { color: var(--muted); opacity: .6; }
.tb-footer__legal { margin: .45rem 0 0; color: var(--muted); text-align: center; }
/* Links im Fließtext nicht nur per Farbe unterscheidbar (WCAG 1.4.1). */
.tb-footer__legal a { text-decoration: underline; }
.tb-version {
  margin: .6rem 0 0;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: .72rem; color: var(--muted);
}
/* Versionskennung inline am Ende der Footer-Zeile. */
.tb-ver { font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace; color: var(--muted); }
/* Hält „Tel.: +43…" beim Zeilenumbruch (Mobil) zusammen; Desktop steht ohnehin alles in einer Zeile. */
.tb-nowrap { white-space: nowrap; }

/* ===========================================================================
   Flow-Komponenten
   =========================================================================== */

/* --- Fragen / Optionen ---------------------------------------------------- */
.q { margin-bottom: 1.3rem; }
.q-label { font-weight: 600; font-size: .95rem; margin: 0 0 .55rem; line-height: 1.35; }
.req { color: var(--rot); font-weight: 700; margin-left: .1rem; }
.q-help { font-size: .8rem; color: var(--blau); text-decoration: none; margin-left: .4rem; white-space: nowrap; }
.q-help:hover { text-decoration: underline; }

.opt {
  display: flex; gap: .6rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem .8rem; background: var(--card); cursor: pointer;
}
.opt + .opt { margin-top: .5rem; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt .radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line);
  flex: 0 0 auto; margin-top: 1px; display: grid; place-items: center;
}
.opt:has(input:checked) { border-color: var(--blau); box-shadow: 0 0 0 1px var(--blau) inset; background: var(--blauhell); }
.opt:has(input:checked) .radio { border-color: var(--blau); }
.opt:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blau); }
.opt:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 2px; }
.otxt { font-size: .9rem; }
.otxt strong { font-weight: 600; }
.otxt small { display: block; color: var(--muted); font-size: .82rem; }
.otxt small.warn { color: var(--rot); font-weight: 600; }

/* --- Jahres-Chips --------------------------------------------------------- */
.years { display: flex; flex-wrap: wrap; gap: .5rem; }
.year { position: relative; }
.year input { position: absolute; opacity: 0; width: 0; height: 0; }
.year span {
  display: block; min-width: 60px; text-align: center; padding: .5rem .7rem;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 600;
  background: var(--card); cursor: pointer; font-variant-numeric: tabular-nums;
}
.year:has(input:checked) span { border-color: var(--blau); background: var(--blauhell); color: var(--blau); }
.year:has(input:focus-visible) span { outline: 3px solid var(--blau); outline-offset: 2px; }
.hint-mini { font-size: .78rem; color: var(--muted); margin: .45rem 0 0; }
.hint-mini--eng { margin: -.2rem 0 .55rem; }
.tb-trace { white-space: pre-wrap; font-size: .8rem; }

/* --- Modalität ------------------------------------------------------------ */
.modgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.mod { position: relative; display: flex; }
.mod input { position: absolute; opacity: 0; width: 0; height: 0; }
.mod span.box {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem .8rem; text-align: center; background: var(--card); cursor: pointer;
}
.mod .ico { color: var(--muted); }
.mod .txt { display: block; font-weight: 600; margin-top: .35rem; font-size: .9rem; }
.mod:has(input:checked) span.box { border-color: var(--blau); box-shadow: 0 0 0 1px var(--blau) inset; background: var(--blauhell); }
.mod:has(input:checked) .ico { color: var(--blau); }
.mod:has(input:focus-visible) span.box { outline: 3px solid var(--blau); outline-offset: 2px; }

/* --- Dauer-Chip ----------------------------------------------------------- */
.dauer {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blau); border: 0; border-radius: 999px;
  padding: .55rem 1.05rem; font-weight: 700; color: #fff; margin: 1.3rem 0;
}
.dauer svg { color: #fff; }

/* --- Hinweise ------------------------------------------------------------- */
.note { display: flex; gap: .6rem; padding: .85rem .9rem; border-radius: var(--radius); font-size: .88rem; align-items: flex-start; }
.note svg { flex: 0 0 auto; margin-top: 1px; }
.note-warn { background: var(--rothell); border: 1px solid #f4b8bf; color: #7a0009; }
.note-warn svg { color: var(--rot); }
.note-info { background: var(--blauhell); border: 1px solid #b9e2f6; color: #0e3a52; }
.note-info svg { color: #0e6f9c; }
.note a { color: inherit; font-weight: 700; }
/* Note als eigenständiger Block (z. B. Status „angefragt" auf der Termin-Detailseite) —
   gleicher Abstand wie .status-card. */
.note--abstand { margin: 0 0 1.1rem; }
/* Note mit zentriertem Text (Box bleibt volle Breite), z. B. „keine Termine buchbar". */
.note--zentriert { justify-content: center; text-align: center; }
:root[data-theme="dark"] .note-warn, :root[data-theme="dark"] .note-info { color: var(--ink); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; padding: .8rem 1.2rem; border-radius: var(--radius);
  border: 0; background: var(--rot); color: #fff; cursor: pointer; min-height: 48px;
  text-decoration: none;
}
.btn:hover { background: var(--rot-dark); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--card); color: var(--rot); border: 1.5px solid var(--rot); }
.btn-ghost:hover { background: var(--rothell); }
/* Sekundär-Button (Zurück/Abbrechen): weiße Fläche + Rahmen, klar als Button erkennbar
   (die frühere Füllung lag zu nah an der Seitenfarbe). */
.btn-quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: #e9edf2; }
:root[data-theme="dark"] .btn-quiet { background: #26303e; border-color: var(--line); }
.btnrow { display: flex; gap: .6rem; margin-top: 1.4rem; }
/* Beide Buttons exakt gleich breit — flex-basis 0 + min-width:0, damit der lange
   Text von „Terminanfrage absenden" (min-content) den Abbrechen-Button nicht
   schmaler drückt (v. a. auf schmalen Mobil-Breiten). */
.btnrow > * { flex: 1 1 0; min-width: 0; }
.btnrow .btn { width: 100%; }
/* Zeile mit „Zurück"-Button unter Hinweis-/Kalenderseiten. */
.back-row { margin-top: 1.2rem; }
.back-row--eng { margin-top: 1rem; }

/* --- Kalender ------------------------------------------------------------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.cal-nav .navbtn {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--rot);
  text-decoration: none;
}
.cal-nav .navbtn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.cal-nav .whenline { text-align: center; line-height: 1.25; }
.cal-nav .whenline b { font-size: .92rem; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin-bottom: 1.2rem; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: .18rem;
  padding: .45rem .1rem .4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); cursor: pointer; min-height: 58px; justify-content: center;
  color: inherit; text-decoration: none;
}
.day .dow { font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.day .dnum { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.day.sel { background: var(--blau); border-color: var(--blau); color: #fff; }
.day.sel .dow { color: rgba(255,255,255,.8); }
.day.off { background: var(--bg); border-color: var(--line); cursor: not-allowed; }
.day.off .dow, .day.off .dnum { color: var(--muted); }

.daysel-head { font-size: .9rem; font-weight: 700; margin: 0 0 .7rem; }
.daypart { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: .2rem 0 .5rem; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.1rem; }
.slot {
  min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--rot); }
.slot.sel { background: var(--blau); border-color: var(--blau); color: #fff; }
.slot-form { display: contents; }

/* --- Termin-Box / Summary ------------------------------------------------- */
.termin-box { background: var(--blauhell); border: 1px solid #b9e2f6; border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1.2rem; }
.termin-box h2 { display: flex; align-items: center; gap: .45rem; font-size: .92rem; margin: 0 0 .55rem; color: #0e3a52; }
:root[data-theme="dark"] .termin-box, :root[data-theme="dark"] .termin-box h2 { border-color: var(--line); color: var(--ink); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: .28rem .8rem; font-size: .88rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.reserv { font-size: .86rem; color: var(--muted); margin: 0 0 1.2rem; line-height: 1.5; }
.reserv svg { vertical-align: -3px; margin-right: .35rem; }
.reserv b { color: var(--rot-text); font-variant-numeric: tabular-nums; }

/* --- Formular ------------------------------------------------------------- */
.formhead { font-size: .98rem; font-weight: 700; margin: 1.5rem 0 .7rem; }
.field { margin-bottom: .85rem; }
.label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: .92rem; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); min-height: 44px;
}
.textarea { min-height: 80px; resize: vertical; }
.row2 { display: flex; gap: .6rem; align-items: flex-start; } .row2 > * { flex: 1; }
.row-plz { display: flex; gap: .6rem; align-items: flex-start; } .row-plz .plz { max-width: 38%; } .row-plz .ort { flex: 1; }
.tel-row { display: flex; gap: .6rem; } .tel-row .select { max-width: 9.5rem; }

/* Landesvorwahl-Combobox (durchsuchbar, volle Länderliste) */
.tel-row .vorwahl { position: relative; flex: 0 0 auto; width: 10rem; }
.tel-row .vorwahl .vw-toggle { max-width: none; }
.vw-toggle { display: flex; align-items: center; gap: .4rem; width: 100%; text-align: left; cursor: pointer; }
.vw-toggle .vw-code { font-variant-numeric: tabular-nums; }
.vw-toggle .vw-caret { margin-left: auto; color: var(--muted); font-size: .8rem; }
.vw-pop {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: min(21rem, 80vw);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0,0,0,.18); padding: .5rem;
}
.vw-search { margin-bottom: .4rem; }
.vw-list { list-style: none; margin: 0; padding: 0; max-height: 15rem; overflow-y: auto; }
.vw-opt { display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem; border-radius: 7px; cursor: pointer; font-size: .9rem; }
.vw-opt:hover { background: var(--blauhell); }
.vw-opt .vw-code { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.vw-empty { color: var(--muted); font-size: .85rem; padding: .4rem .55rem; margin: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .65rem 0; font-size: .85rem; line-height: 1.5; }
/* Sicherheitsprüfung (Captcha-Widget) unter den Einwilligungen */
.frc-captcha { margin: 1rem 0 .25rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--rot); flex: 0 0 auto; }
.check a { color: var(--blau); }
.legaltext { font-size: .8rem; color: var(--muted); margin: .5rem 0; }
.legaltext a { color: var(--blau); }
.divider { height: 1px; background: var(--line); margin: 1.3rem 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Erfolg --------------------------------------------------------------- */
.ok-head { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.ok-head svg { color: #1e7a3d; flex: 0 0 auto; }
.ok-head h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.feedback-dauer { font-weight: 700; }

.fehler { background: var(--rothell); border: 1px solid #f4b8bf; color: #7a0009; padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1.1rem; }
:root[data-theme="dark"] .fehler { color: var(--ink); }

/* Feldweise Fehlermarkierung (roter Rahmen + Meldung unter dem Feld). */
.input.hat-fehler, .select.hat-fehler { border-color: var(--rot); box-shadow: 0 0 0 1px var(--rot) inset; }
.feld-fehler { color: var(--rot-text); font-size: .8rem; margin: .25rem 0 0; }

/* Status-Card (z. B. „storniert") — prominent, oben auf der Termin-Detailseite. */
.status-card { border-radius: 12px; padding: .9rem 1rem; margin: 0 0 1.1rem; display: flex; gap: .6rem; align-items: flex-start; }
.status-card svg { flex: 0 0 auto; margin-top: 1px; }
.status-card b { display: block; }
/* Plain-Überschrift (z. B. „Ihre Angaben") mit Icon — ohne Card/Farbe. */
.angaben-head { display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; }
.angaben-head svg { color: var(--muted); }

.status-card--rot { background: var(--rothell); border: 1px solid #f4b8bf; color: #7a0009; }
.status-card--rot svg { color: var(--rot); }
.status-card--gruen { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }
.status-card--gruen svg { color: #1e7a3d; }
:root[data-theme="dark"] .status-card--rot, :root[data-theme="dark"] .status-card--gruen { color: var(--ink); }

/* ===========================================================================
   Termin-/Storno-Seite (/termin/{uid})
   =========================================================================== */
.tb-note { color: var(--muted); }
.tb-h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.tb-daten { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.tb-daten th { text-align: left; vertical-align: top; width: 9rem; padding: .4rem .75rem .4rem 0; color: var(--muted); font-weight: 600; }
.tb-daten td { padding: .4rem 0; }
.tb-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); padding: .6rem .8rem; border-radius: 6px; margin: .75rem 0; }
.tb-form { margin-top: 1rem; }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; padding: .8rem 1.2rem; border: 0; border-radius: var(--radius); background: var(--rot); color: #fff; cursor: pointer; min-height: 48px; }
.tb-btn:hover { background: var(--rot-dark); }
.tb-btn--ghost { background: var(--card); color: var(--rot); border: 1.5px solid var(--rot); }
.tb-btn--ghost:hover { background: var(--rothell); }

/* ===========================================================================
   Responsive: Desktop nutzt die Breite. Mobile-first bleibt der Default;
   ab hier nur „nach oben" aufgebaut. Kein Rahmen/keine Karte — nur eine breitere,
   zentrierte Spalte. Trick: --maxw pro Breakpoint/Schritt überschreiben; alle
   Layout-Container (Header/Stepper/Main/Footer) nutzen var(--maxw), damit weitet ein
   einziges Neusetzen alles bündig auf. Der Kalender-Schritt (body.flow-breit) geht am
   weitesten (mehr Uhrzeiten pro Reihe → weniger Scrollen); die Text-Schritte bleiben
   in einer angenehm lesbaren Spaltenbreite.
   =========================================================================== */
@media (min-width: 768px) {
  body { --maxw: 48rem; }
  body.flow-breit { --maxw: 60rem; }

  .tb-main { padding-top: 1.6rem; }

  /* Kalender nutzt die zusätzliche Breite: mehr Uhrzeiten pro Reihe, größere Tage. */
  body.flow-breit .week { gap: .5rem; }
  body.flow-breit .day  { min-height: 66px; }
  body.flow-breit .slots { grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); }
}

@media (min-width: 1200px) {
  body { --maxw: 52rem; }
  body.flow-breit { --maxw: 75rem; }   /* ~1200px — Seite ausnützen, weniger Scrollen */
}

/* --- Reduzierte Bewegung -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
