@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Open+Sans&display=swap');

:root {
    --color-bg: #fefdfb;
    --color-primary: #4f6655;
    --color-secondary: #9bbfa3;
    --color-accent: #dcdcdc;
    --color-text: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; background: var(--color-bg); color: var(--color-text); }
html, body { overflow-x: hidden !important; }

/* Header */
header {
    background: #fff;
    padding: 2rem;
    border-bottom: 1px solid var(--color-accent);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
}

header p {
    color: #7e8c7b;
    margin-top: 0.3rem;
    font-size: 1rem;
}

/* Navigation */
nav {
    margin-top: 1rem;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: var(--color-secondary);
}

/* Mobile Nav */
.burger.open div:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open div:nth-child(2) { opacity: 0; }
.burger.open div:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.burger {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1100;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    margin: 5px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        background: #fff;
        right: 0;
        top: 80px;
        width: 200px;
        flex-direction: column;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    nav.active { display: flex; }
    nav a { margin: 1rem; }
    .burger { display: block; }
}

/* Sections */
section {
    padding: 4rem 2rem;
    position: relative;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-secondary);
    padding-left: 0.5rem;
}

/* Albums */
.album h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem 0;
}

/* Gallery */
.gallery {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.97);
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.lightbox.show {
    opacity: 1;
    transform: scale(1);
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    object-fit: contain;
}

.lightbox span {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* Button */
.show-gallery-btn {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border: none;
    background: var(--color-secondary);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.show-gallery-btn:hover {
    background: #5a7d65;
}

/* Signet */
.signet {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    background: var(--color-secondary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Basic Improvements */
h1, h2, h3 { letter-spacing: 0.5px; }
h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 500; }

.hidden { display: none; }

/* Login Page Modern Style */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--color-bg);
    font-family: 'Open Sans', sans-serif;
    padding: 2rem;
}

.login-wrapper {
    background: #fff;
    border: 1px solid var(--color-accent);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.login-wrapper h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.login-wrapper .subline {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    background: #fefefe;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(155, 191, 163, 0.2);
}

.login-form button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--color-secondary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.login-form button:hover {
    background: var(--color-primary);
}

.error {
    color: #cc0000;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox Download Button */
.lightbox .download-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.lightbox .download-btn:hover {
    background: var(--color-primary);
}

/* Schön zentriert & modern */
.login-wrapper {
    padding: 3.5rem 3rem;
}

.login-form input,
.login-form button {
    width: 100%;
    box-sizing: border-box;
}

.login-wrapper h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.login-wrapper .subline {
    font-size: 1rem;
    color: #666;
}

/* Zentrierte Sections + Album Layout */
section {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.album {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* Galerie Toggle Button */
.gallery-toggle-btn {
    margin: 1rem 0 1.5rem;
    padding: 0.6rem 1.3rem;
    border: none;
    background: var(--color-secondary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-toggle-btn:hover {
    background: var(--color-primary);
}
