/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

body {
    min-height: 100vh;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar-brand {
    letter-spacing: 0.2px;
}


/* =========================================================
   KARTEN
   ========================================================= */

.card {
    border-radius: 0.75rem;
}


/* =========================================================
   TABELLEN
   ========================================================= */

.table th {
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}


/* =========================================================
   FORMULARE
   ========================================================= */

.form-label {
    font-weight: 600;
}


/* =========================================================
   SPÄTERE MODULNAVIGATION
   ========================================================= */

.modul-navigation .nav-link {
    white-space: nowrap;
}


/* =========================================================
   FUSSBEREICH
   ========================================================= */

footer {
    margin-top: auto;
}

/* =========================================================
   BEWERTUNGSTABELLEN DER PFLEGEGRAD-MODULE
   ========================================================= */

.bewertungstabelle {
    table-layout: fixed;
}


/* Tabellenkopf */

.bewertungstabelle thead th {
    background-color: #0d6efd;
    color: white;
    vertical-align: middle;
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
}


/* Erste Spalte mit Aktivitätsbezeichnung */

.bewertungstabelle .aktivitaet-spalte {
    width: 28%;
}


/* Tabellenzellen */

.bewertungstabelle tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}


/* Wechselnde Hintergrundfarbe */

.bewertungstabelle tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}


/* Radio-Buttons etwas größer */

.bewertung-radio {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}


/* Ganze Tabellenzelle besser anklickbar */

.bewertungstabelle tbody td:not(:first-child) {
    cursor: pointer;
}


/* =========================================================
   ERGEBNISBEREICH DER MODULE
   ========================================================= */

.modul-ergebnis {
    background-color: #e7f3ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
}


.ergebnis-bezeichnung {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 0.4rem;
}


.ergebnis-wert {
    color: #0d6efd;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}


.ergebnis-hinweis {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}


/* =========================================================
   DARSTELLUNG AUF KLEINEREN BILDSCHIRMEN
   ========================================================= */

@media (max-width: 768px) {

    .bewertungstabelle {
        min-width: 750px;
    }

}
/* =========================================================
   BEWERTUNGSHILFE
   ========================================================= */

.bewertungshilfe-modal {
    border: 0;
    border-radius: 0.85rem;
    overflow: hidden;
}


.bewertungshilfe-modal .modal-header {
    padding: 1.25rem 1.5rem;
}


.bewertungshilfe-modal .modal-body {
    background-color: #ffffff;
}


.hilfe-abschnitt {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 0.5rem;
    padding: 1.25rem 1.25rem;
}


.hilfe-abschnitt h3 {
    margin-bottom: 1rem;
}


.hilfe-abschnitt p {
    line-height: 1.65;
}


.hilfe-selbstaendig {
    border-left-color: #198754;
}


.hilfe-selbstaendig h3 {
    color: #198754;
}


.hilfe-ueberwiegend-selbstaendig {
    border-left-color: #0d6efd;
}


.hilfe-ueberwiegend-selbstaendig h3 {
    color: #0d6efd;
}


.hilfe-ueberwiegend-unselbstaendig {
    border-left-color: #fd7e14;
}


.hilfe-ueberwiegend-unselbstaendig h3 {
    color: #c75b00;
}


.hilfe-unselbstaendig {
    border-left-color: #dc3545;
}


.hilfe-unselbstaendig h3 {
    color: #dc3545;
}


.hilfe-liste {
    padding-left: 1.25rem;
    margin-bottom: 0;
}


.hilfe-liste li {
    margin-bottom: 0.9rem;
    line-height: 1.6;
}


.hilfe-liste li:last-child {
    margin-bottom: 0;
}


.hilfe-liste strong {
    color: #0d6efd;
}

/* =========================================================
   LEISTUNGSÜBERSICHT
   ========================================================= */

.leistung-zeile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #dee2e6;
}


.leistung-zeile:last-child {
    border-bottom: 0;
}


.leistung-betrag {
    flex-shrink: 0;
    min-width: 155px;
    background-color: #e7f3ff;
    border: 1px solid #cfe2ff;
    border-radius: 0.65rem;
    padding: 0.75rem 1rem;
    color: #0d6efd;
    font-weight: 700;
    text-align: center;
}


.zusatzleistung {
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid #dee2e6;
}


@media (max-width: 576px) {

    .leistung-zeile {
        flex-direction: column;
        align-items: stretch;
    }

    .leistung-betrag {
        width: 100%;
    }

}