/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/** Einheitliche Darstellung – außer Radio/Checkbox */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea,
button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border-radius: 0;
  background-color: #fff;
  font-family: 'SourceSansPro-Regular', sans-serif;
  font-size: 14px;
  color: #29343a;
  border: 1px solid #29343a;
  padding: 8px;
  height: 46px;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: 2px solid #F7DC16;
}
input.hasIcon, select.hasIcon{
  padding-right: 50px !important;
}
textarea {
  resize: vertical;
  height: 100px;
}

/* Labels & Gruppen */
.form-group,
.form-group-check {
  position: relative;
  margin-bottom: 40px;
}

.form-group label,
.floating-label label {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #fff;
  padding: 0 5px;
  pointer-events: none;
  transition: transform 0.3s, font-size 0.3s, opacity 0.3s;
  opacity: 0.5;
  color: #29343a;
  font-weight: bold;
  font-family: 'SourceSansPro-Regular';
  font-size: 14px;
  line-height: 1.2em;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:not([value='']):not([value=' ']) + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-150%);
  top: 10px;
  font-size: 12px;
  opacity: 1;
  color: #29343a;
}

/* Floating Label Selects */
.floating-label {
  position: relative;
  margin-bottom: 40px;
}
.floating-select {
  display: block;
  font-size: 14px;
  padding: 8px;
  height: 46px;
  width: 100%;
  border: 1px solid #29343a;
  border-radius: 0;
  background-color: #fff;
}
.floating-select:focus {
  outline: none;
  border-bottom: 2px solid #F7DC16;
}
.floating-select:focus ~ label,
.floating-select:not([value=""]):valid ~ label,
.floating-select.not-empty ~ label {
  top: -18px;
  font-size: 12px;
  color: #29343a;
}

/* Fehleranzeigen */
.error-message {
  display: none;
  color: #d22321;
  font-size: 12px;
  position: absolute;
  padding-top: 4px;
  /*bottom: -20px;*/
  /*left: 5px;*/
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid,
fieldset.invalid {
  border: 2px solid #d22321;
  border-style: solid;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border: 2px solid #d22321;
  outline: none;
}

/* Checkboxen & Radiobuttons */
input[type="checkbox"],
input[type="radio"],
.form-group-check input[type="checkbox"],
.form-group-check input[type="radio"] {
  accent-color: #29343a;
}

input[type="radio"] {
  border-radius: 50%;
}

.form-group-check input {
  box-sizing: border-box;
  height: 15px;
  width: 15px;
  margin: 15px 5px 0 0;
  position: relative;
  display: inline-block;
}

.form-group-check label {
  position: relative;
  display: inline-block;
  top: -2px;
  margin: 0 15px 0 0;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  margin-right: 5px;
}

.checkbox-block {
  display: block;
}

.radioelement {
  display: inline-block;
}

.radio-inline {
  display: flex;
  align-items: center;
  margin-right: 5px;
}

/* Input-Icons & Tooltips */
.dropdown-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 45px;
  cursor: pointer;
  pointer-events: none;
}
.input-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 45px;
  cursor: pointer;
}
.tooltip-text {
  visibility: hidden;
  position: absolute;
  top: 50px;
  right: 30px;
  background-color: #ddd;
  color: #555;
  border-radius: 3px;
  font-size: 12px;
  z-index: 10;
  font-weight: bold;
  padding: 10px 20px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}
.input-icon:hover + .tooltip-text {
  visibility: visible;
}

/* Submit Button */
.cop-hbb8 {
  color: #fff;
  background-color: #D22321;
  max-width: 200px;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  border-radius: 0;
  font-size: 16px;
  transition: background-color 0.5s ease;
  font-family: 'SourceSansPro-Regular';
}
.cop-hbb8:hover {
  background-color: #E62321;
}

/* Allgemeine Hinweise */
.hidden {
  display: none !important;
}
.noscript-warning {
  color: #d22321;
}
.recaptcha-error {
  background-color: #ffe6e6;
  padding: 1em;
  border: 1px solid #cc0000;
  color: #d22321;
  font-weight: bold;
  margin-top: 1em;
}

/* Überschriften */
h3.form {
  font-family: 'SourceSansPro-BlackItalic';
  font-size: 18px;
  color: #29343A;
  font-weight: bold;
}

/* Formularcontainer */
.wrap_lead_form {
  width: 100%;
  max-width: 960px;
  min-width: 380px;
  margin: 0 auto;
}

/* Responsive */
@media only screen and (max-width: 480px) {
  .wrap_lead_form {
    min-width: unset;
  }
  .form_headline {
    font-size: 28px !important;
  }
  .radioelement {
    display: block;
  }
}
