/* ═══════════════════════════════════════════════════════════════════════════
   CB-Funk Emulator – Clean Hardware UI (v3)
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #181a1f;
  --panel:      #1f2228;
  --panel-hi:   #262b33;
  --border:     #2d3240;
  --amber:      #ffaa00;
  --amber-dim:  rgba(255,170,0,.25);
  --green:      #22cc55;
  --red:        #ee3333;
  --txt:        #c8cdd8;
  --txt-dim:    #5a6070;
  --txt-label:  #7a8498;
  --chrome:     #8a909c;
  --f-lcd:      'Courier New', 'Lucida Console', monospace;
  --f-ui:       'Segoe UI', system-ui, Arial, sans-serif;
  --radius:     8px;
}

html, body {
  min-height: 100%;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--txt);
  background: var(--bg);
  overflow: auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */

.scene {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #1e2230 0%, #10121a 100%);
}

.table-surface {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
  padding: 24px;
}

.rig       { grid-column: 1 / -1; grid-row: 1; }
.mic-area  { grid-column: 1; grid-row: 2; }
.stations  { grid-column: 2; grid-row: 2; }

/* ══════════════════════════════════════════════════════════════════════════
   FUNKGERÄT
   ══════════════════════════════════════════════════════════════════════════ */

.rig {
  width: min(900px, 96vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 8px 40px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

/* Schrauben – dezent, nicht ablenkend */
.screw {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a3d47, #181a20);
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
  z-index: 10;
}
.screw::after {
  content: '';
  position: absolute;
  top: 50%; left: 20%; right: 20%;
  height: 1px;
  background: rgba(0,0,0,.5);
  transform: translateY(-50%) rotate(45deg);
}
.screw--tl { top: 10px; left: 12px; }
.screw--tr { top: 10px; right: 12px; }
.screw--bl { bottom: 10px; left: 12px; }
.screw--br { bottom: 10px; right: 12px; }

/* ── Kopfstreifen ────────────────────────────────────────────────────────── */
.rig__face { padding: 0 20px; position: relative; }
.rig__top, .rig__bottom { display: none; } /* kein 3D */

.rig__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border);
}
.rig__brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--txt);
}
.rig__model {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--txt-dim);
  flex: 1;
}
.pwr-led {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green), 0 0 16px rgba(34,204,85,.4);
}

/* ── Hauptbereich ────────────────────────────────────────────────────────── */
.rig__main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

/* Lautsprechergitter – saubere Linien, kein Punktraster */
.speaker {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.speaker__grille {
  flex: 1;
  min-height: 90px;
  background: #0f1116;
  border-radius: 6px;
  border: 1px solid #0a0c10;
  box-shadow: inset 0 2px 12px rgba(0,0,0,.9);
  overflow: hidden;
  position: relative;
}
/* Lautsprecherlinien statt Punktraster */
.speaker__grille::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: repeating-linear-gradient(
    0deg,
    #1a1d24 0px, #1a1d24 2px,
    transparent 2px, transparent 7px
  );
  border-radius: 3px;
}
.speaker__label {
  font-size: 9px; letter-spacing: 2.5px; color: var(--txt-dim);
  text-align: center; text-transform: uppercase;
}

/* Kanal-Display */
.ch-display {
  flex: 0 0 118px;
  background: #080909;
  border-radius: 6px;
  padding: 12px 12px 10px;
  border: 1px solid #0c0d0e;
  box-shadow: inset 0 0 28px rgba(0,0,0,.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ch-display__label {
  font-size: 10px; letter-spacing: 3px;
  color: var(--amber-dim); font-family: var(--f-lcd);
}
.ch-display__num {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

/* ── 7-Segment ───────────────────────────────────────────────────────────── */
.seg-digit {
  position: relative;
  width: 30px;
  height: 54px;
}
.seg {
  position: absolute;
  background: var(--amber);
  border-radius: 2px;
  transition: opacity .08s;
}
.seg.off {
  background: rgba(255,170,0,.08);
}
/* Horizontale Segmente */
.seg-a, .seg-g, .seg-d {
  height: 5px;
  width: 22px;
  left: 4px;
}
.seg-a { top: 0; }
.seg-g { top: 50%; transform: translateY(-50%); }
.seg-d { bottom: 0; }
/* Vertikale Segmente */
.seg-f, .seg-b, .seg-e, .seg-c {
  width: 5px;
  height: 20px;
  border-radius: 2px;
}
.seg-f { top: 4px;  left: 0; }
.seg-b { top: 4px;  right: 0; }
.seg-e { bottom: 4px; left: 0; }
.seg-c { bottom: 4px; right: 0; }

/* Glow nur auf aktiven Segmenten */
.seg:not(.off) {
  box-shadow: 0 0 6px rgba(255,170,0,.8), 0 0 16px rgba(255,170,0,.3);
}
.ch-display__freq {
  font-family: var(--f-lcd); font-size: 11px;
  color: rgba(255,170,0,.55); letter-spacing: .5px;
}
.ch-display__call {
  font-family: var(--f-lcd); font-size: 11px;
  color: rgba(255,170,0,.45); letter-spacing: 2px; margin-top: 3px;
}
.ch-display__pwr {
  font-family: var(--f-lcd); font-size: 12px;
  color: rgba(255,170,0,.7); letter-spacing: 1px; margin-top: 1px;
}

/* S-Meter */
.smeter {
  flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0;
}
.smeter__label {
  font-size: 9px; letter-spacing: 2.5px; color: var(--txt-dim);
  text-align: center; text-transform: uppercase;
}
.smeter__body {
  background: #080909;
  border-radius: 6px; border: 1px solid #0c0d0e;
  box-shadow: inset 0 0 14px rgba(0,0,0,.9);
  padding: 8px 10px; display: flex; align-items: center;
  height: 58px;
}
.smeter__bars {
  display: flex; gap: 3px; align-items: flex-end;
  height: 34px; width: 100%;
}
.smeter__bars .bar {
  flex: 1; border-radius: 2px 2px 0 0;
  height: 20%; transition: height .06s ease-out;
}
.smeter__bars .bar:nth-child(-n+4) { background: #00cc44; }
.smeter__bars .bar:nth-child(5),
.smeter__bars .bar:nth-child(6)    { background: #88cc00; }
.smeter__bars .bar:nth-child(7),
.smeter__bars .bar:nth-child(8)    { background: #ccaa00; }
.smeter__bars .bar:nth-child(9),
.smeter__bars .bar:nth-child(10)   { background: #ff7700; }
.smeter__bars .bar:nth-child(11),
.smeter__bars .bar:nth-child(12)   { background: #ff2200; }
.smeter__scale {
  display: flex; justify-content: space-around;
  font-size: 9px; color: var(--txt-dim); padding: 0 4px;
}

/* TX / RX */
.tx-rx {
  flex: 0 0 44px; display: flex; flex-direction: column;
  justify-content: center; gap: 16px; padding: 0 4px;
}
.ind {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: 1px; color: var(--txt-dim);
  font-weight: 600;
}
.led {
  width: 13px; height: 13px; border-radius: 50%;
  background: #0e1014; border: 1px solid #0d0e12;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
  transition: background .08s, box-shadow .08s;
}
.led--green.active { background: var(--green); box-shadow: 0 0 6px var(--green), 0 0 16px rgba(34,204,85,.4); }
.led--red.active   { background: var(--red);   box-shadow: 0 0 6px var(--red),   0 0 16px rgba(238,51,51,.4); }

.divider { display: none; }

/* Regler */
.controls {
  flex: 0 0 200px; display: flex;
  align-items: center; justify-content: space-around; gap: 4px;
}
.knob-unit { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ctrl-lbl { font-size: 10px; letter-spacing: 2px; color: var(--txt-label); text-transform: uppercase; }

.knob {
  position: relative; width: 56px; height: 56px;
  cursor: ns-resize; touch-action: none;
}
.knob__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 135deg, #353840 270deg, transparent 270deg);
  padding: 5px;
}
.knob__ring::after {
  content: ''; display: block; width: 100%; height: 100%;
  border-radius: 50%; background: #101217;
}
.knob__cap {
  position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #484c58, #1a1c24 65%);
  box-shadow: 0 4px 12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
}
.knob__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #b0b4be; transform: translateY(-9px);
}

.ch-buttons { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ch-btn {
  background: var(--panel-hi);
  border: 1px solid var(--border); color: var(--txt);
  border-radius: 4px; width: 36px; height: 26px; font-size: 11px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
  transition: background .08s, transform .05s;
}
.ch-btn:hover  { background: #303540; }
.ch-btn:active { transform: translateY(1px); }
.ch-btn-lbl { font-size: 10px; letter-spacing: 2px; color: var(--txt-label); }
.scan-btn { font-size: 9px; letter-spacing: 1px; margin-top: 2px; }
.scan-btn.scanning {
  background: rgba(255,170,0,.15);
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 8px rgba(255,170,0,.2);
}

/* Roger Beep Toggle */
.roger-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2e3240, #14161c 65%);
  border: 2px solid #0e1016;
  box-shadow: 0 4px 10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .1s;
}
.roger-btn:hover { box-shadow: 0 4px 10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.1), 0 0 8px rgba(255,170,0,.15); }
.roger-btn.active { box-shadow: 0 2px 6px rgba(0,0,0,.6), 0 0 14px rgba(255,170,0,.3); }
.roger-led {
  width: 14px; height: 14px; border-radius: 50%;
  background: #1a1c22;
  border: 1px solid #0e0f14;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
  transition: background .15s, box-shadow .15s;
}
.roger-btn.active .roger-led {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber), 0 0 18px rgba(255,170,0,.5);
}

/* PRO Badge – schwebt über dem Knob, nimmt keinen Platz in der Reihe ein */
.knob-unit { position: relative; }
.pro-badge {
  position: absolute;
  bottom: calc(100% - 14px); right: -10px;
  font-size: 8px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 5px; border-radius: 4px; cursor: pointer;
  border: 1px solid #3a3020;
  background: #1e1a0e;
  color: #7a6a30;
  transition: all .15s;
  white-space: nowrap;
  z-index: 5;
}
.pro-badge:hover { filter: brightness(1.3); }
.pro-badge.unlocked {
  background: #2a2000;
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 8px rgba(255,170,0,.25);
}

.mic-socket { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mic-socket__hole {
  width: 30px; height: 30px; border-radius: 50%;
  background: #080909;
  border: 2px solid #0a0c10;
  box-shadow: inset 0 0 12px rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
}
.mic-socket__pin {
  width: 9px; height: 9px; border-radius: 50%;
  background: #1c1f26; border: 1.5px solid #2a2d38;
}

/* ── Fußstreifen ─────────────────────────────────────────────────────────── */
.rig__footer {
  padding: 12px 0 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.qth-bar {
  font-size: 12px; font-family: var(--f-lcd);
  color: rgba(34,204,85,.7); letter-spacing: .5px; text-align: center;
}
.status-bar {
  font-size: 13px; color: var(--txt-dim); text-align: center; letter-spacing: .3px;
}

/* ── Setup ─────────────────────────────────────────────────────────────── */
.setup { display: flex; flex-direction: column; gap: 8px; }
.setup__step { display: flex; gap: 8px; flex-wrap: wrap; }
.setup__step--hidden { display: none; }

.setup-btn {
  flex: 1; border-radius: 6px; cursor: pointer; font-size: 13px;
  font-weight: 600; padding: 10px 16px; transition: filter .1s;
  white-space: nowrap; border: 1px solid transparent; letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.setup-btn:hover  { filter: brightness(1.15); }
.setup-btn:active { filter: brightness(.9); transform: translateY(1px); }

.setup-btn--loc  { background: #0d2a42; border-color: #1a4a6e; color: #70c8f8; }
.setup-btn--skip { background: var(--panel-hi); border-color: var(--border); color: var(--txt-dim); flex: 0 0 auto; }
.setup-btn--go   { background: #0d3018; border-color: #1a5a28; color: #55ee80; letter-spacing: 1px; flex: 0 0 auto; padding: 10px 22px; }

.setup-select {
  flex: 1; background: #0d0f14; border: 1px solid var(--border); border-radius: 6px;
  color: var(--txt); font-size: 13px; padding: 9px 32px 9px 12px;
  outline: none; cursor: pointer; min-width: 0; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a6070'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.setup-select:focus { border-color: var(--amber); }

.setup-input {
  flex: 1; background: #080909; border: 1px solid var(--border); border-radius: 6px;
  color: var(--amber); font-family: var(--f-lcd); font-size: 15px;
  letter-spacing: 3px; padding: 9px 12px; outline: none;
  text-transform: uppercase; min-width: 0;
}
.setup-input::placeholder { color: var(--txt-dim); font-family: var(--f-ui); letter-spacing: 0; text-transform: none; font-size: 12px; }
.setup-input:focus { border-color: var(--amber); box-shadow: 0 0 8px rgba(255,170,0,.12); }

/* ══════════════════════════════════════════════════════════════════════════
   CB-MIKROFON
   ══════════════════════════════════════════════════════════════════════════ */

.mic-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mic {
  width: 110px;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(-2px 8px 20px rgba(0,0,0,.8));
}

.mic__head {
  background: linear-gradient(to right, #282d36, #1e2228, #282d36);
  border-radius: 12px 12px 4px 4px;
  padding: 10px 10px 6px;
  border: 1px solid #0d0f14;
  border-bottom: none;
}
.mic__grille {
  height: 82px; border-radius: 7px;
  background: #080a0d;
  /* Saubere horizontale Linien statt Punktraster */
  background-image: repeating-linear-gradient(
    0deg,
    #161a20 0px, #161a20 2px,
    transparent 2px, transparent 6px
  );
  border: 1px solid #0a0c12;
  box-shadow: inset 0 3px 14px rgba(0,0,0,.9);
}
.mic__badge {
  text-align: center; font-size: 8px; letter-spacing: 3px;
  color: var(--txt-dim); margin-top: 6px; text-transform: uppercase;
}

.mic__ptt {
  border: none; cursor: pointer; width: 100%;
  padding: 16px 0; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  background: linear-gradient(180deg, #c02020, #880d0d);
  border-top: 2px solid #e03030;
  border-bottom: 2px solid #420808;
  transition: background .08s, transform .05s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.mic__ptt:disabled {
  background: linear-gradient(180deg, #3a1010, #280a0a);
  border-color: #1e0808;
  opacity: .5; cursor: not-allowed;
}
.mic__ptt:not(:disabled):hover { background: linear-gradient(180deg, #d83030, #aa1010); }
.mic__ptt.ptt--active,
.mic__ptt:not(:disabled):active {
  background: linear-gradient(180deg, #ff5050, #dd2020);
  box-shadow: 0 0 20px rgba(255,80,80,.55);
  transform: scaleY(.97);
}
.mic__ptt-label  { font-size: 20px; font-weight: 900; letter-spacing: 5px; color: #fff; }
.mic__ptt-sub    { font-size: 9px; letter-spacing: .3px; color: rgba(255,255,255,.55); }

.mic__handle {
  background: linear-gradient(to right, #242830, #1c1f26, #242830);
  border: 1px solid #0d0f14; border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 14px 0 20px;
  display: flex; align-items: flex-end; justify-content: center;
}
.mic__connector {
  width: 22px; height: 14px;
  background: linear-gradient(to right, #2e3340, #484d5c, #2e3340);
  border-radius: 4px; border: 1px solid #1a1d26;
  box-shadow: 0 2px 5px rgba(0,0,0,.6);
}

.mic__cable {
  width: 80px; height: 140px;
  margin-top: -4px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
}

/* ══════════════════════════════════════════════════════════════════════════
   STATIONS-PANEL
   ══════════════════════════════════════════════════════════════════════════ */

.stations {
  background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px;
  min-width: 220px; max-width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  display: flex; flex-direction: column; gap: 10px;
}
.stations__header {
  font-size: 10px; letter-spacing: 3px; color: var(--txt-dim);
  text-align: center; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.stations__list {
  list-style: none; display: flex; flex-direction: column; gap: 6px; min-height: 70px;
}
.stations__empty  { font-size: 12px; color: var(--txt-dim); font-style: italic; }
.stations__locked { font-size: 12px; color: var(--txt-dim); text-align: center; padding: 8px 0; letter-spacing: .3px; }
.station-item__count { font-size: 10px; color: var(--txt-dim); margin-left: auto; font-family: var(--f-lcd); }

.station-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: rgba(0,0,0,.25);
  border-radius: 6px; border: 1px solid rgba(255,255,255,.04);
}
.station-item__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0;
}
.station-item__dot.ptt { background: var(--red); box-shadow: 0 0 6px var(--red); }
.station-item__call { font-family: var(--f-lcd); font-size: 13px; letter-spacing: 1.5px; flex: 1; }
.station-item.is-self .station-item__call { color: var(--amber); }
.station-item__dist { font-size: 10px; color: var(--txt-dim); font-family: var(--f-lcd); }
.station-item__pwr  { font-size: 10px; color: var(--txt-dim); font-family: var(--f-lcd); min-width: 30px; text-align: right; }
.station-item__ch { font-size: 11px; color: var(--txt-dim); background: rgba(0,0,0,.35); border-radius: 4px; padding: 2px 6px; }
.station-item__ch.same { color: var(--amber); }
.station-item__dist.no-loc { color: var(--txt-dim); }

.stations__footer {
  font-size: 10px; color: var(--txt-dim); line-height: 1.8; text-align: center;
  border-top: 1px solid var(--border); padding-top: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBIL
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   LEGAL FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

.legal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px 16px 10px;
  background: linear-gradient(to top, rgba(16,18,26,.98) 60%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 100;
}
.legal-made {
  font-size: 10px;
  color: var(--txt-dim);
  letter-spacing: .5px;
}
.legal-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.legal-toggle {
  background: none;
  border: none;
  color: var(--txt-dim);
  font-size: 11px;
  letter-spacing: .5px;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.legal-toggle:hover { color: var(--txt); }

.legal-sep { color: var(--txt-dim); font-size: 11px; }

.legal-footer > :first-child,
.legal-footer > .legal-sep,
.legal-footer > :nth-child(3) {
  display: inline;
}

/* Wrapper-Zeile für Toggles */
.legal-footer { flex-direction: column; }
.legal-footer::before { content: ''; }

.legal-panel {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 560px;
  width: calc(100% - 32px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 -4px 30px rgba(0,0,0,.7);
  z-index: 99;
}
.legal-panel[hidden] { display: none; }
.legal-panel h3 {
  font-size: 13px; letter-spacing: 1px; color: var(--txt);
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.legal-panel p { font-size: 11px; color: var(--txt-dim); line-height: 1.7; }
.legal-panel a { color: var(--amber); text-decoration: none; }
.legal-panel a:hover { text-decoration: underline; }

/* Toggles nebeneinander */
.legal-links {
  display: flex; gap: 8px; align-items: center; justify-content: center;
}

@media (max-width: 700px) {
  html, body { overflow: auto; }
  .scene { align-items: flex-start; }
  .table-surface {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 14px; width: 100%; padding: 10px;
  }
  .rig { width: 100%; }
  .rig__face { padding: 0 12px; }
  .rig__header { padding: 10px 0 8px; }
  .rig__brand { font-size: 16px; letter-spacing: 2px; }
  .rig__model { display: none; }

  /* Hauptbereich: zwei Zeilen statt einer */
  .rig__main {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }
  .speaker   { display: none; }
  .tx-rx     { flex: 0 0 auto; flex-direction: row; gap: 16px; order: 3; }
  .ind       { flex-direction: row; gap: 6px; }
  .divider   { display: none; }

  /* Display und S-Meter nebeneinander, volle Breite */
  .ch-display {
    flex: 0 0 auto;
    width: 100px;
    padding: 8px 10px 6px;
  }
  .ch-display__num { gap: 4px; }
  .seg-digit { width: 22px; height: 40px; }
  .seg-a, .seg-g, .seg-d { height: 4px; width: 16px; left: 3px; }
  .seg-f, .seg-b, .seg-e, .seg-c { width: 4px; height: 14px; }
  .seg-f, .seg-b { top: 3px; }
  .seg-e, .seg-c { bottom: 3px; }
  .smeter { flex: 1; min-width: 120px; order: 2; }

  /* Controls: alle Elemente in einer Zeile, volle Breite */
  .controls {
    flex: 0 0 100%;
    order: 4;
    justify-content: space-evenly;
  }

  .mic-area { align-items: flex-start; }
  .mic { width: 90px; }
  .mic__cable { display: none; }
  .mic__grille { height: 56px; }
  .mic__ptt { padding: 12px 0; }
  .mic__ptt-label { font-size: 16px; letter-spacing: 3px; }
  .mic__badge { display: none; }
  .stations { max-width: none; }
}
