/* Werkstatt-Termine – übernimmt Schrift und Grundfarben des Themes, Akzentfarbe aus den Einstellungen */
.wt-booking {
	--wt-accent: #1f6f50;
	--wt-free: #e3f0ea;
	--wt-line: rgba(0, 0, 0, .14);
	--wt-muted: rgba(0, 0, 0, .55);
	--wt-radius: 8px;
	max-width: 960px;
	margin: 0 auto 2em;
	font: inherit;
	color: inherit;
	line-height: 1.45;
}
.wt-booking *, .wt-booking *::before, .wt-booking *::after { box-sizing: border-box; }
.wt-intro { margin: 0 0 1.25em; }
.wt-loading, .wt-hint { color: var(--wt-muted); }

/* Terminart-Auswahl */
.wt-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6em; margin: 0 0 1.2em; }
.wt-tab { display: flex; flex-direction: column; align-items: flex-start; gap: .15em; padding: .85em 1.1em; border: 1.5px solid var(--wt-line); border-radius: var(--wt-radius); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wt-tab span { font-size: .85em; color: var(--wt-muted); }
.wt-tab:hover { border-color: var(--wt-accent); }
.wt-tab.is-active { border-color: var(--wt-accent); background: var(--wt-free); box-shadow: inset 0 0 0 1px var(--wt-accent); }

/* Schritte */
.wt-steps { display: flex; flex-wrap: wrap; gap: .5em 1.5em; list-style: none; margin: 0 0 1.25em; padding: 0; font-size: .92em; }
.wt-step { display: flex; align-items: center; gap: .45em; color: var(--wt-muted); margin: 0; }
.wt-step-n { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 700; font-size: .85em; }
.wt-step.is-current { color: inherit; font-weight: 600; }
.wt-step.is-current .wt-step-n { background: var(--wt-accent); border-color: var(--wt-accent); color: #fff; }
.wt-step.is-done .wt-step-n { border-color: var(--wt-accent); color: var(--wt-accent); }

.wt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2em; align-items: start; }
@media (max-width: 760px) { .wt-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5em; } }

/* Kalender */
.wt-cal { border: 1px solid var(--wt-line); border-radius: var(--wt-radius); padding: 1em; transition: opacity .15s; }
.wt-cal.is-loading { opacity: .55; pointer-events: none; }
.wt-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75em; }
.wt-cal-title { font-weight: 700; font-size: 1.1em; }
.wt-nav { width: 2.4em; height: 2.4em; border-radius: 50%; border: 1px solid var(--wt-line); background: transparent; color: inherit; font-size: 1.2em; line-height: 1; cursor: pointer; padding: 0; }
.wt-nav:hover:not(:disabled) { border-color: var(--wt-accent); color: var(--wt-accent); }
.wt-nav:disabled { opacity: .3; cursor: default; }
.wt-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wt-wd { text-align: center; font-size: .78em; font-weight: 600; color: var(--wt-muted); padding: .25em 0 .4em; }
.wt-day { aspect-ratio: 1 / 1; min-height: 2.4em; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; display: grid; place-items: center; position: relative; }
.wt-day.is-empty { visibility: hidden; }
.wt-day.is-closed { color: var(--wt-muted); opacity: .45; cursor: default; }
.wt-day.is-full { color: var(--wt-muted); text-decoration: line-through; cursor: default; }
.wt-day.is-free { background: var(--wt-free); color: var(--wt-accent); font-weight: 700; }
.wt-day.is-free:hover { outline: 2px solid var(--wt-accent); outline-offset: -2px; }
.wt-day.is-selected { background: var(--wt-accent); color: #fff; }
.wt-day.is-today::after { content: ""; position: absolute; bottom: 18%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.wt-legend { display: flex; flex-wrap: wrap; gap: .4em 1em; margin-top: .9em; font-size: .8em; color: var(--wt-muted); }
.wt-lg::before { content: ""; display: inline-block; width: .9em; height: .9em; border-radius: 3px; margin-right: .35em; vertical-align: -.1em; }
.wt-lg-free::before { background: var(--wt-free); border: 1px solid var(--wt-accent); }
.wt-lg-full::before { background: transparent; border: 1px dashed var(--wt-muted); }
.wt-lg-closed::before { background: rgba(0, 0, 0, .08); }

/* Zeitfenster */
.wt-h { margin: 0 0 .6em; font-size: 1.15em; }
.wt-slots { outline: none; margin-bottom: 1.5em; }
.wt-slot-group { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wt-muted); margin: .9em 0 .4em; }
.wt-slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2em, 1fr)); gap: .4em; }
.wt-slot { display: flex; flex-direction: column; align-items: center; gap: .1em; padding: .55em .4em; font-variant-numeric: tabular-nums; border: 1.5px solid var(--wt-line); border-radius: var(--wt-radius); background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.wt-slot span { font-size: .82em; color: var(--wt-muted); }
.wt-slot:hover:not(:disabled) { border-color: var(--wt-accent); }
.wt-slot.is-selected { border-color: var(--wt-accent); background: var(--wt-accent); color: #fff; }
.wt-slot.is-selected span { color: rgba(255, 255, 255, .85); }
.wt-slot:disabled { opacity: .45; cursor: default; text-decoration: line-through; }

/* Formular */
.wt-form { border-top: 1px solid var(--wt-line); padding-top: 1.25em; }
.wt-summary { margin: 0 0 1em; }
.wt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1em; }
@media (max-width: 480px) { .wt-row { grid-template-columns: minmax(0, 1fr); } }
.wt-field { display: flex; flex-direction: column; gap: .3em; margin-bottom: .9em; min-width: 0; }
.wt-field label { font-weight: 600; font-size: .9em; }
.wt-req { color: #b42318; }
.wt-field input, .wt-field select, .wt-field textarea { width: 100%; padding: .6em .7em; border: 1px solid var(--wt-line); border-radius: 6px; font: inherit; color: inherit; background: #fff; max-width: 100%; }
.wt-field input:focus, .wt-field select:focus, .wt-field textarea:focus { outline: 2px solid var(--wt-accent); outline-offset: 0; border-color: var(--wt-accent); }
.wt-field.has-error input, .wt-field.has-error select, .wt-field.has-error textarea { border-color: #b42318; }
.wt-field-error { color: #b42318; font-size: .85em; }
.wt-check { display: flex; gap: .6em; align-items: flex-start; margin: .4em 0 .3em; font-size: .9em; }
.wt-check input { margin-top: .25em; flex: 0 0 auto; width: 1.1em; height: 1.1em; accent-color: var(--wt-accent); }
.wt-check.has-error label { color: #b42318; }
.wt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wt-error { color: #b42318; background: rgba(180, 35, 24, .07); border-radius: 6px; padding: .6em .8em; margin: .8em 0; }
.wt-submit { margin-top: 1em; width: 100%; padding: .85em 1.2em; border: 0; border-radius: var(--wt-radius); background: var(--wt-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.wt-submit:hover:not(:disabled) { filter: brightness(1.08); }
.wt-submit:disabled { opacity: .6; cursor: wait; }
.wt-booking button:focus-visible { outline: 2px solid var(--wt-accent); outline-offset: 2px; }

/* Bestätigung */
.wt-done { text-align: center; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); padding: 2em 1.25em; outline: none; }
.wt-done p { margin: .4em 0; }
.wt-done-icon { width: 3em; height: 3em; margin: 0 auto .8em; border-radius: 50%; background: var(--wt-accent); color: #fff; display: grid; place-items: center; font-size: 1.4em; font-weight: 700; }
.wt-link { margin-top: 1em; background: none; border: 0; color: var(--wt-accent); text-decoration: underline; font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .wt-cal { transition: none; } }

/* Werkstatt-Zusatzfelder */
.wt-h2 { margin-top: .6em; font-size: 1.05em; }
.wt-row-zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 480px) { .wt-row-zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.wt-field textarea { resize: vertical; min-height: 5.5em; }
.wt-small { font-size: .85em; margin: -.3em 0 .6em; }

/* Auswahl-Buttons (Beratung: E-Bike / Bio-Rad) */
.wt-choice { border: 0; padding: 0; margin: 0 0 .9em; min-width: 0; }
.wt-choice legend { font-weight: 600; font-size: .9em; padding: 0; margin-bottom: .35em; }
.wt-choice-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); gap: .5em; }
.wt-opt { position: relative; display: flex; align-items: center; gap: .55em; padding: .7em .85em; border: 1.5px solid var(--wt-line); border-radius: var(--wt-radius); cursor: pointer; background: #fff; font-weight: 600; }
.wt-opt input { width: 1.1em; height: 1.1em; margin: 0; accent-color: var(--wt-accent); flex: 0 0 auto; }
.wt-opt:hover { border-color: var(--wt-accent); }
.wt-opt:has(input:checked) { border-color: var(--wt-accent); background: var(--wt-free); box-shadow: inset 0 0 0 1px var(--wt-accent); }
.wt-opt:has(input:focus-visible) { outline: 2px solid var(--wt-accent); outline-offset: 2px; }
.wt-choice.has-error .wt-opt { border-color: #b42318; }

.wt-privacy-note { margin: .6em 0 .4em; font-size: .85em; line-height: 1.5; color: #5b6168; }
.wt-privacy-note a { color: inherit; text-decoration: underline; }

.wt-fee { display: grid; gap: .2em; margin: .2em 0 .9em; padding: .8em 1em; border-radius: 12px; background: color-mix(in srgb, var(--wt-accent) 10%, #fff); border: 1px solid color-mix(in srgb, var(--wt-accent) 35%, #fff); font-size: .92em; line-height: 1.45; }
.wt-fee[hidden] { display: none; }
.wt-fee strong { font-size: 1.1em; }

.wt-handover { margin: .4em 0 1em; }
.wt-ho-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }
.wt-ho { display: grid; align-content: start; gap: .35em; text-align: left; padding: 1.1em 1.2em; border-radius: 14px; border: 1.5px solid #d9ddd3; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.wt-ho:hover, .wt-ho:focus-visible { border-color: var(--wt-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-accent) 18%, transparent); }
.wt-ho strong { font-size: 1.08em; }
.wt-ho span { font-size: .9em; opacity: .8; line-height: 1.45; }
.wt-ho-chosen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em 1em; margin: 0 0 1em; padding: .7em 1em; border-radius: 12px; background: color-mix(in srgb, var(--wt-accent) 9%, #fff); font-size: .95em; }
.wt-fee.is-out { background: #fff4f2; border-color: #f0b9ae; }
@media (max-width: 560px) { .wt-ho-opts { grid-template-columns: minmax(0, 1fr); } }

.wt-ws .wt-row .wt-choice .wt-choice-opts { grid-template-columns: minmax(0, 1fr); }
.wt-pickup-day .wt-fee { margin-top: .4em; }

.wt-lc[hidden] { display: none; }
.wt-pickup-note { margin: -.2em 0 1em; padding: .75em 1em; border-radius: 12px; background: #fff8e6; border: 1px solid #f1d58a; color: #5c4400; font-size: .92em; line-height: 1.45; }
.wt-done .wt-pickup-note { margin-top: .4em; }
.wt-review-ok { display: flex; gap: 8px; align-items: flex-start; margin: .9em 0 .2em; font-size: .9em; line-height: 1.45; cursor: pointer; }
.wt-review-ok input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
/* 1.27.0 Zusatzleistungen */
.wt-extras { border: 0; padding: 0; margin: 1em 0 .4em; }
.wt-extras legend { font-weight: 700; margin-bottom: .5em; }
.wt-extras .wt-opt { font-weight: 400; opacity: .7; }
.wt-extras-list { display: grid; gap: 8px; }
.wt-extra { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #d4dbc9; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.wt-extra:hover { border-color: var(--wt-accent, #567a1f); }
.wt-extra input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--wt-accent, #567a1f); }
.wt-extra-txt { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
.wt-extra-txt small { opacity: .72; font-size: .85em; margin-top: 2px; }
.wt-extra-price { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }
.wt-extra:has(input:checked) { border-color: var(--wt-accent, #567a1f); background: var(--wt-free, #eef5e0); }
.wt-extra.is-incl { opacity: .75; cursor: default; }
.wt-extra.is-incl .wt-extra-price { color: var(--wt-accent, #567a1f); }
