/* Termin vor Ort buchen (/termin) und eigenen Termin verwalten (/termin/T-…).
   Gleiche Optik wie Hilfe & Reklamation (support.css). */
.tb-seite { background: var(--bg-alt, #f4f4f5); }
.tb-seite [hidden] { display: none !important; }
.tb { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; color: var(--text, #18181b); }
.tb h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; color: var(--text, #09090b); margin: 0 0 6px; }
.tb h2 { font-size: 1.08rem; font-weight: 800; color: var(--text, #09090b); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.tb-leise { color: var(--gray, #71717a); font-size: .95rem; line-height: 1.5; margin: 0 0 14px; }
.tb-mitte { text-align: center; }
.tb-klein { color: var(--gray, #71717a); font-size: .8rem; line-height: 1.5; margin: 10px 0 0; }
.tb-klein a, .tb-leise a { color: var(--primary-ink, #c2410c); }
.tb-karte { background: var(--surface, #fff); border: 1px solid var(--border, #e4e4e7); border-radius: 14px; padding: 20px 18px; margin-bottom: 16px; }
.tb-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light, #fff3eb); color: var(--primary-ink, #c2410c); font-size: .82rem; flex: none; }
.tb-honig { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Ort & Öffnungszeiten */
.tb-ort { display: grid; gap: 6px; background: var(--surface, #fff); border: 1px solid var(--border, #e4e4e7); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; font-size: .9rem; line-height: 1.45; }
.tb-ort a { color: var(--primary-ink, #c2410c); font-weight: 600; }
.tb-ort small { color: var(--gray, #71717a); }

/* Schritte */
.tb-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: none; }
.tb-schritte li { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 10px; background: #e4e4e7;
  color: var(--gray, #71717a); font-size: .8rem; font-weight: 700; text-align: center; }
.tb-schritte li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface, #fff); font-size: .72rem; flex: none; }
.tb-schritte li.aktiv { background: var(--primary, #e8651a); color: var(--primary-text, #fff); }
.tb-schritte li.aktiv span { color: var(--primary-ink, #c2410c); }
.tb-schritte li.fertig { background: var(--primary-light, #fff3eb); color: var(--primary-ink, #c2410c); }

/* Leistungen */
.tb-arten { display: grid; gap: 10px; }
.tb-art { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface, #fff);
  border: 1.5px solid var(--border, #e4e4e7); border-radius: 12px; padding: 14px; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tb-art:hover { border-color: var(--primary-border, #fdba74); }
.tb-art.gewaehlt { border-color: var(--primary, #e8651a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #e8651a) 14%, transparent); background: var(--primary-light, #fffaf6); }
.tb-art-punkt { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border, #d4d4d8); display: grid; place-items: center; }
.tb-art.gewaehlt .tb-art-punkt { border-color: var(--primary, #e8651a); }
.tb-art.gewaehlt .tb-art-punkt::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary, #e8651a); }
.tb-art strong { display: block; font-size: .98rem; color: var(--text, #09090b); }
.tb-art small { display: block; color: var(--gray, #71717a); font-size: .82rem; margin-top: 3px; line-height: 1.4; }
.tb-art-meta { text-align: right; font-size: .8rem; color: var(--gray, #52525b); white-space: nowrap; line-height: 1.5; }
.tb-art-meta b { display: block; color: var(--text, #09090b); font-size: .92rem; }

/* Kalender */
.tb-kal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.tb-kal-kopf strong { font-size: 1rem; }
.tb-kal-kopf button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border, #e4e4e7); background: var(--surface, #fff); font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: var(--text, #18181b); }
.tb-kal-kopf button:disabled { opacity: .3; cursor: default; }
.tb-kal-wochentage, .tb-kal-gitter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tb-kal-wochentage span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--gray, #a1a1aa); text-transform: uppercase; padding: 2px 0 4px; }
.tb-tag { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 4px 2px;
  border-radius: 10px; border: 1px solid transparent; background: transparent; font: inherit; color: #d4d4d8; cursor: default; }
.tb-tag b { font-size: .98rem; font-weight: 700; }
.tb-tag small { font-size: .62rem; font-weight: 600; white-space: nowrap; }
.tb-tag.frei { background: var(--surface, #fff); border-color: var(--primary-border, #fdba74); color: var(--text, #09090b); cursor: pointer; }
.tb-tag.frei small { color: #15803d; }
.tb-tag.frei:hover { border-color: var(--primary, #e8651a); background: var(--primary-light, #fffaf6); }
.tb-tag.voll { background: var(--bg-alt, #fafafa); border-color: var(--border, #e4e4e7); color: var(--gray, #a1a1aa); }
.tb-tag.zu { color: var(--gray, #a1a1aa); }
.tb-tag.zu b { text-decoration: line-through; text-decoration-color: #d4d4d8; }
.tb-tag.heute b { text-decoration: underline; text-underline-offset: 3px; }
.tb-tag.gewaehlt { background: var(--primary, #e8651a); border-color: var(--primary, #e8651a); color: var(--primary-text, #fff); }
.tb-tag.gewaehlt small { color: var(--primary-text, #fff); }
.tb-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; color: var(--gray, #71717a); font-size: .76rem; }
.tb-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -6px; vertical-align: -1px; }
.tb-legende i.frei { background: var(--surface, #fff); border: 1px solid var(--primary-border, #fdba74); }
.tb-legende i.voll { background: var(--bg-alt, #fafafa); border: 1px solid var(--border, #e4e4e7); }
.tb-legende b { font-size: .7rem; color: var(--gray, #a1a1aa); margin-right: -6px; }

/* Uhrzeiten */
.tb-zeiten { margin-top: 18px; }
.tb-zeiten h3 { font-size: .95rem; font-weight: 800; margin: 0 0 4px; }
.tb-zeiten-gruppe { margin: 12px 0 0; }
.tb-zeiten-gruppe p { font-size: .76rem; font-weight: 700; color: var(--gray, #71717a); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.tb-zeiten-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.tb-zeit { padding: 11px 6px; border-radius: 10px; border: 1.5px solid var(--border, #d4d4d8); background: var(--surface, #fff); font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--text, #09090b); cursor: pointer; transition: border-color .15s, background .15s; }
.tb-zeit:hover { border-color: var(--primary, #e8651a); }
.tb-zeit.gewaehlt { background: var(--primary, #e8651a); border-color: var(--primary, #e8651a); color: var(--primary-text, #fff); }
.tb-keine { background: var(--bg-alt, #fafafa); border: 1px dashed var(--border, #d4d4d8); border-radius: 12px; padding: 14px; color: var(--gray, #52525b); font-size: .9rem; line-height: 1.5; }

/* Formular */
.tb-auswahl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; background: var(--primary-light, #fff7ed); border: 1px solid var(--primary-border, #fed7aa);
  border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: .9rem; line-height: 1.45; }
.tb-auswahl strong { display: block; font-size: 1rem; color: var(--text, #09090b); }
.tb-auswahl button:not(.tb-btn) { background: none; border: none; color: var(--primary-ink, #c2410c); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; }
.tb-feld { display: block; font-size: .85rem; font-weight: 600; color: var(--gray, #3f3f46); margin: 0 0 12px; }
.tb-feld input, .tb-feld textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--border, #d4d4d8); border-radius: 10px;
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--text, #09090b); background: var(--surface, #fff); box-sizing: border-box; }
.tb-feld textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.tb-feld input:focus, .tb-feld textarea:focus { outline: none; border-color: var(--primary, #e8651a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #e8651a) 15%, transparent); }
.tb-pflicht { color: var(--primary-ink, #e8651a); }
.tb-optional { color: var(--gray, #a1a1aa); font-weight: 400; }
.tb-zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.tb-hinweis { background: var(--bg-alt, #fafafa); border: 1px solid var(--border, #e4e4e7); border-radius: 10px; padding: 10px 12px; font-size: .86rem; color: var(--gray, #3f3f46); line-height: 1.5; margin: 4px 0 12px; }
.tb-meldung { font-size: .9rem; margin: 10px 0 4px; line-height: 1.45; }
.tb-meldung.fehler { color: #dc2626; }

/* Knöpfe */
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; border-radius: 10px; font: inherit;
  font-size: .92rem; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; line-height: 1.2; text-align: center; }
.tb-btn-primaer { background: var(--btn-bg, #e8651a); color: var(--btn-text, #fff); }
.tb-btn-primaer:hover { background: var(--btn-hover, #d1550f); }
.tb-btn-zweit { background: var(--surface, #fff); color: var(--text, #18181b); border-color: var(--border, #d4d4d8); }
.tb-btn-zweit:hover { border-color: #18181b; }
.tb-btn-gefahr { background: var(--surface, #fff); color: #b91c1c; border-color: #fecaca; }
.tb-btn-gefahr:hover { border-color: #b91c1c; }
.tb-btn:disabled { opacity: .6; cursor: progress; }
.tb-breit { width: 100%; margin-top: 6px; }
.tb-knoepfe { display: grid; gap: 8px; margin: 16px 0 0; }

/* Gebucht / eigener Termin */
.tb-erfolg { text-align: center; padding: 8px 0 4px; }
.tb-erfolg-symbol { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.tb-termin { border: 1px solid var(--border, #e4e4e7); border-radius: 12px; padding: 14px 16px; margin: 14px 0 0; text-align: left; }
.tb-termin-zeile { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 6px 0; font-size: .92rem; line-height: 1.45; }
.tb-termin-zeile a { color: var(--primary-ink, #c2410c); font-weight: 600; }
.tb-termin-gross { font-size: 1.15rem; font-weight: 800; color: var(--text, #09090b); }
.tb-status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; margin: 0 0 8px; }
.tb-status.confirmed { background: #dcfce7; color: #166534; }
.tb-status.pending { background: #fef9c3; color: #854d0e; }
.tb-status.cancelled, .tb-status.no_show { background: #fee2e2; color: #991b1b; }
.tb-status.completed { background: #e0e7ff; color: #3730a3; }
.tb-absagen { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border, #e4e4e7); }
.tb-kontakt { display: grid; gap: 8px; margin: 14px 0; }
.tb-kontakt a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border, #e4e4e7); background: var(--bg-alt, #fafafa);
  color: var(--text, #18181b); text-decoration: none; font-weight: 600; }
.tb-kontakt a:hover { border-color: #a1a1aa; }

@media (min-width: 560px) {
  .tb-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-tag { min-height: 58px; }
}
@media (max-width: 380px) {
  .tb-kal-wochentage, .tb-kal-gitter { gap: 4px; }
  .tb-tag small { font-size: .56rem; }
  .tb-schritte li { font-size: .72rem; }
}
