body {
    margin: 0;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
}

header {
    padding: 30px;
    text-align: center;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

header input#suche {
    margin-top: 15px;
    padding: 10px 15px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 16px;
}

.galerie-section {
    padding: 20px 40px;
}

.galerie-section h2 {
    margin-bottom: 15px;
    font-size: 28px;
    border-bottom: 2px solid #00aaff;
    display: inline-block;
    padding-bottom: 5px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.img-box {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
    border-radius: 15px;
    cursor: pointer;
}

.img-box:hover img {
    transform: scale(1.07);
    filter: brightness(0.85);
}

.leer {
    font-style: italic;
    color: #aaa;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox .close:hover {
    color: #ff4444;
}
/* ---------- Login Page ---------- */
body.login-body {
    background: linear-gradient(135deg, #111, #333);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #fff;
    font-family: Arial, sans-serif;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    width: 320px;
    animation: fadeIn 1s ease;
}

.login-container input {
    width: 90%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    outline: none;
}

.login-container button {
    margin-top: 20px;
    padding: 12px;
    width: 100%;
    background: #00aaff;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.login-container button:hover {
    background: #0088cc;
}

.error {
    margin-top: 15px;
    color: #ff8080;
}

/* Fade-In Animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}
.familie-section {
    padding: 40px;
    text-align: center;
}

.familie-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 2px solid #00aaff;
    display: inline-block;
    padding-bottom: 5px;
}

.familie-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.person-box {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 10px;
    width: 140px;
    text-align: center;
    transition: transform 0.3s;
}

.person-box:hover {
    transform: scale(1.05);
}

.person-box img {
    width: 100%;
    border-radius: 10%;
    margin-bottom: 10px;
    object-fit: cover;
}

.person-name {
    font-weight: bold;
    margin: 5px 0 0 0;
}

.person-alter {
    color: #aaa;
    margin: 0;
}
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .img-box img {
        border-radius: 10px;
    }

    .familie-gallery {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .person-box {
        width: 120px;
        padding: 8px;
    }

    header input#suche {
        width: 90%;
        font-size: 14px;
        padding: 8px 10px;
    }

    header {
        padding: 20px;
    }
}
@media (max-width: 600px) {
    .lightbox-img {
        max-width: 95%;
        max-height: 70%;
    }

    .lightbox .close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
}
@media (max-width: 600px) {
    .logout-btn {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 14px;
    }

    header h1 {
        font-size: 20px;
    }
}

@media (hover: none) {
    .img-box:hover img,
    .person-box:hover {
        transform: none;
        filter: none;
    }
}
.person-geburtstag{
    font-size:13px;
    color:#aaa;
    margin-top:2px;
}