/* --- 1. BASIS EINSTELLUNGEN --- */
body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #000000;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER SETUP --- */
header {
    background-color: #ffffff;
    color: #000000;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px;
}

header h1 {
    font-size: 6rem; /* Deine gewünschte Größe */
    margin: 0;
    font-weight: 100;
    letter-spacing: -2px;
}

/* --- HEADER --- */
header {
    background-color: #ffffff;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

header h1 {
    font-size: 6rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: -2px;
}

/* --- MENU CONTAINER & ICON --- */
.menu-container {
    display: flex;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 2100; /* Ganz oben */
}

.bar {
    width: 40px;
    height: 2px;
    background-color: #000000;
    transition: all 0.4s ease;
}

/* --- HOVER & KLICK LOGIK --- */

/* 1. Transformation zum X bei Hover ODER Klick */
.menu-container:hover .bar:nth-child(1),
#menu-toggle:checked ~ .burger-icon .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-container:hover .bar:nth-child(2),
#menu-toggle:checked ~ .burger-icon .bar:nth-child(2) {
    opacity: 0;
}
.menu-container:hover .bar:nth-child(3),
#menu-toggle:checked ~ .burger-icon .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- NAV MENÜ --- */
.nav-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 100%;
    height: 0;
    background-color: #ffffff;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2000;
}

/* 2. Menü öffnet sich bei HOVER */
.menu-container:hover .nav-menu {
    height: 350px;
}

/* 3. Menü SCHLIEẞT SICH bei Klick (Checkbox aktiviert) */
/* Wir nutzen die Checkbox hier quasi als "Override", um das Menü zu verstecken */
#menu-toggle:checked ~ .nav-menu {
    height: 0 !important;
}

/* Damit das X beim Klick wieder zum Burger wird (Reset Optik) */
#menu-toggle:checked ~ .burger-icon .bar {
    transform: none !important;
    opacity: 1 !important;
}

.nav-menu ul {
    list-style: none;
    padding:40px 20px 20px 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start; /* Schrift links */
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    font-size: 6rem;
    font-weight: 400;
    letter-spacing: -3px;
    line-height: 0.9;
}

.nav-menu a:hover {
    color: #c32398;
}

/* Responsive */
@media (max-width: 900px) {
    header h1, .nav-menu a { font-size: 3rem; }
    .nav-menu { max-width: 100%; }
}



/* --- FULL WIDTH GALLERY GRID (QUERFORMAT) --- */
.gallery-fullwidth {
    display: grid;
    /* 4 Spalten sorgen für 7 Zeilen bei 28 Bildern */
    grid-template-columns: repeat(4, 1fr); 
    width: 100%;
    gap: 0px; 
    background-color: #000000;
}

.gallery-item {
    position: relative;
    width: 100%;
    /* WICHTIG: 7:5 erzeugt ein harmonisches Querformat */
    aspect-ratio: 7 / 5; 
    overflow: hidden;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt das Querformat perfekt aus */
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Titel-Box unten rechts */
.title-box {        
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 300;
    z-index: 10;
    border-top-left-radius: 7px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .gallery-fullwidth {
        grid-template-columns: repeat(3, 1fr); /* 3 Spalten auf kleineren Monitoren */
    }
}

@media (max-width: 800px) {
    .gallery-fullwidth {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
    }
}

@media (max-width: 500px) {
    .gallery-fullwidth {
        grid-template-columns: 1fr; /* 1 Spalte auf Handys */
    }
}





/* --- 4. FOOTER --- */
.main-footer {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 40px;
    margin-top: 0px; /* Direkt an Galerie anschließend */
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.footer-links li {
    line-height: 0.85;
}

.footer-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 6rem; 
    font-weight: 400;
    letter-spacing: -3px;
    display: block;
    transition: color 0.3s ease;
}   

.footer-links a:hover {
    color: #c32398;
}

/* --- 5. RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    header h1, .footer-links a {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        grid-template-columns: 1fr; /* 1 Spalte auf dem Handy */
    }
    header h1, .footer-links a {
        font-size: 2.5rem;
    }
}