/* Terminbuchung — Wizard (Terminart -> Tag -> Uhrzeit -> Angaben -> Bestätigung).
   Nutzt die vorhandenen Ivory-Variablen aus /css/neu.css (Farben, Radien,
   Schatten ziehen Hell/Dunkel automatisch mit) sowie die globalen .feld/
   .feld-paar-Klassen von dort (gleiche Ausrichtung wie das Kontaktformular). */

/* Einleitungsblock (H1 "Lassen Sie uns sprechen." + Lead) entfernt (Manu 29.09.2026:
   nimmt nur Platz weg, Schrittanzeige + Schritt 1 stehen direkt oben). Stattdessen eine
   kleine einzeilige Überschrift in normaler Größe, nur zur Orientierung. */
.tb-titel { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 20px; }

.tb-abschnitt { padding-top: clamp(28px, 4vw, 44px); }

/* -- Fortschrittsanzeige -- */
.tb-schritte {
  display: flex; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0;
  counter-reset: none;
}
.tb-schritte li {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 4px;
  border-bottom: 3px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.tb-schritt-nr {
  width: 22px; height: 22px; border-radius: 999px; background: var(--line); color: var(--bg);
  display: grid; place-items: center; font-size: .76rem; font-weight: 700; flex: none;
  transition: background .2s, color .2s;
}
.tb-schritt-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-schritte li.tb-schritt-fertig { color: var(--ink); border-color: var(--accent); }
.tb-schritte li.tb-schritt-fertig .tb-schritt-nr { background: var(--accent); color: #fff; }
.tb-schritte li.tb-schritt-aktuell { color: var(--ink); border-color: var(--accent); }
.tb-schritte li.tb-schritt-aktuell .tb-schritt-nr { background: var(--ink); color: var(--bg); }

.tb-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }

.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; min-width: 0; }

/* -- linke Karte: Person + Zusammenfassung -- */
.tb-me { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.tb-me img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.tb-me strong { display: block; font-family: var(--font-head); }
.tb-me span.muted { font-size: .92rem; }

.tb-zusammenfassung { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.tb-zf-zeile dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 2px; }
.tb-zf-zeile dd { margin: 0; font-weight: 650; font-family: var(--font-head); font-size: 1.02rem; }

/* -- rechte Karte: Schritt-Inhalte -- */
.tb-buchung { position: relative; overflow: hidden; }
.tb-buchung h2 { font-size: 1.2rem; margin: 0 0 18px; }
.tb-sr-titel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tb-zurueck {
  display: inline-flex; align-items: center; gap: 4px; font: inherit; font-weight: 600; font-size: .92rem;
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; margin-bottom: 16px;
}
.tb-zurueck:hover { color: var(--accent-strong); }

.tb-eintreten { animation: tbEintreten .25s ease both; }
@keyframes tbEintreten {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-eintreten { animation: none; }
}

/* Schritt 1: Terminart-Karten */
.tb-art-karten { display: grid; gap: 14px; }
.tb-art-karte {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; text-align: left;
  font: inherit; cursor: pointer; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-s); padding: 22px; transition: border-color .15s, background .15s, transform .15s;
}
.tb-art-karte:hover { border-color: var(--accent); transform: translateY(-2px); }
.tb-art-ikon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; flex: none;
}
.tb-art-karte strong { display: block; font-family: var(--font-head); font-size: 1.08rem; }
.tb-art-karte span { color: var(--muted); font-size: .92rem; }
.tb-art-karte.tb-art-aktiv { border-color: var(--accent); background: var(--accent-soft); }

/* Schritt 2: Monatskalender */
.tb-monat-zeile { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tb-monat-zeile h3 { font-family: var(--font-head); margin: 0; font-size: 1.1rem; }
.tb-nav { display: flex; gap: 8px; }
.tb-pfeil {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.tb-pfeil:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.tb-pfeil:disabled { opacity: .35; cursor: default; }

.tb-wochentage {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px;
  text-align: center; font-size: .78rem; color: var(--muted); font-weight: 650;
}
.tb-kalender-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tb-tag-leer { display: block; }
.tb-kalender .tb-tag {
  aspect-ratio: 1 / 1; display: grid; place-items: center; font: inherit; font-size: .96rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--radius-s); padding: 0;
}
.tb-kalender .tb-tag:hover:not(:disabled) { border-color: var(--accent); }
.tb-kalender .tb-tag[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tb-kalender .tb-tag-aus, .tb-kalender .tb-tag:disabled { opacity: .3; cursor: default; border-color: transparent; background: none; }
.tb-kalender-hinweis { margin: 16px 0 0; }

/* Schritt 3: Uhrzeit */
.tb-slots { min-height: 60px; }
.tb-slot-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tb-slot {
  font: inherit; font-size: .98rem; font-weight: 650; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--radius-s); padding: 12px 8px; text-align: center;
}
.tb-slot:hover { border-color: var(--accent); }
.tb-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Schritt 4: Angaben */
.tb-kurzfassung { color: var(--muted); font-size: .95rem; margin: -10px 0 20px; }
.tb-formular { display: grid; gap: 0; }
.tb-formular .feld-paar { margin-bottom: 16px; }
.tb-formular .feld { margin-bottom: 16px; }
.tb-formular .feld:last-of-type { margin-bottom: 0; }
.tb-versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tb-formular .knopf { margin-top: 20px; width: auto; }
.tb-hinweis { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.tt-fehler { color: #b3261e; font-size: .92rem; margin: 12px 0 0; }

/* Schritt 5: Bestätigung */
.tb-danke { text-align: left; padding: 12px 0; }
.tb-check {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px;
}
.tb-danke h2 { font-family: var(--font-head); margin: 0 0 8px; font-size: 1.3rem; }
.tb-danke-zeit { font-weight: 650; margin: 0 0 4px; }

@media (max-width: 760px) {
  .tb-grid { grid-template-columns: 1fr; }
  .tb-person { padding: 16px 20px; }
  .tb-me { margin-bottom: 0; }
  .tb-zusammenfassung { margin-top: 12px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .tb-zf-zeile { display: flex; align-items: baseline; gap: 6px; }
  .tb-zf-zeile[hidden] { display: none; }
  .tb-zf-zeile dt { margin: 0; }
  .tb-zf-zeile dt::after { content: ":"; }
  .tb-schritt-label { display: none; }
  .tb-schritte li { justify-content: center; flex: none; width: 34px; }
  .tb-schritte { justify-content: center; gap: 10px; }
  .tb-slot-raster { grid-template-columns: repeat(3, 1fr); }
  .tb-formular .knopf { width: 100%; }
}
