/**
 * @file
 * Styling für das Produktmeldeformular (Entscheidungsbaum).
 * 
 * Die Styles orientieren sich an den Quiz-/Umfrageseiten.
 */

/* Container für das Produktmeldeformular - Quiz-Style */
.lmk-product-report-form {
  max-width: 70%;
  margin: 30px auto 0 auto;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #dc020e;
}

/* Überschrift außerhalb des Formular-Rahmens */
.form-heading-outside {
  max-width: 70%;
  margin: 0 auto 20px auto;
}

.form-heading-outside h1 {
  line-height: 1.2;
  font-size: x-large;
  margin: 0 0 20px 0;
}

/* Frage-Container wie bei Quiz */
.lmk-product-report-form .quiz-question-multichoice,
.lmk-product-report-form {
  background: #fff;
  margin-bottom: 50px;;
}

/* Frage-Titel wie bei Quiz */
.lmk-product-report-form .form-radios legend,
.lmk-product-report-form legend {
  font-weight: bold !important;
  line-height: 1.2;
  font-size: x-large !important;
  margin: 0 0 20px 0;
  color: #000;
}

.lmk-product-report-form .js-form-item.form-type-radios {
  margin-bottom: 2rem;
}

/* Tabellen-Layout wie bei Quiz */
.lmk-product-report-form .form-radios {
  display: block;
  margin: 0;
}

/* Einzelne Radio-Option als Flex-Container */
.lmk-product-report-form .form-type-radio {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  background-color: #fff;
  border: 2px solid #ddd;
  /* border-bottom: 2px solid #ddd; */
  border-radius: 10px;
  border-color: #005c78;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lmk-product-report-form .form-type-radio:hover {
  background-color: #f8f9fa;
  border-color: #999;
}

/* Radio-Button vor dem Text */
.lmk-product-report-form .form-type-radio input[type="radio"] {
  margin: 0.25rem 0 0 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #005c78;
}

/* Label-Text */
.lmk-product-report-form .form-type-radio label {
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  display: block;
}

/* Zwischenüberschrift - gestylt wie die Haupt-Legend "Worum geht es?" */
.lmk-product-report-form .form-radio-section-heading {
  line-height: 1.2;
  font-size: x-large;
  margin: 20px 0 20px 0;
  font-weight: bold;
  display: block;
  color: #000;
}

/* Ausgewählte Option hervorheben wie bei Quiz */
.lmk-product-report-form .form-type-radio:has(input[type="radio"]:checked) {
  background-color: #e7f3ff;
  border-color: #005c78;
  
}

.lmk-product-report-form .form-type-radio input[type="radio"]:checked + label {
  font-weight: 600;
  color: #005c78;
  
}

/* Action Buttons Container wie bei Quiz */
.lmk-product-report-form .form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

/* Zurück-Button wie bei Quiz */
.lmk-product-report-form .form-actions a.button,
.path-sonstiges a.produkt-zuruek {
  padding: 0.75rem 2rem;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  border: 2px solid #ccc;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.5;
  min-height: 3rem;
  vertical-align: middle;
  box-sizing: border-box;
}

.lmk-product-report-form .form-actions a.button:hover,
.path-sonstiges a.produkt-zuruek:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

/* Weiter-Button wie bei Quiz */
.lmk-product-report-form .form-actions input[type="submit"],
.lmk-product-report-form .form-actions button[type="submit"],
.lmk-product-report-form #edit-back,
.path-sonstiges a.produkt-zuruek 
 {
  padding: 0.75rem 2rem;
  background-color:#005c78;
  color: #fff;
  border: solid 2px #005c78;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  line-height: 1.5;
  min-height: 3rem;
  vertical-align: middle;
  box-sizing: border-box;
}

.lmk-product-report-form .form-actions input[type="submit"]:hover,
.lmk-product-report-form .form-actions button[type="submit"]:hover,
.path-sonstiges a.produkt-zuruek:hover {
  background-color: #fff;
  border-color: #005c78;
    color: #005c78; 
    border: solid 2px #005c78;
}

.lmk-product-report-form .form-actions input[type="submit"]:disabled,
.lmk-product-report-form .form-actions button[type="submit"]:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}

/* Fehlermeldungen / Hinweise wie bei Quiz */
.lmk-product-report-form .form-item--error-message,
.lmk-product-report-form .quiz-answer-required {
  color: #000000;
  background-color: #cde0ef;
  border: 2px solid #dc020e;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lmk-product-report-form .messages--error {
  color: #000000;
  background-color: #cde0ef;
  border-color: #dc020e;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

#lmk-product-report-decision-form .form-required:after {
    display: none;
}

/* Responsive Anpassungen wie bei Quiz */
@media (max-width: 768px) {
  .lmk-product-report-form {
    max-width: 100%;
    padding: 10px;
    margin-top: 20px;
  }

  .form-heading-outside {
    max-width: 100%;
    padding: 0 10px;
    margin-bottom: 15px;
  }

  .form-heading-outside h1 {
    font-size: large;
    line-height: 1.2;
  }

.region-content, .region-featured {
    max-width: 1280px;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
}
  .lmk-product-report-form legend {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .lmk-product-report-form .form-type-radio {
    padding: 1rem;
    gap: 0.75rem;
  }

  .lmk-product-report-form .form-type-radio label {
    font-size: 1rem;
  }

  .lmk-product-report-form .form-radio-section-heading {
    font-size: large;
    line-height: 1.2;
    margin: 0 0 15px 0;
  }

  .lmk-product-report-form .form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .lmk-product-report-form .form-actions input[type="submit"],
  .lmk-product-report-form .form-actions a.button,
  .lmk-product-report-form #edit-back,
  .lmk-product-report-form .form-actions input[type="submit"], 
  .lmk-product-report-form .form-actions button[type="submit"], 
  .lmk-product-report-form #edit-back, 
  .path-sonstiges a.produkt-zuruek

  {
    flex: 1;
    min-width: auto;
    text-align: center;
    padding: 0.75rem 1rem !important;
    line-height: 1.5;
  }
}

/* Beliebte Verbraucher-Themen Block Styling */
.block-views-taxonomy-topics-terms {
  max-width: calc(100% - 30px);
  margin-left: auto;
  margin-right: auto;
}

.block-views-taxonomy-topics-terms h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #000;
}

/* Slick Carousel - Pfeile innerhalb des Containers */
.block-views-taxonomy-topics-terms .slick-slider {
  position: relative;
  padding: 0 50px; /* Platz für die Pfeile */
}

.block-views-taxonomy-topics-terms .slick-prev,
.block-views-taxonomy-topics-terms .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
}

.block-views-taxonomy-topics-terms .slick-prev {
  left: 0;
}

.block-views-taxonomy-topics-terms .slick-next {
  right: 0;
}

/* Container für den Slider - verhindert Überlauf */
.block-views-taxonomy-topics-terms .view-content {
  overflow: hidden;
  max-width: 100%;
}

/* Responsive Anpassungen für Slider */
@media (max-width: 768px) {
  .block-views-taxonomy-topics-terms .slick-slider {
    padding: 0 35px;
  }
  
  .block-views-taxonomy-topics-terms .slick-prev,
  .block-views-taxonomy-topics-terms .slick-next {
    width: 30px;
    height: 30px;
  }
  
  .block-views-taxonomy-topics-terms h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}
