/* Gemeinsamer Rahmen aller Designbeispiele:
   Kennzeichnungsleiste oben und Hinweis unten gehören zu WEB & SMART HOME KONZEPT, nicht zum jeweiligen Beispiel.
   Die Beispiele selbst gestalten ausschließlich Inhalte innerhalb von .demo. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[id] { scroll-margin-top: 72px; }

.demo-bar {
  position: sticky; top: 0; z-index: 100;
  background: #13223f; color: #f4f7fb;
  font: 500 15px/1.4 "Avenir Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  letter-spacing: 0;
}
.demo-bar-in {
  max-width: 1240px; margin: 0 auto; padding: 9px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
}
.demo-bar p { margin: 0; }
.demo-badge {
  display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 3px;
  background: #2cc4c4; color: #0b1a33;
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.demo-bar nav { display: flex; align-items: center; gap: 16px; }
.demo-bar a { color: #fff; text-underline-offset: 3px; }
.demo-bar a.demo-cta { border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 4px; padding: 5px 12px; text-decoration: none; }
.demo-bar a.demo-cta:hover { background: #fff; color: #13223f; }
.demo-bar a:focus-visible, .demo-foot a:focus-visible { outline: 3px solid #2cc4c4; outline-offset: 2px; }

.demo-foot {
  background: #13223f; color: #eef2f8; text-align: center; padding: 26px 20px 30px;
  font: 400 15px/1.6 "Avenir Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
.demo-foot p { margin: 0 auto; max-width: 70ch; }
.demo-foot strong { color: #fff; letter-spacing: 0.12em; }
.demo-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 14px; }
.demo-foot a { color: #fff; text-underline-offset: 3px; }

@media (max-width: 640px) {
  [id] { scroll-margin-top: 150px; }
  .demo-bar { font-size: 15px; }
  body .demo { font-size: 1.0625rem; }
  .demo-bar-in { padding: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Gemeinsames, einmaliges Einblenden des ersten Abschnitts in allen Beispielen */
@keyframes demo-rise { from { opacity: 0; transform: translateY(14px); } }
.demo main > section:first-child h1, .demo main > section:first-child h1 ~ * { animation: demo-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.demo main > section:first-child h1 ~ * { animation-delay: 0.1s; }
.demo a, .demo .btn { transition-duration: 0.25s; }
@media (prefers-reduced-motion: reduce) { .demo main > section:first-child h1, .demo main > section:first-child h1 ~ * { animation: none; } .demo * { transition: none !important; } }
