/* =========================================
   Demo – minimal (Video + kurze Texte)
   Abhängig von Layout.css (Tokens/Buttons/Container)
   ========================================= */

   .demo {
    --accent: var(--brand);
    --panel: var(--surface);
    --line: var(--border);
  }
  
  /* Section / Typo */
  .demo .section {
    padding-block: clamp(34px, 3vw, 80px);
    position: relative;
  }
  
  .demo .headline {
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: 0.1px;
  }
  
  .demo .h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  }
  
  .demo .sub {
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    margin-top: 10px;
    max-width: 70ch;
  }
  
  .demo .eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent);
    font-size: 0.8rem;
  }
  
  /* CTA */
  .demo .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
  }
  
  /* Breadcrumbs (optional, sehr kompakt) */
  .demo-breadcrumbs {
    margin-top: 10px;
    margin-bottom: 6px;
  }
  
  .demo-breadcrumbs ol {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  .demo-breadcrumbs li::after {
    content: "›";
    margin-left: 10px;
    color: color-mix(in oklab, var(--muted) 70%, transparent);
  }
  
  .demo-breadcrumbs li:last-child::after {
    content: "";
    margin: 0;
  }
  
  .demo-breadcrumbs a {
    color: inherit;
    text-decoration: none;
  }
  
  .demo-breadcrumbs a:hover {
    text-decoration: underline;
  }
  
  /* Layout */
  .demo .demo-wrap {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    display: grid;
    gap: 18px;
  }
  
  /* =========================================================
     HEADER
     ========================================================= */
  
  .demo .demo-head {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 10px;
    align-items: start;
  }
  
  /* Linke Spalte */
  .demo .demo-head .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }
  
  .demo .demo-head .headline {
    grid-column: 1;
    grid-row: 2;
  }
  
  .demo .demo-head .sub {
    grid-column: 1;
    grid-row: 3;
  }
  
  /* Mini-Segmentierung */
  .demo .mini-seg {
    grid-column: 1;
    grid-row: 4;
    margin-top: 4px;
  }
  
  .demo .mini-seg span {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
  }
  
  .demo .mini-seg ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .demo .mini-seg li {
    position: relative;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--line) 85%, var(--accent) 15%);
    background:
      linear-gradient(
        180deg,
        color-mix(in oklab, var(--panel) 95%, #fff 5%),
        color-mix(in oklab, var(--accent) 10%, transparent)
      );
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition:
      opacity 0.45s ease,
      transform 0.45s cubic-bezier(.22,1,.36,1),
      box-shadow 0.2s ease,
      border-color 0.2s ease;
  }
  
  .demo .mini-seg li:hover {
    border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.18),
      0 0 0 1px color-mix(in oklab, var(--accent) 12%, transparent);
  }
  
  /* Animation, sobald reveal aktiv ist */
  .demo .mini-seg.in span {
    opacity: 1;
    transform: translateY(0);
  }
  
  .demo .mini-seg.in li {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  .demo .mini-seg.in li:nth-child(1) {
    transition-delay: 80ms;
  }
  
  .demo .mini-seg.in li:nth-child(2) {
    transition-delay: 160ms;
  }
  
  .demo .mini-seg.in li:nth-child(3) {
    transition-delay: 240ms;
  }
  
  .demo .mini-seg.in li:nth-child(4) {
    transition-delay: 320ms;
  }
  
  .demo .mini-seg.in li:nth-child(5) {
    transition-delay: 400ms;
  }
  
  /* Buttons */
  .demo .demo-head .cta-row {
    grid-column: 1 / -1;
    grid-row: 5;
    justify-content: flex-start;
  }
  
  /* Rechte Spalte: Features */
  .demo .demo-head .demo-features {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
    width: 100%;
  
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* Feature-Kacheln */
  .demo .demo-features p {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
  
    font-weight: 800;
    font-size: clamp(1.02rem, 1.05vw, 1.12rem);
    line-height: 1.25;
  
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }
  
  /* Icon */
  .demo .demo-features p::before {
    content: "✓";
    flex: 0 0 auto;
    width: 1.35em;
    height: 1.35em;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--accent);
    background: color-mix(in oklab, var(--accent) 12%, transparent);
    font-weight: 900;
    line-height: 1;
  }
  
  /* Video */
  .demo .video-wrapper {
    position: relative;
    margin-top: 6px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
      radial-gradient(circle at 0 0, color-mix(in oklab, var(--brand) 8%, transparent), transparent),
      var(--panel);
    box-shadow: var(--shadow);
  }
  
  .demo .video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  
  .demo .video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
  
  /* Note */
  .demo .demo-note {
    max-width: 880px;
  }
  
  /* Reveal */
  .demo .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .demo .reveal.in {
    opacity: 1;
    transform: none;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .demo .demo-head {
      grid-template-columns: 1fr;
      row-gap: 12px;
    }
  
    .demo .demo-head .eyebrow,
    .demo .demo-head .headline,
    .demo .demo-head .sub,
    .demo .mini-seg,
    .demo .demo-head .cta-row,
    .demo .demo-head .demo-features {
      grid-column: 1;
      grid-row: auto;
    }
  
    .demo .sub {
      max-width: none;
    }
  
    .demo .demo-head .cta-row {
      justify-content: flex-start;
    }
  }
  
  @media (max-width: 640px) {
    .demo .mini-seg ul {
      gap: 8px;
    }
  
    .demo .mini-seg li {
      font-size: 0.8rem;
      padding: 6px 10px;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .demo * {
      transition: none !important;
      animation: none !important;
    }
  }

  /* =========================
   Demo Steps (So geht’s weiter)
   ========================= */

.demo .demo-steps {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: 
    radial-gradient(circle at 0 0, color-mix(in oklab, var(--brand) 8%, transparent), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.demo .demo-steps .headline {
  margin-top: 6px;
}

.demo .steps-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

/* einzelne Steps */
.demo .step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 96%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.demo .step:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand) 22%, var(--line));
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* Nummern-Kreis */
.demo .step-number {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
}

/* Text */
.demo .step p {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.98rem;
}

/* Mobile */
@media (max-width: 600px) {
  .demo .demo-steps {
    padding: 18px;
  }

  .demo .step {
    align-items: flex-start;
  }

  .demo .step-number {
    margin-top: 2px;
  }
}

/* =========================
   Demo Guarantee Block
   ========================= */

   .demo .demo-guarantee {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel) 96%, transparent);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .demo .demo-guarantee p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--muted);
  }
  
  .demo .demo-guarantee strong {
    color: var(--text);
    font-weight: 700;
  }
  
  /* Optional kleines Icon Gefühl */
  .demo .demo-guarantee p::before {
    content: "✓";
    margin-right: 8px;
    color: var(--accent);
    font-weight: 900;
  }

  .demo .demo-final-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
  }
  
  .demo .btn--large {
    padding: 14px 22px;
    font-size: 1.05rem;
    font-weight: 700;
  }