/* Pult: Tischplan (links), rechts umschaltbar Bondrucker oder Küchendisplay, auf einem Laptop-Bildschirm. Keine Skripte.
   Umschalten nur per Radio und :checked ~ (kein :has noetig). Der verdeckte rechte Rahmen bleibt geladen und behaelt
   seine Groesse (visibility statt display:none): Abfrage, Ton und der Bondruck (misst die Bonhoehe) laufen weiter. */
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--schwarz, #07080a); color: #f3efe6; font-family: var(--font-sans, 'Montserrat', system-ui, sans-serif); overflow: hidden; }

.pu-kopf { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; height: 40px; padding: 0 16px; border-bottom: 1px solid rgba(201, 168, 106, .22); font-size: 13px; }
.pu-marke { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #c9a86a); white-space: nowrap; }
.pu-x { opacity: .6; }
.pu-nav { display: flex; gap: 16px; margin-left: auto; }
.pu-nav a { color: #f3efe6; opacity: .75; text-decoration: none; white-space: nowrap; }
.pu-nav a:hover, .pu-nav a:focus-visible { opacity: 1; color: var(--gold, #c9a86a); }
.pu-rbpay { display: inline-flex; align-items: center; gap: 8px; opacity: .6; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Umschalter Bondrucker | Küchendisplay ---------- */
/* Radios unsichtbar, aber per Tastatur erreichbar (Tab, Pfeiltasten) */
.pu-wahl { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pu-umschalter { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(201, 168, 106, .32); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.pu-pille {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1; white-space: nowrap;
  color: #f3efe6; opacity: .72; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}
.pu-pille:hover { opacity: 1; color: var(--gold, #c9a86a); }
#pu-wahl-bon:checked ~ .pu-kopf .pu-pille--bon,
#pu-wahl-kueche:checked ~ .pu-kopf .pu-pille--kueche {
  opacity: 1; cursor: default; color: var(--ui-gold-text, #1a1408);
  background: var(--gold, #c9a86a); background-image: var(--gold-verlauf, none);
  box-shadow: 0 6px 16px -10px rgba(201, 168, 106, .8);
}
#pu-wahl-bon:focus-visible ~ .pu-kopf .pu-pille--bon,
#pu-wahl-kueche:focus-visible ~ .pu-kopf .pu-pille--kueche { outline: 2px solid var(--gold-hell, #e9d5a6); outline-offset: 2px; }

/* ---------- Fläche ---------- */
/* Bondrucker: Tischplan 60 %, rechts 40 %. Küchendisplay: Tischplan 40 %, Küche 60 %. */
.pu-flaeche { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }
#pu-wahl-kueche:checked ~ .pu-flaeche { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.pu-rahmen { display: block; box-sizing: border-box; width: 100%; height: 100%; border: 0; min-height: 0; min-width: 0; }
.pu-rahmen--plan { grid-column: 1; grid-row: 1; }
/* Bondrucker und Küche liegen in derselben Zelle uebereinander. Der verdeckte Rahmen ist unsichtbar und nimmt
   keine Klicks; Groesse und Inhalt bleiben, damit er sofort wieder da ist. */
.pu-rahmen--bon, .pu-rahmen--kueche {
  position: relative; grid-column: 2; grid-row: 1; border-left: 1px solid rgba(201, 168, 106, .22);
  visibility: visible; opacity: 1; z-index: 1;
  transition: opacity .16s ease, visibility 0s linear 0s;
}
.pu-rahmen--kueche,
#pu-wahl-kueche:checked ~ .pu-flaeche .pu-rahmen--bon {
  visibility: hidden; opacity: 0; pointer-events: none; z-index: 0;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
#pu-wahl-kueche:checked ~ .pu-flaeche .pu-rahmen--kueche {
  visibility: visible; opacity: 1; pointer-events: auto; z-index: 1;
  transition: opacity .16s ease, visibility 0s linear 0s;
}

/* Schmale Bildschirme: untereinander */
@media (max-width: 1000px) {
  body { overflow: auto; }
  .pu-kopf { height: auto; min-height: 40px; flex-wrap: wrap; row-gap: 6px; padding-block: 6px; }
  .pu-flaeche, #pu-wahl-kueche:checked ~ .pu-flaeche { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(620px, 1fr) minmax(620px, 1fr); }
  .pu-rahmen--bon, .pu-rahmen--kueche { grid-column: 1; grid-row: 2; border-left: 0; border-top: 1px solid rgba(201, 168, 106, .22); }
  .pu-rbpay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pu-pille, .pu-rahmen--bon, .pu-rahmen--kueche,
  #pu-wahl-kueche:checked ~ .pu-flaeche .pu-rahmen--bon,
  #pu-wahl-kueche:checked ~ .pu-flaeche .pu-rahmen--kueche { transition: none; }
}
