/* ALLGEMEINES DESIGN */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
}

header {
    position: relative;
    text-align: center;
}

.header-image {
    width: 100%;
    height: auto;
    max-height: 188px;
    object-fit: contain;
}

.catering-image {
    width: 100%;
    height: auto;
    max-height: 85px;
    object-fit: contain;
}

#hero {
    background-color: #006633;
    color: white;
}

section {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    margin: 20px auto;
}

#menu {
    background-color: #006633;
    color: white;
}

#menu .thumbnail {
    /* Dein exaktes Grün als Platzhalter-Farbe */
    background-color: #006633; 
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #006633;
    color: white;
}

h2 {
    font-family: Arial, sans-serif;
    display: block;
    height: 1.2em; /* Platzhalter für die Zeile */
    margin: 0 auto 20px auto;
}

/* GALERIE WRAPPER & CONTAINER */
.gallery-wrapper {
    width: 90%; /* Breite der Galerie auf der Seite */
    margin: 0 auto;
    text-align: center;
}

.gallery-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 20px 0;
    height: 260px; 
    min-height: 260px;
    overflow-x: auto; /* Erlaubt Scrollen */
    overflow-y: hidden; /* Verhindert vertikales Wackeln */
    background: #f9f9f9; 
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    position: relative;
    justify-content: flex-start;
    gap: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Versteckt Scrollbar in Chrome/Safari/EDGE */
.gallery-container::-webkit-scrollbar {
    display: none;
    width: 0 !important;  /* Erzwingt Breite 0 */
    height: 0 !important; /* Erzwingt Höhe 0 */ 
}
/* Speziell für Galerien, die zentriert sein sollen */
.gallery-centered {
    justify-content: center !important; /* Erzwingt Zentrierung */
}

/* Falls es auf dem Handy zu breit wird, schaltet der Browser automatisch 
   auf Links-Anschlag um, damit man scrollen kann */
@media (max-width: 600px) {
    .gallery-centered {
        justify-content: flex-start !important;
    }
}
/* BILDER (THUMBNAILS) */

/* THUMBNAILS - Fix: Feste Breite für CLS-Stabilität */
.thumbnail {
    flex-shrink: 0;
    height: 240px;
    /* Wir geben eine feste Breite passend zum A4-Format (240 / 1.41) */
    width: 170px; 
    aspect-ratio: 170 / 240; 
    object-fit: cover; /* Sorgt dafür, dass Bilder den Platz sauber füllen */
    background-color: #eee;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
    position: relative;
    z-index: 5;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* MODAL (BILD-VERGRÖẞERUNG) */
.modal {
    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;
	pointer-events: none; /* Das Modal lässt Klicks "durch" */
}

.modal[style*="display: flex"], 
.modal[style*="display: block"] {
    pointer-events: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.nav-prev, .nav-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    user-select: none;
    z-index: 1001;
}

.nav-prev { left: 10px; }
.nav-next { right: 10px; }

.nav-prev:hover, .nav-next:hover {
    background-color: rgba(0,0,0,0.8);
}

@media (max-width: 600px) {
    .nav-prev, .nav-next {
        font-size: 30px;
        padding: 10px;
        background-color: rgba(0,0,0,0.3); /* Dezenter auf dem Handy */
    }
}

/* Diese Klasse verhindert das Scrollen auf allen Ebenen */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}
#image-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 16px;
    z-index: 1002;
    font-family: Arial, sans-serif;
}

#swipe-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: opacity 1s ease; /* Ermöglicht das sanfte Ausblenden */
    pointer-events: none;
}

.legal-content {
    background-color: #ffffff; /* Weißer Hintergrund für den Text */
    color: #333333;           /* Dunkle Schrift für guten Kontrast */
    padding: 40px;
    width: 90%;               /* Fast volle Breite auf Handys */
    max-width: 700px;         /* Begrenzung auf großen Bildschirmen */
    max-height: 80vh;         /* Maximal 80% der Bildschirmoberfläche hoch */
    overflow-y: auto;         /* Scrollbar innerhalb des Fensters, falls Text zu lang */
    border-radius: 12px;      /* Abgerundete Ecken */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Schatten für Tiefe */
    position: relative;
    text-align: left;         /* Text bleibt immer linksbündig */
}

/* Das Schließen-X innerhalb des weißen Kastens schwarz färben */
.legal-content .close {
    color: #333;
    position: absolute;
    top: 10px;
    right: 15px;
}

/* Container in der Speisekarte transparent machen */
#menu .gallery-container {
    background: transparent !important;
}

/* Und falls die Platzhalter der Bilder noch stören: */
#menu .thumbnail {
    background-color: transparent !important;
}

.close {
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* FOOTER STRUKTUR */
.footer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px 0;
}

.footer-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.footer-box h3 {
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* TABELLE */
.opening-table {
    width: 100%;
    border-collapse: collapse;
}

.opening-table td {
    padding: 5px 0;
    font-size: 15px;
}

/* KARTEN-TRICK */
.map-link {
    text-decoration: none;
    color: white; /* Weißer Text für bessere Lesbarkeit */
    display: block;
}

.map-screenshot {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.map-link:hover .map-screenshot {
    transform: scale(1.02);
    border-color: white;
}

.map-link span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8; /* Leicht dezent, aber lesbar */
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 13px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-contact {
    margin-top: 20px;
    line-height: 1.6;
}

.footer-contact a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    font-weight: bold;
}

.footer-contact a:hover {
    text-decoration-color: white;
}

.opening-table td[colspan="2"] {
    text-align: left; /* Stellt sicher, dass breite Zeilen linksbündig sind */
    font-weight: normal;
    color: rgba(255,255,255,0.9);
}

.osm-credits {
    font-size: 10px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6); /* Weiß-transparent auf Grün */
}

.osm-credits a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

/* Alle Links im Footer einheitlich gestalten */
footer a {
    color: white !important;
    text-decoration: none !important;
    /* Gestrichelte Linie unten */
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    display: inline-block; /* Wichtig für die korrekte Darstellung der Linie */
    padding-bottom: 1px;
    margin-bottom: 2px;
}

/* Hover-Effekt für alle Footer-Links */
footer a:hover {
    border-bottom: 1px solid white;
    opacity: 1;
}

/* Rechtliches im Footer-Boden etwas dezenter */
.footer-bottom a {
    font-size: 13px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Den Link zu OpenStreetMap (OSM) ganz dezent halten */
.osm-credits a {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

/* Die Tabelle selbst auf volle Breite der Box bringen */
.opening-table {
    width: 100%;
    border-collapse: collapse;
}

/* Linke Spalte (Tage): Linksbündig */
.opening-table td:first-child {
    text-align: left;
    padding-right: 10px;
}

/* Rechte Spalte (Zeiten): Rechtsbündig und fett */
.opening-table td:last-child {
    text-align: right;
    font-weight: bold;
}

/* Spezialfall: Zeilen mit colspan (volle Breite) wieder linksbündig */
.opening-table td[colspan="2"] {
    text-align: left;
    font-weight: normal;
    padding-top: 10px;
    padding-bottom: 5px;
}