/* CSS Document */

/* Allgemeine Farben */
body {
    background-color: #f8f9fa; /* Heller Hintergrund */
    color: #212529; /* Standardtextfarbe */
}

form .flexbox {
  margin:10px;
}
form .flexbox p {
  text-align:justify;
}

form input, form textarea {
    background-color: #fff; /* Weißer Hintergrund */
    border: 1px solid #ced4da; /* Dezenter Rahmen */
    padding: 10px;
    border-radius: 4px;
}

form input[type=text], form input[type=email], textarea  {
  width:100%;
}
form input[type=number] {
  text-align:right;
  max-width:60px;
}

form input[type=checkbox] {
  display:none;
  content:" ";
}

/* VEREINFACHTES LABEL STYLING - alle Labels haben gleiche Struktur */
form input[type=checkbox] + label {
  display: flex !important;
  align-items: flex-start;
  gap: 20px;
  padding: 15px !important;
  margin: 5px !important;
  margin-bottom: 0;
  font-size: 0.9rem;
  position: relative;
  width: 100%;
  text-align: left;
  border-radius: 5px;
  border: 1px solid #999;
}

/* Normale Labels in Cards - KEINE Umrahmung */
.card-body label {
  display: block !important;
  align-items: normal !important;
  gap: normal !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: inherit !important;
  position: static !important;
  width: auto !important;
  text-align: left !important;
  border-radius: 0 !important;
  border: none !important;
  background: none !important;
  color: inherit !important;
}

/* Label-Styling für normale Eingabefelder */
.card-body label {
    font-weight: normal !important; /* Fettdruck entfernt */
    color: #495057;
    margin-bottom: 5px;
}

/* Icon Container */
form input[type=checkbox] + label:before {
  display: block;
  content: url(/img/icon/unselected.png);
  flex-shrink: 0;
  width: 48px;
  height: 24px;
  margin: 0;
  margin-top: 2px;
}

form input[type=checkbox]:checked + label:before {
  content: url(/img/icon/selected.png);
}

/* Content Container - immer volle Breite */
form input[type=checkbox] + label .label-content {
  flex: 1;
  min-width: 0; /* Verhindert Overflow */
}

/* H3 Überschriften */
form input[type=checkbox] + label h3 {
  font-size: 1.1rem !important;
  margin: 0 0 8px 0 !important;
  font-weight: 600;
  line-height: 1.3;
  display: block !important;
  width: 100%;
}

/* Paragraphs */
form input[type=checkbox] + label p {
  margin: 0;
  line-height: 1.4;
}

/* Input Fields innerhalb Labels */
form input[type=checkbox] + label input[type=text] {
  margin-top: 8px;
}

/* Label States */
form input[type=checkbox] + label {
  background-color: rgba(214,230,255,1.00);
  color: #000;
}

form input[type=checkbox]:checked + label {
  background-color: rgb(171, 201, 216);
  color: #fff;
}

form input[type=checkbox]:checked + label h3 {
  color: #fff;
}

/* Required field indicator */
.card-body label strong::after {
    content: " *";
    color: #dc3545;
    font-weight: bold; /* Der Stern bleibt fett, Label selbst ist normal */
}

/* Floating Badge */
.floating-badge {
  position: absolute;
  top: 0em;
  right: -1.5em;
  background: #007bff;
  color: #fff;
  padding: 0.5em 1.0em;
  border-radius: 0em;
  font-weight: normal;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  font-size: 0.7em;
  letter-spacing: 0.03em;
  rotate: 5deg;
}

/* Card-Styling für Formularbereiche - Blaue Hintergründe */
.card {
    border: 1px solid grey; /* Dezenter Rahmen */
    border-radius: 4px;
    box-shadow: none; /* Kein Schatten */
    background-color: #fff; /* Weißer Hintergrund */
}

.card-header {
    background-color: lightgray !important; /* Hellgrauer Hintergrund */
    border-bottom: 1px solid grey;
    padding: 15px;
}

.card-header h2 {
    color: #212529; /* Dunkler Text */
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
    background-color: #eee; /* Grauer Hintergrund */
}

/* Form-Styling */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: rgba(225,237,255,1.00); /* Hellerer Hintergrund für Inputs */
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    background-color: rgba(225,237,255,1.00);
}

/* Small text styling */
.text-muted {
    font-size: 12px;
    color: #6c757d !important;
    margin-top: 3px;
    display: block;
}

/* FAQ H2 auch kleiner */
.card-header h2 i {
    font-size: 1.1rem;
}

/* H2 in allen Card-Headern kleiner */
.card-header .h4,
.card-header h2.h4 {
    font-size: 1.2rem !important;
    font-weight: 600;
}

/* FAQ Sektion: Weißer Hintergrund und dezenter Rahmen */
.faq-section .card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.faq-section .card-body {
    background: #fff !important;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .card-header h2 {
        font-size: 1.1rem;
    }

    form input[type=checkbox] + label {
        padding: 12px;
    }
}

@media (max-width: 576px) {
  form input[type=checkbox] + label {
    gap: 12px;
  }

  form input[type=checkbox] + label:before {
    width: 36px;
  }

  .card-header h2 {
    font-size: 1rem !important;
  }
}
