/* WeberWave Demo-Bibliothek: gemeinsame Bausteine für alle Demos.
   Demo-Band oben, Demo-Hinweis in Formularen, kurze Meldung (Toast).
   Eigene Klassen mit Präfix ww- , damit nichts mit den Demo-Klassen kollidiert. */

.ww-band {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #0b0d10;
  color: #f4f4f2;
  font: 500 0.78rem/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
}
.ww-band strong { font-weight: 700; }
.ww-band a {
  color: #f4f4f2;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.ww-band a:hover, .ww-band a:focus-visible { color: #ffffff; }
.ww-band .ww-band-link { display: none; }
@media (min-width: 720px) {
  .ww-band { font-size: 0.82rem; }
  .ww-band .ww-band-link { display: inline; }
}

.ww-demo-hinweis {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font: 600 0.75rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
}
.ww-demo-hinweis::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.ww-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  max-width: min(92vw, 30rem);
  padding: 0.85rem 1.1rem;
  border-radius: 0.6rem;
  background: #0b0d10;
  color: #f4f4f2;
  font: 500 0.9rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.ww-toast.ist-sichtbar { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 899px) {
  .ww-toast { bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .ww-toast { transition: none; }
}

/* Platzhalter-Seiten (Impressum, Datenschutz) nutzen die Gestaltung der jeweiligen Demo,
   der Hinweiskasten kommt von hier. */
.ww-recht-hinweis {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid currentColor;
  border-radius: 0.3rem;
  background: rgba(127, 127, 127, 0.12);
  font: 500 0.95rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Versteckte Elemente bleiben versteckt, auch wenn eine Demo display setzt */
[hidden] { display: none !important; }
