/* book.css — Buchungs- und Verwaltungsseite Widget v2 (SPEC-WIDGET-V2.md §2, §3, §7), VENTURION-Stil (knowledge/websites/design-system.md).
   Hauspalette: Ivory #F5F0E8 Grund, Anthrazit #1A1A2E Text, Gold #C9A84C nur als Akzent (Rahmen,
   Fokus, Linie) — Gold auf Ivory erreicht keine 4,5:1 und traegt deshalb nie Text.
   Fonts lokal (CLO): Inter (variabel) Body/UI, Prata Ueberschriften ab 24 px (Kyrillisch-Regel:
   Prata traegt die ganze Ueberschriften-Ebene in allen drei Sprachen). font-display: swap, keine
   Masken/Verlaeufe hinter Text — Kontrast haengt nicht davon ab, welche Schrift gerade steht. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/prata-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/prata-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ivory: #F5F0E8;
  --paper: #FFFFFF;
  --anthracite: #1A1A2E;
  --text: #1A1A2E;
  --text-2: #4A4A5A;      /* 7,65:1 auf Ivory, 8,68:1 auf Weiß, 8,12:1 auf --tint */
  --gold: #C9A84C;        /* nie Text (2,29:1) — nur Ring, Linie, Punkt */
  --line: #D9D2C4;        /* nur Kartenkanten (dekorativ) */
  --edge: #857B68;        /* Raender von Eingaben/Knoepfen: 4,17:1 auf Weiss (WCAG 1.4.11 ≥ 3:1) */
  --red: #B3261E;         /* 5,76:1 auf Ivory, 6,54:1 auf Weiß */
  --green: #2d6a4f;       /* 6,39:1 auf Weiß */
  --focus: #1A1A2E;
  --radius: 10px;
  /* v2 (SPEC §7) */
  --avail-bg: #F4EAD0;    /* Tag mit freien Zeiten: Anthrazit darauf 14,24:1 */
  --muted: #8A8377;       /* NUR deaktivierte Tage (3,75:1, WCAG 1.4.3-Ausnahme) */
  --sel-2: #4A4A5A;       /* gewählte Zeit, Weiß darauf 8,68:1 */
  --tint: #FBF7EE;        /* gewählte Gesprächsart, Bestätigungssatz */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Prata', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; min-width: 0; overflow-x: hidden; }
body.in-frame { background: transparent; }
[hidden] { display: none !important; } /* hidden gewinnt gegen display:flex/grid der Klassen */
button { font: inherit; color: inherit; }
p { margin: 0 0 .9em; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--anthracite); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sub { color: var(--text-2); font-size: .92rem; }
.brand { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); margin: 0 0 var(--s1); }
.ev-title { font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin: 0 0 var(--s3); letter-spacing: .01em; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 16px 16px 32px; min-width: 0; }
.in-frame .wrap { padding: 0; }

/* ---------- Karte (Calendly: eine Karte, Infoblock links) ---------- */
.bk { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(26, 26, 46, .06); display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; margin: 0 auto; }
.bk > * { min-width: 0; }
.in-frame .bk { border: 0; box-shadow: none; border-radius: 0; background: transparent; }
@media (max-width: 639px) { .wrap { padding: 0 0 24px; } .bk { border-radius: 0; border-left: 0; border-right: 0; } .wrap > .alert, .types-card { margin-left: 16px; margin-right: 16px; } }

/* ---------- Infoblock ---------- */
.info { padding: var(--s4); border-bottom: 1px solid var(--line); }
.host { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s3); --pw: 72px; }
.host-txt { min-width: 0; }
.brand.logo { display: block; width: fit-content; margin: 0 0 var(--s3); padding: 8px 12px; background: var(--anthracite); border-radius: 8px; font-size: 0; line-height: 0; letter-spacing: 0; }  /* Gold-Logo nur auf Anthrazit (Gold auf Weiss 2,29:1) */
.brand.logo img { display: block; height: 24px; width: auto; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--anthracite); color: var(--ivory); display: grid; place-items: center; font-weight: 600; font-size: .85rem; letter-spacing: .04em; border: 2px solid var(--gold); }
/* Berater-Foto: abgerundetes Hochformat 4:5 statt Kreis (Andreas 22.10.: «верхушка головы, бороды … обрезана»). Breite 72/96/120 px, Hoehe = Breite × 1,25. Initialen-Fallback im selben Format. */
.avatar.photo, .avatar.portrait { width: var(--pw); height: calc(var(--pw) * 1.25); border-radius: 14px; }
.avatar.photo { background: var(--anthracite); overflow: hidden; padding: 0; }
.avatar.portrait { font-size: 1.4rem; }
.avatar.photo img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; object-position: center top; display: block; }
.avatar svg { width: 22px; height: 22px; stroke: var(--ivory); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.host-name { font-weight: 600; line-height: 1.3; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 2px; font: inherit; font-size: .85rem; color: var(--text-2); text-decoration: underline; cursor: pointer; min-height: 24px; }
.person { margin-bottom: var(--s4, 16px); }
.host-sub { font-size: .85rem; color: var(--text-2); line-height: 1.3; }
.meta { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.meta li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s2); align-items: start; font-size: .95rem; color: var(--text-2); font-weight: 500; }
.meta li.strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.meta svg { width: 20px; height: 20px; margin-top: 1px; stroke: var(--text-2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.meta li.strong svg { stroke: var(--text); }
.meta li.struck span { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--text-2); }
.desc { font-size: .92rem; color: var(--text-2); margin: var(--s3) 0 0; }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--edge); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .88rem; font-weight: 500; margin: 0 0 var(--s3); min-height: 44px; }
.back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.back:hover { border-color: var(--text); }
@media (max-width: 719px) { .info .desc { font-size: .88rem; line-height: 1.4; margin-top: var(--s2); } } /* mobil: Beschreibung bleibt (Andreas), kompakt unter der Gesprächsart */

/* ---------- Kalender ---------- */
.pk-cal { padding: var(--s4); }
.pk-h, .pk-times-h, .form h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; margin: 0 0 var(--s4); line-height: 1.3; }
.pk-times-h:focus { outline: none; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--s2); gap: var(--s2); }
.month-label { font-weight: 600; font-size: 1rem; text-align: center; }
.nav-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--paper); cursor: pointer; display: grid; place-items: center; padding: 0; }
.nav-btn svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 2; fill: none; }
.nav-btn[aria-disabled="true"] { border-color: var(--line); cursor: default; }
.nav-btn[aria-disabled="true"] svg { stroke: var(--muted); }
.cal-body { position: relative; }
.grid { width: 100%; border-collapse: separate; border-spacing: 0 4px; table-layout: fixed; }
.grid th { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 4px 0 6px; text-align: center; }
.grid td { text-align: center; padding: 0; }
.day { width: 44px; height: 44px; max-width: 100%; border-radius: 50%; border: 0; background: none; cursor: default; position: relative; font-variant-numeric: tabular-nums; font-size: .98rem; color: var(--muted); padding: 0; }
.day.avail { background: var(--avail-bg); color: var(--text); font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--gold); }
.day.avail:hover { box-shadow: inset 0 0 0 2px var(--text); }
.day[aria-selected="true"] { background: var(--anthracite); color: var(--ivory); box-shadow: none; }
.day.today::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.skeleton .day { color: transparent; background: #EFEAE0; }
.skeleton .day.today::after { display: none; }
@media (min-width: 640px) { .day { width: 48px; height: 48px; } }
@media (max-width: 359px) { .day { width: 40px; height: 40px; font-size: .92rem; } }
.overlay { position: absolute; inset: 34px 0 0 0; display: grid; place-items: center; padding: var(--s3); background: rgba(255, 255, 255, .9); }
.in-frame .overlay { background: rgba(255, 255, 255, .94); }
.overlay-box { background: var(--paper); border: 1.5px solid var(--edge); border-radius: var(--radius); padding: var(--s4); text-align: center; max-width: 340px; box-shadow: 0 6px 24px rgba(26, 26, 46, .10); }
.overlay-box p { margin: 0; }
.overlay-box .btn { margin-top: var(--s3); }
.pk-alert p { margin: 0 0 var(--s2); }
.pk-alert .btn { width: auto; padding: 8px 14px; }
.tz { margin: var(--s4) 0 0; }
.tz label { display: flex; align-items: center; gap: var(--s2); font-size: .85rem; font-weight: 600; margin: 0 0 var(--s1); }
.tz label svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 1.7; }
.tz select { width: 100%; max-width: 360px; font: inherit; font-size: .92rem; padding: 9px 10px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--paper); color: var(--text); min-height: 44px; }

/* ---------- Zeiten (senkrecht, Spec §3.4) ---------- */
.pk-times { padding: 0 var(--s4) var(--s4); }
.times-hint { font-size: .85rem; color: var(--text-2); margin: calc(-1 * var(--s3)) 0 var(--s3); }
.times-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.t-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.t-row.picked { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.t-btn { min-height: 48px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--paper); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0 8px; }
.t-btn:hover { border-color: var(--text); box-shadow: 0 0 0 1px var(--gold); }
.t-row.picked .t-btn { background: var(--sel-2); border-color: var(--sel-2); color: #fff; }
.times-more { display: none; }
/* Spalte mit eigener Höhe (≥ 980 px): solange unten Zeiten verdeckt sind, Verlauf + Hinweis am unteren Rand (Calendly-Abschluss) */
.pk-times.more .times-more { display: flex; position: sticky; bottom: calc(-1 * var(--s5)); height: 64px; margin: -40px 0 calc(-1 * var(--s5)); align-items: flex-end; justify-content: center; padding-bottom: 8px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 70%); }
.times-more span { font-size: .8rem; font-weight: 600; color: var(--text-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.times-more span::after { content: ' ↓'; }
.t-next { min-height: 48px; border: 1.5px solid var(--text); border-radius: 8px; background: var(--text); color: var(--ivory); font-weight: 600; cursor: pointer; padding: 0 8px; }

/* ---------- Formular (Schritt 2) ---------- */
.form { padding: var(--s4); }
.form.sending { opacity: .75; pointer-events: none; }
.field { margin: 0 0 var(--s4); min-width: 0; }
.field > label, legend { display: block; font-weight: 600; margin: 0 0 var(--s1); padding: 0; }
.opt { font-weight: 400; color: var(--text-2); }
.hint { display: block; font-size: .85rem; color: var(--text-2); margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], textarea { display: block; width: 100%; max-width: 100%; min-width: 0; font: inherit; padding: 11px 12px; border: 1.5px solid var(--edge); border-radius: 8px; background: var(--paper); color: var(--text); min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
input[aria-invalid="true"]:focus-visible, textarea[aria-invalid="true"]:focus-visible { outline-color: var(--red); outline-offset: 0; }
.count { display: block; font-size: .8rem; color: var(--text-2); margin: 4px 0 0; text-align: right; }
.err { color: var(--red); font-size: .9rem; margin: 4px 0 0; }
.err:empty { display: none; }
#err-sum { margin: 0 0 var(--s3); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.modes { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mode { position: relative; display: block; border: 1.5px solid var(--edge); border-radius: var(--radius); padding: var(--s3); cursor: pointer; background: var(--paper); min-height: 96px; }
.mode input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.m-ico { width: 28px; height: 28px; stroke: var(--text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 0 6px; }
.m-title { display: block; font-weight: 600; } /* Haken-Kreis sitzt in der Icon-Zeile, nicht neben dem Titel */
.m-sub { display: block; font-size: .82rem; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.m-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--paper); }
.mode:has(input:checked) { border: 2px solid var(--text); background: var(--tint); padding: calc(var(--s3) - .5px); }
.mode:has(input:checked) .m-check { background: var(--text); border-color: var(--text); }
.mode:has(input:checked) .m-check::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--ivory); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mode:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset.invalid .mode { border-color: var(--red); }
@media (max-width: 359px) { .modes { grid-template-columns: minmax(0, 1fr); } .mode { min-height: 0; } }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9rem; line-height: 1.5; border: 1.5px dashed var(--edge); border-radius: 8px; padding: var(--s3); margin: 0 0 var(--s4); }
.consent input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--anthracite); flex: none; }
.consent label { font-weight: 400; margin: 0; }
.consent-details { margin: 4px 0 0; }
.consent-details summary { cursor: pointer; color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; font-size: .85rem; width: max-content; max-width: 100%; }
.consent-details[open] summary { margin-bottom: 4px; }
.consent-details p { margin: 0; color: var(--text-2); font-size: .85rem; }
.btn { display: inline-block; width: 100%; text-decoration: none; text-align: center; background: var(--anthracite); color: var(--ivory); border: 1.5px solid var(--anthracite); border-radius: 8px; padding: 14px 20px; font: inherit; font-weight: 600; letter-spacing: .02em; cursor: pointer; min-height: 48px; transition: box-shadow .2s, transform .2s; }
.btn-book { min-height: 52px; }
.btn:hover:not([disabled]) { box-shadow: 0 6px 24px rgba(201, 168, 76, .35); transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn-secondary { background: var(--paper); color: var(--text); border-color: var(--anthracite); }
.btn-row { display: grid; gap: 10px; }
@media (min-width: 480px) { .btn-row { grid-template-columns: 1fr 1fr; } }
.notice { font-size: .82rem; color: var(--text-2); margin: 12px 0 0; }
/* Bot-Schutz (Konzept Formular-Entschlacken 22.10.): EINE Zeile vor dem ersten Feld, Statussymbol rechts. Zustände (#ts-state[data-state]):
   idle (leerer Kreis) → running (Spinner) → done (grüner Haken) | error (roter Rahmen, Wiederholen, Ausweg-Mail). Text zum Status nur für Screenreader. */
.turnstile { margin: 0; min-height: 0; }
.turnstile:not(:empty) { margin: 0 0 10px; }
.botrow { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 var(--s4); font-size: .82rem; line-height: 1.4; color: var(--text-2); }
.botrow .shield { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--text-2); stroke-width: 2; }
.botrow .txt { flex: 1; min-width: 0; }
.botrow .st { flex: none; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; }
.botrow[data-state="idle"] .st { border: 2px solid var(--edge); }
.botrow[data-state="running"] .st, .is-wait::before { border: 2.5px solid var(--line); border-top-color: var(--anthracite); animation: ts-spin .8s linear infinite; }
.botrow[data-state="done"] .st { background: var(--green); position: relative; }
.botrow[data-state="done"] .st::after { content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.botrow[data-state="error"] { border: 1.5px solid var(--red); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: .9rem; flex-wrap: wrap; }
.botrow[data-state="error"] .shield { display: none; }
.botrow[data-state="error"] .st { background: var(--red); position: relative; order: -1; }
.botrow[data-state="error"] .st::after { content: "!"; position: absolute; inset: 0; color: #fff; font-weight: 700; font-size: .8rem; line-height: 20px; text-align: center; }
.botrow[data-state="error"] .txt { flex: 1 1 calc(100% - 28px); }
.botrow .alt { flex-basis: 100%; margin: 0; padding-left: 28px; }
.botrow .retry { width: auto; margin-left: 28px; min-height: 44px; }
.botrow a, .notice-short a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
/* Kurzzeile unter dem Knopf (2 Zeilen) + «Mehr erfahren» (der CLO-geprüfte Kurzhinweis, einen Tipp entfernt) */
.notice-short { font-size: .82rem; color: var(--text-2); margin: 12px 0 0; line-height: 1.45; }
.more { margin: 6px 0 0; }
.more summary { cursor: pointer; color: var(--text); font-size: .82rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; width: max-content; min-height: 32px; display: flex; align-items: center; }
.more p { margin: 4px 0 0; font-size: .82rem; color: var(--text-2); }
input::placeholder, textarea::placeholder { color: var(--text-2); opacity: 1; }
@keyframes ts-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .botrow .st, .is-wait::before { animation: none !important; } }
/* Erfolgsseite: Meet-Link zuerst und gross, Wartezeile mit Spinner (Link entsteht nach ~3 s) */
.meet-box { margin: 0 0 var(--s4); }
.btn-meet { background: #185abc; border-color: #185abc; color: #fff; min-height: 52px; font-size: 1.02rem; }
.btn-meet:hover:not([disabled]) { box-shadow: 0 6px 24px rgba(24, 90, 188, .35); }
.is-wait { display: flex; align-items: center; gap: 10px; }
.is-wait::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; }
.alert { border: 1.5px solid var(--red); border-left-width: 5px; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; background: var(--paper); color: var(--text); }
.alert:empty { display: none; }
.alert .btn { margin-top: 10px; }
.ok { border: 1.5px solid var(--green); border-left-width: 5px; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; background: var(--paper); }

/* ---------- Bestätigung / Verwaltung — Datum/Uhrzeit NIE in Prata (Ziffer 1 ≈ l), Inter 600 mit Tabellenziffern ---------- */
.done { padding: var(--s5) var(--s4); }
.done-title, .m-title-h { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.5rem, 4vw, 1.75rem); line-height: 1.2; margin: 0 0 var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--gold); }
.done-title:focus { outline: none; }
.when { font-family: var(--font-body); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; line-height: 1.2; margin: 0 0 .6em; display: grid; gap: 4px; }
.when-date { font-size: clamp(1.1rem, 3vw, 1.2rem); }
.when-time { font-size: clamp(1.8rem, 6vw, 2rem); letter-spacing: -.01em; }
.when-zone { font-weight: 600; font-size: .8rem; color: var(--text-2); }
.when.struck .when-date, .when.struck .when-time { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.how { border-left: 3px solid var(--gold); background: var(--tint); padding: var(--s3); margin: var(--s3) 0; }
.cal { margin: 14px 0 0; }
.cal-h { margin: 0 0 8px; font-weight: 600; }
.cal-btns { display: grid; gap: 10px; }
.cal-btns .btn { margin-top: 0; display: flex; align-items: center; justify-content: center; } /* umbrechender Name (Google Kalender) bleibt mittig, Nachbarn auf gleicher Linie */
@media (min-width: 560px) { .cal-btns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
/* «Das bringen Sie mit» (Empfehlung Erfolgsseite 22.10.): drei kurze Punkte, darunter ein optionales Feld. Kein Video, kein Preis. */
.prep { margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); }
.prep-h { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 var(--s2); }
.prep-list { margin: 0 0 var(--s4); padding-left: 1.2em; }
.prep-list li { margin: 0 0 2px; font-size: .95rem; }
.goal label { display: block; font-weight: 600; margin: 0 0 var(--s1); }
.goal .btn { margin-top: var(--s2); }
@media (min-width: 560px) { .goal .btn { width: auto; min-width: 160px; } }
.goal-status { margin: var(--s2) 0 0; font-size: .9rem; color: var(--green); }
.goal-status.is-error { color: var(--red); }
.goal-status:empty { display: none; }
.textlinks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.textlinks a { font-weight: 500; }
.textlinks .notice { display: block; margin: 2px 0 0; }

/* ---------- Terminart-Auswahl (Schritt 0, nur bei > 1 Terminart) ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: var(--s5) var(--s4); margin: 0 auto 18px; box-shadow: 0 8px 30px rgba(26, 26, 46, .06); max-width: 720px; }
.in-frame .card { border: 0; box-shadow: none; border-radius: 0; padding: 4px 0 14px; margin: 0; background: transparent; }
.types { display: grid; gap: 10px; }
.type-btn { text-align: left; width: 100%; background: var(--paper); color: var(--text); border: 1.5px solid var(--edge); border-radius: var(--radius); padding: 12px 14px; font: inherit; cursor: pointer; min-height: 56px; }
.type-btn:hover { border-color: var(--anthracite); }
.type-title { display: block; font-weight: 600; }
.type-btn .dur { display: block; font-size: .85rem; color: var(--text-2); }

/* ---------- Breakpoints nach Breite des Widgets (im iframe = Host-Spalte), Spec §2 ---------- */
@media (min-width: 720px) {
  .host { --pw: 96px; }
  .brand.logo img { height: 28px; }
  .bk[data-step="1"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bk[data-step="1"] .info { grid-column: 1 / -1; }
  .bk[data-step="1"] .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk[data-step="1"] .pk-times { padding: var(--s4); border-left: 1px solid var(--line); }
  .bk[data-step="1"]:not(.has-day) .pk-cal { grid-column: 1 / -1; max-width: 560px; }
  .bk[data-step="2"], .bk[data-step="3"] { grid-template-columns: 280px minmax(0, 1fr); max-width: 880px; }
  .bk[data-step="2"] .info, .bk[data-step="3"] .info { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--s5); }
  .bk[data-step="2"] .form, .bk[data-step="3"] .done { padding: var(--s5); }
}
@media (min-width: 980px) {
  .host { --pw: 120px; }
  .host:has(.avatar.photo), .host:has(.avatar.portrait) { flex-direction: column; align-items: flex-start; }
  .brand.logo img { height: 30px; }
  .bk[data-step="1"] { grid-template-columns: 300px minmax(0, 1fr); }
  .bk[data-step="1"].has-day { grid-template-columns: 300px minmax(0, 1fr) 240px; }
  .bk[data-step="1"] .info { grid-column: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: var(--s5); }
  .bk[data-step="1"] .meta { grid-template-columns: minmax(0, 1fr); }
  .bk[data-step="1"]:not(.has-day) .pk-cal { grid-column: auto; max-width: none; }
  .bk[data-step="1"] .pk-cal { padding: var(--s5); }
  .bk[data-step="1"] .pk-times { border-left: 0; padding: var(--s5) var(--s5) var(--s5) 0; max-height: 640px; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
  .in-frame .bk[data-step="1"] .pk-times { max-height: none; overflow: visible; } /* im iframe kein Innen-Scroll, Höhe per postMessage */
  .bk[data-step="2"], .bk[data-step="3"] { grid-template-columns: 300px minmax(0, 1fr); }
}

/* ---------- Verwaltungsseite ---------- */
.manage-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(26, 26, 46, .06); padding: var(--s5) var(--s4); max-width: 720px; margin: 0 auto 18px; }
@media (max-width: 639px) { .manage-card { border-radius: 0; border-left: 0; border-right: 0; } .manage-wrap > .alert, .manage-wrap > .sub { margin-left: 16px; margin-right: 16px; } }
.manage-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; margin: 0 0 var(--s3); }
.manage-head .ev-title { margin: 0; }
.mode-line { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s2); align-items: start; margin: 0 0 var(--s3); color: var(--text-2); font-weight: 500; }
.mode-line svg { width: 20px; height: 20px; margin-top: 1px; stroke: var(--text-2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mode-panel { border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s4); }
@media (max-width: 479px) { .mode-panel { padding: var(--s3); } }
.actions { display: grid; gap: 10px; margin: 14px 0; }
.actions a, .actions button { display: block; text-align: center; text-decoration: none; }
.quiet-action { margin: 12px 0 0; font-size: .92rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); cursor: pointer; min-height: 44px; }
.quiet-action .link-btn { color: var(--text-2); text-decoration-color: var(--line); }
.quiet-action .link-btn:hover { color: var(--red); text-decoration-color: var(--red); }
.status { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid var(--gold); border-radius: 999px; padding: 3px 10px; color: var(--text); }
.status.cancelled { border-color: var(--red); color: var(--red); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; }
.resched { padding: 0; }
.resched .bk { box-shadow: none; }
.picked-line { border-left: 3px solid var(--gold); background: var(--tint); padding: var(--s3); margin: var(--s3) 0; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover:not([disabled]) { transform: none; } }

/* ---------- Datenschutzseiten (datenschutz.html / -ru.html nutzen book.css + .wrap.legal) ----------
   v2 nimmt der .wrap mobil den Seitenrand (Widget-Karte randlos) — die Rechtsseite braucht ihn. Breite Tabellen scrollen in sich,
   lange Links brechen um (gemessen 18.10.: Seite lief bei 375 px auf 427–442 px, auch schon vor v2 wegen des Aufsichts-Links). */
.wrap.legal { padding: 16px 16px 32px; }
.wrap.legal th { overflow-wrap: normal; word-break: normal; } /* Zeilenköpfe nie buchstabenweise umbrechen (Bild 18.10.: „Zw/eck“) */
/* Schmal: Schlüssel-Wert-Tabellen (ohne Kopfzeile) stapeln — Kopf über dem Wert, volle Breite; Tabellen mit Kopfzeile scrollen in sich */
@media (max-width: 479px) {
  .wrap.legal table:not(:has(thead)) tbody, .wrap.legal table:not(:has(thead)) tr, .wrap.legal table:not(:has(thead)) th, .wrap.legal table:not(:has(thead)) td { display: block; width: 100%; }
  .wrap.legal table:not(:has(thead)) th { border-bottom: 0; padding-bottom: 2px; }
}
.wrap.legal table { max-width: 100%; display: block; overflow-x: auto; }
.wrap.legal a, .wrap.legal h1 { overflow-wrap: anywhere; } /* H1 trägt die Adresse venturion.klemensai.com/termine/ (unbrechbar, 427 px bei 375) */

.call-us { text-align: center; font-size: .9rem; margin: var(--s4, 24px) 0 0; line-height: 1.5; }
.call-us a { font-weight: 600; white-space: nowrap; }

/* B7/B8: Erinnerungsanruf als sichtbare, freiwillige Karte (kein Vorankreuzen, keine Kopplung an den Buchen-Knopf) */
.consent.consent-card { display: block; border: 1.5px solid var(--gold); background: var(--surface, transparent); }
.consent-h { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.consent-sub { margin: 0 0 var(--s3); color: var(--text-2); font-size: .9rem; }
.consent-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.consent-row input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--anthracite); }
.consent-row label { min-height: 44px; }
.consent-need { margin: var(--s2) 0 0; font-size: .9rem; color: var(--text); border-left: 3px solid var(--gold); padding-left: 8px; }
#post-form .btn { margin-top: var(--s3); }
#post-call { margin-top: var(--s4); }
