.ccfb-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: var(--ccfb-option-bg);
    border: 1px solid var(--ccfb-field-border);
    border-radius: 5px;
}

.ccfb-container label {
    display: block;
    margin-top: 10px;
}

.ccfb-container input, .ccfb-container textarea {
    background: var(--ccfb-input-bg);
    color: var(--ccfb-input-text, #222);
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

/* Inputs */
.ccfb-frontend input,
.ccfb-frontend textarea,
.ccfb-frontend select{
  border: 1px solid var(--ccfb-input-border);
  background: var(--ccfb-input-bg);
}

.ccfb-frontend input:focus,
.ccfb-frontend textarea:focus,
.ccfb-frontend select:focus{
  border-color: var(--ccfb-input-border-focus);
  box-shadow: 0 0 0 1px var(--ccfb-input-border-focus);
  outline: none;
}

/* Placeholder */
.ccfb-frontend ::placeholder { color: #666; opacity:1; }

/* Browser-Autofill (Chrome/Edge) */
.ccfb-frontend input:-webkit-autofill,
.ccfb-frontend textarea:-webkit-autofill,
.ccfb-frontend select:-webkit-autofill {
  -webkit-text-fill-color: #000;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  box-shadow: 0 0 0px 1000px #fff inset;
}

/* ======================================
   BASIS – Field Container Border
====================================== */
.ccfb-frontend .ccfb-field {
    margin-bottom: 14px;
    background: var(--ccfb-field-bg);
    border: 1px solid var(--ccfb-field-border);
    border-radius: var(--ccfb-field-radius);
}

.ccfb-frontend .ccfb-field > label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}
/* ======================================
   BASIS – Inputs / Textareas / Selects Border
====================================== */
.ccfb-frontend input[type="text"],
.ccfb-frontend input[type="email"],
.ccfb-frontend input[type="tel"],
.ccfb-frontend input[type="url"],
.ccfb-frontend input[type="number"],
.ccfb-frontend textarea,
.ccfb-frontend select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid var(--ccfb-input-border);
  background: var(--ccfb-input-bg);
  color: var(--ccfb-input-text, #222);
  padding: 6px 8px;
  font-size: 14px;
  outline: none;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.7),
              inset -1px -1px 2px rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.ccfb-frontend input:focus,
.ccfb-frontend textarea:focus,
.ccfb-frontend select:focus {
    background: var(--ccfb-input-focus);
    color: var(--ccfb-input-text, #222);
    border-color: var(--ccfb-input-border-focus);
    box-shadow: 0 0 0 1px var(--ccfb-input-border-focus)
    outline: none;
}

.ccfb-frontend .ccfb-field textarea {
    min-height: 90px;
}

.ccfb-frontend .ccfb-field .option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ccfb-frontend .ccfb-field input[type="checkbox"],
.ccfb-frontend .ccfb-field input[type="radio"] {
    width: auto;
}

/* Beim Fokus wieder neutralisieren */
.ccfb-frontend .ccfb-field input:focus,
.ccfb-frontend .ccfb-field textarea:focus,
.ccfb-frontend .ccfb-field select:focus {
    border: 1px solid var(--ccfb-input-border-focus);
    color: var(--ccfb-input-text, #222);
    outline: none;
}

/* Checkbox / Radio-Optionen */
.ccfb-frontend .ccfb-error .option {
    border: 1px dashed #f5210a;
    padding: 3px;
    border-radius: 3px;
}

/* ======================================
   BASIS – Select / Dropdown (themefähig)
====================================== */
.ccfb-frontend form.ccfb-frontend-form .dropdown-field select,
.ccfb-frontend form.ccfb-frontend-form .select-field select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;

    padding: 6px 32px 6px 8px; /* Platz für Pfeil */
    border: 1px solid var(--ccfb-input-border);
    border-radius: var(--ccfb-input-radius);

    /* Gradient im geschlossenen Zustand */
    background-image: var(--ccfb-select-gradient);
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 100% 100%;

    color: var(--ccfb-text);
    font-size: 14px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Options-Liste (aufklappbar) – viele Browser ignorieren hier background-image */
.ccfb-frontend form.ccfb-frontend-form .dropdown-field select option,
.ccfb-frontend form.ccfb-frontend-form .select-field select option {
    background: var(--ccfb-accent-2);
    color: var(--ccfb-text);
}

/* Fokus */
.ccfb-frontend form.ccfb-frontend-form .dropdown-field select:focus,
.ccfb-frontend form.ccfb-frontend-form .select-field select:focus {
    outline: none;
    border-color: var(--ccfb-input-border-focus);
    box-shadow: 0 0 0 1px var(--ccfb-input-border-focus);
}

/* Dropdown-Pfeil (ersetzt den nativen Pfeil) */
.ccfb-frontend form.ccfb-frontend-form .dropdown-field,
.ccfb-frontend form.ccfb-frontend-form .select-field {
    position: relative;
}
.ccfb-frontend form.ccfb-frontend-form .dropdown-field::after,
.ccfb-frontend form.ccfb-frontend-form .select-field::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--ccfb-text);
    font-size: 14px;
}

/* Platzhalter-Option dezenter */
.ccfb-frontend form.ccfb-frontend-form .dropdown-field select option[value=""] {
  color: #888;
}

/* Multiple Choice – 3 Spalten Layout */
.ccfb-frontend .checkbox-multiple .options {
  display: flex;
  flex-wrap: wrap;
}

.ccfb-frontend .checkbox-multiple .options .option {
  width: 33.3333%;
  box-sizing: border-box;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gab: 4px;
}

/* Checkbox nicht mit voller Breite */
.ccfb-frontend .checkbox-multiple .options .option input[type="checkbox"] {
  width: auto;
}

/* Auf schmalen Screens (Handy) wieder einspaltig */
@media (max-width: 600px) {
  .ccfb-frontend .checkbox-multiple .options .option {
    width: 100%;
  }
}

/* Erfolgsmeldung oberhalb des Formulars */
.ccfb-success-box {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid #2ecc71;
    color: #e9fff2;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
    animation: ccfb-fadein 0.25s ease-out;
}

@keyframes ccfb-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Frontend Validierungs-Highlighting === */

.ccfb-frontend .ccfb-error {
    border: 1px solid #ff4d4d !important;
    background-color: rgba(255, 77, 77, 0.08);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Fehlermarkierung auch für ganze Feldcontainer */
.ccfb-frontend .ccfb-error input,
.ccfb-frontend .ccfb-error textarea,
.ccfb-frontend .ccfb-error select {
    border-color: #f5210a !important;
}

/* sanfter Hinweistext unten (optional) */
.ccfb-frontend .ccfb-error::after {
    content: "This field is required";
    display: block;
    font-size: 12px;
    color: #ff4d4d;
    margin-top: 4px;
}

/* ======================================
   BASIS – Submit Button (theme-neutral)
====================================== */
.ccfb-frontend .ccfb-frontend-form .submit-field .ccfb-submit-btn,
.ccfb-frontend button[type="submit"],
.ccfb-frontend input[type="submit"]{
    display: inline-block;
    background-image: var(--ccfb-select-gradient);
    background-color: transparent;
    border: none;
    color: var(--ccfb-button-text, #fff);
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

.ccfb-frontend .ccfb-frontend-form .submit-field .ccfb-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Während des Sendens: Lauflicht unten */
.ccfb-frontend .ccfb-frontend-form .submit-field .ccfb-submit-btn.ccfb-loading {
  cursor: wait;
}

.ccfb-frontend .ccfb-frontend-form .submit-field .ccfb-submit-btn.ccfb-loading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px; /* etwas breiter als vorher */
  background: linear-gradient(135deg, transparent, #7CFF3B, transparent);
  background-size: 200% 100%;
  animation: ccfb-loading-bar 0.7s linear infinite;
}

/* Neon-Grün bei Erfolg (kurz) */
.ccfb-frontend .ccfb-frontend-form .submit-field .ccfb-submit-btn.ccfb-sent {
  background-image: linear-gradient(90deg, #6CFF3B, #9AFF5F) !important;
}

/* Lauflicht-Animation */
@keyframes ccfb-loading-bar {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Formular-FLASH bei Erfolg */
.ccfb-frontend .ccfb-frontend-form.ccfb-flash-success {
  animation: ccfb-success-flash 0.8s ease-out;
  border: 2px solid #6CFF3B !important;
}

@keyframes ccfb-success-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 255, 59, 0.8);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(108, 255, 59, 0.0);
  }
  100% {
    box-shadow: none;
  }
}

/* Select – alle Selects im Formular abdecken (nicht nur .dropdown-field) */
.ccfb-frontend .ccfb-frontend-form select{
  background-image: var(--ccfb-select-gradient);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: transparent;
  border: 1px solid var(--ccfb-input-border);
  color: var(--ccfb-text);

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Wrapper */
.ccfb-file-ui {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Frontend Terms-Popup (Overlay) */
.ccfb-frontend-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
}

/* Innenbox mit leichter Slide+Fade-Animation */
.ccfb-frontend-modal .ccfb-modal {
    background: #1b1b1b;
    color: #f5f5f5;
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.7);
    animation: ccfb-modal-slide 0.22s ease-out;
}

.ccfb-frontend-modal .ccfb-modal-content p {
    margin-bottom: 10px;
}

.ccfb-frontend-modal .ccfb-modal-close {
    background: #444;
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.ccfb-frontend-modal .ccfb-modal-close:hover {
    background: #666;
}

@keyframes ccfb-modal-slide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Edit-Button für Terms nur im Backend, im Frontend ausblenden */
.ccfb-frontend .ccfb-edit-terms {
  display: none !important;
}

/* Frontend: editierbare Texte (aus dem Backend) sollen wie normaler Text aussehen */
.ccfb-frontend .ccfb-file-hint[contenteditable="true"] {
  border: none;
  outline: none;
  padding: 0;
}

/* optional: im Frontend wirklich nicht mehr editierbar machen */
.ccfb-frontend .ccfb-file-hint[contenteditable="true"] {
  pointer-events: none;
}

.ccfb-frontend .ccfb-message-hint[contenteditable="true"] {
  border: none;
  outline: none;
  padding: 0;
  pointer-events: none;
}

.ccfb-frontend .ccfb-file-hint-controls {
  display: none !important;
}

/* Frontend: Message+-Hinweis soll wie normaler Text aussehen */
.ccfb-frontend .ccfb-message-hint[contenteditable="true"] {
  border: none;
  outline: none;
  padding: 0;
  pointer-events: none;  /* im Frontend nicht anklickbar/bearbeitbar */
}

/* Style-Kontrollen nur im Backend sichtbar, im Frontend verstecken */
.ccfb-frontend .ccfb-heading-style-controls {
  display: none !important;
}

/* Frontend: contenteditable-Felder sollen NICHT editierbar wirken */
.ccfb-frontend [contenteditable="true"] {
  pointer-events: none;
  border: none;
  outline: none;
}

/* Resizer-Griff und Style-Kontrollen nur im Backend sichtbar */
.ccfb-frontend .heading-logo-resizer {
  display: none !important;
}

/* Beim Resizing Cursor global anpassen (nur Backend relevant, aber stört im Frontend nicht) */
body.ccfb-resizing-logo,
body.ccfb-resizing-logo * {
  cursor: nwse-resize !important;
}

/* === Grund-Theme für das Formular (Deep UI) === */
.ccfb-frontend .ccfb-field {
  /* dunkler Hintergrund, leicht strukturiert */
  background: #20252b; /* cleaned invalid gradient syntax */
  padding: 18px;
  border-radius: 10px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(0, 0, 0, 0.8);
  position: relative;
  isolation: isolate;
}

/* Abstand & allgemeines Layout der Felder */
.ccfb-frontend .ccfb-field {
  margin-bottom: 12px;
}

/* Karten-Look für alle Formularfelder */
.ccfb-frontend .ccfb-field {
  background: var(--ccfb-field-bg);
  border-radius: 8px;
  border: 2px solid var(--ccfb-field-border);
  padding: 10px 12px;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.75),
    -3px -3px 8px rgba(255, 255, 255, 0.08);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

/* Hover-Lift der Karten */
.ccfb-frontend .ccfb-field:hover {
  transform: translateY(-1px);
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.85),
    -3px -3px 10px rgba(255, 255, 255, 0.10);
  border-color: color-mix(in srgb, var(--ccfb-field-border) 70%, #ffffff 30%);
}

/* Fokuszustand für Felder mit Fehlern kann so bleiben wie bei dir – oder etwas stärker rot, wenn du willst */
.ccfb-frontend .ccfb-field.ccfb-error {
  border-color: #f5210a;
  box-shadow:
    0 0 0 1px rgba(192, 57, 43, 0.7),
    4px 4px 12px rgba(0, 0, 0, 0.9);
}

/* Gemeinsame Button-Basis */
.ccfb-frontend .ccfb-submit-btn,
.ccfb-frontend .ccfb-file-btn {
  border-radius: 6px;
  border: none;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: uppercase;
  color: #fdfdfd;
  background-image: var(--ccfb-select-gradient);
  /* Neumorph + leicht schwebend */
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.65),
    -3px -3px 8px rgba(255, 255, 255, 0.10);
  transform: translateY(0);
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    filter 0.22s ease,
    background 0.22s ease;
}

/* Hover: mehr Leuchtkraft + stärkerer Schatten + Lift */
.ccfb-frontend .ccfb-submit-btn:hover,
.ccfb-frontend .ccfb-file-btn:hover {
  filter: brightness(1.05); /* Rouge Noir leicht aufgehellt */
  transform: translateY(-2px);
  box-shadow:
    6px 6px 18px rgba(0, 0, 0, 0.80),
    -4px -4px 12px rgba(255, 255, 255, 0.12);
}

/* Active: Button "drückt sich" wieder in den Hintergrund */
.ccfb-frontend .ccfb-submit-btn:active,
.ccfb-frontend .ccfb-file-btn:active {
  filter: brightness(0.98);
  transform: translateY(0);
  box-shadow:
    3px 3px 8px rgba(0, 0, 0, 0.6),
    -2px -2px 6px rgba(255, 255, 255, 0.08);
}

/* Textfarbe in allen Formular-Feldern auf hell setzen */
.ccfb-frontend .ccfb-field,
.ccfb-frontend .ccfb-label,
.ccfb-frontend .ccfb-field .ccfb-acceptance-label,
.ccfb-frontend .ccfb-field span,
.ccfb-frontend .ccfb-field p {
  color: #e0dfd6;
}

/* kleine Hinweise (Hints) etwas dezenter */
.ccfb-frontend .ccfb-field .ccfb-file-hint,
.ccfb-frontend .ccfb-field .ccfb-message-hint {
  color: #bbbbbb;
}

 /* Shadow-Schalter komplett im Frontend ausblenden */
.ccfb-frontend .ccfb-field-shadow-type,
.ccfb-frontend .ccfb-field-shadow,
.ccfb-frontend .ccfb-field-shadow-label,
.ccfb-frontend .ccfb-shadow-control {
  display:none !important;
}

/* FRONTEND: alle Shadow-Schalter (Label + Checkbox) ausblenden */
body:not(.wp-admin) .ccfb-shadow-control,
body:not(.wp-admin) .ccfb-field-shadow,
body:not(.wp-admin) .ccfb-field-shadow-btn,
body:not(.wp-admin) .ccfb-heading-shadow {
    display: none !important;
}

.ccfb-frontend .ccfb-field-shadow-type,
.ccfb-frontend .ccfb-shadow-control {
  display:none !important;
}

.ccfb-field select {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    margin-bottom: 4px;
}

/* FRONTEND: Shadow-Beschriftung 100% weg – schlägt jetzt JEDE andere Regel */
body:not(.wp-admin) label.ccfb-shadow-control,
body:not(.wp-admin) label.ccfb-shadow-control *,
body:not(.wp-admin) .ccfb-shadow-control,
body:not(.wp-admin) .ccfb-shadow-control * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

/* FRONTEND: Shadow-Checkbox + Text komplett entfernen */
.ccfb-frontend label:has(> input.ccfb-field-shadow),
.ccfb-frontend label:has(> input.ccfb-field-shadow) * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

/* Frontend: Message+ Controls komplett ausblenden */
.message-plus-field .ccfb-message-plus-style-controls,
.message-plus-field .field-required,
.message-plus-field .ccfb-message-plus-shadow,
.message-plus-field .ccfb-message-plus-font-size,
.message-plus-field .ccfb-message-plus-font-family,
.message-plus-field .ccfb-message-plus-align,
.message-plus-field .ccfb-message-plus-color,
.message-plus-field .ccfb-message-plus-bold,
.message-plus-field .ccfb-message-plus-italic,
.message-plus-field .ccfb-message-plus-reset {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
/* Backend-Options-Editor im Frontend verstecken */
.ccfb-frontend .ccfb-options-edit {
    display: none !important;
}

/* =========================================
   CCFB Frontend – Theme Variables
   ========================================= */

/* ROUGE NOIR */
.ccfb-theme-rougeNoir{
  --ccfb-accent: #d30000;
  --ccfb-accent-2: #810a0a;

  --ccfb-text: #fefefe;
  --ccfb-label: #f1f1f1;

  /* “schwebend” = transparentes Field möglich */
  --ccfb-field-bg: #20252b;
  --ccfb-field-border: #810a0a;

  --ccfb-input-bg: rgba(0,0,0,0.20);
  --ccfb-input-bg-focus: rgba(254,254,254,0.92);
  --ccfb-input-text: #fefefe;
  --ccfb-input-border: #810a0a;
  --ccfb-input-border-focus: #d30000;

  --ccfb-option-bg: #810a0a;

  --ccfb-select-gradient: linear-gradient(90deg, var(--ccfb-accent-2), var(--ccfb-accent));
  --ccfb-button-gradient: linear-gradient(135deg, var(--ccfb-accent-2), var(--ccfb-accent));
}

/* MIDNIGHT BLUES */
.ccfb-theme-midnightBlues{
  --ccfb-accent: #4664eb;
  --ccfb-accent-2: #2323ff;

  --ccfb-text: #e7ecff;
  --ccfb-label: #e7ecff;

  --ccfb-field-bg: #f6f7ff;
  --ccfb-field-border: #2323ff;

  --ccfb-input-bg: rgba(255,255,255,0.92);
  --ccfb-input-bg-focus: rgba(248,255,255,0.92);
  --ccfb-input-text: #222b3d;
  --ccfb-input-border: #2323ff;
  --ccfb-input-border-focus: #3c54d7;

  --ccfb-option-bg: #f6f7ff;

  --ccfb-select-gradient: linear-gradient(90deg, var(--ccfb-accent-2), var(--ccfb-accent));
  --ccfb-button-gradient: linear-gradient(135deg, var(--ccfb-accent-2), var(--ccfb-accent));
}

/* MINIMAL SKY */
.ccfb-theme-minimalSky{
  --ccfb-accent: #5f7fff;
  --ccfb-accent-2: #3c54d7;

  --ccfb-text: #22253a;
  --ccfb-label: #22253a;

  --ccfb-field-bg: #f1e4d3;
  --ccfb-field-border: #5f7fff;

  --ccfb-input-bg: rgba(255,255,255,0.92);
  --ccfb-input-bg-focus: rgba(254,254,254,0.92);
  --ccfb-input-text: #22253a;
  --ccfb-input-border: #5f7fff;
  --ccfb-input-border-focus: #3c54d7;

  --ccfb-option-bg: #f5f7ff;

  --ccfb-select-gradient: linear-gradient(90deg, var(--ccfb-accent-2), var(--ccfb-accent));
  --ccfb-button-gradient: linear-gradient(135deg, var(--ccfb-accent-2), var(--ccfb-accent));
}

/* WARM PAPER */
.ccfb-theme-warmPaper{
  --ccfb-accent: #d98b4a;
  --ccfb-accent-2: #a85c32;

  --ccfb-text: #3b2a25;
  --ccfb-label: #3b2a25;

  --ccfb-field-bg: #f1e4d3;
  --ccfb-field-border: #c49a6c;

  --ccfb-input-bg: rgba(255,248,238,0.92);
  --ccfb-input-bg-focus: rgba(253,247,240,0.92);
  --ccfb-input-text: #3b2a25;
  --ccfb-input-border: #c49a6c;
  --ccfb-input-border-focus: #d98b4a;

  --ccfb-option-bg: #f1e4d3;

  --ccfb-select-gradient: linear-gradient(90deg, var(--ccfb-accent-2), var(--ccfb-accent));
  --ccfb-button-gradient: linear-gradient(135deg, var(--ccfb-accent-2), var(--ccfb-accent));
}

/* PINK LADY */
.ccfb-theme-pinkLady{
  --ccfb-accent: #ff4fa3;
  --ccfb-accent-2: #ff87c7;

  --ccfb-text: #5b2842;
  --ccfb-label: #5b2842;

  --ccfb-field-bg: #ffe6f1;
  --ccfb-field-border: #ff7dbd;

  --ccfb-input-bg: rgba(251,240,255,0.92);
  --ccfb-input-bg-focus: rgba(255,248,251,0.92);
  --ccfb-input-text: #530627;
  --ccfb-input-border: #ff7dbd;
  --ccfb-input-border-focus: #ff4fa3;

  --ccfb-option-bg: #fbf0ff;

  --ccfb-select-gradient: linear-gradient(90deg, var(--ccfb-accent), var(--ccfb-accent-2));
  --ccfb-button-gradient: linear-gradient(135deg, var(--ccfb-accent), var(--ccfb-accent-2));
}

/* DREAM PASTEL */
.ccfb-theme-dreamPastel{
  --ccfb-accent: #c689f7;
  --ccfb-accent-2: #e8bfff;

  --ccfb-text: #4a3360;
  --ccfb-label: #4a3360;

  --ccfb-field-bg: #f7eefc;
  --ccfb-field-border: #c689f7;

  --ccfb-input-bg: rgba(250,245,252,0.92);
  --ccfb-input-bg-focus: rgba(250,245,252,0.92);
  --ccfb-input-text: #4a3360;
  --ccfb-input-border: #c689f7;
  --ccfb-input-border-focus: #e8bfff;

  --ccfb-option-bg: #f7eefc;

  --ccfb-select-gradient: linear-gradient(90deg, var(--ccfb-accent), var(--ccfb-accent-2));
  --ccfb-button-gradient: linear-gradient(135deg, var(--ccfb-accent), var(--ccfb-accent-2));
}

/* Frontend: Field Container */
.ccfb-frontend .ccfb-field{
  background: var(--ccfb-field-bg);
  border: 2px solid var(--ccfb-field-border);
  color: var(--ccfb-text);
}

/* Frontend: Inputs */
.ccfb-frontend input,
.ccfb-frontend textarea,
.ccfb-frontend select{
  background: var(--ccfb-input-bg);
  color: var(--ccfb-input-text);
  border-color: var(--ccfb-input-border);
}

/* Frontend: Buttons */
.ccfb-frontend .ccfb-submit-btn,
.ccfb-frontend .ccfb-file-btn{
  background-image: var(--ccfb-button-gradient);
}

/* ====================================
   CCFB Font Family
   ==================================== */
@font-face {
    font-family: 'AlexBrush';
    src: url('../fonts/ccfb_fonts/AlexBrush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bitstream';
    src: url('../fonts/ccfb_fonts/Bitstream.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Blockletters';
    src: url('../fonts/ccfb_fonts/Blockletters.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Canterbury';
    src: url('../fonts/ccfb_fonts/Canterbury.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MenthaRapture';
    src: url('../fonts/ccfb_fonts/MenthaRapture.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Capture';
    src: url('../fonts/ccfb_fonts/Capture.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GreatVibes';
    src: url('../fonts/ccfb_fonts/GreatVibes.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Moogalator';
    src: url('../fonts/ccfb_fonts/Moogalator.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rookworst';
    src: url('../fonts/ccfb_fonts/Rookworst.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Scratched';
    src: url('../fonts/ccfb_fonts/Scratched.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ShoeStor';
    src: url('../fonts/ccfb_fonts/ShoeStor.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SoulMission';
    src: url('../fonts/ccfb_fonts/SoulMission.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GreifswalderDeutsche';
    src: url('../fonts/ccfb_fonts/GreifswalderDeutsche.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SchwabenAlt';
    src: url('../fonts/ccfb_fonts/SchwabenAlt.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'StrassburgFraktur';
    src: url('../fonts/ccfb_fonts/StrassburgFraktur.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Frontend: Heading-Text – Zeilenumbrüche respektieren, Rahmen weg */
.ccfb-frontend .heading-field .heading-text {
    border: none !important;
    outline: none !important;
    padding: 0;
    margin-top: 8px;

    /* WICHTIG: Enter-Zeilenumbrüche anzeigen */
    white-space: pre-line;
}

/* ======================================
   Frontend: unbeabsichtigte Buttons ausblenden
   (Alles, was nicht Submit oder File-Button ist)
====================================== */
.ccfb-frontend .ccfb-frontend-form button:not([type="submit"]):not(.ccfb-submit-btn):not(.ccfb-file-btn),
.ccfb-frontend .ccfb-frontend-form .remove-field,
.ccfb-frontend .ccfb-frontend-form .add-option,
.ccfb-frontend .ccfb-frontend-form .remove-option,
.ccfb-frontend .ccfb-frontend-form .ccfb-edit-form,
.ccfb-frontend .ccfb-frontend-form .ccfb-style-theme-btn,
.ccfb-frontend .ccfb-frontend-form .ccfb-heading-edit-button,
.ccfb-frontend .ccfb-frontend-form .heading-upload-btn,
.ccfb-frontend .ccfb-frontend-form .heading-upload-input {
    display: none !important;
}

/* Required-Checkbox im Frontend ausblenden */
.ccfb-frontend label:has(> input.ccfb-field-required),
.ccfb-frontend label input.field-required,
.ccfb-frontend label input.field-required + * {
    display: none !important;
}

/* Required-Stern nur wenn data-required="1" */
.ccfb-frontend .ccfb-field[data-required="1"] > label:first-of-type::after {
    content: " *";
    color: red;
    margin-left: 3px;
}
