.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;
}
/* Standard-Textfarbe in .kfm-wrapper = weiß, außer Links */
.kfm-wrapper {
  color: white;
  font-family: inherit;
}

.kfm-wrapper *:not(a) {
  color: white !important;
}

/* === 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;
}
