.kfm-hidden {
  display: none !important;
  overflow: hidden;
}

/* === Wrapper-Styling === */
.kfm-wrapper {
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(178, 219, 24, 0.25);
  color: white;
  font-family: inherit;
}

/* === Button-Kategorien === */
.kfm-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.kfm-category button {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  background: #222;
  color: white;
  border: 2px solid #b2db18;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
}

.kfm-category button:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px #b2db18;
  background: #222;
}

.kfm-category button.selected {
  background-color: rgba(178, 219, 24, 0.5);
  color: white !important;
}

/* === Checkbox-Bereich === */
.kfm-checkboxes {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  opacity: 0;
  transition: all 0.4s ease;
  text-align: left;
}

.kfm-checkboxes.active {
  max-height: 1000px;
  overflow: visible;
  padding: 1rem;
  border: 1px solid #b2db18;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.kfm-checkboxes label {
  display: block;
  margin-bottom: 0.5rem;
  color: white;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: all 0.3s ease;
}

.kfm-checkboxes label:hover {
  transform: translateX(4px);
  box-shadow: 0 0 8px #b2db18;
  background: transparent;
}

.kfm-wrapper input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* === Formularelemente === */
.kfm-wrapper input,
.kfm-wrapper textarea,
.kfm-wrapper select {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white !important;
  border: 2px solid #b2db18;
  font-size: 1rem;
  outline: none;
  box-shadow: none !important;
}

/* === Labels === */
.kfm-wrapper label {
  display: block;
  margin-bottom: 0.8rem;
  color: white;
}

/* === Absende- und Steuerungsbuttons === */
.kfm-wrapper input[type="submit"],
.kfm-wrapper button[type="submit"],
.kfm-category button {
  background: transparent !important;
  width: 100% !important;
  color: white !important;
  border: 2px solid #b2db18 !important;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
}

/* === Zurück-Button (Back) === */
/* Der Zurück-Button im zweiten Schritt ist ein regulärer Button (type="button").
   Damit er wie die anderen Steuerungsbuttons aussieht, erhält er das gleiche Styling. */
.kfm-wrapper button#kfm-back-button {
  background: transparent !important;
  width: 100% !important;
  color: white !important;
  border: 2px solid #b2db18 !important;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
}

.kfm-wrapper button#kfm-back-button:hover,
.kfm-wrapper button#kfm-back-button:focus,
.kfm-wrapper button#kfm-back-button:active {
  background: transparent !important;
  color: white !important;
  box-shadow: 0 0 20px #b2db18 !important;
  transform: translateY(-4px);
  border-color: #b2db18 !important;
}

/* === Hover / Focus / Active States für alle Buttons === */
.kfm-wrapper input[type="submit"]:hover,
.kfm-wrapper button[type="submit"]:hover,
.kfm-wrapper input[type="submit"]:focus,
.kfm-wrapper button[type="submit"]:focus,
.kfm-wrapper input[type="submit"]:active,
.kfm-wrapper button[type="submit"]:active,
.kfm-category button:hover,
.kfm-category button:focus,
.kfm-category button:active {
  background: transparent !important;
  color: white !important;
  box-shadow: 0 0 20px #b2db18 !important;
  transform: translateY(-4px);
  border-color: #b2db18 !important;
}

/* === Safari-Fix für Focus-Ring === */
.kfm-wrapper input[type="submit"]::-moz-focus-inner,
.kfm-wrapper button[type="submit"]::-moz-focus-inner,
.kfm-category button::-moz-focus-inner {
  border: 0;
}

/* === Medienanpassung (mobil) === */
@media (max-width: 600px) {
  .kfm-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.kfm-wrapper input[type="text"],
.kfm-wrapper input[type="email"],
.kfm-wrapper input[type="tel"],
.kfm-wrapper input[type="number"],
.kfm-wrapper input[type="url"],
.kfm-wrapper input[type="password"],
.kfm-wrapper textarea,
.kfm-wrapper select {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 2px solid #b2db18;
  font-size: 1rem;
  outline: none;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

/* Fokuszustand */
.kfm-wrapper input:focus,
.kfm-wrapper textarea:focus,
.kfm-wrapper select:focus {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 2px solid #b2db18;
  outline: none;
  box-shadow: 0 0 8px #b2db18;
}

/* Placeholder-Farbe */
.kfm-wrapper input::placeholder,
.kfm-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* === Optional: Links z. B. für Datenschutz + AGB === */
.kfm-wrapper a {
  color: #b2db18 !important;
  text-decoration: underline;
}

.kfm-wrapper a:hover {
  color: white !important;
}
/* ============================================
   Kontaktformular im Spalten-/Panel-Design
   (bitte UNTER das bestehende KFM-CSS setzen)
   ============================================ */

/* Grundpanel wie die Spalten (Glas-/Metall-Look) */
.kfm-wrapper {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(195, 121, 47, 0.22),
    rgba(0, 0, 0, 0.45)
  );
  border: 1px solid rgba(195, 121, 47, 0.7);
  box-shadow:
    0 0 16px rgba(195, 121, 47, 0.4),
    0 18px 35px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Alle Schriften im Formular weiß */
.kfm-wrapper,
.kfm-wrapper * {
  color: #ffffff !important;
}

/* Eingabefelder im Panel-Stil */
.kfm-wrapper input[type="text"],
.kfm-wrapper input[type="email"],
.kfm-wrapper input[type="tel"],
.kfm-wrapper input[type="number"],
.kfm-wrapper input[type="url"],
.kfm-wrapper input[type="password"],
.kfm-wrapper textarea,
.kfm-wrapper select {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(195, 121, 47, 0.7);
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Fokuszustand der Felder */
.kfm-wrapper input:focus,
.kfm-wrapper textarea:focus,
.kfm-wrapper select:focus {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(245, 197, 138, 0.9);
  box-shadow: 0 0 12px rgba(245, 197, 138, 0.7);
}

/* Placeholder ebenfalls hell */
.kfm-wrapper input::placeholder,
.kfm-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Checkbox-Bereich anpassen */
.kfm-checkboxes.active {
  border: 1px solid rgba(195, 121, 47, 0.7);
  background: rgba(0, 0, 0, 0.35);
}

/* Kategorie-Buttons im Stil deiner orangen Buttons */
.kfm-category button,
.kfm-wrapper input[type="submit"],
.kfm-wrapper button[type="submit"],
.kfm-wrapper button#kfm-back-button {
  background: #ce9155 !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2.4rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45) !important;
  transform: translateY(0);
}

/* Hover/Fokus für Buttons */
.kfm-category button:hover,
.kfm-category button:focus,
.kfm-wrapper input[type="submit"]:hover,
.kfm-wrapper input[type="submit"]:focus,
.kfm-wrapper button[type="submit"]:hover,
.kfm-wrapper button[type="submit"]:focus,
.kfm-wrapper button#kfm-back-button:hover,
.kfm-wrapper button#kfm-back-button:focus {
  background: #d79b5f !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55) !important;
  transform: translateY(-1px);
}

/* Links (z. B. Datenschutz) – weiß, dezent markiert */
.kfm-wrapper a {
  color: #ffffff !important;
  text-decoration: underline;
}

.kfm-wrapper a:hover {
  color: #f5c58a !important;
}
/* Spalte für die Buttons in der Codeeingabe */
#kfm-formular .kfm-button-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0;
}

/* Basis-Style für alle drei Buttons */
/* Kubio-Button-/Linkstyles werden hier gezielt übersteuert */
#kfm-formular .kfm-button-column .kfm-btn,
#kfm-formular .kfm-button-column .kfm-btn:link,
#kfm-formular .kfm-button-column .kfm-btn:visited {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;

    padding: 12px 24px;
    border-radius: 999px;

    border: none !important;
    background: #c5874b !important;         /* an den Code-Prüfen-Button angepasst */
    color: #ffffff !important;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none !important;

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Hover-/Focus-Zustände */
#kfm-formular .kfm-button-column .kfm-btn:hover,
#kfm-formular .kfm-button-column .kfm-btn:focus {
    background: #d19350 !important;         /* leicht aufgehellt */
    outline: none !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Optional: Aktive Zustände etwas „drücken“ */
#kfm-formular .kfm-button-column .kfm-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
/* === Override: Neon-Grün auf Kupfer für Step-1-Auswahl === */

/* Ausgewählte Dienstleistung (Button bleibt kupferfarben) */
.kfm-category button.selected {
  background: #d79b5f !important;              /* wie Hover-Farbe */
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55) !important;
  transform: translateY(-1px);
}

/* Hover-Effekt auf den Leistungs-Checkboxen (statt grünem Glow) */
.kfm-checkboxes label:hover {
  transform: translateX(4px);
  box-shadow: 0 0 12px rgba(245, 197, 138, 0.7) !important; /* kupferfarbener Glow */
  background: transparent;
}

/* Rahmen des aktiven Checkbox-Blocks ebenfalls in Kupfer */
.kfm-checkboxes.active {
  border-color: rgba(195, 121, 47, 0.7) !important;
}

/* === Inneren Wrapper (zweiter Step / Codeeingabe) vollständig neutralisieren === */
/* Trifft NUR zu, wenn ein #kfm-formular IN einem .kfm-wrapper steckt (also der innere) */
.kfm-wrapper #kfm-formular.kfm-wrapper {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Sicherheitshalber auch Pseudo-Elemente des inneren Wrappers ausschalten */
.kfm-wrapper #kfm-formular.kfm-wrapper::before,
.kfm-wrapper #kfm-formular.kfm-wrapper::after {
  content: none !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Form im inneren Wrapper ohne Extra-Abstände */
.kfm-wrapper #kfm-formular.kfm-wrapper form {
  margin: 0 !important;
  padding: 0 !important;
}