/* Eigenes Buchungsfenster für den Gratis-Beratungstermin (assets/js/termin.js, app/Termin.php; 29.11.2026).
   Aufbau: .bs-termin (Abschnitt) > .sc-termin (Kopf + .tm-box). Die Box hat links die Auswahl (.tm-wahl: Tage, Uhrzeiten)
   und rechts die Daten (.tm-daten: Formular); am Handy und in der kleinen Fassung liegt beides untereinander, und die Auswahl
   macht dem Formular Platz, sobald eine Uhrzeit gewählt ist. Werte aus theme.css (.t26). */
.t26 .bs-termin { padding: 72px 0; background: var(--mist); }
.t26 .bs-termin--weiss { background: #fff; }
.t26 .sc-termin { max-width: 1080px; margin: 0 auto; }
.t26 .sc-termin[data-variante="klein"] { max-width: 560px; }
.t26 .sc-termin button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.t26 .sc-termin svg { flex: none; }

/* Kopf */
.t26 .sc-termin .tm-kopf { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; text-align: center; }
.t26 .sc-termin .tm-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: #fff; color: var(--blue-deep); font-size: 14px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 0 var(--line); }
.t26 .bs-termin--weiss .tm-kicker, .t26 .sc-termin[data-variante="klein"] .tm-kicker { background: var(--sky); box-shadow: none; }
.t26 .sc-termin .tm-kicker i { width: 9px; height: 9px; border-radius: 50%; background: #22b573; }
.t26 .sc-termin .tm-titel { margin: 0; padding: 0; font-family: var(--font-headline); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; text-transform: none; text-wrap: balance; color: var(--ink); }
.t26 .sc-termin h3.tm-titel { font-size: clamp(24px, 2.6vw, 30px); }
.t26 .sc-termin .tm-lead { max-width: 620px; font-size: 19px; }

/* Box */
.t26 .sc-termin .tm-box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); overflow: hidden; border-radius: 28px; background: #fff; box-shadow: var(--bs-shadow), 0 0 0 1px var(--line); color: #33475b; font-size: 17px; line-height: 1.5; text-align: left; }
.t26 .sc-termin .tm-wahl { min-width: 0; padding: 34px 36px 36px; }
.t26 .sc-termin .tm-daten { min-width: 0; padding: 34px 36px 36px; background: var(--sky); }
.t26 .sc-termin .tm-schritt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.t26 .sc-termin .tm-schritt b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.t26 .sc-termin .tm-schritt span { font-weight: 500; color: var(--muted); }
.t26 .sc-termin .tm-zeiten + .tm-schritt, .t26 .sc-termin .tm-tage-rahmen + .tm-schritt { margin-top: 26px; }

/* Tage: Leiste zum Wischen */
.t26 .sc-termin .tm-tage-rahmen { position: relative; margin: 0 -36px; }
.t26 .sc-termin .tm-tage-rahmen::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.t26 .sc-termin .tm-tage { display: flex; gap: 8px; padding: 4px 36px 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 36px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
.t26 .sc-termin .tm-tag { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; justify-content: center; min-width: 74px; min-height: 76px; padding: 9px 8px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); line-height: 1.2; scroll-snap-align: start; transition: border-color .15s, background .15s, color .15s; }
.t26 .sc-termin .tm-tag-wt { font-size: 14px; font-weight: 600; color: var(--muted); }
.t26 .sc-termin .tm-tag-nr { font-family: var(--font-headline); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.t26 .sc-termin .tm-tag-frei { font-size: 12.5px; font-weight: 700; color: #b45309; }
.t26 .sc-termin .tm-tag:hover { border-color: var(--blue); }
.t26 .sc-termin .tm-tag[aria-pressed="true"] { border-color: var(--blue-strong); background: var(--blue-strong); color: #fff; }
.t26 .sc-termin .tm-tag[aria-pressed="true"] span { color: #fff; }

/* Ab Tablet-Breite stehen alle Tage auf einmal da (kein Wischen mit der Maus) */
@media (min-width: 900px) {
	.t26 .sc-termin .tm-tage-rahmen { margin: 0; }
	.t26 .sc-termin .tm-tage-rahmen::after { content: none; }
	.t26 .sc-termin .tm-tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); padding: 0; overflow: visible; }
	.t26 .sc-termin .tm-tag { min-width: 0; }
}

/* Uhrzeiten */
.t26 .sc-termin .tm-zeiten { display: grid; gap: 16px; }
.t26 .sc-termin .tm-gruppe > p { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.t26 .sc-termin .tm-gruppe > div, .t26 .sc-termin .tm-schnell-tag > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.t26 .sc-termin .tm-zeit { min-height: 48px; padding: 0 6px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.t26 .sc-termin .tm-zeit:hover { border-color: var(--blue-strong); background: var(--sky); }
.t26 .sc-termin .tm-zeit:active { transform: scale(.97); }
.t26 .sc-termin .tm-zeit[aria-pressed="true"] { border-color: var(--blue-strong); background: var(--blue-strong); color: #fff; }
.t26 .sc-termin :is(.tm-tag, .tm-zeit, .tm-btn, .tm-link):focus-visible { outline: 3px solid rgba(29, 145, 216, .45); outline-offset: 2px; }

/* Kleine Fassung: nächste freie Termine */
.t26 .sc-termin .tm-schnell { display: grid; gap: 14px; }
.t26 .sc-termin .tm-schnell-tag { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; }
.t26 .sc-termin .tm-schnell-tag > p { font-size: 15px; line-height: 1.25; color: var(--muted); }
.t26 .sc-termin .tm-schnell-tag > p b { display: block; font-size: 17px; color: var(--ink); }
.t26 .sc-termin .tm-schnell-tag > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t26 .sc-termin .tm-alle { margin-top: 18px; }

/* Rechte Seite ohne Wahl */
.t26 .sc-termin .tm-punkte { display: grid; gap: 10px; }
.t26 .sc-termin .tm-punkte li { display: flex; align-items: flex-start; gap: 11px; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.t26 .sc-termin .tm-punkte svg { width: 22px; height: 22px; margin-top: 1px; padding: 5px; border-radius: 50%; background: var(--blue-strong); color: #fff; }
.t26 .sc-termin .tm-ort { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.4; }
.t26 .sc-termin .tm-ort svg { width: 22px; height: 22px; margin-top: 1px; color: var(--blue-strong); }
.t26 .sc-termin .tm-ort b { display: block; color: var(--ink); }
.t26 .sc-termin .tm-ort span { min-width: 0; }
.t26 .sc-termin .tm-still { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Formular */
.t26 .sc-termin .tm-form { display: block; margin: 0; }
.t26 .sc-termin .tm-gewaehlt { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 13px 16px; border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.35; }
.t26 .sc-termin .tm-gewaehlt svg { width: 24px; height: 24px; color: var(--blue-strong); }
.t26 .sc-termin .tm-gewaehlt p { flex: 1; min-width: 0; }
.t26 .sc-termin .tm-gewaehlt b { display: block; font-size: 17px; color: var(--ink); }
.t26 .sc-termin .tm-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t26 .sc-termin .tm-feld { display: block; margin: 0; }
.t26 .sc-termin .tm-feld:nth-child(n+3) { grid-column: 1 / -1; }
.t26 .sc-termin .tm-feld > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; color: var(--ink); }
.t26 .sc-termin .tm-feld input { display: block; box-sizing: border-box; width: 100%; max-width: 100%; height: 52px; margin: 0; padding: 0 15px; border: 1.5px solid #cfd9e3; border-radius: 14px; background: #fff; box-shadow: none; color: var(--ink); font-family: inherit; font-size: 17px; line-height: 1.2; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.t26 .sc-termin .tm-feld input::placeholder { color: #a3aebb; }
.t26 .sc-termin .tm-feld input:focus { outline: none; border-color: var(--blue-strong); box-shadow: 0 0 0 4px rgba(29, 145, 216, .18); }
.t26 .sc-termin .tm-feld em { display: none; margin-top: 5px; font-size: 13.5px; font-style: normal; font-weight: 600; color: #c0262d; }
.t26 .sc-termin .tm-falsch input { border-color: #c0262d; }
.t26 .sc-termin .tm-falsch em { display: block; }
.t26 .sc-termin .tm-koeder { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.t26 .sc-termin .tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 58px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--blue-strong); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: 0 8px 22px rgba(18, 122, 189, .32); transition: background .2s, transform .2s; }
.t26 .sc-termin .tm-btn:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); }
.t26 .sc-termin .tm-btn[disabled] { background: var(--blue-deep); transform: none; cursor: progress; }
.t26 .sc-termin .tm-btn svg { width: 21px; height: 21px; }
.t26 .sc-termin .tm-btn-hell { background: #fff; color: var(--blue-deep); box-shadow: inset 0 0 0 1.5px var(--blue-strong); }
.t26 .sc-termin .tm-btn-hell:hover { background: var(--sky); color: var(--blue-deep); }
.t26 .sc-termin .tm-senden { width: 100%; margin-top: 18px; }
.t26 .sc-termin .tm-klein { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.t26 .sc-termin .tm-klein a { color: var(--blue-deep); text-decoration: underline; }
.t26 .sc-termin .tm-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; color: var(--blue-deep); font-size: 15.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.t26 .sc-termin .tm-link svg { width: 18px; height: 18px; }
.t26 .sc-termin .tm-hinweis { margin-bottom: 16px; padding: 12px 15px; border-radius: 14px; background: #fff4e5; color: #7a4b00; font-size: 15.5px; font-weight: 600; line-height: 1.4; }

/* Laden und Ausfall */
.t26 .sc-termin .tm-laedt, .t26 .sc-termin .tm-ausfall { display: block; padding: 34px 36px; }
.t26 .sc-termin .tm-laedt .tm-still { margin: 0 0 14px; }
.t26 .sc-termin .tm-geister { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.t26 .sc-termin .tm-geist { height: 48px; border-radius: 14px; background: linear-gradient(90deg, var(--line-soft) 25%, #f8fafc 50%, var(--line-soft) 75%); background-size: 200% 100%; animation: tm-schimmer 1.3s linear infinite; }
.t26 .sc-termin .tm-ausfall p { font-size: 17px; }
.t26 .sc-termin .tm-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.t26 .sc-termin .tm-dreh { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: tm-dreh .8s linear infinite; }
@keyframes tm-schimmer { to { background-position: -200% 0; } }
@keyframes tm-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.t26 .sc-termin .tm-geist, .t26 .sc-termin .tm-dreh { animation-duration: 3s; }
	.t26 .sc-termin .tm-btn, .t26 .sc-termin .tm-zeit { transition: none; }
}

/* Eingebaut an der Stelle des früheren eTermin-Fensters (ohne eigenen Kopf, in einem Textblock der Seite) */
.t26 .sc-termin[data-kopf="0"] { margin-top: 28px; text-align: left; }
/* Vorgaben des Textblocks (.oh-typo) zurücksetzen; :where() hält die Regel schwach, damit die eigenen Abstände (.tm-ort usw.) gelten */
.t26 :where(.oh-typo) .sc-termin p { margin: 0; padding: 0; }
.t26 :where(.oh-typo) .sc-termin ul { margin: 0; padding: 0; list-style: none; }
.t26 :where(.oh-typo) .sc-termin li { margin: 0; padding: 0; }
.t26 .oh-typo .sc-termin li::before { content: none; }

/* Kleine Fassung: immer untereinander, Auswahl weicht dem Formular */
.t26 .sc-termin[data-variante="klein"] .tm-box { grid-template-columns: minmax(0, 1fr); }
.t26 .sc-termin[data-variante="klein"] .tm-wahl, .t26 .sc-termin[data-variante="klein"] .tm-daten { padding: 26px 26px 28px; }
.t26 .sc-termin[data-variante="klein"] .tm-daten:empty { display: none; }
.t26 .sc-termin[data-variante="klein"] .tm-wahl[data-zu] { display: none; }
.t26 .sc-termin[data-variante="klein"] .tm-kopf { margin-bottom: 20px; }

@media (max-width: 899px) {
	.t26 .bs-termin { padding: 52px 0; }
	.t26 .sc-termin .tm-box { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
	.t26 .sc-termin .tm-wahl, .t26 .sc-termin .tm-daten, .t26 .sc-termin[data-variante="klein"] .tm-wahl, .t26 .sc-termin[data-variante="klein"] .tm-daten { padding: 24px 20px 26px; }
	.t26 .sc-termin .tm-wahl[data-zu] { display: none; }
	.t26 .sc-termin .tm-leer { display: none; }
	.t26 .sc-termin .tm-box:not(.tm-hat-wahl) .tm-daten { display: none; }
	/* Tage als Raster mit zwei Reihen statt zum Wischen (1.12.2026, Wunsch Otto); die Spaltenzahl setzt termin.js nach der Breite */
	.t26 .sc-termin .tm-tage-rahmen, .t26 .sc-termin[data-variante="klein"] .tm-tage-rahmen { margin: 0; }
	.t26 .sc-termin .tm-tage-rahmen::after { content: none; }
	.t26 .sc-termin .tm-tage, .t26 .sc-termin[data-variante="klein"] .tm-tage { display: grid; grid-template-columns: repeat(var(--tm-spalten, 4), minmax(0, 1fr)); padding: 0; overflow: visible; }
	.t26 .sc-termin .tm-tag { min-width: 0; min-height: 70px; }
	.t26 .sc-termin .tm-mehr { margin-top: 10px; }
	.t26 .sc-termin .tm-lead { font-size: 17.5px; }
	.t26 .sc-termin .tm-laedt, .t26 .sc-termin .tm-ausfall { padding: 24px 20px; }
}
@media (max-width: 420px) {
	.t26 .sc-termin .tm-gruppe > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.t26 .sc-termin .tm-schnell-tag { grid-template-columns: minmax(0, 1fr); gap: 7px; }
	.t26 .sc-termin .tm-schnell-tag > p b { display: inline; }
	.t26 .sc-termin .tm-felder { grid-template-columns: minmax(0, 1fr); }
	.t26 .sc-termin .tm-feld:nth-child(n) { grid-column: auto; }
}
