/* Nur die Komponenten, die es in style-v3.css noch nicht gibt.
   Alles Uebrige kommt unveraendert aus style-v3.css. */

/* Banner, wenn das Bundle fehlt und v4 nur mit dem Transkript laeuft. */
.bundle-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff4e5;
  border: 1px solid #ffd8a8;
  color: #8a4b00;
  font-size: 13px;
}

/* Admin-Panel, in Task 13 befuellt. Ohne ?admin=1 bleibt es hidden. */
/* Kein Overlay: das Panel ist das letzte Kind der Flex-Spalte und nimmt eine
   eigene Zeile ein, der Chat darueber schrumpft. Absolut positioniert lag es
   ueber der Eingabe, und genau die braucht man beim Vorfuehren: Schalter
   umlegen, dieselbe Frage sofort noch einmal stellen. */
.admin-panel {
  flex-shrink: 0;
  z-index: 30;
  padding: 12px 14px 14px;
  background: #14161a;
  color: #e6e8ec;
  border-top: 2px solid #332FC6;
  font-size: 12px;
  max-height: 45%;
  overflow-y: auto;
}
.admin-panel[hidden] { display: none; }

.admin-panel h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b93a7;
}
.admin-group { margin-bottom: 12px; }
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}
.admin-toggle input { accent-color: #332FC6; }

.admin-debug {
  margin-top: 4px;
  padding: 8px;
  border-radius: 6px;
  background: #0b0d10;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-open-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 31;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.75);
  color: #e6e8ec;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.admin-open-btn[hidden] { display: none; }

/* Debug-Zeile unter einer Antwort, nur im Admin-Modus sichtbar. */
.answer-debug {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(51, 47, 198, 0.08);
  border: 1px solid rgba(51, 47, 198, 0.2);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.5;
  color: #3b4256;
}
.answer-debug a { color: #332FC6; }

/* Antworten koennen mehrere Absaetze haben, etwa wenn die Web-Stufe eine
   Empfehlung und eine Einschraenkung trennt. Ohne pre-wrap kollabieren die
   Umbrueche und aus zwei Absaetzen wird eine Textwand. */
.chat-bubble {
  white-space: pre-wrap;
}

/* Drei Produktdemos untereinander auf einer Seite (demo-v4.html), statt des
   fruehen Umschalters oben. Kein neues Designsystem: nur Abstand plus eine
   dezente Trennlinie aus der bestehenden Border-Variable, damit klar ist, wo
   eine Demo endet und die naechste beginnt. Der letzte Abschnitt bekommt
   keine Trennlinie, danach kommt nur noch der Seitenrand. */
.product-demo {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}
.product-demo:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

/* Hinweis unter einer Nicht-Antwort. Ersetzt den frueheren Knopf
   "Zum Hersteller-Support": das Widget sitzt im Shop, ein Link nach draussen
   fuehrt den Kaeufer genau dort weg, wo er kaufen soll. Deshalb ein ruhiger
   Satz statt eines auffaelligen CTA. */
.fallback-hint {
  font-size: 12.5px;
  color: var(--color-muted, #6b7280);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Videos fuellen ihren Rahmen und bleiben dabei mittig, unabhaengig davon, ob
   Seitenverhaeltnis von Video und Rahmen exakt zusammenpassen. Vorher hing das
   allein am Standardverhalten des Browsers. */
#video, .qa-video {
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}
