/* Allgemeine Stile */
body {
    font-family: Arial, serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
}

/* Header Layout */
header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: 60px 30px;

}

/* Linke Navigation */
.nav-left {
    display: flex;
    gap: 30px;
    flex-grow: 1; /* Sorgt für Ausgleich auf der linken Seite */
    padding-left:100px; 
}


.nav-left a {
    text-decoration: none;
    color: black;
    font-size: 12px;
    font-weight: 500;
    position: relative;
}
/* Unterstreichung beim Hover */
.nav-left a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background-color: black;
}

/* Logo in der Mitte */
.logo {
    position: absolute; /* Logo wird absolut zentriert */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    text-decoration: none; /* Entfernt die Standard-Unterstreichung von Links */
    color: black; /* Stellt sicher, dass die Schriftfarbe bleibt */

}

.logo h1 {
    font-family: 'Unbounded', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 38px;
    margin: 0;
    font-weight: lighter;
    margin-bottom:0; 
}

.logo p {
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 0; 
}

/* Rechte Navigation */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1; /* Gleicher Platz wie links */
    justify-content: flex-end;
    padding-right: 100px;
}

.nav-right img {
    width: 20px;
    height: 20px;
}


/* --- Hamburger Menü für Mobile --- */
.menu-icon {
    font-size: 34px;
    cursor: pointer;
    user-select: none;
    display: none; /* Standardmäßig versteckt */
    position: absolute;
    top: 50%;  /* Vertikale Zentrierung */
    right: 20px; /* Näher an den rechten Rand setzen */
    transform: translateY(-50%); /* Perfekte Zentrierung mit dem Logo */
}

/* --- Mobile Navigation (versteckt & rechts ausklappend) --- */

/* --- Mobile Navigation (modernes, schwebendes Menü) --- */
.mobile-nav {
    position: fixed;
    top: 10px; /* Abstand zum oberen Rand */
    right: -100%;
    width: 150px; /* Größer für bessere Sichtbarkeit */
    height: auto;
    background: rgba(255, 255, 255, 0.9); /* Halbtransparenter Hintergrund */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Schwebender Effekt */
    border-radius: 10px; /* Abgerundete Ecken */
    backdrop-filter: blur(10px); /* Weichzeichner-Effekt */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: right 0.4s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1000; /* Bleibt über anderen Elementen */
    opacity: 0; /* Unsichtbar, bis es aktiv ist */
}

/* --- Sichtbar machen, wenn das Menü geöffnet ist --- */
.mobile-nav.open {
    right: 10px; /* Menü fährt von rechts leicht ins Bild */
    opacity: 1; /* Menü wird sichtbar */
}

/* --- Links im Menü --- */
.mobile-nav a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    padding: 12px 0;
    font-weight: bold;
    width: 100%;
    text-align: center;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    border-radius: 5px;
}

.mobile-nav a:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05); /* Leicht vergrößert beim Hover */
}

.instagram-link {
    font-size: 24px;
    color: black;
    text-decoration: none;
}

.instagram-link:hover {
    color: #E1306C;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 8px;         /* Muss zu deinem JS-ROW_HEIGHT passen */
    column-gap: 20px;            /* horizontal unverändert */
    row-gap: 10px;               /* vertikal KLEINER (vorher 20px) */
    padding: 40px 80px 48px;     /* optional: auch oben/unten etwas knapper */
    grid-auto-flow: row dense;
}


.gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.2s ease;
    /* Masonry: span wird via JS gesetzt (grid-row-end) */
}

.gallery img.loaded {
    opacity: 1;
    transform: scale(1);
}


.lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; 
    cursor: pointer;
}


.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


@media (max-width: 1024px)  {

    header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 1rem; 
        
    }
   
    .nav-left, .nav-right a {
        display: none;
    }

  
    .menu-icon {  
        display: block;
        right: 15px;
    }
    .logo p {
        margin-top: 2px; 
        margin-bottom: 0; 
        font-size: 0.5rem;
    }

    .logo{      
        position: absolute;
        top: 25%; 
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        margin-bottom: 0;
    }
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
        margin-top: 10px;
    }
    
    .gallery img {
        margin-bottom: 0px; /* Weniger Abstand zwischen Bildern */
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 28px; /* Kleinere Schriftgröße für mobile Ansicht */
    }
    .gallery img {
        margin-bottom: 10px; /* Weniger Abstand zwischen den Bildern */
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
      }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 28px; /* Noch kleiner für sehr kleine Geräte */
    }
    .gallery {
        grid-template-columns:repeat(2, 1fr);
        
      }
}
