/* Kopfreiter „V3 DEX Simulator“ (30.09.2026): der Simulator als randloses
   iframe von /v3dex/ (modules/v3dexTab.js). Nur Tokens; die Mindesthöhe
   600 px ist die Vorgabe für das iframe, bis der Simulator seine Höhe meldet.
   Nicht im Demo-Paket (DROP_STYLESHEETS im Export). */

.v3dex-view {
  padding: 0;
  margin: 0;
}

.v3dex-rahmen {
  position: relative;
  min-height: 600px;
}

.v3dex-frame {
  display: block;
  width: 100%;
  height: 600px;
  min-height: 600px;
  border: 0;
  background: transparent;
  transition: opacity var(--t-base) ease;
}
/* Solange der Simulator lädt, steht das Skeleton an seiner Stelle. */
.v3dex-frame.ist-ladend { opacity: 0; }
/* Höhe kommt vom Simulator: die Seite scrollt, das iframe nie. */
.v3dex-frame.hat-hoehe { overflow: hidden; }

.v3dex-lade {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  overflow: hidden;
}
.v3dex-lade-inhalt {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.v3dex-fehler .lz-leer {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}

.v3dex-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Zeile „PP-Bot-ID [Feld] [Laden]“ über dem iframe (01.10.2026). Katalog
   Inputs/standard + Buttons/loading, kompakt; hell über die Tokens. */
.v3dex-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}
/* Ausgeblendet, solange der Simulator das Feld selbst hat (15.10.2026). */
.v3dex-leiste[hidden] { display: none; }
.v3dex-leiste-label {
  color: var(--text-2);
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
}
.v3dex-feld {
  flex: 0 1 280px;
  min-width: 160px;
  height: 32px;
  padding: 0 var(--space-3);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font: inherit;
  font-size: var(--fs-13);
  font-family: var(--font-mono);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.v3dex-feld::placeholder { color: var(--input-placeholder); font-family: var(--font-sans); }
.v3dex-feld:focus { outline: none; border-color: var(--primary-hover-border); box-shadow: var(--input-focus-ring); }
.v3dex-knopf {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 var(--space-4);
  background: var(--secondary-bg);
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius-sm);
  color: var(--secondary-text);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.v3dex-knopf:hover:not(:disabled) { background: var(--secondary-hover-bg); border-color: var(--secondary-hover-border); }
.v3dex-knopf:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.v3dex-knopf:disabled { cursor: progress; opacity: .7; }
.v3dex-knopf-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-2);
  border-top-color: var(--text-1);
  border-radius: 50%;
  animation: v3dex-dreh .8s linear infinite;
}
.v3dex-knopf.ist-ladend .v3dex-knopf-spinner { display: inline-block; }
@keyframes v3dex-dreh { to { transform: rotate(360deg); } }
.v3dex-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 20px;
  font-size: var(--fs-12);
  color: var(--text-3);
}
.v3dex-status[data-art="ok"] { color: var(--text-2); }
.v3dex-status[data-art="ok"]::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--check);
}
.v3dex-status[data-art="fehler"] { color: var(--text-danger); }

@media (max-width: 640px) {
  .v3dex-feld { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .v3dex-frame { transition: none; }
  .v3dex-knopf-spinner { animation-duration: 2s; }
}

/* Reiter „Shortcuts“ (15.10.2026, modules/shortcutsTab.js) nutzt dieselben Rahmen. */
.shortcuts-hinweis {
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-13);
}
