/* Mieterselbstauskunft - style.css
   Version: 1.3.1
   Enthält: Layout, Zwei-Spalten-Formular, Ausgrauen, Währungs- und Datumsfelder,
   Vergrößerung der Eingabefelder in den Mieter-Spalten (2.5x) und Mietobjekt-Styles.
*/

/* Grundlayout */
.mieterselbstauskunft-form {
  max-width: 1100px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.35;
  padding: 10px;
  box-sizing: border-box;
}

.mieterselbstauskunft-form h2 {
  margin-top: 0;
  font-size: 20px;
  color: #0b3b5a;
}

/* Fieldsets und Labels */
.mieterselbstauskunft-form fieldset {
  border: 1px solid #ccc;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 4px;
}

.mieterselbstauskunft-form legend {
  font-weight: 600;
  padding: 0 6px;
}

.mieterselbstauskunft-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #222;
}

/* Reihenlayout */
.mieterselbstauskunft-form .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.mieterselbstauskunft-form .row label {
  flex: 1;
}

/* Buttons */
.ms-submit {
  background: #0073aa;
  color: #fff;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

.ms-submit:hover {
  background: #005f86;
}

/* Erfolgsmeldung */
.ms-success {
  background: #e6ffed;
  border: 1px solid #b6f0c6;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 4px;
  color: #0b6b2f;
}

/* Mietobjekt row */
.mietobjekt-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.mietobjekt-select {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  box-sizing: border-box;
}

.mietobjekt-other {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  box-sizing: border-box;
}

/* Hinweis unter Mietobjekt */
.mietobjekt-hint {
  display: block;
  margin-top: 6px;
  color: #555;
  font-size: 13px;
}

/* Zwei-Spalten-Layout für Mietinteressenten */
.two-column-table {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.two-column-table .col {
  flex: 1;
  border: 1px solid #eee;
  padding: 12px;
  background: #fafafa;
  border-radius: 4px;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: auto;
}

.two-column-table .col h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
  color: #0b3b5a;
}

/* Ausgegraute Spalte / Felder */
.disabled {
  background: #f5f5f5 !important;
  color: #999 !important;
}

.disabled-col {
  opacity: 0.6;
  pointer-events: none;
}

/* Fragen-Rows */
.frage {
  margin-bottom: 10px;
}

.radio label {
  margin-right: 12px;
  font-weight: 400;
}

/* Wohnungswahl und Extras */
.wohnungswahl {
  margin-bottom: 10px;
}

.wohnungsdetails {
  margin-bottom: 10px;
}

.extras label {
  display: inline-block;
  margin-right: 12px;
  font-size: 14px;
}

/* Currency and date styling */
.currency_display {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #222;
}

input[type="date"] {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
  width: 100%;
}

/* Vergrößerte Eingabefelder in den beiden Mieter-Spalten (2.5x) */
.two-column-table .col label input[type="text"],
.two-column-table .col label input[type="email"],
.two-column-table .col label input[type="date"],
.two-column-table .col label select,
.two-column-table .col label textarea {
  display: block;
  width: 250%;          /* 2,5 mal so breit wie 100% */
  max-width: none;
  box-sizing: border-box;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #222;
}

/* Labels in den Spalten etwas luftiger */
.two-column-table .col label {
  margin-bottom: 12px;
}

/* Verhindert, dass das Gesamt-Layout bricht: horizontales Scrollen innerhalb der Spalten */
.two-column-table .col {
  overflow-x: auto;
}

/* Upload Hinweise */
.upload-instructions {
  margin-top: 10px;
  padding: 10px;
  background: #f8f9fb;
  border-left: 4px solid #0073aa;
  border-radius: 3px;
  color: #222;
  font-size: 14px;
}
.upload-instructions p { margin: 0 0 8px 0; font-weight: 600; }
.upload-instructions ol { margin: 0 0 0 18px; padding: 0; }
.upload-instructions li { margin-bottom: 6px; }

/* Kleinere Bildschirme: Felder wieder normalisieren */
@media (max-width: 900px) {
  .two-column-table {
    flex-direction: column;
  }
  .two-column-table .col label input[type="text"],
  .two-column-table .col label input[type="email"],
  .two-column-table .col label input[type="date"],
  .two-column-table .col label select,
  .two-column-table .col label textarea {
    width: 100%;
  }
  .mietobjekt-row {
    flex-direction: column;
  }
  .mietobjekt-select, .mietobjekt-other {
    width: 100%;
  }
}

/* Kleinere optische Anpassungen */
.mieterselbstauskunft-form input[type="text"],
.mieterselbstauskunft-form input[type="email"],
.mieterselbstauskunft-form select,
.mieterselbstauskunft-form textarea {
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 8px;
  font-size: 14px;
  background: #fff;
  color: #222;
  box-sizing: border-box;
}

/* Fokus-Styling */
.mieterselbstauskunft-form input:focus,
.mieterselbstauskunft-form select:focus,
.mieterselbstauskunft-form textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0,115,170,0.08);
}

/* Kleinere Hilfsstile */
label small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}

/* Accessibility: größere Klickflächen für Checkbox/Radio */
.mieterselbstauskunft-form input[type="checkbox"],
.mieterselbstauskunft-form input[type="radio"] {
  transform: scale(1.05);
  margin-right: 6px;
  vertical-align: middle;
}