/* Buchungs-Popup (partials/booking-modal.html), auf allen Seiten gleich */
dialog.rn-modal {
  border: none; padding: 0; background: transparent;
  inline-size: calc(100% - 32px); max-inline-size: 1240px; block-size: min(90vh, 860px); max-block-size: none;
  position: fixed; inset: 0; margin: auto;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  overscroll-behavior: contain;
  transform: none;
  opacity: 0;
  transition: opacity 0.25s ease, scale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
dialog.rn-modal[open] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  dialog.rn-modal { scale: 0.97; }
  dialog.rn-modal[open] { scale: 1; }
}
dialog.rn-modal::backdrop { background: rgba(11, 18, 32, 0.85); backdrop-filter: blur(8px); }
.rn-modal-box { background: #fff; inline-size: 100%; block-size: 100%; display: flex; flex-direction: column; font-family: 'Red Hat Display', 'RHD Fallback Arial', 'RHD Fallback Roboto', system-ui, sans-serif; }
.rn-modal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid #eaecf0; background: #fff; flex-shrink: 0; }
.rn-modal-title { display: block; font-size: 1.2rem; font-weight: 800; color: #0b1220; line-height: 1.25; }
.rn-close { flex-shrink: 0; background: #f1f5f9; border: 1px solid #cbd5e1; cursor: pointer; color: #334155; inline-size: 44px; block-size: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.2s, border-color 0.2s, rotate 0.2s; }
.rn-close:hover { background: #e2e8f0; border-color: #94a3b8; rotate: 90deg; }
.rn-close:focus-visible { outline: 3px solid #1ABEF5; outline-offset: 2px; }
.rn-close svg { inline-size: 24px; block-size: 24px; stroke-width: 2.5; }
.rn-modal-body { flex: 1; min-block-size: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; position: relative; background: #fff; }
.rn-calendly-embed { position: relative; inline-size: 100%; flex-grow: 1; min-block-size: 560px; display: flex; }
.rn-cal-frame { position: relative; z-index: 1; flex: 1; inline-size: 100%; min-block-size: 560px; border: 0; background: transparent; }
.rn-cal-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #475467; font-size: 0.95rem; transition: opacity 0.2s ease; }
.rn-calendly-embed.is-ready .rn-cal-loading { opacity: 0; pointer-events: none; }
.rn-cal-spinner { inline-size: 32px; block-size: 32px; border-radius: 50%; border: 3px solid #e6f6fd; border-top-color: #1ABEF5; }
@media (prefers-reduced-motion: no-preference) {
  .rn-cal-spinner { animation: rn-cal-spin 0.8s linear infinite; }
}
@keyframes rn-cal-spin { to { rotate: 360deg; } }
.rn-modal-foot { flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 10px 16px; border-top: 1px solid #eaecf0; background: #fff; }
.rn-modal-foot .rn-modal-alt, .rn-modal-foot .rn-modal-fallback { margin: 0; padding: 0; border: 0; font-size: 0.85rem; text-align: center; color: #475467; }
.rn-modal-foot .rn-modal-alt[hidden] { display: none; }
.rn-modal-fallback a, .rn-modal-alt button { color: #0a789f; text-decoration: underline; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 768px) {
  dialog.rn-modal { inline-size: 100%; block-size: 100dvh; max-inline-size: none; border-radius: 0; margin: 0; }
  .rn-modal-header { padding: 10px 12px 10px 16px; }
  .rn-modal-title { font-size: 1.05rem; }
    .rn-calendly-embed, .rn-cal-frame { min-block-size: 0; }
}
.rn-modal-foot:not(:has(> :not([hidden]))) { display: none; }
