:root {
    --page-bg: #f7f7f5;
    --panel-bg: #ffffff;
    --text: #2f2f2f;
    --muted: #626161;
    --line: rgba(47, 47, 47, 0.12);
    --soft: #ededed;
    --shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

/* Allgemeine Einstellungen */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container für die mittige Ausrichtung */
.container {
    width: min(1100px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 0 0 12px;
}

/* Header-Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--line);
}

.logo {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--muted);
    font-size: clamp(0.8rem, 0.7rem + 0.45vw, 1rem);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--text);
    text-decoration: none;
}

/* Hauptinhalt */
main {
    margin-top: 18px;
}

section {
    padding: 8px 0 40px;
}

section h1 {
    font-size: clamp(2rem, 1.5rem + 1vw, 2.8rem);
    margin: 0 0 18px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 700;
}

section h2 {
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.7rem);
    margin: 0 0 12px;
    line-height: 1.2;
    color: var(--text);
}

section h3 {
    font-size: clamp(1rem, 0.92rem + 0.28vw, 1.15rem);
    font-weight: 700;
    margin: 0 0 20px;
    text-align: left;
    color: var(--text);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 6px 0 22px;
    border-radius: 50%;
    background: #d9d9d9;
    color: #5f5f5f;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.instagram-link:hover {
    background: #cfcfcf;
    color: #3f3f3f;
    transform: translateY(-1px);
}

.instagram-icon {
    width: 22px;
    height: 22px;
    display: block;
}

section p {
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    margin: 0 0 20px;
    text-align: left;
    color: var(--text);
    max-width: 70ch;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    background: var(--soft);
    width: 100%; /* Bild füllt die volle Breite */
    height: auto; /* Seitenverhältnis beibehalten */
    display: block; /* Entfernt zusätzliche Abstände */
}

/*Gallery*/

.events {
  display: block;
  width: min(100%, 920px);
  height: 500px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto 18px;
  background: var(--soft);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 12px 0 20px;
}

.gallery-item {
    width: 100%;
    height: clamp(150px, 16vw, 240px);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.2s ease;
    border-radius: 8px;
    background: var(--soft);
    -webkit-tap-highlight-color: transparent;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 24px;
}

.lightbox-content {
    max-width: min(92vw, 900px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: clamp(2rem, 1.5rem + 1vw, 2.5rem);
    cursor: pointer;
    line-height: 1;
}

/* Responsive / Mobile rules */
@media (max-width: 900px) {
    .container {
        width: min(100% - 20px, 1100px);
        margin-top: 18px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 12px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        justify-content: flex-start;
        gap: 8px 12px;
    }

    nav ul li a {
        display: inline-block;
        padding: 6px 0;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
    }

    .gallery-item {
        height: clamp(120px, 24vw, 180px);
    }

    .events {
        height: auto;
        max-height: 500px;
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .container {
        width: min(100% - 16px, 1100px);
        margin-top: 12px;
    }

    header {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 12px;
    }

    .logo {
        font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    }

    .nav-toggle {
        display: flex;
    }

    header .site-nav {
        display: none;
        width: 100%;
        margin-top: 12px;
    }

    header.open .site-nav {
        display: block;
    }

    header.open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header.open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 0.85rem;
    }

    section {
        padding-bottom: 28px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px 0 16px;
    }

    .gallery-item {
        height: 140px;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 85vh;
    }

    .close {
        top: 12px;
        right: 12px;
    }
}