:root {
    --header-height: 70px;
    --main-color:    #2f5d50;
    --accent-color:  #6fa8a8;
    --light-accent:  #8fd6d6;
    --text-color:    #2f3e3e;
    --gap:           16px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.92)),
        url("BILDER/berge.jpg") center / cover no-repeat fixed;
    padding-top: var(--header-height);
    color: var(--text-color);
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    padding: 0 30px;
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo img {
    border-radius: 8px;
    transition: 0.3s;
}
.logo img:hover {
    transform: scale(1.15) rotate(3deg);
}

.title {
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
}

.navbar-collapse { justify-content: flex-end; }

.nav-link {
    color: var(--main-color);
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover      { background: rgba(47,93,80,0.08); }
.nav-link.active     { font-weight: 600; background: rgba(47,93,80,0.12); }
.nav-link::after     { display: none; }
.navbar-nav          { gap: 4px; }

.navbar-toggler {
    border: 1.5px solid rgba(47,93,80,0.4);
    border-radius: 8px;
    padding: 6px 10px;
    margin-left: auto;
    transition: background 0.2s;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(47,93,80,0.15); }
.navbar-toggler:hover { background: rgba(47,93,80,0.08); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232f5d50' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

main {
    padding: 50px 30px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 36px;
}
.gallery-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 8px;
}
.gallery-header p {
    color: #6a8c88;
    font-size: 1rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(47,93,80,0.25);
    color: var(--main-color);
    border-radius: 50px;
    padding: 8px 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: var(--gap);
}

.gallery-card--wide {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-card--tall {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transition: transform 0.35s, box-shadow 0.35s;
    cursor: pointer;
  
    display: flex;
}

.gallery-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}


.gallery-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;  
    overflow: hidden;
    flex: 1;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.06);
}


.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(47,93,80,0.80) 0%,
        rgba(47,93,80,0.30) 55%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.35s;
}
.gallery-card:hover .gallery-overlay { 
    opacity: 1; 
}

.gallery-overlay i    { 
    font-size: 1.8rem; 
}
.gallery-overlay span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.gallery-card.hidden { 
    display: none; 
}


.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open { 
    display: flex;
 }

.lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 14px 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--main-color);
    transform: translateY(-50%) scale(1.1);
}

/* Lightbox Caption */
.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    pointer-events: none;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px);
    text-align: center;
    padding: 40px;
    color: #7a9a97;
    font-size: 0.88rem;
}
footer a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
footer a:hover { color: var(--accent-color); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    .gallery-card--wide { grid-column: span 2; grid-row: span 2; }
    .gallery-card--tall { grid-column: span 1; grid-row: span 2; }
}

@media (max-width: 600px) {
    main { padding: 30px 15px 60px; }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    /* Auf Mobile alle Karten gleich groß */
    .gallery-card--wide,
    .gallery-card--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(12px);
        border-radius: 12px;
        margin-top: 10px;
        padding: 12px;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }
    .navbar-nav { gap: 2px; }
    .nav-link {
        padding: 10px 14px;
        font-size: 1rem;
    }
}
