/* ============================================================
   FLACKERKISTE — Signage-Konsole (interactive demo) styles
   ============================================================ */

.console {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  font-family: var(--body);
  height: 720px;
  position: relative;
  overflow: hidden;
}

/* ---------- Browser chrome ---------- */
.console__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  background: #0e0e0e;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.console__lights { display: flex; gap: 6px; }
.console__lights span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a3a3a;
}
.console__lights span:nth-child(1) { background: #f56565; }
.console__lights span:nth-child(2) { background: #ecc94b; }
.console__lights span:nth-child(3) { background: #48bb78; }
.console__url {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  margin: 0 auto;
  font-size: 12px;
}
.console__url-lock { color: var(--accent); }
.console__url strong { color: var(--fg); font-weight: 500; }
.console__chrome-right { display: flex; align-items: center; gap: 10px; }
.console__user {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700; font-size: 12px;
  display: grid; place-items: center;
}

/* ---------- Layout ---------- */
.console__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  min-height: 0;
}
.console__sidebar {
  background: #0e0e0e;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.console__sidebar-section {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.console__sidebar-section--btm {
  margin-top: auto;
  border-bottom: 0;
  border-top: 1px solid var(--line);
}
.console__sidebar-label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.console__sidebar-org {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.console__org-name {
  font-family: var(--display);
  font-weight: 600; font-size: 14px;
}
.console__org-sub {
  font-size: 12px; color: var(--fg-mute);
  margin-top: 2px;
}
.console__org-pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-size: 12px; color: var(--fg-dim);
  background: var(--bg-3);
  padding: 4px 8px; border-radius: 999px;
}

.console__nav {
  display: flex; flex-direction: column;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.console__nav-btn {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  text-align: left;
  font-family: var(--body);
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.console__nav-btn:hover { background: var(--bg-3); color: var(--fg); }
.console__nav-btn.is-active {
  background: var(--bg-3); color: var(--fg);
}
.console__nav-ic { color: var(--accent); font-size: 14px; }
.console__nav-count {
  font-family: var(--display);
  font-size: 11px;
  color: var(--fg-mute);
  background: var(--bg);
  padding: 2px 6px; border-radius: 999px;
}

.console__locs {
  display: flex; flex-direction: column; gap: 4px;
}
.console__loc {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--fg-dim);
  font-family: var(--body);
  transition: background .12s, border-color .12s;
}
.console__loc:hover { background: var(--bg-3); }
.console__loc.is-active {
  background: var(--bg-3);
  border-color: var(--accent);
  color: var(--fg);
}
.console__loc-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
}
.console__loc-sub {
  font-size: 11px; color: var(--fg-mute);
  margin-top: 2px; padding-left: 16px;
}
.console__loc--add {
  font-family: var(--display);
  font-size: 12px;
  color: var(--accent);
  border: 1px dashed var(--line-2);
  margin-top: 6px;
  padding: 8px;
  text-align: center;
}

/* ---------- Main area ---------- */
.console__main {
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 18px;
  gap: 16px;
}
.console__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.console__crumb {
  font-family: var(--display);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--fg-mute); text-transform: uppercase;
  margin-bottom: 4px;
}
.console__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.console__head-actions { display: flex; gap: 8px; }
.console__btn {
  font-family: var(--display);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.console__btn--ghost:hover { border-color: var(--fg); }
.console__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.console__btn--primary:hover { background: var(--accent-soft); }

/* metrics */
.console__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.metric__label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.metric__val {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.metric__val span {
  font-size: 14px;
  color: var(--fg-mute);
  font-weight: 400;
  margin-left: 2px;
}
.metric__bar {
  height: 4px; background: var(--bg-3); border-radius: 4px;
  overflow: hidden; margin-top: 4px;
}
.metric__bar > div {
  height: 100%; background: var(--accent);
  transition: width .4s;
}
.metric__spark {
  display: flex; align-items: flex-end; gap: 2px;
  height: 22px;
}
.metric__spark span {
  flex: 1;
  background: var(--accent);
  opacity: 0.7;
  border-radius: 1px;
  min-height: 4px;
}
.metric__pl {
  font-size: 11px; color: var(--fg-dim);
  font-family: var(--display);
}

/* split: screens grid + preview */
.console__split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.console__panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; flex-direction: column;
  min-height: 0;
}
.console__panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.console__panel-head h4, .console__panel-head h5 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.console__panel-actions { display: flex; gap: 6px; }

.chip {
  font-family: var(--display);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-dim);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.console__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

/* dots */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fg-mute);
}
.dot--online { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.dot--warn { background: #ecc94b; box-shadow: 0 0 6px #ecc94b; }
.dot--offline { background: #f56565; }

/* ---------- Screen grid ---------- */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  align-content: start;
}
.screen-tile {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  display: flex; flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: background .12s, border-color .12s;
}
.screen-tile:hover { background: var(--bg-3); }
.screen-tile--active { border-color: var(--accent); background: var(--bg-3); }
.screen-tile__bezel {
  background: #000;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.screen-tile__bezel--portrait { aspect-ratio: 9/16; max-width: 90px; margin: 0 auto; }
.screen-tile__off {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--display);
}
.screen-tile__off-x {
  font-size: 13px;
  color: #f56565;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.screen-tile__off-sub { font-size: 9px; color: var(--fg-mute); margin-top: 2px; }
.screen-tile__meta { display: flex; flex-direction: column; gap: 2px; }
.screen-tile__name {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
}
.screen-tile__sub {
  font-size: 11px;
  color: var(--fg-mute);
  font-family: var(--body);
}

/* ---------- Slide view (the "what's on the screen") ---------- */
.slide {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #131313, #050505);
  color: var(--fg);
  font-family: var(--display);
  display: flex; flex-direction: column;
  padding: calc(10px * var(--s, 1));
  overflow: hidden;
}
.slide--accent {
  background: linear-gradient(160deg, #2a1408, #0a0a0a 75%);
}
.slide__corner {
  position: absolute;
  width: calc(10px * var(--s, 1));
  height: calc(10px * var(--s, 1));
  border: 1px solid var(--accent);
}
.slide__corner--tl { top: calc(4px * var(--s, 1)); left: calc(4px * var(--s, 1)); border-right: 0; border-bottom: 0; }
.slide__corner--tr { top: calc(4px * var(--s, 1)); right: calc(4px * var(--s, 1)); border-left: 0; border-bottom: 0; }
.slide__corner--bl { bottom: calc(4px * var(--s, 1)); left: calc(4px * var(--s, 1)); border-right: 0; border-top: 0; }
.slide__corner--br { bottom: calc(4px * var(--s, 1)); right: calc(4px * var(--s, 1)); border-left: 0; border-top: 0; }
.slide__brand {
  font-size: calc(8px * var(--s, 1));
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
  font-weight: 500;
}
.slide__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
}
.slide__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(38px * var(--s, 1));
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--fg);
}
.slide--accent .slide__title { color: var(--accent); }
.slide--big .slide__title { font-size: calc(48px * var(--s, 1)); }
.slide--info .slide__title { font-size: calc(28px * var(--s, 1)); }
.slide__sub {
  font-family: var(--editorial);
  font-style: italic;
  font-size: calc(20px * var(--s, 1));
  color: var(--fg-dim);
  margin-top: calc(6px * var(--s, 1));
  font-weight: 400;
}
.slide--price .slide__sub { color: var(--accent); font-style: normal; font-family: var(--display); font-weight: 700; }
.slide__time {
  font-size: calc(8px * var(--s, 1));
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  align-self: flex-end;
}

/* ---------- Live preview (big) ---------- */
.console__panel--preview { padding: 14px; gap: 12px; }
.preview {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 0;
  flex: 0 0 auto;
}
.preview__bezel {
  background: #000;
  border: 6px solid #0c0c0c;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 60px -20px rgba(229,111,64,0.4),
              0 0 0 1px var(--line) inset;
}
.preview__bezel--landscape { aspect-ratio: 16/9; }
.preview__bezel--portrait { aspect-ratio: 9/16; max-width: 180px; }
.preview__overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px;
}
.preview__corner {
  background: rgba(229,111,64,0.18);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.preview__corner--r { background: rgba(0,0,0,0.5); border-color: var(--line-2); color: var(--fg-dim); }
.preview__stand {
  width: 28%; height: 8px;
  background: #1a1a1a;
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
}
.preview__details {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  gap: 4px;
}
.kv {
  display: flex; justify-content: space-between;
  font-size: 12px;
  font-family: var(--body);
}
.kv span:first-child { color: var(--fg-mute); font-family: var(--display); letter-spacing: 0.04em; }
.kv span:last-child { color: var(--fg); }
.preview__controls { display: flex; gap: 8px; }
.ctrl {
  flex: 1;
  font-family: var(--display);
  font-size: 12px;
  padding: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s;
}
.ctrl:hover { background: var(--bg-3); }
.ctrl--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ctrl--primary:hover { background: var(--accent-soft); }

/* ---------- Scheduler ---------- */
.sched {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.sched__list {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.sched__pl {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--body);
  color: var(--fg-dim);
  transition: background .12s, border-color .12s, color .12s;
}
.sched__pl:hover { background: var(--bg-3); color: var(--fg); }
.sched__pl.is-active {
  border-color: var(--accent);
  background: var(--bg-3);
  color: var(--fg);
}
.sched__pl-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
}
.sched__pl-meta {
  font-size: 11px; color: var(--fg-mute);
  margin-top: 4px;
}
.sched__pl--add {
  border-style: dashed;
  color: var(--accent);
  text-align: center;
  font-family: var(--display);
  font-size: 12px;
}
.badge {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  text-transform: uppercase;
}
.badge--live {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
}

.sched__main {
  display: flex; flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.sched__zoom { display: flex; gap: 4px; }
.sched__live {
  font-size: 11px; color: var(--fg-dim);
  font-family: var(--display);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.06em;
}
.timeline {
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.timeline__hours {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  font-family: var(--display);
  font-size: 9px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.timeline__hours span {
  text-align: left;
  border-left: 1px solid var(--line);
  padding: 0 0 4px 4px;
}
.timeline__track {
  position: relative;
  height: 48px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.timeline__seg {
  position: absolute; top: 4px; bottom: 4px;
  background: rgba(229,111,64,0.18);
  border: 1px solid var(--accent);
  border-radius: 3px;
  display: flex; align-items: center;
  padding: 0 8px;
  font-family: var(--display);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
}
.timeline__seg.is-active {
  background: var(--accent);
  color: var(--bg);
}
.timeline__now {
  position: absolute; top: -6px; bottom: -6px;
  width: 1px;
  background: var(--fg);
  z-index: 2;
}
.timeline__now span {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--display);
  font-size: 9px;
  background: var(--fg);
  color: var(--bg);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sched__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.slide-list {
  list-style: none; margin: 0; padding: 6px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.slide-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background .12s;
}
.slide-row:hover { background: var(--bg-3); }
.slide-row.is-active { background: rgba(229,111,64,0.12); }
.slide-row__num {
  font-family: var(--display);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.slide-row__title {
  font-family: var(--display);
  font-weight: 500;
  text-transform: lowercase;
}
.slide-row__sub {
  font-size: 11px; color: var(--fg-mute);
  font-family: var(--editorial); font-style: italic;
}
.slide-row__dur {
  font-family: var(--display);
  font-size: 11px;
  color: var(--accent);
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 3px;
}
.slide-row__grip {
  color: var(--fg-mute);
  font-size: 11px;
  cursor: grab;
  text-align: center;
}
.slide-list__total {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font-family: var(--display);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

/* ---------- Modal ---------- */
.modal {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 20;
}
.modal__card {
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 28px;
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 14px;
}
.modal__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.modal__lead {
  font-size: 14px; color: var(--fg-dim);
  margin: 0;
}
.modal__input {
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--display);
  font-size: 18px;
  padding: 14px 18px;
  border-radius: 8px;
  outline: none;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.modal__input:focus { border-color: var(--accent); }
.modal__row { display: flex; gap: 8px; justify-content: flex-end; }
.modal__btn {
  font-family: var(--display);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.modal__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--fg);
  font-family: var(--display);
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 30;
  animation: toastIn .25s ease-out;
  white-space: nowrap;
}
@keyframes toastIn {
  from { transform: translate(-50%, 12px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ---------- Compact responsive ---------- */
@media (max-width: 980px) {
  .console { height: auto; }
  .console__layout { grid-template-columns: 1fr; }
  .console__sidebar {
    border-right: 0; border-bottom: 1px solid var(--line);
    flex-direction: row; overflow-x: auto;
  }
  .console__sidebar-section { border-bottom: 0; min-width: 220px; }
  .console__metrics { grid-template-columns: repeat(2, 1fr); }
  .console__split { grid-template-columns: 1fr; }
  .sched { grid-template-columns: 1fr; }
  .sched__bottom { grid-template-columns: 1fr; }
}

/* ============================================================
   KONSOLE — Mobile Refinements (zusätzlich zum existierenden 980px-Block)
   ============================================================ */

@media (max-width: 720px) {
  .console {
    height: auto;
    font-size: 14px;
  }

  /* Browser-Chrome kompakter */
  .console__chrome { padding: 8px 12px; gap: 10px; }
  .console__url { font-size: 11px; padding: 5px 10px; }
  .console__lights span { width: 9px; height: 9px; }

  /* Sidebar — kompakter, weniger sections sichtbar */
  .console__sidebar { padding-bottom: 4px; }
  .console__sidebar-section { min-width: 200px; padding: 12px; }
  .console__sidebar-section--btm { min-width: 240px; }
  .console__org-name { font-size: 13px; }
  .console__org-sub { font-size: 11px; }
  .console__nav-btn { font-size: 13px; padding: 10px; min-height: 44px; }
  .console__loc { min-width: 180px; padding: 10px; min-height: 44px; }
  .console__loc-name { font-size: 13px; }

  /* Main-Area kompakter */
  .console__main { padding: 14px; gap: 14px; }
  .console__title { font-size: 20px; }
  .console__crumb { font-size: 10px; }
  .console__head-actions { flex-wrap: wrap; gap: 6px; }
  .console__btn {
    font-size: 12px;
    padding: 10px 14px;
    min-height: 44px;
  }

  /* Metrics: 2x2 statt 4 in einer Zeile (bereits bei 980 implementiert) */
  .metric { padding: 12px; }
  .metric__val { font-size: 24px; }
  .metric__label { font-size: 10px; }

  /* Screen-Grid — kleinere Tiles */
  .screen-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    padding: 12px;
  }
  .screen-tile { padding: 8px; gap: 6px; }
  .screen-tile__name { font-size: 12px; }
  .screen-tile__sub { font-size: 10px; }

  /* Live-Preview Panel kompakter */
  .console__panel--preview { padding: 12px; gap: 10px; }
  .preview__bezel { max-width: 280px; }
  .preview__bezel--portrait { max-width: 140px; }

  .ctrl {
    font-size: 11px;
    padding: 10px;
    min-height: 44px;
  }

  /* Scheduler-Layout */
  .sched__list { padding: 8px; }
  .sched__pl { padding: 8px 10px; min-height: 44px; }
  .sched__pl-top { font-size: 12px; }
  .sched__pl-meta { font-size: 10px; }

  /* Timeline */
  .timeline { padding: 10px; }
  .timeline__hours { font-size: 8px; }
  .timeline__seg { font-size: 9px; padding: 0 4px; }

  /* Slide-List */
  .slide-list { padding: 4px; }
  .slide-row {
    grid-template-columns: 22px 1fr auto 14px;
    gap: 6px;
    padding: 8px;
    font-size: 12px;
    min-height: 44px;
  }
  .slide-row__sub { display: none; } /* sub auf mobile weglassen für Platz */

  /* Modal Mobile */
  .modal__card {
    margin: 16px;
    padding: 20px;
    max-width: calc(100vw - 32px);
  }
  .modal__input {
    font-size: 16px; /* iOS Zoom verhindern */
    padding: 12px 14px;
    min-height: 44px;
  }
  .modal__btn { min-height: 44px; padding: 12px 16px; }

  /* Chips kompakter */
  .chip {
    font-size: 10px;
    padding: 6px 10px;
    min-height: 32px; /* chips bleiben kleiner */
  }
}

@media (max-width: 480px) {
  .console-mount { min-height: 480px; }
  .screen-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .console__metrics { grid-template-columns: 1fr 1fr; }
  .preview__bezel { max-width: 240px; }
  .preview__bezel--portrait { max-width: 120px; }

  /* Toast auf Mobile schmaler */
  .toast {
    max-width: calc(100vw - 32px);
    font-size: 12px;
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
  }
}

/* Hover-Effekte auf Touch-Geräten deaktivieren */
@media (hover: none) {
  .console__nav-btn:hover, .console__loc:hover,
  .screen-tile:hover, .sched__pl:hover, .slide-row:hover { background: transparent; }
  .console__nav-btn.is-active, .console__loc.is-active,
  .screen-tile--active, .sched__pl.is-active, .slide-row.is-active {
    background: var(--bg-3);
  }
}
