/* ---------- Tape-Demo: abspielbare Rechenstreifen in Doku-Seiten ----------
   Markup und Ablauf: build/dist/tape-demo.js ([data-dct]). Eigene Datei mit
   Versionsnummer im Artikel, unabhängig von deskcalc.css. Aussehen wie das
   Rechnerfenster im Hero der Startseite (hero-demo.css). */
.dct, .dct * { box-sizing: border-box; }
.dct { width: 300px; max-width: 100%; margin: 12px auto; font-family: "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.2; text-align: left; }
.dct > img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.dct-box { background: #f3f3f3; border-radius: 8px; padding: 8px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.14), 0 10px 22px -14px rgb(0 0 0 / 0.45); }
.dct-disp {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 10px; margin-bottom: 8px;
  background: #fff; border: 1px solid #b9c0c9; color: #1c2430; font-variant-numeric: tabular-nums;
}
.dct-key { font-size: 16px; font-weight: 700; color: #fff; background: var(--color-brand, #C8102E); border-radius: 4px; padding: 3px 9px; opacity: 0; transition: opacity 0.15s; }
.dct-key.dct-on { opacity: 1; }
.dct-num { font-size: 24px; font-weight: 700; margin-left: auto; }
.dct-tape { background: #fff; border: 2px solid #0a6cc4; padding: 6px 0; font-size: 13px; color: #1c2430; font-variant-numeric: tabular-nums; }
.dct-row { display: grid; grid-template-columns: 1fr 88px 28px; height: 24px; align-items: center; }
.dct-row.dct-gap { height: 12px; }
.dct-row.dct-in { animation: dct-feed 0.25s ease-out; }
@keyframes dct-feed { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dct-x { text-align: right; padding: 0 8px 0 12px; color: #3a4350; white-space: nowrap; }
.dct-a { text-align: right; }
.dct-o { text-align: center; }
.dct-row.dct-neg .dct-a, .dct-row.dct-neg .dct-o { color: #c0182c; }
.dct-row.dct-sum .dct-a { font-weight: 700; text-decoration: underline; }
.dct-left .dct-row { grid-template-columns: 1fr 28px 88px 12px; }
.dct-left .dct-o { order: 2; }
.dct-left .dct-a { order: 3; }
.dct-expr { width: 340px; }
.dct-expr .dct-row { grid-template-columns: 1fr 112px 12px; }
.dct-expr .dct-num { font-size: 20px; }
.dct .dct-play {
  display: block; margin: 8px auto 0; padding: 6px 14px; min-width: 0; border: 1px solid var(--color-brand, #C8102E); border-radius: 999px;
  background: #fff; color: var(--color-brand, #C8102E); box-shadow: none; font: 600 13px/1.2 "Segoe UI", Tahoma, Arial, sans-serif;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.dct .dct-play:hover, .dct .dct-play:focus-visible { background: var(--color-brand, #C8102E); color: #fff; }
.dct .dct-play:disabled { opacity: 0.45; cursor: default; background: #fff; color: var(--color-brand, #C8102E); }
@media (prefers-reduced-motion: reduce) { .dct-row.dct-in { animation: none; } }
