/* TTV Reisekosten – Styles (responsive & mobile-first) */
.ttv-form { max-width: 1080px; margin: 0 auto; }

/* Abschnitt */
.ttv-section {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #fafafa;
}
.ttv-section > h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

/* Grid: mobil 1-spaltig, ab 600px 2-spaltig, ab 900px 3-spaltig */
.ttv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) {
  .ttv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ttv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Explizit 3 Spalten (Reiseweg), aber ebenfalls responsiv */
.ttv-grid.ttv-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .ttv-grid.ttv-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ttv-grid.ttv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Inputs gleich hoch + full-width */
.ttv-field input,
.ttv-field select,
.ttv-field textarea {
  width: 100%;
  height: 44px;
  padding: 10px 12px !important;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 16px; /* verhindert iOS-Zoom in Formfeldern */
  line-height: 1.2;
  background: #fff;
}
.ttv-field textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

/* Placeholder-Farbe */
.ttv-field input::placeholder,
.ttv-field textarea::placeholder { color: #888; }

/* Button */
.ttv-btn {
  font-size: 1.1rem;
  font-weight: 700;
  background: #b41e1e;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  height: 46px;
  max-width: 220px;
}
.ttv-btn:hover { opacity: .95; }

/* Labels */
.ttv-label,
.ttv-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: .95rem;
  color: #333;
}

/* Info-Text */
.ttv-field small { font-size: 0.78em; color: #666; }

/* Essenspauschale – Reihe */
.ttv-meals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.ttv-meal { display: inline-flex; align-items: center; gap: 8px; }

/* --- Spezielle Felder vollbreit --- */
/* Zweck der Reise */
.ttv-form input[name="purpose[text]"] {
  grid-column: 1 / -1;
}

/* Anmerkungen zum Reiseweg */
.ttv-form input[name="travel[note]"] {
  grid-column: 1 / -1;
}

/* Beschreibung der Sonstigen Kosten */
.ttv-form input[name="other[label]"],
.ttv-form textarea[name="other[label]"] {
  grid-column: 1 / -1;
}

/* Belege-Hinweis/Sammelupload vollbreit */
.ttv-form input[name="receipts[]"] {
  grid-column: 1 / -1;
}

/* Checkbox-Zeilen (Spendenoption) – volle Breite */
.ttv-section label input[type="checkbox"] {
  width: auto;
  height: auto;
  vertical-align: middle;
  margin-right: 8px;
}

/* Datum/Zeit: sichergehen, dass System-Picker gezeigt wird */
input[type="date"],
input[type="time"] {
  -webkit-appearance: auto;
  appearance: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* Mobile: Felder immer vollbreit, kein ungewolltes Nebeneinander */
@media (max-width: 599.98px) {
  .ttv-field { width: 100%; }
  .ttv-btn { width: 100%; max-width: none; }
}

.ttv-bold {
  font-weight: 700;
}

/* Passwort-Auge */
.ttv-passwrap {
  position: relative;
}
.ttv-passwrap .ttv-password {
  padding-right: 42px; /* Platz fürs Auge */
}
.ttv-toggle-pass {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
  opacity: .7;
}
.ttv-toggle-pass:hover { opacity: 1; }
.ttv-toggle-pass svg { display: block; }
.ttv-toggle-pass.is-on svg { filter: none; } /* Hook, falls du Styling für "sichtbar" willst */
