/* Terminbot Kundenportal 1.1 – Farben passend zu tierarzt-mobil-berlin.de
   Mobil zuerst; Theme-Stile werden innerhalb von .tbp zurueckgesetzt. */
.tbp {
  --tbp-blau: #6aa8c6;
  --tbp-blau-dunkel: #3f7f9f;
  --tbp-grau: #e2e2e2;
  --tbp-grau-hell: #f4f4f4;
  --tbp-text: #555;
  --tbp-rot: #b3261e;
  --tbp-gruen: #2e7d32;
  --tbp-abstand: 16px;
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 1.5em 0;
  padding: var(--tbp-abstand);
  background: var(--tbp-grau);
  border-radius: 10px;
  color: var(--tbp-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 600px) { .tbp { --tbp-abstand: 24px; } }

/* --- Theme-Stile zuruecksetzen (Knöpfe, Felder, Überschriften, Listen …) --- */
.tbp :is(div, section, form, fieldset, legend, label, input, select, textarea, button, h2, h3, p, ul, li, dl, dt, dd, a, small, strong, span) {
  all: revert;
  box-sizing: border-box;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  overflow-wrap: anywhere;
}
.tbp :is(h2, h3, p, ul, dl, form, fieldset) { margin: 0; padding: 0; }
.tbp :is(button, input, select, textarea) { color: inherit; font-size: 16px; line-height: 1.3; }

/* --- Kopf: Titel + Sprachwahl --- */
.tbp .tbp-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 14px; }
.tbp .tbp-titel { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--tbp-text); }
.tbp .tbp-unter { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--tbp-text); }
.tbp .tbp-sprachen { display: flex; gap: 4px; flex: 0 0 auto; }
.tbp .tbp-sprachen button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; width: auto; height: 34px; margin: 0; padding: 0 8px;
  border: 1px solid #c8c8c8; border-radius: 6px; background: #fff; color: var(--tbp-text);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tbp .tbp-sprachen button.aktiv { border-color: var(--tbp-blau); background: var(--tbp-blau); color: #fff; }

/* --- Reiter Anmelden / Registrieren --- */
.tbp .tbp-reiter { display: flex; margin: 0 0 16px; border-bottom: 2px solid #c8c8c8; }
.tbp .tbp-reiter button {
  flex: 1 1 0; min-width: 0; width: auto; min-height: 44px; margin: 0 0 -2px; padding: 8px 4px;
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  font-size: 16px; font-weight: 700; color: #888; cursor: pointer;
}
.tbp .tbp-reiter button.aktiv { color: var(--tbp-blau-dunkel); border-bottom-color: var(--tbp-blau); }

/* --- Formularfelder --- */
.tbp .tbp-form { display: block; margin: 0; }
.tbp .tbp-zeile { display: block; }
@media (min-width: 520px) {
  .tbp .tbp-zeile { display: flex; gap: 12px; }
  .tbp .tbp-zeile > .tbp-feld { flex: 1 1 0; min-width: 0; }
}
.tbp .tbp-feld { display: block; margin: 0 0 14px; }
.tbp .tbp-feld label { display: block; width: auto; margin: 0 0 4px; padding: 0; font-weight: 600; font-size: 15px; color: var(--tbp-text); }
.tbp input.tbp-input {
  display: block; width: 100%; max-width: 100%; height: 48px; margin: 0; padding: 0 12px;
  border: 1px solid #bdbdbd; border-radius: 6px; background: #fff; color: #333;
  font-size: 16px; /* 16px verhindert das automatische Zoomen auf dem iPhone */
  box-shadow: none; -webkit-appearance: none; appearance: none;
}
.tbp input.tbp-input:focus { outline: 2px solid var(--tbp-blau); outline-offset: 1px; border-color: var(--tbp-blau); }
.tbp input.tbp-code { max-width: 12em; letter-spacing: 0.35em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.tbp .tbp-hinweis { display: block; margin: 5px 0 0; font-size: 13px; line-height: 1.4; color: #707070; }

/* --- Checkboxen / Radios: grosse Tippflaechen --- */
.tbp .tbp-option {
  display: flex; align-items: flex-start; gap: 10px; width: auto;
  margin: 2px 0; padding: 8px 0; font-weight: 400; font-size: 15px; line-height: 1.4; cursor: pointer;
}
.tbp .tbp-option input[type=checkbox], .tbp .tbp-option input[type=radio] {
  flex: 0 0 auto; width: 22px; height: 22px; min-width: 22px; margin: 0; padding: 0;
  accent-color: var(--tbp-blau-dunkel); cursor: pointer;
}
.tbp .tbp-option > span { flex: 1 1 auto; min-width: 0; }
.tbp .tbp-option.tbp-aus { opacity: 0.5; cursor: not-allowed; }
.tbp .tbp-zustimmung { margin: 8px 0 14px; font-size: 14px; }
.tbp .tbp-zustimmung a { color: var(--tbp-blau-dunkel); text-decoration: underline; }
.tbp fieldset.tbp-faktor { display: block; border: 0; margin: 2px 0 8px; padding: 0; min-width: 0; }
.tbp fieldset.tbp-faktor legend { display: block; padding: 0; margin: 0 0 2px; font-weight: 600; font-size: 15px; }

/* --- Knöpfe und Links --- */
.tbp button.tbp-knopf {
  display: block; width: 100%; min-width: 0; min-height: 48px; margin: 6px 0 0; padding: 12px 18px;
  border: 0; border-radius: 6px; background: var(--tbp-blau-dunkel); color: #fff;
  font-size: 17px; font-weight: 700; text-align: center; cursor: pointer;
}
.tbp button.tbp-knopf:hover, .tbp button.tbp-knopf:focus-visible { background: #2f6f8f; }
.tbp button.tbp-knopf:disabled { opacity: 0.6; cursor: wait; }
.tbp button.tbp-knopf.tbp-zweit { display: inline-block; width: auto; background: #fff; color: var(--tbp-blau-dunkel); border: 1px solid var(--tbp-blau); }
.tbp button.tbp-knopf.tbp-zweit:hover { background: var(--tbp-grau-hell); }

.tbp .tbp-unten { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; }
.tbp button.tbp-link {
  display: inline-block; width: auto; min-width: 0; min-height: 40px; margin: 0; padding: 8px 0;
  background: none; border: 0; border-radius: 0; color: var(--tbp-blau-dunkel);
  font-size: 15px; font-weight: 400; text-decoration: underline; cursor: pointer;
}

/* --- Meldungen und Texte --- */
.tbp .tbp-meldung:empty { display: none; }
.tbp .tbp-meldung { display: block; margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; font-size: 15px; }
.tbp .tbp-meldung.tbp-fehler { background: #fdecea; color: var(--tbp-rot); border: 1px solid #f5c2be; }
.tbp .tbp-meldung.tbp-ok { background: #e8f5e9; color: var(--tbp-gruen); border: 1px solid #b9dfbb; }
.tbp .tbp-text { display: block; margin: 0 0 12px; font-size: 15px; }
.tbp .tbp-info { display: block; margin: 14px 0 0; padding: 12px; background: #fff; border-left: 4px solid var(--tbp-blau); border-radius: 4px; font-size: 15px; }

/* --- Konto-Uebersicht --- */
.tbp .tbp-karte { display: block; background: #fff; border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; }
.tbp .tbp-karte h3 { display: block; margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--tbp-blau-dunkel); }
.tbp .tbp-daten { display: block; margin: 0; }
.tbp .tbp-daten dt { display: block; margin: 8px 0 0; font-weight: 600; font-size: 13px; color: #777; }
.tbp .tbp-daten dt:first-child { margin-top: 0; }
.tbp .tbp-daten dd { display: block; margin: 0; font-size: 15px; }
@media (min-width: 520px) {
  .tbp .tbp-daten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; align-items: baseline; }
  .tbp .tbp-daten dt { margin: 0; font-size: 15px; color: var(--tbp-text); }
}
.tbp .tbp-liste { display: block; list-style: none; margin: 0; padding: 0; }
.tbp .tbp-liste li { display: block; list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.tbp .tbp-liste li:last-child { border-bottom: 0; }
.tbp .tbp-liste strong { font-weight: 700; }

/* --- Online-Terminbuchung (1.2) --- */
.tbp select.tbp-select {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 36px 0 12px;
  border: 1px solid #bdbdbd; border-radius: 6px; background: #fff; color: #333; font-size: 16px;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat;
}
.tbp textarea.tbp-textarea {
  display: block; width: 100%; min-height: 96px; margin: 0; padding: 10px 12px; resize: vertical;
  border: 1px solid #bdbdbd; border-radius: 6px; background: #fff; color: #333; font-size: 16px; line-height: 1.4;
}
.tbp :is(select.tbp-select, textarea.tbp-textarea):focus { outline: 2px solid var(--tbp-blau); outline-offset: 1px; border-color: var(--tbp-blau); }
.tbp .tbp-neues-tier { display: block; margin: 0 0 10px; padding: 12px 12px 2px; background: #fff; border-radius: 8px; }
.tbp .tbp-buchen-start { display: block; margin: 0 0 14px; }
.tbp .tbp-slots { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 12px; }
@media (min-width: 520px) { .tbp .tbp-slots { grid-template-columns: 1fr 1fr; } }
.tbp button.tbp-slot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 54px; margin: 0;
  padding: 10px 14px; border: 2px solid #fff; border-radius: 8px; background: #fff; color: var(--tbp-text);
  font-size: 16px; text-align: left; cursor: pointer;
}
.tbp button.tbp-slot:hover { border-color: var(--tbp-blau); }
.tbp button.tbp-slot.gewaehlt { border-color: var(--tbp-blau-dunkel); background: #eaf4f9; }
.tbp .tbp-slot-tag { font-weight: 600; }
.tbp .tbp-slot-zeit { font-size: 18px; font-weight: 700; color: var(--tbp-blau-dunkel); white-space: nowrap; }
.tbp .tbp-info { white-space: pre-line; }
.tbp .tbp-hinweis-box { margin: 0 0 12px; border-left-color: #e0a800; }
.tbp .tbp-ja-nein { display: flex; gap: 10px; margin: 12px 0 0; }
.tbp .tbp-ja-nein button.tbp-knopf { flex: 1 1 0; margin: 0; }
.tbp .tbp-liste li.tbp-termin { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tbp button.tbp-link.tbp-absagen { color: #a12622; min-height: 36px; }
.tbp .tbp-erfolg { border-left: 4px solid var(--tbp-gruen); }
.tbp .tbp-gross { display: block; margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--tbp-gruen); }
.tbp .tbp-vortext { display: block; margin: 0; white-space: pre-line; font-size: 15px; }
.tbp a.tbp-kalender { display: inline-block; margin: 4px 0 8px; padding: 8px 0; color: var(--tbp-blau-dunkel); font-weight: 600; text-decoration: underline; }
.tbp .tbp-klein { font-size: 14px; margin: 14px 0 0; }
.tbp .tbp-klein button.tbp-link { min-height: 0; padding: 0; font-size: 14px; }
