/* Adminbereich in der Contentfactory (03.09.2026).
   Eigener Namensraum cfab-*, damit nichts mit den Werkzeugansichten
   kollidiert - die Contentfactory teilt sich viele Selektoren. */

.cfab { padding: 4px 0 48px; }
.cfab-video-text { max-width: 1000px; }
.cfab-video-text form, .cfab-video-text label { display: grid; gap: 10px; }
.cfab-video-text form { gap: 18px; }
.cfab-video-text label { color: #dfe3ea; font-size: 13px; }
.cfab-video-text input, .cfab-video-text textarea, .cfab-video-text select {
  box-sizing: border-box; width: 100%; min-width: 0; padding: 12px;
  border: 1px solid #343c49; border-radius: 8px; background: #10141d;
  color: #eef1f6; font: inherit;
}
.cfab-video-text textarea { resize: vertical; line-height: 1.6; }
.cfab-video-text .cfab-leiste { margin-top: 12px; flex-wrap: wrap; }
.cfab-video-text [data-cfab-video-status] { color: #c7ccd6; }

.cfab-laedt,
.cfab-sperre {
  display: grid;
  place-items: center;
  gap: 10px;
  margin: 80px auto;
  max-width: 460px;
  padding: 40px 32px;
  border: 1px solid #252a34;
  border-radius: 16px;
  background: #0d1016;
  color: #c7ccd6;
  text-align: center;
}
.cfab-sperre i { font-size: 34px; color: #ff5973; }
.cfab-sperre strong { color: #f1f3f7; font-size: 18px; }
.cfab-sperre p { margin: 0; color: #868e9d; }

.cfab-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.cfab-kopf h2 { margin: 4px 0 6px; color: #f1f3f7; font-size: 24px; }
.cfab-kopf p { margin: 0; color: #868e9d; font-size: 13px; }
.cfab-kicker { color: #ff5973; font-size: 11px; font-weight: 700; letter-spacing: .16em; }

.cfab-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid #2c323d;
  border-radius: 10px;
  background: #171b24;
  color: #dfe3ea;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.cfab-knopf:hover { border-color: rgba(255, 48, 79, .6); color: #ff6d84; }
.cfab-knopf[disabled] { opacity: .55; cursor: wait; }
.cfab-knopf.ist-gefahr { border-color: rgba(255, 48, 79, .5); color: #ff6d84; }

.cfab-meldung {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #252a34;
  border-left-width: 3px;
  border-radius: 10px;
  background: #0d1016;
  color: #c7ccd6;
  font-size: 13px;
}
.cfab-meldung.ist-fehler { border-left-color: #ff304f; color: #ff8497; }
.cfab-meldung.ist-erfolg { border-left-color: #2fbf71; color: #7fd8a5; }

.cfab-reiter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #252a34;
}
.cfab-reiter-knopf {
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #868e9d;
  font-size: 13.5px;
  cursor: pointer;
}
.cfab-reiter-knopf:hover { color: #e8ebf2; }
.cfab-reiter-knopf.is-aktiv { border-bottom-color: #ff304f; color: #f1f3f7; font-weight: 600; }

.cfab-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.cfab-kachel {
  padding: 18px;
  border: 1px solid #252a34;
  border-radius: 14px;
  background: #0d1016;
}
.cfab-kachel small {
  display: block;
  margin-bottom: 8px;
  color: #868e9d;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cfab-kachel strong { color: #f1f3f7; font-size: 24px; font-weight: 650; }
.cfab-kachel em { display: block; margin-top: 6px; color: #868e9d; font-size: 12px; font-style: normal; }
.cfab-kachel.ist-warnung { border-color: rgba(255, 48, 79, .45); }
.cfab-kachel.ist-warnung strong { color: #ff6d84; }

.cfab-block {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #252a34;
  border-radius: 14px;
  background: #0d1016;
}
.cfab-block h3 { margin: 0 0 14px; color: #f1f3f7; font-size: 15px; font-weight: 650; }
.cfab-block h3 + .cfab-kacheln + .cfab-formular + h3,
.cfab-block .cfab-tabelle-rahmen + h3 { margin-top: 22px; }

.cfab-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.cfab-leiste label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #868e9d; font-size: 12.5px; }
.cfab-leiste small { color: #868e9d; font-size: 12px; }
.cfab-auswahl,
.cfab-feld {
  padding: 8px 11px;
  border: 1px solid #2c323d;
  border-radius: 8px;
  background: #171b24;
  color: #dfe3ea;
  font-size: 13px;
}

/* Breite Tabellen scrollen in sich, die Seite selbst nie waagerecht. */
.cfab-tabelle-rahmen { overflow-x: auto; }
.cfab-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.cfab-tabelle th {
  padding: 8px 12px 10px;
  border-bottom: 1px solid #252a34;
  color: #868e9d;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.cfab-tabelle td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  color: #c7ccd6;
  vertical-align: top;
}
.cfab-tabelle tbody tr:hover { background: rgba(255, 255, 255, .02); }
.cfab-tabelle td.ist-zahl, .cfab-tabelle th.ist-zahl { text-align: right; white-space: nowrap; }
.cfab-klein { color: #868e9d; font-size: 11.5px; }
.cfab-langtext { display: block; max-width: 620px; color: #868e9d; font-size: 12px; overflow-wrap: anywhere; }

.cfab-leer { padding: 18px; color: #868e9d; font-size: 13px; text-align: center; }

.cfab-marke {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #2c323d;
  border-radius: 999px;
  color: #c7ccd6;
  font-size: 11px;
}
.cfab-marke.ist-gut { border-color: rgba(47, 191, 113, .5); color: #7fd8a5; }
.cfab-marke.ist-warnung { border-color: rgba(255, 176, 32, .5); color: #ffc663; }
.cfab-marke.ist-fehler { border-color: rgba(255, 48, 79, .5); color: #ff8497; }

.cfab-formular {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 16px 0 22px;
  padding-top: 16px;
  border-top: 1px solid #252a34;
}
.cfab-formular label { display: grid; gap: 6px; margin: 0; color: #868e9d; font-size: 12.5px; }

@media (max-width: 760px) {
  .cfab-kopf { align-items: flex-start; }
  .cfab-block { padding: 16px 12px; }
  .cfab-kacheln { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Modelle & Preise (10.09.2026): Feld, Speichern und Standard in einer Zeile;
   Schluessel und Standardwert in Schreibmaschinenschrift, damit ein
   Modellname wie google/gemini-3.1-flash-image zeichengenau lesbar bleibt. */
.cfab-modell-zeile { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cfab-feld-modell { min-width: 280px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.cfab-feld-zahl { width: 96px; text-align: right; }
.cfab-tabelle code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; color: #c7ccd6; word-break: break-all; }
.cfab-meldung.ist-warnung { border-left-color: #ffb020; color: #ffc663; }
.cfab-schreibrecht { border-color: rgba(255, 176, 32, .45); }
.cfab-schreibrecht input[type="password"] { min-width: 240px; }
.cfab-knopf.ist-gefahr[disabled] { opacity: .5; cursor: not-allowed; }

/* Ein-/Ausschalter (Kontrolllauf, 17.09.2026). Die echte Checkbox bleibt
   bedienbar und fuer Screenreader sichtbar, die Bahn ist nur Darstellung. */
.cfab-schalter { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: #dfe3ea; font-size: 13px; }
.cfab-schalter input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cfab-schalter-bahn { position: relative; width: 38px; height: 22px; flex: none; border: 1px solid #3a4150; border-radius: 999px; background: #1b1f27; transition: background-color .16s ease, border-color .16s ease; }
.cfab-schalter-bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8d96a7; transition: transform .16s ease, background-color .16s ease; }
.cfab-schalter input:checked + .cfab-schalter-bahn { border-color: rgba(56, 189, 139, .6); background: rgba(56, 189, 139, .22); }
.cfab-schalter input:checked + .cfab-schalter-bahn::after { transform: translateX(16px); background: #38bd8b; }
.cfab-schalter input:focus-visible + .cfab-schalter-bahn { outline: 2px solid #ff5871; outline-offset: 2px; }
/* Letzte Cleaning Prüfung: 23.09.2026 */
/* Letztes Cleaning: - */
