/* Allgemeines Layout (Sehr helles Thema) */
body {
    background-color: #f8f9fa; /* Sehr helles Grau, fast Weiß */
    color: #212529; /* Standardtextfarbe, dunkel für gute Lesbarkeit */
    font-family: 'Segoe UI', sans-serif; /* Beispiel-Font */
    margin: 0;
    padding: 0;
}

.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Bootstrap Card-Anpassung für helles Thema */
.card {
    background-color: #ffffff; /* Reinweiß für Kartenhintergrund */
    padding: 2rem; /* Innenabstand der Karte */
    border-radius: 1rem; /* Abgerundete Ecken */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15); /* Deutlicherer, aber feinerer Schatten */
    border: 1px solid #e0e0e0; /* Sehr heller Rahmen */
    color: #212529; /* Dunkler Text innerhalb der Karte */
}

.card-header {
    background-color: #0d6efd !important; /* Bootstrap-Primary Blau für Header */
    color: #ffffff !important; /* Weißer Text */
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #0a58ca !important;
    border-top-left-radius: calc(1rem - 1px) !important;
    border-top-right-radius: calc(1rem - 1px) !important;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    color: #212529; /* Dunkler Text für Überschriften */
}

/* Formularfelder (Bootstrap .form-control und .form-select) */
.form-control,
.form-select {
    padding: 0.6rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da; /* Standard Bootstrap Border */
    background-color: #ffffff; /* Weißer Hintergrund für Input-Felder */
    color: #212529; /* Dunkler Text */
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd; /* Blauer Rahmen beim Fokus */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Blauer Schatten beim Fokus */
    background-color: #ffffff;
    color: #212529;
}

.form-control::placeholder {
    color: #6c757d; /* Standard Platzhalter-Text */
}

option {
    color: #212529; /* Dunkler Text für Dropdown-Optionen */
}

option:checked {
    background-color: #0d6efd;
    color: #fff;
}

/* Buttons (Standard Bootstrap-Farben und Text) */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* Farbausgleich für Buttons auf hellem Hintergrund (Bootstrap-Defaults sind meist gut) */
.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-danger {
    color: #fff !important; /* Text in farbigen Buttons weiß */
}

/* btn-light und btn-outline-light an helles Theme anpassen */
.btn-light {
    background-color: #f8f9fa !important;
    color: #212529 !important; /* Dunkler Text für hellen Button */
    border: 1px solid #f8f9fa !important;
}
.btn-light:hover {
    background-color: #e2e6ea !important;
    border-color: #e2e6ea !important;
}
.btn-outline-light { /* Wenn es auf einem hellen Container ist (z.B. der Search-Filter-Row) */
    color: #007bff !important; /* Textfarbe wie btn-primary */
    border-color: #007bff !important; /* Rahmenfarbe wie btn-primary */
    background-color: transparent !important;
}
.btn-outline-light:hover, .btn-outline-light.active {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Link-Farben (standardmäßig Bootstrap Link-Farbe) */
a {
    color: #0d6efd;
    text-decoration: none;
}
a:hover {
    color: #0a58ca;
}

/* Tabellen-Stile (helles Thema) */
.table {
    background-color: #ffffff; /* Weißer Tabellenhintergrund */
    color: #212529; /* Dunkler Text im Tabellenkörper */
    border-color: #dee2e6; /* Hellerer Rahmen */
}

.table th, .table td {
    border-color: #dee2e6;
    vertical-align: middle;
}

.table thead { /* Standard-Tabellenkopf (hell) */
    background-color: #0d6efd; /* Bootstrap-Primary für Header */
    color: #fff; /* Weißer Text */
}

.table-dark thead { /* Wenn ein dunkler Tabellenkopf explizit gewünscht ist */
    background-color: #343a40 !important; /* Dunkelgrau */
    color: #f8f9fa !important; /* Heller Text */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03); /* Sehr helles Grau für Streifen */
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075); /* Etwas dunkler beim Hover */
}


/* Textfarben für Bootstrap-Helferklassen */
.text-primary { color: #0d6efd !important; }
.text-success { color: #198754 !important; }
.text-info { color: #0dcaf0 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }
.text-secondary { color: #6c757d !important; }
.text-muted { color: #6c757d !important; }

/* Badges (passen sich an das helle Theme an) */
.badge-status {
    font-size: 0.8em;
    padding: 0.4em 0.6em;
    border-radius: 0.25rem;
}
.badge-inline {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Spezifische Zeilenfarben für Mieterliste (jetzt heller und transparenter) */
/* Diese müssen im HTML als inline style bleiben, da sie dynamisch sind */
/* Beispiel: <tr style="background-color: rgba(220,53,69,0.1);"> */
/* rgba(R,G,B,Alpha) ermöglicht Transparenz */


/* Responsive Anpassungen */
@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
}
.thead-gray {
  background-color: #6c757d; /* Ein Standard-Grau von Bootstrap */
  color: #fff;
}