/* WGE Terminbuchung – passt sich den Farben des Themes an */
.tb { --tb-ink: var(--ink, #0f2a44); --tb-green: var(--green, #157a4e); --tb-mint: var(--mint, #e3f4ea); --tb-sand: var(--sand, #f6f3ec); --tb-line: var(--line, #dfe3e8);
	background: #fff; border: 1px solid var(--tb-line); border-radius: 22px; padding: clamp(16px, 3vw, 28px); }
.tb [hidden] { display: none !important; }
.tb__steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tb__steps li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted, #556372); font-size: .92rem; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--tb-sand); }
.tb__steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--tb-ink); font-size: .85rem; }
.tb__steps li.is-current { background: var(--tb-ink); color: #fff; }
.tb__steps li.is-current span { background: var(--tb-green); color: #fff; }
.tb__steps li.is-done span { background: var(--tb-green); color: #fff; }
.tb__h { font-size: 1.1rem; margin: 0 0 12px; color: var(--tb-ink); }
.tb__h .tb__dayname { font-weight: 600; color: var(--tb-green); }
.tb__panel + .tb__panel { margin-top: 22px; }
.tb__days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.tb__day { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; padding: 12px 10px; border-radius: 16px; border: 2px solid var(--tb-line); background: #fff; cursor: pointer; font: inherit; color: var(--tb-ink); transition: border-color .2s, background .2s, transform .2s; }
.tb__day:hover:not([disabled]) { border-color: var(--tb-green); transform: translateY(-2px); }
.tb__day[aria-pressed="true"] { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff; }
.tb__day[disabled] { opacity: .45; cursor: not-allowed; }
.tb__dow { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tb__date { font-size: 1.15rem; font-weight: 800; }
.tb__free { font-size: .75rem; font-weight: 700; color: var(--tb-green); }
.tb__day[aria-pressed="true"] .tb__free { color: #7fd6a6; }
.tb__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tb__time { min-height: 48px; border-radius: 12px; border: 2px solid var(--tb-line); background: var(--tb-mint); color: var(--tb-ink); font: inherit; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tb__time:hover:not([disabled]) { background: var(--tb-green); color: #fff; border-color: var(--tb-green); }
.tb__time[disabled] { background: #f1f2f4; color: #9aa3ab; text-decoration: line-through; cursor: not-allowed; }
.tb__day:focus-visible, .tb__time:focus-visible, .tb-type:focus-visible { outline: 3px solid var(--focus, #ffbf47); outline-offset: 2px; }
.tb__chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--tb-mint); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.tb__chosen-k { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-green); }
.tb__chosen strong { color: var(--tb-ink); font-size: 1.05rem; }
.tb__change { margin-left: auto; border: 0; background: none; color: var(--tb-green); font-weight: 700; text-decoration: underline; cursor: pointer; font: inherit; }
.tb__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb__f { display: flex; flex-direction: column; gap: 6px; }
.tb__f--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .tb__grid { grid-template-columns: 1fr; } }
.tb__f label { font-weight: 700; font-size: .92rem; color: var(--tb-ink); }
.tb__f input, .tb__f select, .tb__f textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #b8c1cb; border-radius: 12px; font: inherit; background: #fff; }
.tb__f [aria-invalid="true"] { border-color: #b42318; background: #fdecea; }
.tb__check { flex-direction: row; align-items: flex-start; gap: 10px; }
.tb__check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--tb-green); flex: none; }
.tb__check label { font-weight: 500; }
.tb__err { background: #fdecea; color: #7a1a12; border-radius: 12px; padding: 10px 14px; font-weight: 600; margin: 14px 0 0; }
.tb__actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.tb__done { text-align: center; padding: 10px 0; }
.tb__done:focus { outline: none; }
.tb__done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--tb-green); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 800; margin: 0 auto 12px; animation: tb-pop .5s cubic-bezier(.2,.7,.2,1); }
@keyframes tb-pop { from { transform: scale(.4); opacity: 0; } }
.tb__done-text { font-size: 1.1rem; font-weight: 700; color: var(--tb-ink); }
.tb__done-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tb__loading, .tb__none { color: var(--muted, #556372); }
.tb .hp { position: absolute; left: -9999px; }
/* Terminarten-Auswahl */
.tb-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 28px; }
.tb-type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 18px; border-radius: 18px; border: 2px solid var(--line, #dfe3e8); background: #fff; cursor: pointer; font: inherit; color: var(--ink, #0f2a44); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.tb-type .icon { color: var(--green, #157a4e); }
.tb-type strong { font-size: 1.05rem; }
.tb-type span { color: var(--muted, #556372); font-size: .9rem; }
.tb-type small { font-weight: 700; color: var(--green, #157a4e); margin-top: auto; }
.tb-type[aria-selected="true"] { border-color: var(--ink, #0f2a44); box-shadow: 0 0 0 3px var(--mint, #e3f4ea); }
.tb-type--link { border-style: dashed; }
.tb-section__title { font-size: 1.4rem; margin-bottom: 6px; }
.tb-section__meta { display: flex; gap: 6px; align-items: center; color: var(--muted, #556372); margin-bottom: 16px; }
.tb-cta { margin-top: 10px; border: 2px solid var(--ink, #0f2a44) !important; }
.badge--ok { background: var(--green, #157a4e) !important; color: #fff !important; }
.t-card { background: var(--mint, #e3f4ea); border-radius: 18px; padding: 18px 22px; margin-bottom: 20px; }
.t-card__k { font-weight: 800; color: var(--green, #157a4e); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin: 0; }
.t-card__when { font-size: 1.3rem; font-weight: 800; color: var(--ink, #0f2a44); margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .tb__done-ico { animation: none; } .tb__day { transition: none; } }

.tb-admin-hint { background: #fff4d6; border: 1px dashed #c98a00; color: #4a3300; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
