.sectb {
  --sectb-button: #25262b;
  --sectb-icon: #fff;
  --sectb-bottom: 28px;
  --sectb-side: 24px;
  position: fixed;
  z-index: 999998;
  bottom: max(var(--sectb-bottom), env(safe-area-inset-bottom));
  font-family: inherit;
}
.sectb--right { right: max(var(--sectb-side), env(safe-area-inset-right)); }
.sectb--left { left: max(var(--sectb-side), env(safe-area-inset-left)); }
.sectb__launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sectb-button);
  color: var(--sectb-icon);
  box-shadow: 0 12px 32px rgba(17, 18, 22, .24);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.sectb__launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(17, 18, 22, .3); }
.sectb__launcher:focus-visible { outline: 3px solid rgba(169, 155, 141, .55); outline-offset: 4px; }
.sectb__icon { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; }
.sectb__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sectb__icon svg path:last-child { fill: currentColor; stroke: none; }
.sectb--icon-only .sectb__launcher { width: 56px; height: 56px; min-height: 56px; padding: 0; justify-content: center; }
.sectb--icon-only .sectb__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sectb--pulse .sectb__launcher::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--sectb-button);
  border-radius: inherit;
  pointer-events: none;
  animation: sectb-pulse 3.2s ease-out infinite;
}
@keyframes sectb-pulse { 0%, 62% { opacity: 0; transform: scale(1); } 70% { opacity: .4; } 100% { opacity: 0; transform: scale(1.18); } }
.sectb__overlay { position: fixed; inset: 0; z-index: 999998; background: rgba(17,18,22,.58); backdrop-filter: blur(4px); }
.sectb__dialog {
  position: fixed;
  z-index: 999999;
  top: 50%; left: 50%;
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  transform: translate(-50%, -48%);
  overflow: hidden;
  border: 1px solid rgba(37,38,43,.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(17,18,22,.28);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.sectb__dialog.is-open { opacity: 1; transform: translate(-50%, -50%); }
.sectb__dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 12px 18px 12px 24px; border-bottom: 1px solid #ece9e5; background: #fff; }
.sectb__dialog-head h2 { margin: 0; color: #171717; font: inherit; font-size: 18px; font-weight: 700; }
.sectb__close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f6f4f1; color: #25262b; cursor: pointer; font-size: 28px; line-height: 1; }
.sectb__close:hover { background: #e8e4df; }
.sectb__close:focus-visible { outline: 3px solid rgba(169,155,141,.5); outline-offset: 2px; }
.sectb__dialog-body { max-height: calc(min(88vh, 860px) - 65px); overflow: auto; padding: 24px; overscroll-behavior: contain; }
.sectb__dialog-body .sebc { max-width: 100%; margin: 0 auto; }
.sectb__dialog-body .sebc__card { margin-top: 0; }
.sectb__missing { padding: 32px; border-radius: 14px; background: #f6f4f1; color: #25262b; text-align: center; }
body.sectb-modal-open { overflow: hidden; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .sectb { --sectb-bottom: 18px; --sectb-side: 14px; }
  .sectb__launcher { min-height: 48px; padding: 0 15px; font-size: 13px; }
  .sectb__dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .sectb__dialog-body { max-height: calc(100dvh - 81px); padding: 14px; }
  .sectb__dialog-head { min-height: 58px; padding: 9px 10px 9px 16px; }
  .sectb__dialog-head h2 { font-size: 16px; }
  .sectb--hide-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sectb__launcher, .sectb__dialog { transition: none; }
  .sectb--pulse .sectb__launcher::after { animation: none; }
}

/* Version 1.1: vollständige Kalenderdarstellung im Modal */
.sectb__dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(94dvh, 920px);
}
.sectb__dialog-body {
  max-height: calc(min(94dvh, 920px) - 65px);
  overflow-y: auto;
  overflow-x: hidden;
}
.sectb__dialog-body .sebc__card {
  width: 100%;
}
@media (min-width: 861px) {
  .sectb__dialog-body .sebc {
    max-width: 920px;
  }
  .sectb__dialog-body .sebc__card {
    grid-template-columns: minmax(360px, 1fr) minmax(300px, .82fr);
  }
}
@media (max-width: 680px) {
  .sectb__dialog {
    max-height: calc(100dvh - 12px);
  }
  .sectb__dialog-body {
    max-height: calc(100dvh - 76px);
  }
}
