/* Grundlegende Stildefinitionen */
body {
    background-color: #333;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Stile für den gridContainer */
#gridContainer {
    display: flex;
    justify-content: center; /* Horizontale Zentrierung */
    align-items: center; /* Vertikale Zentrierung */
    min-height: 100vh; /* Mindesthöhe des Viewports */
}

/* Falls der Container eine feste Breite haben soll */
.grid-container {
    width: 80%; /* Beispiel: 80% der Bildschirmbreite */
    margin: auto; /* Zentriert den Container horizontal */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Dynamische Anpassung */
    gap: 10px;
    padding: 20px;
}

.tile {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    cursor: pointer;
}

.tile img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

.tile p {
    margin: 0; /* Entfernt den Standardabstand des Absatzes */
    font-weight: bold; /* Fett gedruckt */
    color: #fff; /* Textfarbe für den Kachelnamen */
}

/* Stile für Admin-Ansicht */
.admin-tools {
    display: flex;
    justify-content: space-between; /* Zwischen den Elementen ausrichten */
    align-items: center;
    margin-right: 20px; /* Abstand zum Rand */
    margin-top: 10px; /* Abstand nach oben */
}

.admin-tools button {
    margin-right: 10px;
}

/* Stile für den Admin-Login-Bereich */
.header {
    background-color: #444; /* Dunkelgrau */
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between; /* Zwischen den Elementen ausrichten */
    align-items: center;
}

.admin-login {
    cursor: pointer;
    margin-left: auto; /* Das Element ganz nach rechts schieben */
}

.admin-form-container {
    display: none;
    position: relative;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.admin-login:hover .admin-form-container {
    display: block;
}
