/* Comic-Einstieg + Kassettendeck (16.11.2026). Gehört zu plus.js; ohne JavaScript bleibt die Seite, wie sie ist. */

/* ================= Comic-Einstieg ================= */
.cx { position: relative; }
.cx > .hero { position: sticky; }
.cx-comic { position: absolute; inset: 0; z-index: 6; filter: drop-shadow(0 5px 0 #fff) drop-shadow(0 7px 0 #000); pointer-events: none; }
.cx-blatt { position: absolute; inset: 0; background: #0b0b0b; pointer-events: auto; overflow: hidden; }
.cx-blatt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.cx-raster { position: absolute; inset: 0; background: radial-gradient(circle, rgba(0,0,0,.34) 1px, transparent 1.4px) 0 0 / 5px 5px; mix-blend-mode: multiply; opacity: .5; }
.cx-rahmen { position: absolute; inset: 10px; border: 5px solid #000; outline: 3px solid #fff; outline-offset: -11px; }
.cx-kasten {
  position: absolute; margin: 0; background: #ffd60a; color: #000; border: 3px solid #000; box-shadow: 5px 5px 0 #000;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.05; padding: 8px 14px 6px;
}
.cx-kasten.oben { left: clamp(22px, 3.5vw, 60px); top: clamp(22px, 4vh, 44px); rotate: -2deg; font-size: clamp(1rem, 1.8vw, 1.5rem); }
.cx-kasten.unten { left: 50%; bottom: clamp(78px, 13vh, 130px); translate: -50% 0; rotate: 1deg; font-size: clamp(1.25rem, 3vw, 2.5rem); white-space: nowrap; background: #fff; }
.cx-blase {
  position: absolute; left: 50%; bottom: clamp(22px, 4vh, 40px); translate: -50% 0; margin: 0; background: #fff; color: #000; border: 3px solid #000; border-radius: 999px;
  padding: 7px 20px; font-weight: 900; font-size: clamp(.85rem, 1.4vw, 1rem); box-shadow: 4px 4px 0 #000; animation: cx-hops 1.6s ease-in-out infinite; white-space: nowrap;
}
@keyframes cx-hops { 50% { translate: -50% 6px; } }
.cx-echt { position: absolute; left: clamp(14px, 3vw, 50px); top: clamp(14px, 3vh, 34px); z-index: 2; margin: 0; background: #ffd60a; color: #000; border: 3px solid #000; box-shadow: 5px 5px 0 #000; font-family: var(--head); text-transform: uppercase; letter-spacing: 1.5px; padding: 7px 13px 5px; rotate: -2deg; font-size: clamp(.95rem, 1.6vw, 1.35rem); opacity: 0; scale: .6; transition: opacity .25s, scale .3s cubic-bezier(.2, 1.7, .4, 1); }
.cx-echt.da { opacity: 1; scale: 1; }
@media (orientation: portrait) {
  .cx-blatt img { object-fit: contain; object-position: center top; }
  .cx-blatt { background: #0b0b0b radial-gradient(circle, #1d1d1d 1px, transparent 1.4px) 0 0 / 7px 7px; }
  .cx-rahmen, .cx-kasten.oben { display: none; }
  .cx-kasten.unten { white-space: normal; width: max-content; max-width: 88%; text-align: center; font-size: clamp(1.2rem, 5.6vw, 1.8rem); }
}
@media (prefers-reduced-motion: reduce) { .cx-blase { animation: none; } }

/* ================= Kassettendeck (Fassung 2: wie ein echtes Gerät) ================= */
.deck { max-width: 1000px; margin: 0 auto 46px; color: #111; -webkit-tap-highlight-color: transparent; }
.dk-front {
  position: relative; border-radius: 7px; padding: clamp(10px, 1.8vw, 18px) clamp(12px, 2.2vw, 24px) clamp(12px, 2vw, 20px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 3px, rgba(255,255,255,0) calc(100% - 4px), rgba(0,0,0,.35) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.09) 0 1px, rgba(0,0,0,.035) 1px 2px, rgba(255,255,255,0) 2px 3px),
    linear-gradient(100deg, #b3b2ad 0%, #d9d8d2 18%, #c2c1bb 38%, #e2e1db 58%, #c0bfb9 78%, #aeada8 100%);
  border: 1px solid #55544f; box-shadow: 0 1px 0 #fff inset, 0 22px 30px -12px rgba(0,0,0,.9), 0 3px 0 #2a2a28;
}
.dk-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(8px, 1.4vw, 14px); }
.dk-marke { font-family: var(--head); font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: 5px; color: #1a1a1a; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.dk-modell { font-size: clamp(.55rem, 1.1vw, .7rem); letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: #333; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.dk-power { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: .58rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #333; }
.dk-power i { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb0a0, #ff2a1a 45%, #7a0a00); box-shadow: 0 0 8px 2px rgba(255,50,30,.75), 0 0 0 2px #222; }

.dk-haupt { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(10px, 2vw, 22px); align-items: stretch; }

/* ---- Kassettenfach mit Glastür ---- */
.dk-tuer { position: relative; border-radius: 9px; padding: clamp(9px, 1.6vw, 16px); background: linear-gradient(180deg, #0c0c0c, #1b1b1b); box-shadow: 0 0 0 1px #000, 0 0 0 3px #8f8e88, 0 0 0 4px #fff, 0 0 0 5px #55544f, inset 0 10px 26px #000; overflow: hidden; }
.dk-schacht { position: relative; border-radius: 6px; background: radial-gradient(ellipse at 50% 0%, #2a2118 0%, #0a0806 70%); padding: 3.5% 4% 2.5%; transition: background .6s; perspective: 1100px; }
.deck.laeuft .dk-schacht, .deck.spult .dk-schacht { background: radial-gradient(ellipse at 50% 0%, #6b4a22 0%, #1c130a 75%); }
.dk-kass { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.8)); transition: translate .38s cubic-bezier(.5, 0, .9, .5), rotate .3s ease-in, opacity .25s; }
.dk-kass.raus { translate: 0 -112%; opacity: .2; }
.dk-kass.wende { rotate: y 90deg; }
.dk-glas { position: absolute; inset: 0; border-radius: 9px; pointer-events: none; background:
    linear-gradient(115deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.06) 16%, rgba(255,255,255,0) 17%, rgba(255,255,255,0) 52%, rgba(255,255,255,.07) 53%, rgba(255,255,255,.02) 68%, rgba(255,255,255,0) 69%),
    linear-gradient(180deg, rgba(120,160,190,.07), rgba(0,0,0,.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 30px rgba(0,0,0,.6); }
.dk-tuertext { position: absolute; right: 12px; bottom: 5px; font-size: .5rem; letter-spacing: 3px; color: rgba(255,255,255,.45); text-transform: uppercase; font-weight: 700; pointer-events: none; }

/* ---- rechte Seite: schwarze Scheibe mit Anzeige + Instrumenten ---- */
.dk-rechts { display: flex; flex-direction: column; gap: clamp(8px, 1.4vw, 14px); min-width: 0; }
.dk-scheibe { position: relative; flex: 1; border-radius: 6px; padding: clamp(8px, 1.3vw, 13px); background: linear-gradient(180deg, #121212, #050505); box-shadow: 0 0 0 1px #000, 0 0 0 2px #77766f, inset 0 0 22px #000; display: flex; flex-direction: column; gap: clamp(7px, 1.1vw, 11px); overflow: hidden; }
.dk-scheibe::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.1) 0, rgba(255,255,255,.02) 22%, rgba(255,255,255,0) 23%); }
.dk-fl { border-radius: 3px; padding: 8px 11px 7px; background: #01080a; box-shadow: inset 0 0 0 1px #0c2a2e, inset 0 0 14px #000; color: #5ff6e0; font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; text-shadow: 0 0 7px rgba(70,255,225,.75), 0 0 1px #bffff5; min-height: 4.3em; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  -webkit-mask-image: radial-gradient(circle, #000 0 1.05px, rgba(0,0,0,.55) 1.5px); mask-image: radial-gradient(circle, #000 0 1.05px, rgba(0,0,0,.55) 1.5px); -webkit-mask-size: 3px 3px; mask-size: 3px 3px; }
.lcd-titel { font-size: clamp(.95rem, 1.9vw, 1.2rem); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-zeile { display: flex; justify-content: space-between; gap: 10px; font-size: clamp(.62rem, 1.15vw, .76rem); letter-spacing: 1px; text-transform: uppercase; color: #ffb84d; text-shadow: 0 0 7px rgba(255,170,60,.7); white-space: nowrap; }
.lcd-info { overflow: hidden; text-overflow: ellipsis; }
.dk-vus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px, 1vw, 10px); }
.dk-vu { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #3a3a38, 0 0 16px rgba(255,190,90,.22); }
.deck.laeuft .dk-vu { box-shadow: 0 0 0 1px #000, 0 0 0 2px #3a3a38, 0 0 22px rgba(255,190,90,.45); }

.dk-bedien { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 2px; }
.dk-gruppe { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dk-gruppe > b { font-size: .52rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #2b2b2b; text-shadow: 0 1px 0 rgba(255,255,255,.6); white-space: nowrap; }
.dk-zaehl { display: flex; align-items: center; gap: 7px; }
.dk-rollen { display: flex; gap: 1px; padding: 3px; background: #000; border-radius: 3px; box-shadow: inset 0 0 0 1px #444, 0 1px 0 rgba(255,255,255,.7); height: 30px; box-sizing: border-box; }
.dk-rolle { position: relative; width: 17px; height: 24px; overflow: hidden; background: #f4f1e6; border-radius: 1px; }
.dk-rolle:last-child { background: #c8201c; }
.dk-rolle:last-child span { color: #fff; }
.dk-rolle > div { will-change: transform; }
.dk-rolle span { display: block; height: 24px; line-height: 24px; text-align: center; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 15px; color: #111; }
.dk-rolle::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6) 0, rgba(0,0,0,0) 32%, rgba(255,255,255,.12) 50%, rgba(0,0,0,0) 68%, rgba(0,0,0,.6) 100%); }
.dk-null { width: 16px; height: 16px; border-radius: 3px; border: 1px solid #222; cursor: pointer; padding: 0; background: linear-gradient(180deg, #4a4a48, #1c1c1b); box-shadow: 0 2px 0 #000, inset 0 1px 0 rgba(255,255,255,.3); }
.dk-null:active { translate: 0 2px; box-shadow: none; }
.dk-kipp { position: relative; width: 44px; height: 20px; border-radius: 3px; background: #0b0b0b; box-shadow: inset 0 0 0 1px #555, 0 1px 0 rgba(255,255,255,.7); }
.dk-kipp::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 14px; border-radius: 2px; background: repeating-linear-gradient(90deg, #d6d5cf 0 2px, #9c9b95 2px 3px); box-shadow: 0 1px 2px #000; }
.dk-knauf { --w: 60deg; position: relative; width: 46px; height: 46px; border-radius: 50%; cursor: grab; touch-action: none; outline: none;
  background: repeating-conic-gradient(#8f8e88 0 4deg, #dedcd5 4deg 8deg); box-shadow: 0 0 0 1px #3d3c39, 0 4px 6px rgba(0,0,0,.6), 0 1px 0 2px rgba(255,255,255,.5); }
.dk-knauf::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: conic-gradient(from 20deg, #f4f3ee, #a9a8a2, #ecebe5, #8e8d87, #f4f3ee, #a3a29c, #f4f3ee); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.dk-knauf i { position: absolute; inset: 0; rotate: var(--w); }
.dk-knauf i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 11px; margin-left: -1.5px; background: #111; border-radius: 1px; }
.dk-knauf:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.dk-buchse { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #000 0 32%, #6f6e69 34% 50%, #1a1a1a 52% 68%, #b9b8b2 70%); box-shadow: 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px #333; }

/* ---- Tastenfeld ---- */
.dk-tastenfeld { margin-top: clamp(10px, 1.8vw, 18px); padding: 6px 6px 12px; border-radius: 5px; background: linear-gradient(180deg, #050505, #1a1a19); box-shadow: inset 0 3px 8px #000, 0 1px 0 rgba(255,255,255,.75); display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.dk-tastenfeld button {
  position: relative; font: inherit; cursor: pointer; color: #111; border: 0; border-radius: 3px 3px 5px 5px; padding: 13px 2px 9px; min-width: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.1) 0 1px, rgba(0,0,0,.03) 1px 2px), linear-gradient(180deg, #f3f2ed 0%, #cfcec8 55%, #b4b3ad 100%);
  box-shadow: 0 7px 0 #6d6c67, 0 8px 0 #000, inset 0 1px 0 #fff, inset 0 -2px 3px rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: center; gap: 5px; translate: 0 0; transition: translate .05s, box-shadow .05s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.dk-tastenfeld button svg { width: clamp(22px, 3.4vw, 34px); height: auto; fill: #151515; filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
.dk-tastenfeld button span { font-size: clamp(.5rem, 1.05vw, .62rem); letter-spacing: 2px; text-transform: uppercase; font-weight: 900; color: #2a2a2a; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.dk-tastenfeld button::before { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 4px; margin-left: -7px; border-radius: 2px; background: #2a2a28; box-shadow: inset 0 1px 1px #000; }
.dk-tastenfeld button:active, .dk-tastenfeld button.drin { translate: 0 6px; box-shadow: 0 1px 0 #6d6c67, 0 2px 0 #000, inset 0 2px 4px rgba(0,0,0,.3); }
.dk-tastenfeld button.drin[data-a="play"]::before { background: #35ff9a; box-shadow: 0 0 8px 2px rgba(50,255,150,.8); }
.dk-tastenfeld button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dk-fuesse { display: flex; justify-content: space-between; padding: 0 7%; }
.dk-fuesse i { width: 70px; height: 9px; border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #1c1c1c, #000); }

/* ---- Einleger mit Titelliste ---- */
.deck-liste { list-style: none; margin: 18px auto 0; max-width: 880px; padding: 14px 18px 12px; background: linear-gradient(180deg, #f6f1df, #ece5cd); border: 1px solid #000; border-radius: 3px; box-shadow: 5px 6px 0 #000; columns: 2; column-gap: 30px; column-rule: 1px dashed #b9b196; font-size: .92rem; rotate: -.4deg; }
.deck-liste li { break-inside: avoid; }
.deck-liste .kopf { font-family: var(--head); letter-spacing: 2px; text-transform: uppercase; color: #c8201c; margin: 2px 0; border-bottom: 2px solid #c8201c; }
.deck-liste li + .kopf { margin-top: 10px; }
.deck-liste button { all: unset; cursor: pointer; display: flex; gap: 8px; width: 100%; padding: 3px 4px; border-radius: 3px; box-sizing: border-box; border-bottom: 1px solid #cfc7ab; font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive; font-size: .88rem; color: #1b2a6b; }
.deck-liste button:hover, .deck-liste button:focus-visible { background: #ffd60a; }
.deck-liste button.an { background: #111; color: #fff; }
.deck-liste button em { margin-left: auto; font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: .76rem; opacity: .7; }
.deck-fuss { margin: 14px 2px 0; font-size: .8rem; color: var(--muted); text-align: center; }
.deck-fuss a { color: var(--accent2); font-weight: 700; text-decoration: none; }
@media (max-width: 720px) {
  .dk-haupt { grid-template-columns: 1fr; }
  .deck-liste { columns: 1; }
  .dk-modell { display: none; }
  .dk-tastenfeld button { padding: 14px 0 9px; }
  .dk-tastenfeld button span { letter-spacing: .5px; }
  .dk-gruppe:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dk-kass { transition: none; } }
