body {
    font-family: open sans, Verdana, Arial, sans-serif;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

textarea {
    font-family: open sans, Verdana, Arial, sans-serif;
}

a {
    color: #675656; /* Farbe des Links */
    text-decoration: none; /* Unterstreichen entfernen, falls gewünscht */
}

a:hover {
    color: #342b2b; /* Farbe bei Hover */
    text-decoration: underline; /* Unterstreichen bei Hover, falls gewünscht */
}

h3 {
    text-align: center;
}

@media (max-width: 768px) {
    h4 {
        text-align: center;
    }
}

.divider {
    width: 50%;
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

.divider_full_width {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.RoleButton {
    display: none;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

.login {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #675656;
    color: #f2f2f2;
}

/* Logout-Button für Geräte mit Mauszeiger fix platzieren, sonst nicht --> Mobile! */
@media ((min-width: 769px)) {
    #logoutButton {
        position: absolute;
        top: 40px;
        right: 20px;
    }
}

#closeModal{
    color:white;
    cursor:pointer;
    font-size:24px;
}

.azubiSelector {
    display: none;
}

.form-group {
    /*margin-bottom: 15px;*/
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

select, input {
    text-align: center;
}

button {
    padding: 10px 15px;
    color: white;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #665555;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #332a2a;
}

/* Buttons für Wochenliste */
.button-container-wl {
    display: flex; /* Buttons nebeneinander */
    gap: 10px; /* Abstand zwischen den Buttons */
}

@media (max-width: 768px) {
    .button-container-wl {
        margin-top: 10px;
        align-items: flex-start;
        justify-content: center; /* Buttons zentrieren */
    }
}

@media (min-width: 769px) {
    .button-container-wl {
        justify-content: flex-end; /* Buttons nach rechts ausrichten */
    }
}

.edit-button, .delete-button, .print-button {
    padding: 8px 12px; /* Größe der Buttons reduzieren */
    font-size: 14px; /* Schriftgröße anpassen */
    cursor: pointer;
    color: #665555;;
    background: none;
    margin-bottom: 0px;
}

@media (min-width: 768px) {
    .edit-button {
        display: flex;
        margin-left: 10px;
    }
}

.edit-button:hover, .delete-button:hover, .print-button:hover {
    background-color: #d1d1d1;
}

.progress-list {
    width: 90%;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .progress-item {
        display: flex;
        flex-direction: column;
        /* align-items: flex-start; */
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
    }
}

@media (min-width: 769px) {
    .progress-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
    }
}

.progress-content {
    flex: 1;
    line-height: 150%;
    align-items: flex-start;
}

#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#imageModal img {
    max-width: 90%;
    max-height: 90%;
}

#imageModal.close {
    display: none;
}

/* Einheitliche Breite für alle Eingabefelder, Textareas und Auswahlboxen */
.container .form-group input[type="text"],
.container .form-group input[type="password"],
.container .form-group input[type="date"],
.container .form-group select,
.container .form-group textarea
{
    width: 100%;
    max-width: 500px;
    box-sizing: border-box; /* Damit Padding und Border mitgezählt werden */
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.container .form-group input[type="file"] {
    margin-top: 10px;
}

/* Einheitliche Breite für die Vorschau des aktuellen Fotos */
.container .form-group img {
    max-width: 100%;
    height: auto;
}

/* Rechtsbündige Ausrichtung des Foto-Upload-Formulars */
.photo-upload-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Stil für das Eingabefeld und den Button innerhalb des Formulars */
.photo-upload-form input[type="file"] {
    max-width: 200px;
}

.photo-upload-form button {
    padding: 6px 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.photo-upload-form button:hover {
    background-color: #45a049;
}

img#currentPhoto {
    cursor: pointer;
}

/* Stil für die Tabellen */
#reportContainer {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 95%;
    border-collapse: collapse; /* Entfernt die Lücken zwischen den Zellen */
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

#reportContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    vertical-align: middle;
}

th {
    background-color: #f4f4f4; /* Hintergrundfarbe für die Kopfzellen */
    font-weight: bold; /* Fettgedruckter Text für die Kopfzellen */
}

td {
    word-wrap: break-word; /* Zeilenumbruch für lange Wörter */
}

th, td {
    width: 200px; /* Breite der Zellen automatisch anpassen */
}

th, td.fixed-width {
    width: 200px;
}

tr:nth-child(even) {
    background-color: #f9f9f9; /* Alternierende Zeilenfarbe */
}

.group-name {
    background-color: #d3d3d3;
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
}
.course-name {
    text-align: left;
    padding-left: 20px;
    background-color: #f9f9f9;
}

/* Stil für die Buttons auf der Startseite */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    margin: 20px;
}

.button-group {
    width: 100%;
}

.button-group h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

@media (max-width: 768px) {
    .button-items {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) {
    .button-items {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .button-group button {
        width: 45%;
        height: 100px;
        padding: 10px;
        margin: 5px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .button-group button {
        width: 150px;
        height: 150px;
        padding: 10px;
        margin-left: 20px;
        margin-right: 20px;
        font-size: 16px;
    }
}

.button-group button i {
    font-size: 32px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .button-group-small {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Zwei Spalten */
        gap: 10px; /* Abstand zwischen den Buttons */
        margin-top: 20px;
        max-width: 600px;
    }
}

@media (min-width: 769px) {
    .button-group-small {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Zwei Spalten */
        gap: 10px; /* Abstand zwischen den Buttons */
        margin-top: 20px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .button-group-small button {
        width: 95%;
        height: 100px;
        padding: 10px;
        margin: 5px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .button-group-small button {
        width: 150px;
        height: 75px;
        padding: 10px;
        margin-left: 20px;
        margin-right: 20px;
        font-size: 12px;
    }
}

.button-group-small button i {
    font-size: 24px;
    margin-bottom: 10px;
}

.button-small-single {
    display: flex;
    gap: 10px; /* Abstand zwischen den Buttons */
    /* margin-top: 20px; */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button-small-single button {
    width: 150px;
    height: 75px;
    padding: 10px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    font-size: 12px;
}

.button-small-single button i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Stil für den oberen Teil der Startseite */
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #675656;
    color: #f2f2f2;
    border-radius: 8px;
}

/* Logo max. Breite */
.logo {
    max-width: 300px;
}

/*Stil für die Anzeige der Profilbilder */
#profilePicture img {
    width: 100px; /* Breite des Bildes */
    height: auto; /* Höhe wird automatisch entsprechend der Breite angepasst */
    border-radius: 5%; /* Optional: Runde das Bild ab, falls es ein Profilbild ist */
}

.profile-image {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 5%;
}

@media (max-width: 768px) {
    .image-preview-grid {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);  /* 4 Spalten */
        gap: 10px;
    }
}

@media (min-width: 769px) {
    .image-preview-grid {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);  /* 4 Spalten */
        gap: 10px;
    }
}