/* Reiter Buchungen (seit 09.10.2026). Eigene Datei, nur Klassen mit Präfix bu-, damit nichts anderes in der Zentrale
   betroffen ist. Farben der Terminarten wie auf der Buchungsseite, sonst die Tokens der Zentrale. */

.bu-punkt {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: oklch(0.72 0.12 195);
}

.bu-punkt[data-farbe='violett'] {
  background: oklch(0.6 0.14 295);
}
.bu-punkt[data-farbe='gold'] {
  background: oklch(0.75 0.13 80);
}
.bu-punkt[data-farbe='blau'] {
  background: oklch(0.6 0.13 250);
}
.bu-punkt[data-farbe='gruen'] {
  background: var(--gruen);
}
.bu-punkt[data-farbe='orange'] {
  background: oklch(0.7 0.15 55);
}
.bu-punkt[data-farbe='rot'] {
  background: var(--rot);
}
.bu-punkt[data-farbe='grau'] {
  background: var(--tinte-3);
}

.punkt.gruen {
  background: var(--gruen);
}
.punkt.gelb {
  background: var(--gelb);
}
.punkt.grau {
  background: var(--tinte-3);
}

.bu-leise {
  margin: 0;
  color: var(--tinte-3);
  font-size: 14px;
}

.bu-laden {
  padding: 32px 0;
  color: var(--tinte-3);
  text-align: center;
}

/* ---------- Kopf, Reiter, Filter ---------- */

.bu-kopfknoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bu-reiter {
  margin-bottom: 14px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.bu-reiter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bu-zahl {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--marke-zart);
  color: var(--marke-tief);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.bu-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.bu-filter .filterleiste {
  margin: 0;
  padding: 2px 0 4px;
}

.bu-suchfeld {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 420px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
  color: var(--tinte-3);
}

.bu-suchfeld input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}

/* ---------- Liste ---------- */

.bu-naechste {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--tinte-2);
  font-size: 14.5px;
  font-weight: 520;
}

.bu-naechste .punkt.live {
  background: var(--gruen);
}

.bu-liste {
  display: grid;
  gap: 22px;
}

.bu-tag {
  display: grid;
  gap: 8px;
}

.bu-tag-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 2px;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.bu-tag-kopf span {
  color: var(--tinte-3);
  font-size: 13px;
  font-weight: 520;
}

.bu-zeile {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-l);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
  transition:
    box-shadow 160ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.bu-zeile:hover {
  box-shadow: var(--schatten-2);
}

.bu-zeile.aktiv {
  box-shadow: 0 0 0 2px var(--marke-tief), var(--schatten-1);
}

.bu-zeile.abgesagt .bu-z-name strong,
.bu-zeile.abgesagt .bu-z-zeit strong {
  text-decoration: line-through;
  color: var(--tinte-3);
}

.bu-z-knopf {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  padding: 14px 8px 14px 18px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.bu-z-zeit {
  display: grid;
  font-variant-numeric: tabular-nums;
}

.bu-z-zeit strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.bu-z-zeit small {
  color: var(--tinte-3);
  font-size: 12.5px;
}

.bu-z-haupt {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bu-z-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.bu-z-name strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bu-z-name span {
  color: var(--tinte-2);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bu-z-art {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tinte-2);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
}

.bu-z-ort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tinte-3);
}

.bu-z-wer {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--tinte-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.bu-z-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bu-st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--tinte-2);
  font-size: 12.5px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.bu-st.ok {
  background: var(--gruen-zart);
  color: var(--gruen);
}

.bu-st.fehler {
  background: var(--rot-zart);
  color: var(--rot);
}

.bu-st-close {
  letter-spacing: 0.01em;
}

.bu-z-aktionen {
  display: flex;
  gap: 2px;
  padding-right: 10px;
}

.bu-leer {
  padding: 48px 16px;
}

.bu-leer-knoepfe {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Seitenansicht (Mac) und Blatt (Telefon) ---------- */

.bu-seitenansicht {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: min(460px, calc(100vw - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-xl);
  background: var(--flaeche);
  box-shadow: var(--schatten-2);
  opacity: 0;
  transform: translateX(16px);
  transition:
    transform 240ms var(--ease-drawer),
    opacity 180ms var(--ease-out);
}

.bu-seitenansicht.offen {
  opacity: 1;
  transform: none;
}

@media (min-width: 1200px) {
  .bu-seite.mit-seite {
    padding-right: calc(var(--seite) + 476px);
  }
}

.bu-detail {
  display: grid;
  gap: 16px;
  padding: 18px 22px 26px;
}

.bu-blatt .bu-detail {
  padding: 0 4px 8px;
}

.bu-d-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bu-d-art {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 640;
}

.bu-ebene {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--tinte-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.bu-ebene:empty {
  display: none;
}

.bu-d-titel {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bu-d-titel small {
  color: var(--tinte-2);
  font-size: 15px;
  font-weight: 520;
  letter-spacing: 0;
}

.bu-d-zeit {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius-l);
  background: var(--flaeche-2);
  box-shadow: inset 0 0 0 1px var(--linie-2);
}

.bu-d-zeit span {
  color: var(--tinte-2);
  font-variant-numeric: tabular-nums;
}

/* Uhrzeit mit Dauer und daneben „Dauer ändern“ (02.11.2026), am Telefon darunter */
.bu-d-zeitzeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.bu-d-ort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
}

/* Wem die Buchung als gelegt zählt (seit 04.11.2026), mit „Ändern“ */
.bu-d-gelegt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
  color: var(--tinte-2);
  font-size: 14px;
}

.bu-d-gelegt > svg {
  flex: none;
  color: var(--tinte-3);
}

.bu-d-trainee {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--marke-zart);
  color: var(--marke-tief);
  font-size: 12px;
  font-weight: 600;
}

.bu-d-gelegt-wahl {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-s);
  background: var(--flaeche);
  color: var(--tinte);
  font: inherit;
  font-size: 14px;
}

.bu-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--tinte-2);
  font-weight: 560;
}

.bu-status-ok {
  color: var(--gruen);
}

.bu-status-ab {
  color: var(--rot);
}

.bu-hauptaktionen,
.bu-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bu-abschnitt {
  display: grid;
  gap: 8px;
}

.bu-abschnitt h3 {
  margin: 0;
  color: var(--tinte-3);
  font-size: 13px;
  font-weight: 640;
}

.bu-gast-kopf {
  display: grid;
  gap: 2px;
}

.bu-gast-name {
  font-size: 17px;
}

.bu-gast-kopf span {
  color: var(--tinte-2);
  font-size: 14px;
}

.bu-feldzeile {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 4px 4px 12px;
  border-radius: var(--radius-m);
  background: var(--flaeche-2);
}

.bu-feldzeile > svg {
  color: var(--marke-tief);
}

.bu-feldwert {
  display: grid;
  min-width: 0;
}

.bu-feldwert small {
  color: var(--tinte-3);
  font-size: 12px;
}

.bu-feldwert a,
.bu-feldwert span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 560;
  color: var(--tinte);
  text-decoration: none;
}

.bu-feldwert a:hover {
  color: var(--marke-tief);
  text-decoration: underline;
}

.bu-antworten {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  margin: 0;
}

.bu-antworten dt {
  color: var(--tinte-3);
}

.bu-antworten dd {
  margin: 0;
  font-weight: 540;
}

.bu-notiz {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
  background: var(--flaeche);
  resize: vertical;
}

.bu-close-lead {
  display: grid;
  gap: 2px;
}

.bu-close-lead a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 620;
}

.bu-close-lead small {
  color: var(--tinte-3);
}

.bu-close-andere summary {
  cursor: pointer;
  color: var(--marke-tief);
  font-weight: 560;
  font-size: 14px;
}

.bu-close-andere[open] summary {
  margin-bottom: 8px;
}

.bu-close-suche,
.bu-close-vorschlag input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--flaeche);
}

.bu-close-vorschlag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tinte-3);
}

.bu-close-treffer {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.bu-close-wahl {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
  background: var(--flaeche);
  text-align: left;
  cursor: pointer;
}

.bu-close-wahl:hover {
  border-color: var(--marke-tief);
  background: var(--marke-zart);
}

.bu-close-wahl small {
  color: var(--tinte-3);
}

.bu-ablauf {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bu-ablauf li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid var(--linie-2);
  font-size: 14px;
}

.bu-ablauf li:last-child {
  border-bottom: 0;
}

.bu-ablauf li > svg {
  color: var(--tinte-3);
}

.bu-ablauf li > span {
  display: grid;
}

.bu-ablauf li.weg {
  opacity: 0.55;
}

.bu-ab-ereignis time {
  color: var(--tinte-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bu-ab-ok {
  color: var(--gruen);
  font-size: 13px;
}

.bu-ab-plan {
  color: var(--tinte-2);
  font-size: 13px;
}

.bu-ab-weg {
  color: var(--tinte-3);
  font-size: 13px;
}

.bu-ab-fehler {
  color: var(--rot);
  font-size: 13px;
}

/* ---------- SMS-Vorschau ---------- */

.bu-sms {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-l);
  background: var(--flaeche-3);
}

.bu-sms-kopf {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tinte-3);
  font-size: 13px;
}

.bu-sms-blase {
  justify-self: start;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.bu-sms-fuss {
  color: var(--tinte-3);
  font-size: 12.5px;
}

/* ---------- Zeitwahl ---------- */

.bu-zeitwahl {
  display: grid;
  gap: 12px;
}

.bu-zw-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bu-zw-laden,
.bu-zw-leer {
  color: var(--tinte-3);
  font-size: 14px;
}

.bu-zw-innen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: start;
}

.bu-zw-raster {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.bu-zw-wt {
  color: var(--tinte-3);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.bu-zw-tag {
  aspect-ratio: 1;
  max-width: 44px;
  justify-self: center;
  width: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tinte-3);
  font-variant-numeric: tabular-nums;
}

.bu-zw-tag.frei {
  background: var(--marke-zart);
  color: var(--marke-tief);
  font-weight: 650;
  cursor: pointer;
}

.bu-zw-tag.wahl {
  background: var(--nacht);
  color: #fff;
}

.bu-zw-tag.heute {
  box-shadow: inset 0 0 0 1.5px var(--marke-tief);
}

.bu-zw-zeiten {
  display: grid;
  gap: 8px;
}

.bu-zw-tagname {
  font-size: 14px;
  font-weight: 620;
  color: var(--tinte-2);
}

.bu-zw-liste {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.bu-zw-zeit {
  min-height: 42px;
  border: 1px solid oklch(0.88 0.06 195);
  border-radius: var(--radius-m);
  background: var(--flaeche);
  color: var(--marke-tief);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.bu-zw-zeit:hover,
.bu-zw-zeit.wahl {
  border-color: var(--marke-tief);
  background: var(--marke-zart);
}

/* ---------- Termin legen, Verschieben, Absagen ---------- */

.bu-neu {
  display: grid;
  gap: 16px;
}

.bu-schritte {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--tinte-3);
  font-size: 13.5px;
  font-weight: 560;
}

.bu-schritte li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bu-schritte li span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--flaeche-3);
  font-size: 12px;
}

.bu-schritte li.aktiv {
  color: var(--tinte);
}

.bu-schritte li.aktiv span {
  background: var(--nacht);
  color: #fff;
}

.bu-schritte li.fertig span {
  background: var(--marke-zart);
  color: var(--marke-tief);
}

.bu-neu-buehne {
  display: grid;
  gap: 14px;
}

.bu-personen {
  display: inline-flex;
  gap: 4px;
  justify-self: start;
  padding: 3px;
  border-radius: 12px;
  background: var(--flaeche-3);
}

.bu-personen button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tinte-2);
  font-weight: 580;
  cursor: pointer;
}

.bu-personen button[aria-selected='true'] {
  background: var(--flaeche);
  color: var(--tinte);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.1);
}

.bu-artwahl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.bu-artknopf {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-l);
  background: var(--flaeche);
  text-align: left;
  cursor: pointer;
}

.bu-artknopf:hover {
  border-color: var(--marke-tief);
}

.bu-artknopf span {
  display: grid;
}

.bu-artknopf small {
  color: var(--tinte-3);
}

.bu-neu-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bu-neu-person {
  color: var(--tinte-3);
  font-weight: 500;
}

.bu-alle-arten {
  justify-self: start;
  margin-top: 8px;
}

.bu-eigene-zeit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--linie-2);
  color: var(--tinte-3);
  font-size: 13.5px;
}

.bu-eigene-zeit input,
.bu-formular input,
.bu-formular select,
.bu-formular textarea,
.bu-regel select,
.bu-regel input[type='time'],
.bu-ruhe input,
.bu-sms-anbieter input,
.bu-fenster-zeile input,
.bu-ausnahme-neu input,
.bu-neu textarea {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
  background: var(--flaeche);
  font-size: 15px;
}

.bu-formular textarea,
.bu-neu textarea {
  width: 100%;
  padding: 10px 12px;
  resize: vertical;
}

.bu-formular {
  display: grid;
  gap: 12px;
}

.bu-feld {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bu-feld > span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tinte-2);
}

.bu-feld > small {
  color: var(--tinte-3);
  font-size: 12.5px;
}

.bu-feld input,
.bu-feld select {
  width: 100%;
}

.bu-zweier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bu-dreier {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bu-segmente {
  display: inline-flex;
  gap: 4px;
  justify-self: start;
  padding: 3px;
  border-radius: 999px;
  background: var(--flaeche-3);
}

.bu-segmente button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tinte-2);
  font-weight: 560;
  cursor: pointer;
}

.bu-segmente button[aria-pressed='true'] {
  background: var(--flaeche);
  color: var(--tinte);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.1);
}

/* Dauer je Termin (02.11.2026): Stufen ab dem Standard der Terminart, daneben jede Minutenzahl von Hand. Am Telefon
   brechen die Stufen um, deshalb kein Pillenrand über zwei Zeilen. */
.bu-dauerwahl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.bu-dauer-stufen {
  flex-wrap: wrap;
  border-radius: 20px;
}

.bu-dauer-frei {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tinte-3);
  font-size: 13.5px;
}

.bu-dauer-frei input {
  width: 84px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
  background: var(--flaeche);
  color: var(--tinte);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.bu-dauer-zeile {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bu-neu-fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.bu-plan {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-l);
  background: var(--flaeche-2);
  box-shadow: inset 0 0 0 1px var(--linie-2);
  font-size: 14px;
}

.bu-plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bu-plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 4px 8px;
  align-items: start;
}

.bu-plan li svg {
  margin-top: 2px;
  color: var(--marke-tief);
}

.bu-plan q {
  grid-column: 2;
  color: var(--tinte-2);
  font-size: 13.5px;
  quotes: '„' '“';
}

.bu-warnung {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  background: var(--gelb-zart);
  color: oklch(0.45 0.1 65);
  font-weight: 560;
}

.bu-schalterzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  background: var(--flaeche-2);
}

.bu-schalterzeile span {
  display: grid;
}

.bu-schalterzeile small {
  color: var(--tinte-3);
}

.blatt.bu-blatt-gross {
  width: min(1120px, 96vw);
}

/* ---------- Einrichtung ---------- */

.bu-einrichtung {
  display: grid;
  gap: 18px;
  max-width: 1080px;
}

.bu-e-abschnitt {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
}

.bu-e-kopf h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.bu-e-kopf p {
  margin: 4px 0 0;
  max-width: 80ch;
  color: var(--tinte-2);
  font-size: 14.5px;
}

.bu-e-werkzeug {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bu-e-person {
  display: grid;
  gap: 8px;
}

.bu-e-person-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bu-arten {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bu-art-zeile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 16px;
  border-radius: var(--radius-l);
  background: var(--flaeche-2);
  box-shadow: inset 0 0 0 1px var(--linie-2);
}

.bu-art-zeile.aus {
  opacity: 0.6;
}

.bu-art-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.bu-art-text small {
  color: var(--tinte-3);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bu-art-text em {
  color: var(--tinte-3);
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
}

.bu-fragen {
  display: grid;
  gap: 8px;
}

.bu-frage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto auto;
  align-items: center;
  gap: 8px;
}

.bu-frage input[type='text'] {
  width: 100%;
}

.bu-frage .bu-optionen {
  grid-column: 1 / -1;
}

.bu-pflicht {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.bu-regeln {
  display: grid;
  gap: 6px;
}

.bu-regel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-l);
  background: var(--flaeche-2);
  box-shadow: inset 0 0 0 1px var(--linie-2);
}

.bu-regel.aus {
  opacity: 0.6;
}

.bu-regel-kanal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  font-weight: 620;
}

.bu-regel .schalter {
  margin-left: auto;
}

.bu-ruhe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--tinte-2);
  font-size: 14px;
}

.bu-texte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bu-texte h3 {
  margin: 0 0 8px;
  color: var(--tinte-3);
  font-size: 13px;
  font-weight: 640;
}

.bu-texte > div {
  display: grid;
  align-content: start;
  gap: 6px;
}

.bu-text-zeile {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--flaeche-2);
  text-align: left;
  cursor: pointer;
}

.bu-text-zeile:hover {
  background: var(--marke-zart);
}

.bu-text-zeile span {
  display: grid;
}

.bu-text-zeile small {
  color: var(--tinte-3);
  font-size: 12.5px;
}

.bu-marke {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--flaeche-3);
  color: var(--tinte-3);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
}

.bu-marke.geaendert {
  background: var(--marke-zart);
  color: var(--marke-tief);
}

.bu-text-editor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.bu-text-links,
.bu-text-rechts {
  display: grid;
  gap: 12px;
}

.bu-text-feld {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
  font-size: 15px;
  line-height: 1.5;
}

.bu-platzhalter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bu-platzhalter .chip {
  border: 0;
  cursor: pointer;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-weight: 500;
}

.bu-platzhalter .chip:hover {
  background: var(--marke-zart);
  color: var(--marke-tief);
}

.bu-sms-person,
.bu-verbindung {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.bu-sms-person > span:nth-child(2),
.bu-verbindung > span:last-child {
  display: grid;
  flex: 1;
}

.bu-sms-person small,
.bu-verbindung small {
  color: var(--tinte-3);
}

.bu-sms-anbieter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bu-sms-anbieter input {
  flex: 1 1 260px;
}

.bu-sms-verbinden {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-l);
  background: var(--marke-zart);
}

.bu-sms-verbinden > p {
  margin: 0;
}

.bu-sms-schritte {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.bu-sms-schritte li {
  line-height: 1.45;
}

.bu-testnummer {
  flex: 1 1 220px;
  min-width: 0;
}

.bu-befehl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.bu-befehl code {
  flex: 1 1 260px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  background: var(--flaeche);
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  user-select: all;
}

.bu-seitenkarte {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-l);
  background: var(--flaeche-2);
  box-shadow: inset 0 0 0 1px var(--linie-2);
}

.bu-seitenkarte-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.bu-seitenkarte-kopf > div {
  display: grid;
  flex: 1;
  min-width: 200px;
}

.bu-profilbild {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 3px var(--marke-zart);
}

.bu-profilbild-leer {
  display: grid;
  place-items: center;
  background: var(--marke-zart);
  color: var(--marke-tief);
  font-weight: 700;
}

.bu-woche {
  display: grid;
  gap: 4px;
}

.bu-wochentag {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.bu-wochentag.frei strong {
  color: var(--tinte-3);
}

.bu-fenster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.bu-fenster-zeile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tinte-3);
}

.bu-ausnahmen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bu-ausnahmen .chip {
  height: 30px;
  padding-right: 4px;
}

.bu-chip-weg {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tinte-3);
  cursor: pointer;
}

.bu-ausnahme-neu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tinte-2);
  font-size: 14px;
}

/* ---------- Links teilen ---------- */

.bu-links {
  display: grid;
  gap: 18px;
}

.bu-links-person {
  display: grid;
  gap: 6px;
}

.bu-links-person h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.bu-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-m);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
}

.bu-link-text {
  display: grid;
  min-width: 0;
}

.bu-link-text small {
  color: var(--tinte-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bu-link-text em {
  color: var(--tinte-3);
  font-size: 12px;
  font-style: normal;
}

/* ---------- Telefon ---------- */

@media (max-width: 899px) {
  .bu-seite .titelzeile {
    flex-wrap: wrap;
  }

  .bu-kopfknoepfe {
    width: 100%;
  }

  .bu-kopfknoepfe .knopf {
    flex: 1;
  }

  .bu-reiter {
    display: flex;
    width: 100%;
  }

  .bu-reiter button {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 8px;
  }

  .bu-reiter-text-einrichtung {
    display: none;
  }

  .bu-z-name {
    display: grid;
    gap: 0;
  }

  .bu-z-art {
    flex-wrap: wrap;
    row-gap: 2px;
    white-space: normal;
  }

  .bu-z-knopf {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 6px 12px 14px;
  }

  .bu-z-status {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .bu-z-aktionen {
    flex-direction: column;
    padding-right: 6px;
  }

  .bu-z-aktionen button:last-child {
    display: none;
  }

  .bu-zw-innen {
    grid-template-columns: 1fr;
  }

  .bu-zw-liste {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    max-height: none;
  }

  .bu-zweier,
  .bu-dreier,
  .bu-texte,
  .bu-text-editor {
    grid-template-columns: 1fr;
  }

  .bu-art-zeile {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .bu-art-zeile > .symbolknopf {
    display: none;
  }

  .bu-wochentag {
    grid-template-columns: 1fr auto;
  }

  .bu-wochentag .bu-fenster,
  .bu-wochentag > .bu-leise {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bu-ruhe {
    margin-left: 0;
  }

  .bu-e-abschnitt {
    padding: 18px 16px;
  }

  .bu-frage {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .bu-frage select {
    grid-column: 1;
  }
}

/* ---------- Verschieben mit Grund ---------- */

.bu-grund {
  display: grid;
  gap: 8px;
}

.bu-grund .fehlertext {
  min-height: 0;
  margin: 0;
}

.bu-grund .fehlertext:empty {
  display: none;
}

.bu-grund-vorschlaege {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Freie Zeit: jede Uhrzeit, auch außerhalb der Buchungszeiten (26.10.2026). */
.bu-frei {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--linie);
}

.bu-frei > small {
  margin-top: -4px;
}

.bu-frei .fehlertext {
  min-height: 0;
  margin: 0;
}

.bu-frei .fehlertext:empty {
  display: none;
}

.bu-grund-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--flaeche-2);
  overflow-wrap: anywhere;
}

.bu-vorschau-titel {
  margin-top: 6px;
  font-size: 14px;
  color: var(--tinte-2);
}
