/* ===========================================================================
   Fahrgemeinschaften (Auto anbieten, Kind eintragen)
   ---------------------------------------------------------------------------
   Spezifikation: docs/specs/fahrgemeinschaften.md

   Nur .fg-*-Klassen: keine :root-Variablen, keine nackten Element-Regeln.
   Popup, Felder und Knoepfe kommen aus 19-abwesenheit.css (.abw-dlg, .abw-andern)
   und den vorhandenen .so-btn-Regeln.
   =========================================================================== */

.fg-zeile { margin-top: 6px; }

.fg-autos { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fg-auto { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--glass-22); border-radius: 12px; background: var(--glass-06); }
.fg-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.fg-plaetze { font-weight: 700; color: var(--ok-text); }
.fg-plaetze.fg-voll { color: var(--warn-text); }
.fg-zeile-info { font-size: 0.85rem; }
.fg-zeile-info i { opacity: 0.7; margin-right: 4px; }

.fg-mit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fg-mit li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 4px 8px; border-radius: 8px; background: var(--glass-06); }
.fg-mit li form { margin: 0; }
.fg-mit .fg-fein { font-size: 0.8rem; opacity: 0.8; }

.fg-form { margin: 0; }
.fg-form .abw-andern { align-items: flex-end; }
.fg-form label { font-size: 0.8rem; }
.fg-breit { flex: 1 1 100%; }
.fg-breit input { width: 100%; }
.fg-dlg label.fg-check { flex-direction: row; align-items: center; gap: 8px; }   /* sticht .abw-dlg label (Spalte) */
.fg-loeschen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

.fg-aendern > summary { list-style: none; cursor: pointer; display: inline-flex; }
.fg-aendern > summary::-webkit-details-marker { display: none; }
.fg-aendern[open] > summary { margin-bottom: 6px; }

/* Zahlfeld im Dunkelmodus wie die Textfelder; die Regel in 11-modern-web-misc.css meint nur type=text, select und textarea */
:root[data-theme="dark"] .fg-dlg input[type="number"] {
    background-color: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .fg-dlg input[type="number"] {
        background-color: rgba(0, 0, 0, 0.4) !important;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.25) !important;
    }
}

@media (max-width: 640px) {
    .fg-form .abw-andern > label, .fg-form .abw-andern input, .fg-form .abw-andern select { width: 100%; }
    .fg-form .abw-andern input, .fg-form .abw-andern select, .fg-form .so-btn { min-height: 44px; }
    .fg-mit .so-btn { min-height: 44px; }
}

/* ---- Feinschliff 31.10.: Kopf, Leerzustand, Formular als Raster, Datenschutzzeile ---- */
.fg-dlg .abw-dlg-kopf { margin-bottom: 14px; }
.fg-dlg .abw-meldung { margin: 0 0 12px; }

.fg-leer { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 14px 16px; border: 1px dashed var(--glass-22); border-radius: 12px; font-size: 0.9rem; }
.fg-leer i { opacity: 0.7; font-size: 1.1rem; }

.fg-auto.fg-eigen { border-left: 3px solid var(--tigers-yellow); }

.fg-neu { margin-top: 18px; padding: 16px; border: 1px solid var(--glass-22); border-radius: 14px; background: var(--glass-06); }
.fg-neu-titel { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; }
.fg-neu-titel i { opacity: 0.75; }

.fg-felder { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 14px 12px; align-items: start; }
.fg-felder label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 0.85rem; }
.fg-dlg .fg-felder input:not([type=hidden]) { width: 100%; box-sizing: border-box; }   /* sticht .content input[type=number] (feste Breite) */
.fg-lbl { font-weight: 600; }
.fg-opt { font-weight: 400; opacity: 0.7; }
.fg-hilfe { font-size: 0.75rem; opacity: 0.7; }
.fg-f-notiz { grid-column: 1 / -1; }
.fg-aktion { display: flex; justify-content: flex-end; margin-top: 16px; }
.fg-aktion .so-btn { min-width: 11rem; justify-content: center; }
.fg-aendern .fg-felder { margin-top: 4px; }

.fg-datenschutz { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; font-size: 0.78rem; line-height: 1.45; opacity: 0.8; }
.fg-datenschutz i { margin-top: 2px; }
.fg-dlg .so-dlg-fuss { margin-top: 16px; }

@media (max-width: 640px) {
    .fg-felder { grid-template-columns: 1fr; }
    .fg-felder input { min-height: 44px; font-size: 1rem; }   /* 16 px: kein Zoom beim Fokus auf iOS */
    .fg-aktion .so-btn { width: 100%; min-height: 48px; }
    .fg-neu { padding: 14px 12px; }
}

