/* pc-baukasten/styles.css
   Die Oberflaeche der PC-Baukasten: Werkbank (3D), Listen, Monitor-Fenster,
   Auftrags- und Ergebnis-Karten, Info- und Hilfe-Box.

   Wichtig fuer beide Themes: die Flaeche INNERHALB der Werkbank (.pcb_stage) ist
   absichtlich immer dunkel (Werkstatt-Optik) und traegt daher feste helle
   Schriftfarben. Nur die Kaesten UNTER dem Spiel (Info/Hilfe) richten sich nach
   dem Theme - so kann nie helle Schrift auf hellem Grund entstehen. */

/* ---------------------------------------------------------- Grundflaeche --- */
.pcb_stage {
  --pcb_flaeche: rgba(12, 18, 24, 0.90);
  --pcb_flaeche2: rgba(18, 27, 35, 0.94);
  --pcb_rand: rgba(255, 255, 255, 0.14);
  --pcb_text: #eaf2f8;
  --pcb_text2: #a8bcc9;
  --pcb_gruen: #58d68a;
  --pcb_gelb: #ffd54f;
  --pcb_rot: #ff7a6c;
  --pcb_blau: #7fd0f7;
  position: relative;
  width: 100%;
  /* Die Buehne darf nie hoeher sein als der Bildschirm. Ohne die frueheren
     Info-/Hilfe-Boxen unter dem Spiel (Regel 3.13.4) genuegen 12rem Kopf/Fuss. */
  height: clamp(340px, calc(100vh - 12rem), 46rem);
  margin: 0 auto 0.6rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0d1319;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.28);
  font-size: clamp(11px, 0.42vw + 8.6px, 15px);
  color: var(--pcb_text);
  -webkit-tap-highlight-color: transparent;
}
.pcb_canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
/* Im Vollbild mehr Platz: HUD waechst mit der Hoehe mit (em-Basis) */
.pcb_stage:fullscreen,
.pcb_stage_voll { height: 100%; border-radius: 0; font-size: max(12px, 1.5vh); }
.pcb_stage:fullscreen { margin: 0; }
.pcb_stage_voll { position: fixed; inset: 0; z-index: 60; border-radius: 0; }

/* ------------------------------------------------------------ Laden ------- */
.pcb_laden {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1319;
  z-index: 12;
}
.pcb_laden[hidden] { display: none; }
.pcb_laden_kasten {
  text-align: center;
  padding: 1.4em 2.2em;
  border: 1px solid var(--pcb_rand);
  border-radius: 1em;
  background: var(--pcb_flaeche2);
}
.pcb_laden_kasten b { display: block; margin-bottom: 0.5em; font-size: 1.05em; }
.pcb_laden_kasten span { color: var(--pcb_text2); font-size: 0.9em; }
.pcb_laden_balken {
  margin-top: 0.8em;
  width: 16em;
  height: 0.55em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.pcb_laden_balken i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #43a047, #7fd0f7);
  transition: width 0.2s linear;
}

/* -------------------------------------------------------------- HUD ------ */
.pcb_hud {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 0.4em;
  align-items: center;
}
.pcb_hud_oben {
  top: 0.5em;
  left: 0.5em;
  right: 0.5em;
  flex-wrap: wrap;
  justify-content: space-between;
  pointer-events: none;
}
.pcb_hud_oben > * { pointer-events: auto; }
.pcb_auftrag,
.pcb_kennzahlen,
.pcb_knoepfe {
  display: flex;
  align-items: center;
  gap: 0.35em;
  background: var(--pcb_flaeche);
  border: 1px solid var(--pcb_rand);
  border-radius: 999px;
  padding: 0.28em 0.7em;
  backdrop-filter: blur(6px);
  max-width: 100%;
}
.pcb_auftrag { min-width: 0; }
.pcb_auftrag b {
  font-size: 0.95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14em;
}
.pcb_chip {
  background: #43a047;
  color: #fff;
  border-radius: 999px;
  padding: 0.1em 0.6em;
  font-size: 0.85em;
  font-weight: 700;
  white-space: nowrap;
}
.pcb_kennzahl {
  font-size: 0.9em;
  color: var(--pcb_text2);
  white-space: nowrap;
}
.pcb_kennzahl b { color: var(--pcb_text); }

.pcb_knopf {
  font: inherit;
  font-size: 0.9em;
  cursor: pointer;
  color: var(--pcb_text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pcb_rand);
  border-radius: 999px;
  padding: 0.3em 0.75em;
  /* Bedienziele >= 40 x 40 px (Regel 3.13.5) - als feste px, weil em-Werte
     mit der Schrift mitmassen und unters Ziel rutschten (gemessen 29 px) */
  min-height: 40px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.pcb_knopf:hover { background: rgba(255, 255, 255, 0.16); }
.pcb_knopf:active { transform: translateY(1px); }
.pcb_knopf:focus-visible { outline: 2px solid var(--pcb_blau); outline-offset: 1px; }
.pcb_knopf_an {
  background: #2f7d43;
  border-color: #58d68a;
  color: #fff;
  font-weight: 700;
}
.pcb_knopf_an:hover { background: #389451; }
.pcb_knopf_power {
  background: #8d2f26;
  border-color: #ff9a8a;
  color: #fff;
  font-weight: 700;
}
.pcb_knopf_power:hover { background: #a3382c; }
.pcb_knopf_schmal { padding: 0.3em 0.5em; min-width: 40px; }
.pcb_knopf_gross { font-size: 1em; padding: 0.55em 1.2em; min-height: 44px; }
.pcb_knopf_klein {
  font: inherit;
  font-size: 0.8em;
  cursor: pointer;
  color: var(--pcb_text);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--pcb_rand);
  border-radius: 0.5em;
  padding: 0.25em 0.5em;
  white-space: nowrap;
  /* auch die kleinen Knoepfe bleiben tippbar (Regel 3.13.5) */
  min-height: 40px;
  min-width: 40px;
}
.pcb_knopf_klein:hover { background: rgba(255, 255, 255, 0.2); }
.pcb_knopf:disabled,
.pcb_knopf_klein:disabled { opacity: 0.45; cursor: default; }

.pcb_hud_rechts {
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  background: var(--pcb_flaeche);
  border: 1px solid var(--pcb_rand);
  border-radius: 0.9em;
  padding: 0.35em;
}
.pcb_knopf_ansicht { font-size: 0.85em; width: 100%; text-align: left; }

/* ------------------------------------------------------ Liste links ------ */
.pcb_panel {
  position: absolute;
  left: 0.5em;
  top: 3.4em;
  bottom: 0.6em;
  width: 21em;
  max-width: 62%;
  z-index: 7;
  display: flex;
  flex-direction: column;
  background: var(--pcb_flaeche2);
  border: 1px solid var(--pcb_rand);
  border-radius: 1em;
  backdrop-filter: blur(7px);
  overflow: hidden;
  transition: width 0.18s;
}
.pcb_panel_kopf {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.6em;
  border-bottom: 1px solid var(--pcb_rand);
  background: rgba(255, 255, 255, 0.05);
}
.pcb_panel_kopf b { font-size: 0.95em; }
.pcb_panel_kopf span {
  flex: 1;
  min-width: 0;
  font-size: 0.78em;
  color: var(--pcb_text2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcb_panel_liste { overflow-y: auto; padding: 0.35em; flex: 1; }
.pcb_panel.pcb_panel_zu { width: 3.2em; bottom: auto; }
.pcb_panel_zu .pcb_panel_kopf { justify-content: center; }
.pcb_panel_zu .pcb_panel_kopf b,
.pcb_panel_zu .pcb_panel_kopf span { display: none; }
.pcb_panel_zu .pcb_panel_liste,
.pcb_panel_zu .pcb_panel_hinweis { display: none; }

.pcb_gruppe { margin-bottom: 0.5em; }
.pcb_gruppe_kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4em;
  font-size: 0.78em;
  color: var(--pcb_text2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3em 0.3em 0.2em;
}
.pcb_gruppe_an { color: var(--pcb_gruen); }

.pcb_teil {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--pcb_text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pcb_rand);
  border-left: 0.35em solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6em;
  padding: 0.4em 0.55em;
  margin-bottom: 0.25em;
  transition: background 0.15s, border-color 0.15s;
}
.pcb_teil:hover { background: rgba(255, 255, 255, 0.12); }
.pcb_teil_an {
  border-left-color: var(--pcb_gruen);
  background: rgba(88, 214, 138, 0.16);
}
.pcb_teil_nein { opacity: 0.62; border-left-color: var(--pcb_rot); }
.pcb_teil_name {
  display: flex;
  justify-content: space-between;
  gap: 0.4em;
  font-size: 0.92em;
  font-weight: 600;
}
.pcb_teil_name i { font-style: normal; color: var(--pcb_gelb); white-space: nowrap; }
.pcb_teil_daten { display: block; font-size: 0.78em; color: var(--pcb_text2); margin-top: 0.15em; }
.pcb_teil_status { display: block; font-size: 0.78em; margin-top: 0.25em; }
.pcb_teil_status b { color: var(--pcb_gruen); }
.pcb_teil_nein .pcb_teil_status b { color: var(--pcb_rot); }

.pcb_kabel {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--pcb_text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pcb_rand);
  border-radius: 0.6em;
  padding: 0.4em 0.55em;
  margin-bottom: 0.25em;
}
.pcb_kabel:hover { background: rgba(255, 255, 255, 0.12); }
.pcb_kabel_an { background: rgba(255, 213, 79, 0.18); border-color: var(--pcb_gelb); }
.pcb_kabel_fertig { border-left: 0.35em solid var(--pcb_gruen); }
.pcb_kabel_name {
  display: flex;
  justify-content: space-between;
  gap: 0.4em;
  font-size: 0.92em;
  font-weight: 600;
}
.pcb_kabel_name i { font-style: normal; color: var(--pcb_gelb); white-space: nowrap; }
.pcb_kabel_weg { display: block; font-size: 0.76em; color: var(--pcb_blau); }
.pcb_kabel_info { display: block; font-size: 0.78em; color: var(--pcb_text2); margin-top: 0.15em; }
.pcb_leer { font-size: 0.85em; color: var(--pcb_text2); padding: 0.4em; }

/* ----------------------------------------------------------- Meldung ----- */
.pcb_meldung {
  position: absolute;
  left: 22em;
  right: 5.5em;
  bottom: 0.6em;
  z-index: 8;
  max-width: 44em;
  background: var(--pcb_flaeche2);
  border: 1px solid var(--pcb_rand);
  border-left: 0.35em solid var(--pcb_blau);
  border-radius: 0.8em;
  padding: 0.5em 0.7em;
  backdrop-filter: blur(7px);
  max-height: 42%;
  overflow-y: auto;
}
.pcb_meldung[hidden] { display: none; }
.pcb_meldung_fehl { border-left-color: var(--pcb_rot); }
.pcb_meldung_gut { border-left-color: var(--pcb_gruen); }
.pcb_meldung_kopf { display: flex; align-items: center; gap: 0.4em; }
.pcb_meldung_kopf b { flex: 1; font-size: 0.95em; }
.pcb_meldung p { margin: 0.35em 0 0; font-size: 0.85em; line-height: 1.45; }
.pcb_meldung_merksatz {
  color: var(--pcb_gelb);
  border-top: 1px dashed var(--pcb_rand);
  padding-top: 0.35em;
}
.pcb_meldung_merksatz[hidden] { display: none; }

/* ---------------------------------------------------- Monitor-Fenster ---- */
.pcb_monitor {
  position: absolute;
  /* Rechts versetzt, damit die Teile- und Kabelliste links frei bleibt -
     man kann also ein Kabel nachstecken, waehrend der Monitor das Fehlerbild
     zeigt. */
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: min(70%, 44em);
  background: #131313;
  border: 0.35em solid #2a2a2a;
  border-radius: 0.8em;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.5);
}
.pcb_monitor[hidden] { display: none; }
.pcb_monitor_kopf {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.45em;
  background: #242424;
  color: #dfe7ec;
}
.pcb_monitor_name { font-size: 0.85em; font-weight: 700; }
.pcb_monitor_phase {
  flex: 1;
  min-width: 0;
  font-size: 0.8em;
  color: var(--pcb_text2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcb_monitor_kopf .pcb_knopf_klein { color: #eaf2f8; }
.pcb_bios_canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 640;
  background: #000;
  cursor: pointer;
  touch-action: manipulation;
}
.pcb_monitor_fuss {
  padding: 0.3em 0.5em;
  background: #1b1b1b;
  color: #b9c6d0;
  font-size: 0.78em;
  min-height: 1.6em;
}
.pcb_monitor_fuss b { color: #eaf2f8; }

/* -------------------------------------------------- Start / Ergebnis ----- */
.pcb_start,
.pcb_ergebnis {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 16, 0.86);
  padding: 0.8em;
  overflow-y: auto;
}
.pcb_start[hidden],
.pcb_ergebnis[hidden] { display: none; }
.pcb_start_karte,
.pcb_ergebnis_karte {
  width: min(94%, 40em);
  max-height: 100%;
  overflow-y: auto;
  background: #16202a;
  border: 1px solid var(--pcb_rand);
  border-radius: 1em;
  padding: 1em 1.2em;
  text-align: center;
}
.pcb_start_karte h3,
.pcb_ergebnis_karte h3 { margin: 0 0 0.4em; font-size: 1.25em; }
.pcb_start_karte p { font-size: 0.9em; line-height: 1.5; }
.pcb_start_klein { color: var(--pcb_text2); font-size: 0.78em !important; }
.pcb_auftrag_liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
  gap: 0.5em;
  margin: 0.8em 0;
  text-align: left;
}
.pcb_auftrag_karte {
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--pcb_text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pcb_rand);
  border-radius: 0.7em;
  padding: 0.55em 0.7em;
}
.pcb_auftrag_karte:hover { background: rgba(255, 255, 255, 0.14); }
.pcb_auftrag_karte b { display: block; font-size: 0.95em; }
.pcb_auftrag_karte span { display: block; font-size: 0.78em; color: var(--pcb_text2); margin-top: 0.2em; }
.pcb_auftrag_karte .pcb_auftrag_sterne { color: var(--pcb_gelb); font-size: 0.9em; margin-top: 0.25em; }
.pcb_auftrag_karte:disabled { opacity: 0.5; cursor: default; }
.pcb_erg_sterne { font-size: 2em; letter-spacing: 0.1em; }
.pcb_erg_punkte { font-size: 1.05em; margin: 0.2em 0 0.6em; }
.pcb_erg_ziele { text-align: left; font-size: 0.85em; }
.pcb_erg_ziele div { margin: 0.25em 0; line-height: 1.45; }
.pcb_erg_wissen {
  text-align: left;
  font-size: 0.85em;
  margin-top: 0.7em;
  border-top: 1px dashed var(--pcb_rand);
  padding-top: 0.6em;
}
.pcb_erg_wissen div { margin: 0.4em 0; line-height: 1.45; }
.pcb_erg_wissen b { color: var(--pcb_blau); }
.pcb_erg_wissen i { display: block; color: var(--pcb_gelb); font-style: normal; margin-top: 0.15em; }
.pcb_erg_knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin-top: 0.9em;
}

/* --------------------- Start-Menue (Info + Hilfe leben jetzt darin) -------- */
/* Goldene Negativ-Regel 3.13.4: KEINE Info-/Erklaerbox UNTER dem Spiel.
   Ueber das Spiel und So spielst du sind <details>-Felder im Start-Menue. */
.pcb_start_logo {
  width: 4.2em;
  height: 4.2em;
  border-radius: 1em;
  display: block;
  margin: 0 auto 0.35em;
}
.pcb_start_aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin: 0.6em 0 0.8em;
}
.pcb_start_feld {
  text-align: left;
  margin: 0.5em 0;
  border: 1px solid var(--pcb_rand);
  border-radius: 0.7em;
  overflow: hidden;
}
.pcb_start_feld summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92em;
  padding: 0.75em 0.9em;
  min-height: 40px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  list-style: none;
}
.pcb_start_feld summary::-webkit-details-marker { display: none; }
.pcb_start_feld summary:hover { background: rgba(255, 255, 255, 0.13); }
.pcb_start_inhalt {
  padding: 0.2em 0.9em 0.7em;
  font-size: 0.88em;
  line-height: 1.55;
}
.pcb_start_inhalt p { margin: 0.55em 0; }
.pcb_start_inhalt ul { margin: 0.4em 0; padding-left: 1.2em; }
.pcb_start_inhalt li { margin: 0.45em 0; }
.pcb_lernziel {
  background: rgba(76, 175, 80, 0.14);
  border-left: 0.3rem solid #4caf50;
  border-radius: 0.4rem;
  padding: 0.5rem 0.7rem;
}

/* ---------- Drei-Zonen-Leiste (GUI-Richtlinie 3.13.2, Vorbild
   Rechen-Raumschiff): links Zurueck-Pille, mittig Logo + Name, rechts
   Sprache + Dark-Mode. Spielwerkzeuge liegen an der Werkbank. ----------
   Das Seitenraster bekommt wie im Vorbild eine feste leere Bypass-Zeile und
   eine inhaltsabhaengige Header-Zeile - freier Platz vergroessert nur den
   Hauptbereich. */
.jupi_container { grid-template-rows: 0 auto 1fr auto; }

.pcb_header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
}
.pcb_brand {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0.6rem;
  min-width: 0;
}
.pcb_brand img {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
  aspect-ratio: 1;
  border-radius: 0.45rem;
}
.pcb_brand h1 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcb_header .jupi_nav_back {
  position: static;
  justify-self: start;
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  line-height: 1.2;
  font-size: 0.88rem;
  min-height: 2.5rem;
}
.pcb_header .jupi_werkzeuge {
  position: static;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pcb_header #jupi_sprachen_wahl {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Bedienziele der Kopfzeile auf 40 px bringen (Regel 3.13.5, gemessen
   waren Select 31 px und Schalter 30 px). Theme-Schalter 74 x 40 px mit
   rundem 32-px-Schieber (Vorbild Rechen-Raumschiff). */
.pcb_header .jupi_sprachen_select { min-height: 40px; padding: 0.35rem 0.6rem; }
.pcb_header .jupi_theme_switch {
  width: 74px;
  height: 40px;
  min-width: 74px;
  min-height: 40px;
  padding: 0;
}
.pcb_header .jts_thumb {
  top: 3px;
  bottom: auto;
  left: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
html[data-theme="dark"] .pcb_header .jts_thumb { left: calc(100% - 36px); }
.pcb_header .jts_sun { left: 9px; }
.pcb_header .jts_moon { right: 9px; }
.pcb_auftrag_karte { min-height: 40px; }

@media (max-width: 800px) {
  .pcb_header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
    padding: 0.5rem;
  }
  .pcb_brand { grid-row: 1; grid-column: 1 / -1; }
  .pcb_brand img { width: 36px; height: 36px; }
  .pcb_brand h1 { font-size: 1.15rem; }
  .pcb_header .jupi_nav_back { grid-row: 2; grid-column: 1; font-size: 0.85rem; }
  .pcb_header .jupi_werkzeuge { grid-row: 2; grid-column: 2; }
  .pcb_header .jupi_sprachen_select { max-width: 7rem; }
}
@media (max-width: 580px) {
  .pcb_header .jupi_nav_back {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
  }
  .pcb_header .jupi_werkzeuge {
    grid-row: 3;
    grid-column: 1 / -1;
    justify-self: center;
  }
}

html[data-theme="dark"] .pcb_start_feld { border-color: var(--pcb_rand); }
html[data-theme="dark"] .pcb_start_feld summary { background: rgba(255, 255, 255, 0.07); }
html[data-theme="dark"] .pcb_lernziel { background: #16241a; border-left-color: #4caf50; }
html[data-theme="dark"] .pcb_stage { box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.55); }

/* ------------------------------------------------------- Handy/Tablet ---- */
@media (max-width: 900px) {
  .pcb_stage { height: clamp(300px, calc(100vh - 11rem), 34rem); font-size: clamp(11px, 1.1vw + 6px, 14px); }
  /* Feste 40 px: auf kleinen Schriften reichen em-Werte fuer die
     Bedienziele nicht mehr (Regel 3.13.5) */
  .pcb_knopf, .pcb_knopf_klein, .pcb_knopf_gross { min-height: 40px; }
  .pcb_auftrag_karte { min-height: 40px; }
  .pcb_panel { width: 17em; bottom: 0.5em; top: 5.9em; }
  .pcb_meldung { left: 0.5em; right: 0.5em; max-height: 30%; }
  .pcb_auftrag b { max-width: 8em; }
}
@media (max-width: 620px) {
  /* Sechs Knoepfe (Bauen, Schrauben, Kabel, Einschalten, Ton, Vollbild) muessen
     in eine Zeile passen - sonst laufen die letzten aus dem Bild. */
  .pcb_knoepfe { padding: 0.2em 0.35em; gap: 0.2em; flex-wrap: wrap; justify-content: center; }
  .pcb_knoepfe .pcb_knopf { padding-left: 0.38em; padding-right: 0.38em; font-size: 0.86em; }
  .pcb_hud_rechts { top: auto; bottom: 0.5em; right: 0.5em; transform: none; flex-direction: row; }
  .pcb_knopf_ansicht { width: auto; }
  .pcb_panel { left: 0.5em; right: 0.5em; width: auto; max-width: none; top: 9em; bottom: 8.5em; }
  .pcb_panel_zu { right: auto; width: 3.2em; }
  .pcb_meldung { left: 0.5em; right: 0.5em; bottom: 3.6em; max-height: 32%; }
}
/* Auf flachen Bildschirmen (Handy im Querformat) darf das Monitor-Fenster
   nicht hoeher werden als die Buehne - sonst laeuft es unten heraus. */
@media (max-height: 640px) {
  .pcb_monitor { width: min(72%, 24em); }
  .pcb_panel { width: 15em; top: 5.6em; }
  .pcb_meldung { max-height: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .pcb_knopf, .pcb_teil, .pcb_kabel, .pcb_panel { transition: none; }
}
