@charset "UTF-8";
/* CSS Document */

/* Hintergrund */
body {
    margin: 0;
    padding: 0;
    background-color: #DCDCD2;
    min-height: 100vh;
    text-align: center;
    font-family: "Comic Sans MS", cursive, sans-serif;
}

/* Ladebildschirm */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DCDCD2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Logo im Ladebildschirm */
#loader img {
    width: 340px;
    height: auto;
    margin-bottom: 20px;
}

/* Ladebalken-Container */
#progress-container {
    width: 300px;
    height: 20px;
    background-color: #aaa;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #820c0c;
}

/* Ladebalken */
#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #820c0c;
    transition: width 2s linear;
}

/* Hauptinhalt standardmäßig verstecken */
.hidden {
    display: none;
}

/* Hauptinhalt nach dem Laden richtig skalieren */
#main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Korrekte Reihen-Anordnung */
.grid-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin-bottom: 20px;
}

/* Button-Design */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

/* Button-Icons */
.grid-item img {
    width: 80px;
    height: 80px;
}

/* Hover-Effekt */
.grid-item:hover {
    transform: scale(1.1);
}

.grid-item:hover img {
    transform: scale(1.2);
}

/* Button-Beschriftung */
.grid-item span {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #820c0c;
    font-weight: bold;
    font-size: 0px;
    transition: font-size 0.3s ease-in-out;
}

.grid-item:hover span {
    font-size: 14px;
}

/* Fix: Logo nach dem Laden in normaler Größe */
#logo {
    width: 340px; /* Setzt die Breite des Logos */
    height: auto;
    margin-bottom: 20px;
}

#logo img {
    width: 100%;
    height: auto;
}
