body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: #f7f5f0;
    color: #2e2e2e;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../background.jpg"); /* optional */
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.8);
    z-index: -1;
}

.header {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 1;
    background-color: rgba(255,255,255,0.5);
}

/* Home button in header */
.header .home-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    text-decoration: none;
    color: #000;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.08);
}

.header .home-btn svg {
    display: block;
}

.header .home-btn:focus,
.header .home-btn:hover {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* Upload button (right side) */
.upload-form {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.08);
}

.upload-btn input[type="file"] {
    display: none;
}

.upload-btn:focus,
.upload-btn:hover {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* Upload progress */
.upload-progress {
    position: absolute;
    right: 20px;
    top: calc(50% + 44px);
    transform: translateY(-50%);
    width: 160px;
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.upload-progress .bar {
    height: 100%;
    width: 0%;
    background: #000;
    transition: width 0.15s linear;
}

.header h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    margin: 0;
    z-index: 1;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Lightbox Hintergrund */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Versteckt, bis aktiviert */
.hidden {
    display: none;
}

/* Bild in der Lightbox */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Schließen-Button */
.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.lightbox .close:hover {
    opacity: 0.7;
}

/* Navigation Buttons */
.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: opacity 0.2s ease;
}

.lightbox .nav:hover {
    opacity: 0.7;
}

.lightbox .prev {
    left: 30px;
}

.lightbox .next {
    right: 30px;
}


