/*
 * Minimal CSS zur Nachbildung einiger Bootstrap‑Stile.
 *
 * Dieses Stylesheet orientiert sich an den gängigsten Komponenten,
 * die im Praktikumsportal verwendet werden: Navigationsleiste, Cards,
 * Formulare, Buttons, Tabellen, Listen und Alerts.  Dadurch wirkt die
 * Oberfläche moderner, ohne dass eine vollständige Bootstrap‑Bibliothek
 * eingebunden werden muss.
 */

/* Grundlegender Seitenstil */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa; /* hellgrauer Hintergrund wie in Bootstrap */
}

/* Container mit maximaler Breite */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    /* Erhöht die maximale Breite der Seite, damit die Navigationspunkte
       genügend Platz haben und nicht umbrechen.  1140px orientiert sich
       an den größeren Bootstrap‑Breakpoints. */
    max-width: 1140px;
}

/* Navigationsleiste */
.navbar {
    display: flex;
    /* Damit das Menü nicht mehrzeilig umbrechen muss, verhindern wir das
       automatische Umbrechen.  Die Links werden stattdessen horizontal
       angeordnet und können bei Bedarf horizontal gescrollt werden. */
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #343a40;
    color: #fff;
}
.navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
}
.navbar-brand {
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
}
.navbar-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
}
.navbar-nav .nav-item {
    margin-right: 1rem;
}
.navbar-nav .nav-link {
    color: #fff;
    text-decoration: none;
}
.navbar-nav .nav-link:hover {
    text-decoration: underline;
}
.navbar-text {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    text-decoration: none;
}
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}
.btn-outline-light {
    color: #f8f9fa;
    background-color: transparent;
    border-color: #f8f9fa;
}
.btn-outline-light:hover {
    background-color: rgba(248, 249, 250, 0.1);
}
.btn-link {
    color: #0d6efd;
    background-color: transparent;
    border: none;
    padding: 0;
    font-weight: 400;
}
.btn-link:hover {
    text-decoration: underline;
}

/* Cards */
.card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}
.card-body {
    padding: 1rem 1.25rem;
}
.card-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
}

/* Formulare */
.form-control,
.form-select,
textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    background-clip: padding-box;
    box-sizing: border-box;
}
.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.form-label {
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

/* Tabellen */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #e9ecef;
}
.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Listengruppe */
.list-group {
    display: block;
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}
.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}
.list-group-item + .list-group-item {
    border-top-width: 0;
}

/* Zusätzliche Hilfsklassen für modernere Formulare und Layouts */

/* Abschnittscontainer für das Profilformular: dezente Hintergrundfarbe,
 * abgerundete Ecken und ausreichend Innenabstand.  Mithilfe dieser
 * Klasse können die einzelnen Bereiche (Foto, Bio, Adresse usw.)
 * optisch voneinander abgegrenzt werden. */
.form-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* Wechselnde Hintergrundfarben für aufeinanderfolgende Abschnitte, um
 * eine leichte Gliederung zu erzeugen. Jeder geradzahlige Abschnitt
 * erhält einen minimal dunkleren Ton. */
.form-section:nth-of-type(even) {
    background-color: #eef3f7;
}

/* Grid‑Layout für Chats: Die Chatliste wird in ein flexibles
 * Raster umgewandelt, sodass die verfügbaren Chats nebeneinander
 * statt untereinander angezeigt werden können. */
.chat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.chat-grid .chat-item {
    flex: 1 1 calc(50% - 0.5rem);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: #fff;
    cursor: pointer;
}

/* Kleine Statistik‑Kacheln für das Admin‑Dashboard: dezenter
 * Hintergrund, abgerundete Ecken und zentrierte Inhalte. */
.stat-card {
    background-color: #eef3f7;
    border-radius: 0.375rem;
    padding: 1rem;
    text-align: center;
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Rand für Container (ähnlich .border in Bootstrap) */
.border {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Benachrichtigungsglocke */
.bell {
    position: relative;
    color: #f8f9fa;
    text-decoration: none;
}
.bell .bell-icon {
    font-size: 1.3rem;
}
.bell .badge {
    position: absolute;
    top: -0.4rem;
    right: -0.5rem;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    line-height: 1;
}