/**
 * SanLog - Patientenformular Layout Fix
 * 
 * Diese Datei MUSS als LETZTE CSS-Datei eingebunden werden!
 * In index.html VOR </head> einfügen:
 * <link rel="stylesheet" href="css/patient-form-fix.css">
 */

/* ============================================================================
   PATIENTENFORMULAR: ZWEI-SPALTEN-LAYOUT
   ============================================================================ */

/* Basis: Zwei Spalten für Desktop und Tablet */
#patientFormContainer .patient-form-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
}

#patientFormContainer .patient-form-main {
    order: 0 !important;
    margin-top: 0 !important;
}

#patientFormContainer .patient-form-sidebar {
    order: 0 !important;
    margin-top: 0 !important;
    align-self: start !important;
}

/* Tablet (768px - 1024px): Etwas kompaktere Zwei-Spalten */
@media (min-width: 768px) and (max-width: 1024px) {
    #patientFormContainer .patient-form-layout {
        grid-template-columns: 1.5fr 1fr !important;
        gap: 16px !important;
    }
}

/* Mobil (unter 768px): Eine Spalte, Persönliche Daten oben */
@media (max-width: 767px) {
    #patientFormContainer .patient-form-layout {
        grid-template-columns: 1fr !important;
    }
    
    #patientFormContainer .patient-form-sidebar {
        order: -1 !important;
    }
}
