/* ROVEX-Plattform: Firmenauswahl, Logo-Umschalter, Bestätigung, Zwei-Faktor. Schwarz/Weiß, Firmenfarbe nur als Kante. */
.rxp { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  color: #fff; font: inherit; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-y: auto; }
html.rxp-open, html.rxp-open body { overflow: hidden; }
.rxp *, .rxp *::before, .rxp *::after { box-sizing: border-box; }
.rxp-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rxp.is-pick .rxp-backdrop { background: #000; }
.rxp-panel { position: relative; width: min(940px, 100%); margin: auto; }
.rxp-dialog { width: min(460px, 100%); background: #000; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 22px; }
.rxp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.rxp-head h2 { margin: 0; font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; letter-spacing: -.01em; color: #fff; }
.rxp-dialog .rxp-head { margin-bottom: 14px; } .rxp-dialog .rxp-head h2 { font-size: 20px; }
.rxp-head p { margin: 6px 0 0; color: rgba(255, 255, 255, .66); }
.rxp-pick .rxp-head { justify-content: center; text-align: center; margin-bottom: 34px; }
.rxp-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer; font-size: 18px; }
.rxp-x:hover { border-color: #fff; }

/* Organigramm: Holding oben, Firmen darunter */
.rxp-top { display: flex; justify-content: center; }
.rxp-top .rxp-tile { width: min(300px, 100%); }
.rxp-rail { position: relative; height: 34px; margin: 0 auto; width: calc(100% - 100% / var(--n, 4)); max-width: 100%; }
.rxp-rail::before { content: ""; position: absolute; left: 50%; top: 0; height: 17px; border-left: 1px solid rgba(255, 255, 255, .28); }
.rxp-rail::after { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 17px; border: 1px solid rgba(255, 255, 255, .28); border-bottom: 0; }
.rxp-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.rxp-grid:not(.has-root) { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.rxp-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 22px 14px 18px;
  background: #050505; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; color: #fff; text-decoration: none; text-align: center; cursor: pointer; font: inherit;
  transition: border-color .15s, background-color .15s; }
.rxp-tile::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--co, #e10600); }
.rxp-tile:hover { border-color: var(--co, #fff); background: #0b0b0b; }
.rxp-tile:focus-visible, .rxp-btn:focus-visible, .rxp-x:focus-visible, .rxp input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rxp-tile img { display: block; max-width: 82%; max-height: 46px; object-fit: contain; margin-bottom: 8px; }
.rxp-name { font-weight: 650; font-size: 14px; }
.rxp-role { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.rxp-here { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; }
.rxp-tile.is-here { border-color: rgba(255, 255, 255, .5); }
.rxp-ext { position: absolute; top: 10px; right: 12px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.rxp-tile.is-busy { opacity: .55; pointer-events: none; }
.rxp-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Formulare und Knöpfe */
.rxp-form { display: grid; gap: 14px; }
.rxp-form p { margin: 0; }
.rxp-form label { display: grid; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.rxp input { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: #0b0b0b; color: #fff; font: inherit; font-size: 16px; }
.rxp input:focus { border-color: #fff; outline: none; }
.rxp-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.rxp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: #fff; background: transparent; }
.rxp-btn.primary { background: #e10600; border-color: #e10600; }
.rxp-btn.primary:hover { background: #ff1a10; }
.rxp-btn.ghost { border-color: rgba(255, 255, 255, .26); }
.rxp-btn.ghost:hover { border-color: #fff; }
.rxp-btn.danger { border-color: #e10600; color: #ff5a4f; }
.rxp-btn[disabled] { opacity: .5; cursor: default; }
.rxp-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(225, 6, 0, .14); border: 1px solid rgba(225, 6, 0, .5); color: #fff; font-size: 13.5px; }
.rxp-msg[hidden] { display: none; }
.rxp-panel > .rxp-msg { margin-top: 16px; text-align: center; }
.rxp-muted { color: rgba(255, 255, 255, .62); font-size: 13.5px; }
.rxp-state { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); }
.rxp-state i { margin-top: 3px; }
.rxp-state.on { border-color: rgba(70, 200, 120, .55); }
.rxp-qr { display: flex; justify-content: center; }
.rxp-qr svg { width: 200px; height: 200px; border-radius: 10px; }
.rxp-device { justify-self: center; }
.rxp-device[hidden] { display: none; }
.rxp-key { font-size: 13px; letter-spacing: .04em; word-break: break-all; color: #fff; }
.rxp-codes { margin: 0; padding: 12px 12px 12px 34px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .3); columns: 2; column-gap: 26px; }
.rxp-codes li { margin: 3px 0; } .rxp-codes code { font-size: 14px; letter-spacing: .04em; }

/* Login-Codefeld in der App */
.rxp-login-code { display: grid; gap: 6px; grid-column: 1 / -1; }
/* Logo als Umschalter (App) */
.rxp-logo { cursor: pointer; }
.rxp-logo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }

@media (max-width: 720px) {
  .rxp { place-items: start center; }
  .rxp-grid, .rxp-grid.has-root { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rxp-rail { width: 50%; }
  .rxp-tile { min-height: 124px; padding: 18px 10px 14px; }
  .rxp-tile img { max-height: 36px; }
  .rxp-head h2 { font-size: 24px; }
  .rxp-codes { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { .rxp-tile { transition: none; } }
