/* Letzte Cleaning Prüfung: 15.10.2026 | Letztes Cleaning: - */
/*
 * Parameter der Eingabe ohne Konfigurationsfenster (WL14-34, contentfactory-param-popover.js): jede Einstellung ein Chip in der
 * Leiste, jede klappt für sich nach oben auf; Pfeile an der Reihe, wenn nicht alles hineinpasst. Das frühere Konfigurationsfenster
 * (Regler-Knopf) entfällt bei KI-Video, KI-Bild und Social-Posts.
 */

/* Regler-Knopf und Fenster entfallen - die Felder bleiben im Formular (verborgen), ihr Wert wird über die Chips gesetzt. */
:is(html, #param#popover) body :is(.video-generator-form.is-chat-composer .video-config-trigger, .video-generator-form.is-chat-composer [data-video-config-panel], .tk-composer .tk-konfig-trigger, .tk-composer .tk-konfig-panel) { display: none !important; }

/* Auswahl und Eingabefeld über der Leiste. */
.cf-param-liste, .cf-param-text {
  background: #1d202a;
  border: 1px solid #373d4d;
  border-radius: 14px;
  bottom: calc(100% + 10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  max-height: 320px;
  max-width: min(340px, calc(100vw - 24px));
  min-width: 210px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  z-index: 70;
}
.cf-param-liste > button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #cfd4e0;
  cursor: pointer;
  display: flex;
  font: 600 13px/1.2 "DM Sans", Inter, system-ui, sans-serif;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
}
.cf-param-liste > button:hover { background: #262b37; color: #fff; }
.cf-param-liste > button.is-active { background: rgba(255, 48, 79, .13); color: #ff8296; }
.cf-param-liste > button i { font-size: 15px; }
.cf-param-text { gap: 6px; min-width: 260px; padding: 10px 12px 12px; }
.cf-param-text > label { color: #8f97a8; font: 700 11px/1 "DM Sans", Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.cf-param-text > :is(input, textarea) {
  background: #12141b;
  border: 1px solid #343a49;
  border-radius: 9px;
  box-sizing: border-box;
  color: #f4f5f8;
  font: 500 14px/1.4 "DM Sans", Inter, system-ui, sans-serif;
  padding: 9px 11px;
  resize: vertical;
  width: 100%;
}
.cf-param-text > :is(input, textarea):focus { border-color: #ff3656; outline: 0; }
.cf-param-text > small { color: #8f97a8; font-size: 11px; line-height: 1.4; }

/* Pfeile an den Enden der Chipreihe: nur sichtbar, wo noch etwas verborgen ist. */
.cf-param-pfeil {
  --cf-pfeil-grund: #171922;
  --cf-pfeil-deckung: 55%;
  align-items: center;
  background: linear-gradient(90deg, var(--cf-pfeil-grund) var(--cf-pfeil-deckung), transparent);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  width: 28px;
  z-index: 5;
}
.cf-param-pfeil.ist-rechts { background: linear-gradient(270deg, var(--cf-pfeil-grund) var(--cf-pfeil-deckung), transparent); }
.cf-param-pfeil[hidden] { display: none; }
.cf-param-pfeil:hover { color: #ff3656; }
/* An den Bildkacheln (MOB17-28): Verlauf in der Farbe der Fläche unter der Eingabe. */
.cf-param-pfeil.ist-kacheln { --cf-pfeil-grund: var(--cf-bg, #08090d); --cf-pfeil-deckung: 45%; }

/*
 * Auswahlfenster nach dem Vorbild des Movie Studios (WL29-04/-05/-06/-08/-09, Betreiber 29.10.2026: „überall so wie im Movie
 * Studio“): Seitenverhältnis und Auflösung als Raster in zwei Spalten unter einer Überschrift in Großbuchstaben, die Dauer als
 * Regler. Die Werte (Glas, Linien, Schrift) stammen aus contentfactory-marketing-studio.css (.ms-pop, .ms-format-raster,
 * .ms-dauer-regler). Das Fenster hängt wie die Listen am Anker der Eingabe (ConfacParam.ausrichten setzt oben oder unten).
 */
.cf-wahl {
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  background: rgba(35, 38, 42, .92);
  border: 1px solid rgba(217, 217, 217, .12);
  border-radius: 16px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .12), 0 20px 50px rgba(0, 0, 0, .45);
  box-sizing: border-box;
  color: rgb(247, 247, 248);
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  position: absolute;
  z-index: 70;
}
.cf-wahl-format, .cf-wahl-aufloesung { border-radius: 20px; width: 180px; }
.cf-wahl-titel {
  color: rgb(113, 113, 123);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding: 8px 12px;
  text-transform: uppercase;
}
.cf-wahl-raster { display: grid; grid-template-columns: 1fr 1fr; }
.cf-wahl-zelle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .02);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 600 14px/24px "DM Sans", Inter, system-ui, sans-serif;
  gap: 6px;
  height: 42px;
  padding: 8px 12px;
  text-align: left;
  transition: background-color .15s ease;
}
.cf-wahl-zelle:hover, .cf-wahl-zelle.ist-an { background: rgba(255, 255, 255, .05); }
.cf-wahl-zelle .cf-format-zeichen { color: rgba(255, 255, 255, .6); }
.cf-wahl-dauer { padding: 8px; width: 334px; }
.cf-wahl-dauer-innen { border-radius: 12px; display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.cf-wahl-dauer-kopf { color: rgb(137, 138, 139); font-size: 12px; font-weight: 500; line-height: 18px; }
.cf-wahl-regler { border: 1px solid #424242; border-radius: 6px; display: block; height: 36px; overflow: hidden; position: relative; }
.cf-wahl-fuellung { background: rgb(35, 38, 42); bottom: 1px; left: 1px; position: absolute; top: 1px; }
.cf-wahl-wert { color: #fff; font-size: 12px; font-weight: 500; left: 13px; line-height: 18px; pointer-events: none; position: absolute; top: 8px; z-index: 1; }
.cf-wahl-grenzen { color: rgb(137, 138, 139); font-size: 12px; line-height: 18px; pointer-events: none; position: absolute; right: 12px; top: 8px; z-index: 1; }
.cf-wahl-griff { background: #fff; border-radius: 999px; bottom: 1px; margin-left: -2px; pointer-events: none; position: absolute; top: 1px; width: 4px; }
.cf-wahl-regler input { cursor: pointer; height: 100%; inset: 0; margin: 0; opacity: 0; position: absolute; width: 100%; }

/* Zähler „− 1/4 +“ statt eines Chips mit Liste (WL29-09): so hoch und so gefärbt wie die Chips der Leiste. */
.cf-param-anzahl {
  align-items: center;
  background: #222631;
  border: 1px solid #303543;
  border-radius: 999px;
  box-sizing: border-box;
  color: #dfe3eb;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 34px;
  padding: 4px 8px;
}
.cf-param-anzahl button {
  align-items: center;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 18px;
  justify-content: center;
  padding: 0;
  width: 18px;
}
.cf-param-anzahl button:disabled { cursor: default; opacity: .35; }
.cf-param-anzahl button i { font-size: 14px; }
.cf-param-anzahl output { color: #fff; font: 700 11px/1 "DM Sans", sans-serif; min-width: 24px; text-align: center; }
@media (max-width: 640px) {
  .cf-wahl-dauer { width: min(334px, calc(100vw - 24px)); }
  .cf-param-anzahl { min-height: 28px; padding: 2px 6px; }
}
