/* Becknd: Live-Demo Anfrage-Eingang (08.11.2026), Backend: becknd.com/_demo/anfrage.php */

/* ---------- LIVE-DEMO ---------- */
.demo-section{background:var(--bg);}
.demo-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:20px; align-items:stretch;}
@media (max-width:900px){ .demo-grid{grid-template-columns:1fr;} }
.demo-card{background:var(--surface); border:1px solid var(--line-strong); border-radius:18px; padding:26px 26px 22px; display:flex; flex-direction:column; gap:14px;}
.demo-card-label{font-size:calc(12px * var(--a11y-scale)); font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--petrol-text);}
.demo-presets{display:flex; flex-wrap:wrap; gap:8px;}
.demo-preset{font:inherit; font-size:calc(13px * var(--a11y-scale)); font-weight:600; color:var(--text-soft); background:var(--surface-2); border:1px solid var(--line-strong); border-radius:999px; padding:7px 13px; min-height:36px; cursor:pointer;}
.demo-preset.is-active{border-color:var(--petrol); color:var(--text); background:rgba(var(--petrol-rgb),0.14);}
.demo-field{display:flex; flex-direction:column; gap:6px;}
.demo-field span{font-size:calc(13px * var(--a11y-scale)); color:var(--muted); font-weight:600;}
.demo-field input, .demo-field textarea{font:inherit; font-size:calc(15.5px * var(--a11y-scale)); color:var(--text); background:var(--bg); border:1px solid var(--line-strong); border-radius:10px; padding:11px 13px; width:100%; resize:vertical;}
.demo-field input:focus, .demo-field textarea:focus{outline:2px solid var(--petrol); outline-offset:1px; border-color:transparent;}
.demo-hp{position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0;}
.demo-submit{align-self:flex-start;}
.demo-submit[disabled]{opacity:.6; cursor:progress;}
.demo-note{font-size:calc(12.5px * var(--a11y-scale)); color:var(--muted);}
.demo-link{font:inherit; color:var(--petrol-text); background:none; border:0; padding:0; text-decoration:underline; cursor:pointer;}

.demo-steps{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; position:relative;}
.demo-step{display:flex; gap:14px; align-items:flex-start; padding:8px 4px; position:relative; transition:opacity .3s ease;}
.demo-step::before{content:""; position:absolute; left:11px; top:30px; bottom:-10px; width:2px; background:var(--line-strong);}
.demo-step:last-child::before{display:none;}
.demo-dot{flex-shrink:0; width:24px; height:24px; border-radius:50%; border:2px solid var(--line-strong); background:var(--surface); position:relative; z-index:1; transition:background .25s ease, border-color .25s ease, box-shadow .25s ease;}
.demo-step div{display:flex; flex-direction:column; gap:2px; min-width:0;}
.demo-step strong{font-size:calc(15px * var(--a11y-scale)); color:var(--text); font-weight:600;}
.demo-step span{font-size:calc(13.5px * var(--a11y-scale)); color:var(--text-soft); overflow-wrap:anywhere;}
.demo-step em{font-style:normal; font-variant-numeric:tabular-nums; color:var(--petrol-text); font-size:calc(12px * var(--a11y-scale)); font-weight:700;}
.demo-step.is-idle{opacity:.45;}
.demo-step.is-done .demo-dot{background:var(--petrol-solid); border-color:var(--petrol); box-shadow:0 0 0 4px rgba(var(--petrol-rgb),0.18);}
.demo-step.is-done .demo-dot::after{content:""; position:absolute; left:6px; top:3px; width:6px; height:11px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg);}
.demo-step.is-flag .demo-dot{background:var(--weinrot-solid); border-color:var(--weinrot); box-shadow:0 0 0 4px rgba(var(--weinrot-rgb),0.25);}
.demo-step.is-flag span{color:var(--weinrot-text);}
.demo-reply{background:var(--bg-deep-petrol); border:1px solid rgba(var(--petrol-rgb),0.4); border-radius:14px; padding:16px 18px; animation:demo-in .4s var(--ease);}
.demo-reply-label{font-size:calc(11.5px * var(--a11y-scale)); font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--petrol-text); margin-bottom:8px;}
.demo-reply-text{white-space:pre-line; font-size:calc(14.5px * var(--a11y-scale)); color:var(--text); line-height:1.55;}
.demo-time{font-size:calc(14px * var(--a11y-scale)); color:var(--text);}
.demo-time strong{color:var(--petrol-text); font-variant-numeric:tabular-nums;}
.demo-error{color:var(--weinrot-text); font-size:calc(14px * var(--a11y-scale));}
.demo-foot{margin-top:16px; font-size:calc(13px * var(--a11y-scale)); color:var(--muted); text-align:center;}
@keyframes demo-in{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;}}
@media (prefers-reduced-motion: reduce){ .demo-reply{animation:none;} }
html.a11y-no-motion .demo-reply{animation:none;}

/* Landingpages: Demo zwischen Leistungen und Automatisierung, abgesetzt */
body.lp .demo-section{background:var(--bg-alt);}

/* ---------- KOMPAKTMODUS (Hauptseite, 10.11.2026): demo.compact = true ----------
   Alles hier ist auf .is-compact bzw. neue Klassen begrenzt; die Landingpages bleiben unberührt. */
.demo-grid.is-compact{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);}
@media (max-width:900px){ .demo-grid.is-compact{grid-template-columns:1fr;} }
.is-compact .demo-out{scroll-margin-top:84px;}
.is-compact [hidden]{display:none !important;}
.is-compact .demo-field-email span{font-size:calc(15px * var(--a11y-scale)); color:var(--text); font-weight:700;}
.is-compact .demo-field-email input{border:2px solid var(--petrol); background:var(--surface); padding:13px 14px;}
.is-compact .demo-error{margin:0;}
@media (max-width:600px){
  .is-compact .demo-submit{align-self:stretch; justify-content:center; width:100%;}
}

/* Drei schlichte Schritte (vor dem Absenden) */
.demo-simple-steps{list-style:none; margin:6px 0 0; padding:0; display:flex; flex-direction:column; gap:20px;}
.demo-simple-steps li{display:flex; align-items:center; gap:16px; font-size:calc(17px * var(--a11y-scale)); color:var(--text); line-height:1.35;}
.demo-simple-num{flex-shrink:0; width:38px; height:38px; border-radius:50%; border:1.5px solid var(--petrol); color:var(--petrol-text); font-family:var(--font-display); font-weight:700; display:flex; align-items:center; justify-content:center;}
.demo-simple-steps li:nth-child(3) .demo-simple-num{border-color:var(--weinrot); color:var(--weinrot-text);}

/* Ladezustand */
.demo-loading{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; text-align:center; min-height:200px; color:var(--text-soft); font-size:calc(16px * var(--a11y-scale));}
.demo-spinner{width:34px; height:34px; border-radius:50%; border:3px solid rgba(var(--petrol-rgb),0.2); border-top-color:var(--petrol); animation:demo-spin .8s linear infinite;}
@keyframes demo-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion: reduce){ .demo-spinner{animation:none;} }
html.a11y-no-motion .demo-spinner{animation:none;}

/* Erfolgszustand */
.demo-success{display:flex; flex-direction:column; gap:14px; animation:demo-in .4s var(--ease);}
.demo-check{width:52px; height:52px; border-radius:50%; background:var(--petrol-solid); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 6px rgba(var(--petrol-rgb),0.16);}
.demo-check svg{width:26px; height:26px;}
.demo-success h3{font-size:calc(24px * var(--a11y-scale)); outline:none;}
.demo-success-text{font-size:calc(15.5px * var(--a11y-scale)); color:var(--text-soft); line-height:1.6; overflow-wrap:anywhere;}
.demo-success-text strong{color:var(--text);}
.demo-chips{list-style:none; margin:2px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px;}
.demo-chip{padding:7px 13px; border-radius:999px; background:var(--surface-2); border:1px solid var(--line-strong); font-size:calc(13.5px * var(--a11y-scale)); color:var(--text);}
.demo-chip-label{color:var(--muted); font-weight:600;}
.demo-chip.is-flag{border-color:var(--weinrot); color:var(--weinrot-text);}
.demo-chip.is-flag .demo-chip-label{color:var(--weinrot-text);}
.demo-success.is-fallback h3{font-size:calc(20px * var(--a11y-scale));}
/* Eingeklapptes Detail (überschreibt die globale FAQ-Optik für details) */
.demo-details{border:1px solid var(--line); border-radius:12px; background:var(--surface-2); padding:0;}
.demo-details summary{padding:12px 16px; font-size:calc(14.5px * var(--a11y-scale)); font-weight:600; color:var(--text); cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px;}
.demo-details-body{padding:4px 16px 14px;}
.demo-success-cta{font-size:calc(14.5px * var(--a11y-scale)); color:var(--text-soft);}
.demo-success-cta a{color:var(--petrol-text); font-weight:600; text-underline-offset:3px;}
@media (prefers-reduced-motion: reduce){ .demo-success{animation:none;} }
html.a11y-no-motion .demo-success{animation:none;}

/* Kompaktmodus: Beispiel-Buttons mit 44 px Tippfläche (nur Hauptseite) */
.is-compact .demo-preset{min-height:44px;}
