/* Tag 16 – Pips Sender in drei Stufen (KB-ADV-010, bauer-28). Nur Regeln unter .day-16. Formen sind SVG: Fuss und Schlitz teilen denselben Pfad. */

/* Rahmen: Spielfeld liegt direkt auf dem Papier, ohne Spielfeld-Karte. */
.mission-paper.day-16 .quest-panel { background:transparent; }
.mission-paper.day-16 .world-label { display:none; }
.mission-paper.day-16 #puzzle-heading { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mission-paper.day-16 .quest-playfield,
.mission-paper.day-16 .chapter-tools { display:contents; }
.mission-paper.day-16 .quest-playfield::before { display:none; }
.mission-paper.day-16 form { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.day-16 .snd { order:1; flex:1 1 100%; }
.day-16 .feedback-space { order:2; flex:1 1 100%; }
.day-16 .read-aloud { order:3; }
.day-16 #hint-button { order:4; }
.day-16 .check-answer { order:5; flex:1 1 100%; }

/* Brief */
.day-16 .letter-text strong:empty { display:none; }
.day-16 .lab-photo figcaption { display:none; }
.day-16 .read-aloud { min-width:150px; }
.day-16 .read-aloud svg { width:26px; height:26px; }

/* Stufenleiste */
.day-16 .snd { display:grid; gap:10px; width:100%; max-width:1040px; margin-inline:auto; }
.day-16 .snd-steps { display:flex; justify-content:center; gap:8px 22px; flex-wrap:wrap; margin:0; padding:0; list-style:none; font:700 18px/1.1 'Roboto Condensed','Arial Narrow',sans-serif; color:#5d4a2a; }
.day-16 .snd-steps li { display:flex; align-items:center; gap:8px; }
.day-16 .snd-steps b { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#d6c39b; color:#4b3a1c; font-size:16px; }
.day-16 .snd-steps .is-current { color:#17110a; }
.day-16 .snd-steps .is-current b { background:#f2c230; box-shadow:0 0 0 3px #17394c; }
.day-16 .snd-steps .is-done b { background:#2f9e5b; color:#fff; }

/* Bauteil-Formen (SVG, 100x100) */
.day-16 .snd svg { display:block; width:100%; height:auto; }
/* Bauteile sind Bilder (assets/daily/day-16/teil-*.webp), Drehung per CSS rotate am Bild */
.day-16 .snd-img { display:block; width:100%; height:auto; transition:rotate .18s ease-out; }
@media (prefers-reduced-motion:reduce) { .day-16 .snd-img { transition:none; } }

/* Stufe 1: Bauplan und acht Teile */
.day-16 .snd-pick { grid-template-columns:minmax(0,300px) minmax(0,1fr); align-items:start; column-gap:22px; }
.day-16 .snd-pick .snd-steps { grid-column:1 / -1; }
.day-16 .snd-plan,
.day-16 .snd-tray { padding:10px 12px 12px; border:2px solid #c9a566; border-radius:12px; background:linear-gradient(#f8ebc9,#ecd8a4); box-shadow:inset 0 0 0 2px #fff6df99,0 4px 8px #3a250c40; }
.day-16 .snd-plan { background:linear-gradient(#cfe2f2,#a9c6de); border-color:#5b83a6; box-shadow:inset 0 0 0 2px #ffffff80,0 4px 8px #12304a40; }
.day-16 .snd h3 { margin:0 0 8px; font:800 20px/1.15 'Roboto Condensed','Arial Narrow',sans-serif; color:#17110a; }
.day-16 .snd-count { margin-left:6px; padding:1px 10px; border-radius:99px; background:#17394c; color:#fff; font-size:16px; white-space:nowrap; }
.day-16 .snd-plan ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.day-16 .snd-plan li { display:grid; gap:2px; padding:4px 4px 2px; border-radius:8px; background:#ffffffa6; text-align:center; font:700 16px/1.1 'Roboto Condensed','Arial Narrow',sans-serif; color:#17110a; }
.day-16 .snd-plan li .snd-img { width:min(100%,104px); margin-inline:auto; }
.day-16 .snd-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.day-16 .snd-part { position:relative; display:grid; align-content:center; justify-items:center; gap:2px; min-width:44px; min-height:44px; padding:5px; border:2px solid #c9a566; border-radius:10px; background:#fff6dc; color:#17110a; cursor:pointer; font:700 16px/1.1 'Roboto Condensed','Arial Narrow',sans-serif; }
.day-16 .snd-part .snd-img { width:100%; max-width:112px; }
.day-16 .snd-pick .snd-part { min-height:116px; }
.day-16 .snd-part:hover { border-color:#b58a43; background:#fffaf0; }
.day-16 .snd-part.is-on { border-color:#e2a62d; background:#ffe9a6; box-shadow:0 0 0 3px #17394c; }
.day-16 .snd-pick .snd-part.is-on::after { content:'✓'; position:absolute; top:-8px; right:-8px; display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#17394c; color:#fff; font:800 16px/1 sans-serif; }
.day-16 .snd-part:focus-visible,
.day-16 .snd-rot:focus-visible,
.day-16 .snd-step:focus-visible,
.day-16 .snd-slot:focus-visible { outline:3px solid #fff; outline-offset:2px; box-shadow:0 0 0 6px #123f67; }
.day-16 .hint-target { outline:3px dashed #e2a62d; outline-offset:3px; }

/* Stufe 2: Gehaeuse und vier Teile mit Drehknopf */
.day-16 .snd-build { grid-template-columns:minmax(0,1fr) minmax(0,300px); align-items:center; column-gap:22px; }
.day-16 .snd-build .snd-steps { grid-column:1 / -1; }
.day-16 .snd-house { position:relative; width:100%; filter:drop-shadow(0 8px 6px #0006); }
.day-16 .snd-house-img { display:block; width:100%; height:auto; user-select:none; -webkit-user-drag:none; }
.day-16 .snd-house-svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.day-16 .snd-wifi { fill:none; stroke:#e9ffff; stroke-width:5; stroke-linecap:round; opacity:.9; }
.day-16 .snd-wifi-dot { fill:#e9ffff; opacity:.9; }
/* eingesetzte Teile: Schatten in Bildraum-Einheiten, damit sie im Schlitz plastisch liegen */
.day-16 .snd-seated { filter:drop-shadow(0 2px 1.5px #000c) drop-shadow(0 0 1px #0008); }
.day-16 .snd-seated.is-off { filter:drop-shadow(0 0 2px #c1272d) drop-shadow(0 0 1.5px #c1272d) drop-shadow(0 2px 1.5px #000c); }
.day-16 .snd-slot { position:absolute; min-width:44px; min-height:44px; padding:0; border:0; border-radius:14px; background:transparent; cursor:pointer; }
.day-16 .snd-slot:hover { background:#ffd45a26; }
.day-16 .snd-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.day-16 .snd-tile { display:grid; gap:4px; }
.day-16 .snd-tile.is-placed .snd-part:not(.is-on) { background:#e6dcc0; border-style:dashed; }
.day-16 .snd-tile .snd-part .snd-img { max-width:84px; }
.day-16 .snd-rot { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:0 8px; border:2px solid #17394c; border-radius:10px; background:#ffffffd9; color:#17394c; cursor:pointer; font:700 16px/1 'Roboto Condensed','Arial Narrow',sans-serif; }
.day-16 .snd-rot::after { content:'Drehen'; }
.day-16 .snd-rot svg { width:22px; height:22px; flex:none; }
.day-16 .snd-rot:hover { background:#fff; }

/* Stufe 3: Frequenz */
.day-16 .snd-device { position:relative; width:min(100%,720px); margin-inline:auto; filter:drop-shadow(0 8px 6px #0006); }
.day-16 .snd-device-img { display:block; width:100%; height:auto; user-select:none; -webkit-user-drag:none; }
/* Bildschirmflaeche im gemalten Geraet (anzeige.webp 1200x540): x 17,9 %, y 26,4 %, 64,1 x 49,9 % */
.day-16 .snd-scope { position:absolute; left:17.9%; top:26.4%; width:64.1%; height:49.9%; overflow:hidden; border-radius:6px; background:linear-gradient(#ffffff0d,#0000 40%); box-shadow:inset 0 0 0 2px #0b1a30; }
.day-16 .snd-scope svg { position:absolute; inset:0; width:100%; height:100%; }
.day-16 .snd-grid-line { stroke:#2c5a74; stroke-width:1.2; vector-effect:non-scaling-stroke; fill:none; }
.day-16 .snd-target,
.day-16 .snd-own { fill:none; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.day-16 .snd-target { stroke:#38d68a; stroke-width:15; opacity:.5; }
.day-16 .snd-own { stroke:#ffd23a; stroke-width:5; filter:drop-shadow(0 0 3px #ffb02e); }
.day-16 .snd-scope.is-locked { box-shadow:inset 0 0 0 3px #38d68a,inset 0 0 22px 2px #38d68a88; }
.day-16 .snd-legend { position:absolute; left:10px; top:8px; display:flex; align-items:center; gap:6px; color:#e7f6ff; font:700 15px/1 'Roboto Condensed','Arial Narrow',sans-serif; text-shadow:0 1px 2px #000; }
.day-16 .snd-legend i { width:22px; height:8px; border-radius:4px; }
.day-16 .snd-key-target { background:#38d68a; }
.day-16 .snd-key-own { margin-left:10px; background:#ffd23a; }
.day-16 .snd-dial { display:grid; grid-template-columns:56px minmax(0,1fr) 56px; align-items:center; gap:12px; max-width:640px; width:100%; margin-inline:auto; }
.day-16 .snd-step { min-width:56px; min-height:56px; border:2px solid #17394c; border-radius:12px; background:#f2c230; color:#17110a; cursor:pointer; font:800 34px/1 'Roboto Condensed',sans-serif; }
.day-16 .snd-step:disabled { opacity:.45; cursor:default; }
.day-16 .snd-range { display:grid; gap:2px; font:700 19px/1.2 'Roboto Condensed','Arial Narrow',sans-serif; color:#17110a; text-align:center; }
.day-16 .snd-range input { width:100%; min-height:44px; accent-color:#17394c; cursor:pointer; }
.day-16 .snd-range input:focus-visible { outline:3px solid #123f67; outline-offset:3px; }

/* Stufe 3 breit: gemaltes Geraet links, Bedienung rechts daneben (spart Hoehe), schmal untereinander */
@media (min-width:1001px) {
  .day-16 .snd-freq { grid-template-columns:minmax(0,1fr) minmax(0,320px); align-items:center; column-gap:28px; }
  .day-16 .snd-freq .snd-steps { grid-column:1 / -1; }
  .day-16 .snd-freq .snd-device { width:min(100%,700px); justify-self:center; }
  .day-16 .snd-freq .snd-dial { grid-template-columns:1fr 1fr; grid-template-areas:"r r" "m p"; gap:14px; margin:0; }
  .day-16 .snd-freq .snd-range { grid-area:r; font-size:22px; }
  .day-16 .snd-freq .snd-step:first-child { grid-area:m; }
  .day-16 .snd-freq .snd-step:last-child { grid-area:p; }
  .day-16 .snd-freq .snd-step { min-height:60px; }
}
@media (max-width:1000px) { .day-16 .snd-device { width:min(100%,560px); } }
@media (max-width:760px) { .day-16 .snd-legend { left:6px; top:4px; gap:3px; font-size:11px; white-space:nowrap; } .day-16 .snd-legend i { width:14px; height:6px; } .day-16 .snd-key-own { margin-left:5px; } }

@media (max-width:760px) {
  .day-16 .snd-steps { font-size:15px; gap:6px 12px; }
  .day-16 .snd-steps b { width:24px; height:24px; font-size:14px; }
  .day-16 .snd-pick,
  .day-16 .snd-build { grid-template-columns:minmax(0,1fr); }
  .day-16 .snd-plan ul { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
  .day-16 .snd-plan li { font-size:13px; padding:3px 2px 1px; }
  .day-16 .snd-grid { gap:6px; }
  .day-16 .snd-part { padding:3px; }
  .day-16 .snd-tiles { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
  .day-16 .snd-rot { padding:0; font-size:0; }
  .day-16 .snd-rot::after { content:none; }
  .day-16 .snd-part span { font-size:13px; }
  .day-16 .snd-dial { grid-template-columns:48px minmax(0,1fr) 48px; gap:8px; }
  .day-16 .snd-step { min-width:48px; min-height:48px; }
  .day-16 .read-aloud,
  .day-16 #hint-button { flex:1 1 140px; }
}

@media (min-width:1251px) {
  .mission-paper.day-16.chapter-later form { display:grid; grid-template-columns:162px 162px minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto auto; grid-template-areas:"stage stage stage" "fb fb fb" "read hint go"; gap:0 34px; padding-inline:44px 6px; align-items:center; }
  .day-16 .snd { grid-area:stage; align-self:start; max-width:1000px; margin-inline:-44px -6px; justify-self:center; width:calc(100% + 50px); }
  .day-16 .feedback-space { grid-area:fb; }
  .day-16 .read-aloud { grid-area:read; }
  .day-16 #hint-button { grid-area:hint; min-width:0; }
  .day-16 .check-answer { grid-area:go; justify-self:start; margin:0 0 0 10px; width:476px; }
}
