/* A visual demonstration, never a live call. Its resting waveform is still. */
#stimme { padding-block: clamp(64px, 6vw, 96px); }
#stimme .voice-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: 34px; align-items: center; }
#stimme .voice-heading { display: block; margin: 0; }
#stimme .voice-heading h2 { font-size: clamp(32px, 3.7vw, 56px); line-height: 1.08; letter-spacing: -.05em; hyphens: none; }
#stimme .voice-heading > p { max-width: 47ch; margin-top: 24px; font-size: 16px; line-height: 1.65; }
#stimme .voice-art { position: relative; width: 100%; max-width: 650px; left: auto; bottom: auto; margin: 18px 0 0 -4%; }
#stimme .voice-art img { width: 100%; height: auto; }
#stimme .voice-demo { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 2.7vw, 38px); box-shadow: 0 20px 45px -24px #191b1b40; }
#stimme .voice-demo-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
#stimme .voice-demo-heading > strong { font: 12px/1.5 var(--mono); }
#stimme .voice-demo-heading img { width: 34px; height: auto; flex-shrink: 0; }
#stimme .voice-disclosure { font-size: 12px; line-height: 1.55; margin-top: 8px; color: var(--muted); }
#stimme .voice-question { margin: 23px 0 0 10%; padding: 16px 18px; background: var(--tint); border-radius: 12px 2px 12px 12px; font-size: 16px; line-height: 1.55; }
#stimme .voice-answer { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; font-size: 15px; line-height: 1.6; }
#stimme .voice-answer > img { width: 30px; height: auto; margin-top: 3px; flex-shrink: 0; }
#stimme .voice-wave { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 15px; min-height: 58px; background: var(--tint); border-radius: 8px; color: var(--accent); }
#stimme .voice-wave > span { font: 10px/1.5 var(--mono); }
#stimme .wave-bars { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; height: 34px; overflow: hidden; }
#stimme .wave-bars i { flex: 1; min-width: 2px; height: var(--bar-height); background: currentColor; border-radius: 2px; opacity: .6; transform-origin: center; }
#stimme .voice-demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 28px 0 24px; }
#stimme .voice-demo-steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#stimme .voice-step-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid transparent; border-radius: 50%; background: var(--tint); color: var(--accent); }
#stimme .voice-step-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#stimme .voice-demo-steps li.is-current .voice-step-icon { background: var(--lilac); border-color: var(--accent); }
#stimme .voice-demo-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 11px; font-size: 22px; color: var(--line); }
#stimme .voice-demo-steps strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
#stimme .voice-demo-steps li > span:last-child { font-size: 12px; line-height: 1.55; color: var(--muted); }
#stimme .voice-demo-actions { padding-top: 20px; border-top: 1px solid var(--line); }
#stimme .voice-demo-actions button { display: flex; align-items: center; gap: 14px; max-width: 100%; min-height: 46px; padding: 11px 16px; background: var(--ink); color: var(--panel); border-radius: 4px; font-size: 14px; text-align: left; }
#stimme .voice-demo-actions button[hidden] { display: none; }
#stimme .voice-demo-actions button svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
#stimme .voice-demo-actions .voice-stop { display: none; }
#stimme .voice-demo-actions button[aria-pressed="true"] .voice-play { display: none; }
#stimme .voice-demo-actions button[aria-pressed="true"] .voice-stop { display: block; }
#stimme .voice-demo-status { margin-top: 12px; min-height: 22px; font-size: 12px; line-height: 1.6; color: var(--muted); }
#stimme .voice-demo-note { margin-top: 8px; font: 11px/1.6 var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  #stimme[data-demo-playing="true"] .wave-bars i { animation: aioos-voice-example 640ms ease-in-out var(--bar-delay) infinite alternate; }
  @keyframes aioos-voice-example { from { transform: scaleY(.5); } to { transform: scaleY(1.2); } }
}
@media (max-width: 900px) {
  #stimme .voice-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #stimme .voice-copy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
  #stimme .voice-art { margin: 0; }
  #stimme .voice-demo { max-width: 680px; width: 100%; margin-inline: auto; }
}
@media (max-width: 540px) {
  #stimme .voice-layout { margin-top: 26px; }
  #stimme .voice-copy { display: block; }
  #stimme .voice-heading > p { margin-top: 20px; font-size: 15px; }
  #stimme .voice-art { max-width: 380px; margin: 0 0 -12px; }
  #stimme .voice-art img { max-height: 240px; object-fit: contain; object-position: left center; }
  #stimme .voice-demo { padding: 22px 18px; border-radius: 14px; }
  #stimme .voice-question { margin-left: 5%; font-size: 14px; padding: 13px; }
  #stimme .voice-answer { font-size: 13px; gap: 12px; }
  #stimme .voice-answer > img { width: 26px; }
  #stimme .voice-wave { padding: 10px; gap: 10px; }
  #stimme .wave-bars { gap: 3px; }
  #stimme .voice-demo-steps { gap: 16px; }
  #stimme .voice-step-icon { width: 42px; height: 42px; }
  #stimme .voice-demo-steps strong { font-size: 12px; }
  #stimme .voice-demo-steps li > span:last-child { font-size: 11px; }
  #stimme .voice-demo-steps li:not(:last-child)::after { right: -12px; top: 8px; font-size: 20px; }
}
@media (forced-colors: active) {
  #stimme .voice-demo, #stimme .voice-question, #stimme .voice-wave, #stimme .voice-demo-actions button { border: 1px solid CanvasText; }
  #stimme .voice-demo-steps li.is-current .voice-step-icon { outline: 2px solid CanvasText; }
}
