/* Zusätze der Demo-Umgebung. Wird nach public/demo/_assets/ kopiert. */

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  padding: 0.45rem 1rem;
  background: #fc8e06;
  color: #120c00;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}
.demo-banner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 70;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--color-ink-100);
  color: var(--color-ink-950);
  font-size: 0.85rem;
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.6);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.demo-toast-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-added td {
  background: rgb(252 142 6 / 0.06);
}
.demo-pending {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--color-warn-400);
}
.demo-dash {
  color: var(--color-ink-500);
}
.demo-note {
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--color-ink-400);
}
.demo-note a {
  color: var(--color-brand-300);
  text-decoration: underline;
}

a[data-demo-off] {
  cursor: help;
}

.demo-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.65rem;
  background: #fc8e06;
  color: #120c00;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.45);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.demo-cta::after {
  content: '→';
}
.demo-cta:hover {
  background: #fda53a;
  transform: translateY(-1px);
}

/* Die Sidebar ist sticky und bildschirmhoch; unter dem Banner würde ihr unteres
   Ende (Konto, Abmelden) abgeschnitten. Höhe misst demo.js. */
body:has(.demo-banner) aside.sticky {
  top: var(--demo-banner-h, 2.1rem);
  height: calc(100vh - var(--demo-banner-h, 2.1rem));
}
