/* Volle Fassung: Spürbar-Zeile, Schalter, Panels */

/* Spürbar-Zeile und Schalter ------------------------------------------------- */
.feel { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 26px; }
.feel-k { font-size: 10px; font-weight: 700; color: var(--muted); }
.feel-v { padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.feel-v.pulse { animation: pulse 0.5s ease-out; }
@keyframes pulse { 0% { background: var(--steel); color: var(--ground); border-color: var(--steel); } 100% { background: var(--surface); color: var(--ink-2); border-color: var(--line); } }
.ctls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tog, .seg button {
  font: 600 13px/1.2 var(--font-body);
  color: var(--ink-2);
  cursor: pointer;
}
.tog { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tog[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { padding: 5px 11px; border: 0; border-radius: 999px; background: transparent; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.note { margin: 0; max-width: 34ch; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }

/* Panels -------------------------------------------------------------------- */
.panel { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.panel h2 { font-size: 12px; font-weight: 700; }
.panel-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.haus-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.suggest b { font-weight: 600; color: var(--ink); }
.rooms { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.room { display: grid; gap: 6px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); min-width: 0; }
.room.here { border-color: var(--steel); box-shadow: inset 0 0 0 1px var(--steel); }
.room-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.room-name { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.here-tag { font: 600 10px var(--font-mono); color: var(--steel); }
.lamps { display: flex; gap: 7px; min-height: 16px; align-items: center; }
.lamp { width: 13px; height: 13px; border-radius: 50%; background: var(--lamp-off); transition: background 0.1s, box-shadow 0.1s; }
.room-meta { font-size: 12px; color: var(--muted); }
.tv-wrap { display: grid; gap: 6px; margin-top: 12px; max-width: 360px; }
.tv-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tvp { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 6px; background: var(--tv-bg); box-shadow: 0 0 0 4px #1d1f21; overflow: hidden; }
.tv-grid { position: absolute; inset: 9% 7%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 7%; }
.tile { display: grid; place-items: center; border-radius: 3px; background: var(--tv-tile); color: var(--tv-ink); font: 500 10px/1.1 var(--font-ui); text-align: center; padding: 2px; }
.tile.focus { box-shadow: 0 0 0 2px var(--tv-focus); transform: scale(1.06); }
.tv-play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--tv-ink); font: 500 15px var(--font-ui); background: linear-gradient(135deg, #22262b, #0c0d0e); }
.tv-play .prog { width: 60%; height: 3px; border-radius: 99px; background: #3a3d41; overflow: hidden; }
.tv-play .prog i { display: block; height: 100%; width: 36%; background: var(--tv-ink); }
.tv-off { position: absolute; inset: 0; display: grid; place-items: center; color: #5d6166; font: 500 12px var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.tv-cap { margin: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.log { list-style: none; margin: 10px 0 0; padding: 0; font: 400 12.5px/1.45 var(--font-mono); }
.log li { display: grid; grid-template-columns: 5.4em 6.2em minmax(0, 1fr); gap: 8px; padding: 4px 0; border-top: 1px solid var(--line-soft); }
.log li:first-child { border-top: 0; }
.log li.new { animation: fresh 0.9s ease-out; }
@keyframes fresh { from { background: var(--steel-soft); } to { background: transparent; } }
.log .t { color: var(--muted); }
.log .k { color: var(--steel); }
.log .x { min-width: 0; overflow-wrap: anywhere; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 600 11.5px/1.6 var(--font-body); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--vor); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
table.map { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
table.map th, table.map td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.map thead th { font-size: 10px; font-weight: 700; color: var(--muted); border-bottom-color: var(--line); }
table.map tbody th { font-weight: 600; white-space: nowrap; }
table.map .on { background: var(--steel-soft); }
table.map thead th.on { color: var(--steel); }
table.map td.all { color: var(--ink-2); }
table.map.hap { min-width: 0; }
table.map.hap tbody th { white-space: normal; }
table.map.hap td.num { white-space: normal; }
table.map td.num { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer p { margin: 0; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  .wave i, .toast, .feel-v.pulse, .log li.new, .tour-head.hit .tour-k { animation: none; }
  .disc-tilt, .disc-cap, .key, .lamp { transition: none; }
}
