/* Copyright © 2026 Caelum GmbH, Kenny Looser. Alle Rechte vorbehalten.
   Drum & 808 (Sound Design): 16 Pads wie das Ableton Drum Rack, Farbe wie Rec. › Drum in der Motion-App (Rot #E5484D).
   Die Pads bleiben dunkel wie am Handy, der Rest folgt hell/dunkel der Seite.
   KI-Beitrag (Claude, GB-7), 23.11.2026 – Freigabe durch Kenny Looser ausstehend (GB-8). */
.d8-block { --d8-rot: #E5484D; --d8-rot-text: #F27B7E; --d8-rot-fl: #2E1A1C; --d8-leise: #C08A8C; --d8-app: #141118; margin: 28px 0 0; }
.d8-block h2 { margin: 0 0 4px; }
.d8-hilfe { color: var(--muted); margin: 0 0 12px; }
.d8 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; align-items: start; }
@media (max-width: 820px) { .d8 { grid-template-columns: 1fr; } }
.d8 button { all: unset; cursor: pointer; box-sizing: border-box; }
.d8 button:focus-visible, .d8-pads:focus-visible { outline: 2px solid var(--c-motion, #E8C547); outline-offset: 2px; }
.d8-links, .d8-stimme { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.d8-leiste { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.d8-leiste button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); font-size: 14px; }
.d8-leiste button:hover { border-color: var(--d8-rot); }
.d8-leiste button[aria-pressed="true"] { background: color-mix(in srgb, var(--d8-rot) 22%, var(--bg)); border-color: var(--d8-rot); color: var(--text); }
.d8-pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--d8-app); border-radius: 12px; padding: 6px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.d8-pads .d8-pad:focus { outline: none; }
.d8-pads .d8-pad { position: relative; aspect-ratio: 1; background: var(--d8-rot-fl); border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: #F2EEF5; touch-action: none; transition: background .25s, transform .06s; min-width: 0; }
@media (min-width: 821px) { .d8-pads .d8-pad { aspect-ratio: 1.3; } }
.d8-pad b { font: 600 clamp(13px, 3.4vw, 18px) "Caelum Zeichen", ui-monospace, Consolas, monospace; }
.d8-pad .d8-name { font-size: 10.5px; color: var(--d8-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92%; }
.d8-pad .d8-note { position: absolute; left: 7px; top: 5px; font: 10px "Caelum Zeichen", ui-monospace, Consolas, monospace; color: var(--d8-leise); }
.d8-pad .d8-taste { position: absolute; right: 7px; top: 5px; font: 10px "Caelum Zeichen", ui-monospace, Consolas, monospace; color: #A89DAD; }   /* 23.11.2026: 2,9 → 6,3 */
@media (hover: none) { .d8-pad .d8-taste, .d8-tasten { display: none; } }
@media (max-width: 420px) { .d8-pad .d8-name { display: none; } }
.d8-pad.gewaehlt { box-shadow: inset 0 0 0 2px var(--d8-rot); }
.d8-pad.an { background: var(--d8-rot); transition: none; transform: scale(.97); }
.d8-pad.an .d8-name, .d8-pad.an .d8-note, .d8-pad.an .d8-taste { color: #fff; }
.d8-info { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; line-height: 1.45; }
.d8-stimme h3 { margin: 0 0 12px; font-size: 15px; color: var(--d8-rot-text); }   /* 23.11.2026 Kontrast 3,4 → 5,0 */
.d8-stimme h3 .d8-note { color: var(--muted); font-weight: 400; font-size: 13px; }
.d8-regler { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) 4.4em; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; color: var(--text-soft); }
.d8-leiste .d8-laut { flex: 1 1 200px; margin: 0; grid-template-columns: auto minmax(80px, 1fr) 3.6em; }
.d8-regler input { width: 100%; accent-color: var(--d8-rot); margin: 0; }
.d8-wert { font: 12px "Caelum Zeichen", ui-monospace, Consolas, monospace; color: var(--muted); text-align: right; }
.d8-stimme .d8-leiste { margin: 14px 0 0; }
/* U2 (23.11.2026 nachts): Fokusrahmen ums Pad-Raster nur bei Tastatur – nach Antippen nicht; runder */
.d8-pads.zeiger:focus-visible { outline: none; }
.d8-links, .d8-stimme { border-radius: 20px; }
.d8-pads { border-radius: 18px; padding: 8px; gap: 7px; }
.d8-pads .d8-pad { border-radius: 14px; }
.d8-leiste button { border-radius: 999px; }
