/* Elementor Shortcode-Widget: volle Breite, kein Theme-Override */
.elementor-widget-shortcode .w86rb,
.elementor-element .w86rb {
  width: 100%;
  max-width: 960px;
}

.w86rb {
  --w86-bg: #0f1419;
  --w86-surface: #1a222d;
  --w86-surface2: #243040;
  --w86-border: #2f3d4f;
  --w86-text: #e8edf4;
  --w86-muted: #8b9cb3;
  --w86-accent: #3d9aed;
  --w86-ohana: #2dd4bf;
  --w86-horst: #f59e0b;
  --w86-small: #f97316;
  --w86-large: #38bdf8;
  --w86-ok: #34d399;
  --w86-warn: #fbbf24;
  --w86-err: #f87171;
  --w86-radius: 12px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--w86-text);
  line-height: 1.5;
  max-width: 960px;
  margin: 0 auto;
}

.w86rb-header { margin-bottom: 1.5rem; }
.w86rb-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.w86rb-sub { color: var(--w86-muted); margin: 0.35rem 0 0; font-size: 0.95rem; }

.w86rb-badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: 1px solid var(--w86-border);
}
.w86rb-badge--demo { color: var(--w86-warn); background: var(--w86-surface2); }
.w86rb-badge--live { color: var(--w86-ok); background: rgba(52, 211, 153, 0.1); border-color: var(--w86-ok); }

.w86rb-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .w86rb-layout { grid-template-columns: 270px 1fr; align-items: start; }
}

.w86rb-card {
  background: var(--w86-surface);
  border: 1px solid var(--w86-border);
  border-radius: var(--w86-radius);
  padding: 1.25rem;
}

.w86rb-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--w86-muted);
  margin: 0 0 1rem;
}

.w86rb-label {
  display: block;
  font-size: 0.85rem;
  color: var(--w86-muted);
  margin-bottom: 0.35rem;
}

.w86rb-input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  color: var(--w86-text);
  background: var(--w86-surface2);
  border: 1px solid var(--w86-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.w86rb-player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.w86rb-player-btn {
  padding: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--w86-border);
  border-radius: 8px;
  background: var(--w86-surface2);
  color: var(--w86-muted);
  cursor: pointer;
}
.w86rb-player-btn.is-active {
  color: var(--w86-text);
  border-color: var(--w86-accent);
  background: rgba(61, 154, 237, 0.12);
}
.w86rb-player-btn[data-player="OHANA"].is-active { border-color: var(--w86-ohana); }
.w86rb-player-btn[data-player="HORST"].is-active { border-color: var(--w86-horst); }

.w86rb-room-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.w86rb-room-tab {
  flex: 1;
  padding: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--w86-border);
  border-radius: 8px;
  background: var(--w86-surface2);
  color: var(--w86-muted);
  cursor: pointer;
}
.w86rb-room-tab small { display: block; font-weight: 400; font-size: 0.7rem; margin-top: 0.15rem; }
.w86rb-room-tab:disabled { opacity: 0.4; cursor: not-allowed; }
.w86rb-room-tab.is-active[data-room="small"] { border-color: var(--w86-small); color: var(--w86-small); }
.w86rb-room-tab.is-active[data-room="large"] { border-color: var(--w86-large); color: var(--w86-large); }

.w86rb-quota {
  padding: 0.75rem;
  background: var(--w86-surface2);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}
.w86rb-quota h4 { margin: 0 0 0.5rem; font-size: 0.72rem; text-transform: uppercase; color: var(--w86-muted); }
.w86rb-quota-row { margin-bottom: 0.5rem; }
.w86rb-quota-bar { height: 5px; background: var(--w86-border); border-radius: 3px; overflow: hidden; margin-top: 0.2rem; }
.w86rb-quota-fill { height: 100%; border-radius: 3px; }
.w86rb-quota-fill--ohana { background: var(--w86-ohana); }
.w86rb-quota-fill--horst { background: var(--w86-horst); }

.w86rb-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--w86-muted);
}
.w86rb-rules li { padding: 0.25rem 0 0.25rem 0.9rem; position: relative; }
.w86rb-rules li::before { content: "•"; position: absolute; left: 0; color: var(--w86-accent); }

.w86rb-durations { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.w86rb-dur {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  border: 1px solid var(--w86-border);
  border-radius: 999px;
  background: var(--w86-surface2);
  color: var(--w86-muted);
  cursor: pointer;
}
.w86rb-dur.is-active { border-color: var(--w86-accent); color: var(--w86-accent); }

.w86rb-slots-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.w86rb-date-label { font-weight: 600; }
.w86rb-hint { font-size: 0.78rem; color: var(--w86-muted); }

.w86rb-loading { font-size: 0.85rem; color: var(--w86-muted); margin-bottom: 0.5rem; }

.w86rb-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.w86rb-slot {
  padding: 0.55rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--w86-border);
  border-radius: 8px;
  background: var(--w86-surface2);
  color: var(--w86-text);
  cursor: pointer;
}
.w86rb-slot.is-free:hover { border-color: var(--w86-accent); }
.w86rb-slot.is-selected { border-color: var(--w86-ok); background: rgba(52, 211, 153, 0.12); color: var(--w86-ok); }
.w86rb-slot.is-busy {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: #4a5568;
}
.w86rb-slot.is-quota { opacity: 0.5; cursor: not-allowed; border-color: var(--w86-err); }

.w86rb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--w86-muted);
  margin-bottom: 1rem;
}
.w86rb-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: middle;
  font-style: normal;
}
.w86rb-legend .free i { background: var(--w86-surface2); border: 1px solid var(--w86-border); }
.w86rb-legend .busy i { background: #4a5568; }
.w86rb-legend .quota i { background: var(--w86-err); }

.w86rb-occupied { margin-bottom: 1rem; }
.w86rb-occupied-title { font-size: 0.85rem; margin: 0 0 0.5rem; color: var(--w86-muted); }
.w86rb-occupied-list { list-style: none; margin: 0; padding: 0; }
.w86rb-occupied-list li {
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.35rem;
  background: var(--w86-surface2);
  border-radius: 6px;
  font-size: 0.85rem;
  border-left: 3px solid var(--w86-border);
}
.w86rb-occupied-list li strong { color: var(--w86-text); }
.w86rb-occupied-list .time { color: var(--w86-muted); margin-right: 0.5rem; }
.w86rb-occupied-empty { font-size: 0.85rem; color: var(--w86-muted); margin: 0; }

.w86rb-summary {
  padding: 0.85rem;
  background: var(--w86-surface2);
  border-radius: 8px;
  border-left: 3px solid var(--w86-accent);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.w86rb-summary--empty { border-left-color: var(--w86-border); color: var(--w86-muted); }

.w86rb-book {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--w86-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.w86rb-book:disabled { opacity: 0.45; cursor: not-allowed; }

.w86rb-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.7rem 1.1rem;
  background: var(--w86-surface);
  border: 1px solid var(--w86-ok);
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 99999;
  transition: transform 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.w86rb-toast.is-show { transform: translateX(-50%) translateY(0); }
.w86rb-toast.is-err { border-color: var(--w86-err); }
