/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #f4f4f4;
}

/* =========================
   BODY
========================= */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   HEADER
========================= */
header.site-header {
    background: #222;
    color: white;

    padding: 3px 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 9999;

    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 8px; /* Abstand zwischen Logo und Text */
}

.logo-title a {
    display: block;
}

.site-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

/* =========================
   NAVIGATION
========================= */
nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

nav a {
    color: white;
    text-decoration: none;

    padding: 5px 8px;
    border-radius: 6px;

    font-size: 13px;
    transition: background 0.2s ease;
}

nav a:hover {
    background: #333;
}

/* =========================
   CONTENT
========================= */
.site-content {
    flex: 1;

    max-width: 1100px;
    width: 100%;

    margin: 90px auto 40px auto;
    padding: 25px;

    background: #fff;
    border-radius: 12px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* =========================
   FOOTER
========================= */
footer.site-footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 12px;

    margin-top: auto;
}

/* =========================
   AVATARE (MITGLIEDER)
========================= */
.avatar-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;

    border-radius: 50%;
    cursor: pointer;

    display: block;
}

/* =========================
   GALERIE
========================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.gallery-grid img {
    width: 100%;
    height: auto;

    object-fit: contain;

    border-radius: 10px;
    display: block;
    background: #f4f4f4;
}

/* =========================
   SAFETY FIX
========================= */
.site-content img {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

.month-block {
    scroll-margin-top: 90px;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;

    z-index: 99999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;

    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* =========================
   FORM GLOBAL FIX
========================= */
input,
select,
textarea {
    display: block;
    width: 100%;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    header.site-header {
        flex-direction: column;
        padding: 15px;
    }

    .site-logo {
        height: 90px;
        margin-bottom: 10px;
    }

    nav {
        justify-content: center;
    }

    .site-content {
        margin-top: 220px;
    }

    .month-block {
        scroll-margin-top: 220px;
    }
}