/* Allgemeine Stile */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin-top: 5px;
    font-size: 1rem;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 30px;
    color: #777;
    font-size: 0.9rem;
}

footer a {
    color: #5c67f2;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-top: 5px;
    font-size: 0.85rem;
}

/* Button-Stil */
.button {
    display: inline-block;
    background-color: #5c67f2; /* Moderner Blauton */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #4a54c4;
}

/* Galerie-Stile */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller base size for thumbnails */
    gap: 15px;
}

.gallery img {
    width: 100%;
    height: 150px; /* Fixed height for uniform look, adjust as needed */
    object-fit: cover; /* Crop images to fit the height */
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Stile für das hervorgehobene Espresso-Bar-Bild */
.gallery .featured-image {
    grid-column: span 2; /* Nimmt 2 Spalten ein */
    grid-row: span 2;    /* Nimmt 2 Zeilen ein */
    height: 315px;       /* Doppelte Höhe eines normalen Bildes (150px) + Gap (15px) */
    object-fit: cover;   /* Bild füllt den Container komplett aus (wird zugeschnitten wenn nötig) */
}

/* Stellen sicher, dass featured-image auch auf Mobilgeräten hervorgehoben wird */
@media (max-width: 768px) {
    .gallery .featured-image {
        grid-column: span 2;
        grid-row: span 2;
        height: 250px; /* Angepasste Höhe für Tablets */
    }
}

@media (max-width: 480px) {
    .gallery .featured-image {
        grid-column: span 2;
        grid-row: span 2;
        height: 205px; /* Angepasste Höhe für Smartphones: 2 × 100px (Bildhöhe) + 5px (Gap) */
    }
}

.gallery img:hover {
    transform: scale(1.05); /* Slightly more zoom on hover for smaller thumbs */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Karten-Seite */
#map {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjust breakpoint */
        gap: 10px;
    }

    .gallery img {
        height: 120px; /* Adjust height for smaller screens */
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Adjust breakpoint */
        gap: 5px;
    }

    .gallery img {
        height: 100px; /* Adjust height for smallest screens */
    }
}

/* Lightbox Stile */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding: 0; /* Kein Padding mehr */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Kein Scrollen */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: 0;
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: contain; /* Zeigt das gesamte Bild, passt es an */
    position: absolute;
    top: 0;
    left: 0;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1050; /* Über dem Bild liegen */
    background-color: rgba(0,0,0,0.5); /* Hintergrund für bessere Sichtbarkeit */
    padding: 5px 15px;
    border-radius: 5px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px; /* Größere Schrift für bessere Sichtbarkeit */
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.6); /* Etwas dunklerer Hintergrund für bessere Sichtbarkeit */
    z-index: 1050; /* Über dem Bild liegen */
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}
