/* Buchungsdialog für Zeeg, gemeinsam für alle Seiten. Der native <dialog> liegt im Top Layer:
   über Sticky-Leisten und Kontaktleiste, Hintergrund inert, Escape schließt. */
html:has(.zb[open]) { overflow: hidden; }
.zb {
  box-sizing: border-box;
  width: min(1000px, calc(100% - 48px));
  max-width: none;
  height: min(90vh, 880px);
  height: min(90dvh, 880px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #141d2c;
  font: inherit;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(20, 29, 44, 0.35);
}
.zb[open] { display: flex; flex-direction: column; }
/* Ohne backdrop-filter bleibt die Abdunklung allein, das reicht zum Lesen */
.zb::backdrop { background: rgba(20, 29, 44, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.zb *, .zb *::before, .zb *::after { box-sizing: border-box; }
.zb-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 20px; border-bottom: 1px solid #e3e6ea; }
.zb-titel { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: #141d2c; letter-spacing: 0; }
.zb-zu { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #141d2c; cursor: pointer; }
.zb-zu:hover { background: #eef0f3; }
.zb-zu:focus-visible, .zb-direkt:focus-visible { outline: 3px solid #f26a1b; outline-offset: 2px; }
.zb-auswahl { flex: none; margin: 0; padding: 9px 20px; background: #f4f6f9; border-bottom: 1px solid #e3e6ea; font-size: 14px; line-height: 1.45; color: #2b3546; max-width: none; }
.zb-auswahl b { font-weight: 700; color: #141d2c; }
.zb-rahmen { position: relative; flex: 1 1 auto; min-height: 0; }
.zb-status { position: absolute; top: 28px; left: 20px; right: 20px; margin: 0; text-align: center; font-size: 15px; line-height: 1.5; color: #4d5560; max-width: none; }
.zb-kalender { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.zb-fuss { flex: none; margin: 0; padding: 0 20px; border-top: 1px solid #e3e6ea; text-align: right; font-size: 14px; max-width: none; }
.zb-direkt { display: inline-flex; align-items: center; min-height: 44px; color: #4d5560; text-decoration: underline; }
.zb-direkt:hover { color: #141d2c; }

/* Smartphone: ganze Fläche, Kopf fest oben, gescrollt wird nur im Kalender selbst */
@media (max-width: 680px) {
  .zb {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .zb-kopf { padding-left: 16px; }
  .zb-auswahl { padding: 8px 16px; font-size: 13px; }
  .zb-fuss { padding: 0 16px; text-align: center; }
}
