* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for dark mode */
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.menu-item {
    background-color: white;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 400px;  /* Höhe des Containers */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item h2 {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    margin: 0;
}

.menu-item a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;  /* Damit das Bild den restlichen Platz einnimmt */
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Stellt sicher, dass das Bild den gesamten Bereich füllt */
}

/* Hover-Effekt */
.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.menu-item a:hover {
    color: #007BFF;
}

/* Darkmode Button Styling */
#darkmode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none; /* Kein Hintergrund */
    border: none; /* Keine Umrandung */
    font-size: 24px; /* Größe des Symbols */
    cursor: pointer; /* Cursor für Klick */
    outline: none; /* Kein Fokusrahmen */
    color: inherit; /* Textfarbe erbt von der Seite */
}

#darkmode-toggle:hover {
    color: #ccc; /* Leichter Hover-Effekt für das Symbol */
}

/* Spezifisch für den Darkmode, kein Hintergrund um das Symbol */
body.dark-mode #darkmode-toggle {
    background: none; /* Kein Hintergrund im Darkmode */
    color: inherit; /* Keine Veränderung der Farbe */
}



/* Darkmode Styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .menu-item {
    background-color: #1e1e1e;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode h2 {
    background-color: #333333;
}

body.dark-mode #darkmode-toggle {
    color: #333;
}

.menu-item {
    background-color: white;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative; /* Für die absolute Positionierung der Details */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 400px; /* Fixierte Höhe für die Menü-Box */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item h2 {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    margin: 0;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details-Block über dem Bild */
.menu-item {
    background-color: white;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative; /* Für die absolute Positionierung der Details */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 400px; /* Fixierte Höhe für die Menü-Box */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item h2 {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    margin: 0;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details-Block am unteren Rand des Bildes */
.menu-item {
    background-color: white;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative; /* Für die absolute Positionierung der Details */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 400px; /* Fixierte Höhe für die Menü-Box */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item h2 {
    background-color: #007BFF;
    color: white;
    padding: 5px;
    margin: 0;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details-Block am unteren Rand des Bildes */
.menu-icons {
    position: absolute;
    bottom: 0; /* Platziere die Info-Leiste unten */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Halbtransparenter Hintergrund */
    color: white;
    padding: 5px;
    box-sizing: border-box;
    z-index: 10; /* Über dem Bild */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.menu-icons .icon {
    width: 25px;
    height: auto;
}

/* Hover-Effekt */
.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.menu-item a:hover {
    color: #007BFF;
}

.menu-item.closed {
    opacity: 0.5; /* Gastro wird ausgegraut */
}

.menu-item.closed a {
    pointer-events: all; /* Der Link bleibt anklickbar */
}

.menu-item.closed h2,
.menu-item.closed img {
    cursor: pointer; /* Die Gastro bleibt anklickbar */
}

.menu-date {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 5px;
}




