/* ============================================================
   Automation-Demo (interaktiver Ablauf auf der Startseite)
   Nutzt die Variablen aus style.css. Präfix: .ad-
   ============================================================ */
.ad { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ad-steps { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ad-step {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 11px 14px; color: var(--warmgray); font: inherit; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.ad-step:hover { background: var(--paper-card); color: var(--text-on-paper); }
.ad-step .n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--paper-line); background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; transition: background .25s, border-color .25s, color .25s;
}
.ad-step .t { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.ad-step .opt { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warmgray); opacity: .85; margin-top: 2px; }
.ad-step.active { background: var(--paper-card); border-color: var(--accent); color: var(--text-on-paper); }
.ad-step.active .n { background: var(--accent-light); border-color: var(--accent-light); color: #1a2330; }
.ad-step.done .n { border-color: var(--accent); color: var(--accent-deep); }

.ad-panel { min-width: 0; }
.ad-head { min-height: 104px; margin-bottom: 18px; }
.ad-label { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ad-title { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; margin-top: 4px; color: var(--text-on-paper); }
.ad-sub { margin-top: 6px; font-size: .98rem; color: var(--warmgray); }

.ad-stage { display: grid; background: var(--ink-deep); border: 1px solid rgba(143,176,221,.16); border-radius: 18px; padding: clamp(16px, 3vw, 28px); overflow: hidden; }
.ad-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .4s ease, transform .4s ease, visibility 0s .4s; }
.ad-slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease, transform .4s ease; }
.ad-slide.past { transform: translateX(-24px); }

.ad-card { width: 100%; max-width: 560px; background: #fff; color: var(--text-on-paper); border-radius: 14px; padding: clamp(16px, 2.4vw, 24px); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.ad-card + .ad-card { margin-top: 12px; }
.ad-card.hl { border: 1.5px solid var(--accent-light); }
.ad-stack { width: 100%; max-width: 560px; }
.ad-row { display: flex; align-items: center; gap: 12px; }
.ad-row + .ad-row { margin-top: 12px; }
.ad-between { justify-content: space-between; }
.ad-top { align-items: flex-start; }
.ad-grow { flex-grow: 1; min-width: 0; }
.ad-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e9ecef; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: #fff; }
.ad-avatar.hot { background: var(--accent); }
.ad-badge { display: inline-flex; align-items: center; gap: 6px; background: #fdf3e9; color: var(--accent-deep); font-size: .68rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.ad-badge.solid { background: var(--accent); color: #fff; }
.ad-badge.grey { background: #f3f4f6; color: #6b7280; }
.ad-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); }
.ad-h { font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.ad-t { font-size: .85rem; color: #4b5563; line-height: 1.5; }
.ad-m { font-size: .72rem; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ad-v { font-size: .92rem; font-weight: 600; margin-top: 2px; }
.ad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 12px; }
.ad-hr { border: 0; border-top: 1px solid #e5e7eb; margin: 12px 0; }
.ad-mute { color: #9ca3af; }
.ad-check { flex-shrink: 0; margin-top: 3px; }
.ad-btn-fake { display: inline-block; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 14px; border-radius: 8px; margin-top: 10px; }
.ad-day { min-width: 62px; justify-content: center; }

.ad-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.ad-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--paper-line); background: #fff; color: var(--text-on-paper); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; }
.ad-arrow:hover { background: var(--paper-card); border-color: var(--copper-light); }
.ad-arrow[disabled] { opacity: .25; cursor: default; pointer-events: none; }
.ad-dots { display: flex; gap: 8px; }
.ad-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #c9d2de; cursor: pointer; transition: background .25s, transform .25s; }
.ad-dots button.active { background: var(--accent); transform: scale(1.25); }
.ad-note { margin-top: 14px; font-size: .78rem; color: var(--warmgray); }
.ad-cta { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ad-cta a.link { color: var(--text-on-paper); text-underline-offset: 4px; font-weight: 600; }

@media (max-width: 900px) {
  .ad { grid-template-columns: 1fr; }
  .ad-steps { display: none; }
  .ad-head { min-height: 118px; }
}
@media (max-width: 480px) {
  .ad-grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-slide, .ad-slide.active { transition: none; }
}
