/*
 * Termine Live – Listenansicht im Stil von miniglück:
 * Datumskachel in den Pastelltönen des Logos, Titel in der Handschrift der Website.
 * Die Farben lassen sich über die Variablen unten anpassen.
 */
.termine-live,
.termine-live-auswahl {
  --tl-text: #333333;
  --tl-ink: #222222;
  --tl-muted: #6d6461;
  --tl-linie: #eadfdb;
  --tl-band: #ffefea;
  --tl-grau: #f6f3f2;
  --tl-mint: #c9e6d4;
  --tl-blau: #c4dde5;
  --tl-honig: #f7dcae;
  --tl-koralle: #f5ab99;
  --tl-koralle-dunkel: #e98f7a;
  --tl-schrift: "Inter", "Segoe UI", system-ui, sans-serif;
  --tl-schrift-titel: "Soul Billani", "Brush Script MT", cursive;
}

/* ---------- Terminliste ---------- */

.termine-live {
  display: grid;
  font: 400 16px/1.55 var(--tl-schrift);
  color: var(--tl-text);
}

.termine-live__termin {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--tl-linie);
}

.termine-live__termin:last-child {
  border-bottom: 1px solid var(--tl-linie);
}

.termine-live__kachel {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 84px;
  padding: 10px 6px 12px;
  border-radius: 14px;
  color: var(--tl-ink);
  text-align: center;
}

.termine-live__kachel--0 { background: var(--tl-mint); }
.termine-live__kachel--1 { background: var(--tl-blau); }
.termine-live__kachel--2 { background: var(--tl-honig); }
.termine-live__kachel--3 { background: var(--tl-koralle); }

.termine-live__monat {
  font: 600 11.5px/1.2 var(--tl-schrift);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.termine-live__tag {
  margin-top: 2px;
  font: 700 37px/1 var(--tl-schrift);
  font-variant-numeric: tabular-nums;
}

.termine-live__wtag {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.2;
}

.termine-live__mitte {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.termine-live .termine-live__titel {
  margin: 0;
  padding: 0;
  font: 400 23px/1.3 var(--tl-schrift-titel);
  color: var(--tl-ink);
  text-wrap: balance;
}

.termine-live__zeit {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
  color: var(--tl-ink);
  font-variant-numeric: tabular-nums;
}

.termine-live__zeit svg {
  flex: none;
}

.termine-live .termine-live__info {
  margin: 0;
  color: var(--tl-muted);
  white-space: pre-line;
}

.termine-live .termine-live__staffel {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--tl-ink);
}

.termine-live__rechts {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.termine-live__preis {
  font-weight: 600;
  color: var(--tl-ink);
  font-variant-numeric: tabular-nums;
}

.termine-live .termine-live__knopf {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--tl-koralle);
  color: var(--tl-ink);
  font: 600 15px/1.2 var(--tl-schrift);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.termine-live .termine-live__knopf:hover {
  background: var(--tl-koralle-dunkel);
  color: var(--tl-ink);
  transform: translateY(-1px);
}

.termine-live .termine-live__knopf:focus-visible {
  outline: 2px solid var(--tl-ink);
  outline-offset: 2px;
}

.termine-live__hinweis {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tl-grau);
  color: var(--tl-muted);
  font-size: 13.5px;
  white-space: nowrap;
}

/* Ausgebucht: Termin bleibt voll lesbar, Datumskachel zurückgenommen, Stempel neben dem Titel */
.termine-live__termin--ausgebucht .termine-live__kachel {
  opacity: 0.55;
}

.termine-live .termine-live__stempel {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border: 2px solid #c0392b;
  border-radius: 6px;
  color: #c0392b;
  font: 800 11px/1.3 var(--tl-schrift);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  transform: rotate(-6deg);
}

.termine-live__hinweis--ausgebucht {
  background: #fdecea;
  color: #a5281b;
  font-weight: 700;
}

.termine-live__leer,
.termine-live__keine {
  margin: 0;
  font-style: italic;
}

@media (max-width: 640px) {
  .termine-live__termin {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .termine-live__rechts {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
}

/* ---------- Terminauswahl im Fluent-Forms-Formular ---------- */

.termine-live-auswahl {
  display: grid;
  gap: 10px;
}

.termine-live-auswahl .ff-el-form-check {
  margin: 0;
}

.fluentform .termine-live-auswahl .ff-el-form-check-label {
  display: flex;
  gap: 14px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--tl-linie);
  border-radius: 14px;
  font: 400 16px/1.4 var(--tl-schrift);
  color: var(--tl-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fluentform .termine-live-auswahl .ff-el-form-check-label:has(input:checked) {
  border-color: var(--tl-koralle-dunkel);
  background: var(--tl-band);
}

.fluentform .termine-live-auswahl input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tl-koralle-dunkel);
}

.termine-live-auswahl .termine-live__option-titel {
  display: block;
  font-weight: 600;
  color: var(--tl-ink);
}

.termine-live-auswahl .termine-live__option-datum {
  display: block;
  font-size: 14px;
  color: var(--tl-muted);
}

/* ---------- Bild mit eingeblendetem Termin (statt der Liste) ---------- */

/* Liste und Frage ausblenden – bei einem Fehler am Terminfeld wieder zeigen. */
.termine-live--bildmodus:not(.ff-el-is-error) > .ff-el-input--label,
.termine-live--bildmodus:not(.ff-el-is-error) > .termine-live-auswahl {
  display: none;
}

.termine-live-bild {
  --tl-ink: #222222;
  --tl-band: #ffefea;
  --tl-koralle-dunkel: #e98f7a;
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-bottom: 8px;
  font: 400 16px/1.45 "Inter", "Segoe UI", system-ui, sans-serif;
}

.termine-live-bild[hidden] {
  display: none;
}

.termine-live-bild__rahmen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--tl-band);
}

.termine-live-bild__rahmen--ohne {
  min-height: 180px;
}

.termine-live-bild__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  object-fit: cover;
}

.termine-live-bild__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2px;
  padding: 48px 22px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.35) 60%, transparent);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Ohne Bild: Text auf dem hellen Band statt auf dem dunklen Verlauf */
.termine-live-bild__rahmen--ohne .termine-live-bild__overlay {
  inset: 0;
  align-content: end;
  background: none;
  color: var(--tl-ink);
  text-shadow: none;
}

.termine-live-bild__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.termine-live-bild__titel {
  font: 400 32px/1.2 "Soul Billani", "Brush Script MT", cursive;
}

.termine-live-bild__datum {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fluentform .termine-live-bild__aendern {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tl-ink);
  font: inherit;
  font-size: 14.5px;
  text-decoration: underline;
  text-decoration-color: var(--tl-koralle-dunkel);
  text-underline-offset: 3px;
  cursor: pointer;
}

.fluentform .termine-live-bild__aendern:hover {
  color: var(--tl-koralle-dunkel);
}

@media (max-width: 640px) {
  .termine-live-bild__overlay {
    padding: 36px 16px 14px;
  }

  .termine-live-bild__titel {
    font-size: 26px;
  }

  .termine-live-bild__datum {
    font-size: 15px;
  }
}

/* ---------- Summe im Formular ---------- */

.termine-live-summe {
  --tl-ink: #222222;
  --tl-muted: #6d6461;
  --tl-band: #ffefea;
  --tl-koralle-dunkel: #e98f7a;
  display: grid;
  gap: 4px;
  margin: 8px 0 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--tl-band);
  font: 400 15px/1.45 "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--tl-ink);
  font-variant-numeric: tabular-nums;
}

.termine-live-summe__hinweis {
  color: var(--tl-koralle-dunkel);
  font-weight: 600;
}

.termine-live-summe__gesamt {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--tl-koralle-dunkel);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- Danke-Seite ---------- */

.termine-live-danke p {
  font-size: 1.1em;
}

.termine-live-danke__checkin {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 1.5em;
}

.termine-live-danke__checkin[hidden] {
  display: none;
}

.termine-live-danke__checkin img {
  width: 220px;
  max-width: 100%;
  height: auto;
  border: 1px solid #eadfdb;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .termine-live__knopf,
  .termine-live-auswahl .ff-el-form-check-label {
    transition: none;
  }
}

/* ---------- − / + neben den Personenfeldern (Handys zeigen keine Pfeile) ---------- */

.termine-live-zahl {
  display: flex;
  gap: 8px;
  align-items: stretch;
  max-width: 260px;
}

.termine-live-zahl input {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.fluentform .termine-live-zahl__knopf {
  flex: none;
  width: 46px;
  min-height: 44px;
  padding: 0;
  border: 1.5px solid #eadfdb;
  border-radius: 12px;
  background: #ffefea;
  color: #222222;
  font: 600 22px/1 "Inter", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.fluentform .termine-live-zahl__knopf:hover {
  border-color: #e98f7a;
  background: #f5ab99;
}
