
:root {
    --text: #676464;
    --muted: #666;
    --line: #e9e9e9;
    --max: 1180px;
    --content: 900px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    max-width: var(--max);
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0 16px;
}

.site-nav > a,
.nav-parent > a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a.active,
.nav-parent > a:hover,
.nav-parent.active > a {
    border-bottom-color: var(--text);
}

.nav-parent {
    position: relative;
}

.nav-parent > a::after {
    content: ' ▾';
    font-size: 10px;
    color: var(--muted);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 170px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.submenu a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.submenu a:hover {
    background: #f7f7f7;
}

.nav-parent:hover .submenu,
.nav-parent:focus-within .submenu {
    display: block;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font: inherit;
    padding: 6px;
    cursor: pointer;
}


/* SEITENLAYOUT */

.page-wrap {
    max-width: var(--max);
    margin: auto;
    padding: 46px 24px 72px;
}

.intro {
    max-width: var(--content);
    margin: 0 auto 24px;
}

.intro.center {
    text-align: center;
}

.intro h1,
.intro h2 {
    font-weight: 400;
    letter-spacing: .01em;
    margin: 0 0 8px;
}

.intro h1 {
    font-size: clamp(30px,4.1vw,50px);
    line-height: 1.12;
}

.intro h2 {
    font-size: 27px;
}

.intro h3 {
    font-weight: 400;
    margin: 6px 0;
}

.intro p {
    margin: 4px 0;
}

.intro .membership {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

.intro .membership a {
    text-underline-offset: 3px;
}

.muted {
    color: var(--muted);
}


/* HOME – AKTUELL */

.intro.aktuell {
    max-width: 900px;
    margin: 35px auto 55px;
    text-align: center;
}

.aktuell-werk {
    margin: 32px auto 28px;
    text-align: center;
}
.aktuell-werk img {
    display: block;
    width: auto;
    height: 450px;
    max-width: 100%;
    margin: 0 auto;
}
.aktuell-flyer {
    margin: 32px auto 0;
    text-align: center;
}

.aktuell-werk img {
    display: block;
    width: 420px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* HERO */

.hero {
    max-width: 960px;
    margin: 0 auto 26px;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
}


/* HOME – KARTEN */

.section-title {
    max-width: var(--content);
    margin: 36px auto 14px;
    font-weight: 400;
    font-size: 26px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.card h3 {
    font-size: 19px;
    font-weight: 400;
    margin: 7px 0 1px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}


/* GALERIEN */

.gallery {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 20px;
    row-gap: 14px;
    align-items: start;
}

.artwork {
    margin: 0 0 2px;
}

.image-button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: none;
    cursor: zoom-in;
}

.artwork img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: contain;
    background: #fafafa;
}

.artwork figcaption {
    font-size: 13px;
    line-height: 1.3;
    color: var(--text);
    margin-top: 4px;
}


/* TEXTSEITEN */

.text-section {
    max-width: var(--content);
    margin: 0 auto 20px;
}

.text-section h2,
.text-section h3 {
    font-weight: 400;
    margin: 17px 0 4px;
}

.text-section p {
    margin: 4px 0;
}

.subnav {
    max-width: var(--content);
    margin: 0 auto 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.subnav a {
    color: var(--text);
    text-underline-offset: 4px;
}


/* AUSSTELLUNGEN UND CV */

.exhibitions,
.cv {
    max-width: var(--content);
    margin: 0 auto;
}

.exhibitions h1,
.cv h1 {
    font-weight: 400;
    margin: 0 0 14px;
}

.exhibitions h2,
.exhibitions h3,
.cv h2,
.cv h3 {
    font-weight: 400;
    margin: 20px 0 6px;
}

.exhibitions p,
.cv p {
    margin: 4px 0;
}


/* KONTAKT */

.contact-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 42px;
}

.contact-grid h1,
.contact-grid h3 {
    font-weight: 400;
    margin-top: 0;
}

.contact-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 4px;
    padding: 10px 11px;
    border: 1px solid #ccc;
    background: #fff;
    font: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    border: 1px solid #222;
    background: #222;
    color: #fff;
    padding: 10px 20px;
    font: inherit;
    cursor: pointer;
}

.notice {
    padding: 12px 14px;
    border: 1px solid var(--line);
    margin: 0 0 16px;
}

.notice.success {
    border-color: #7da483;
}

.notice.error {
    border-color: #ba7777;
}

.honeypot {
    position: absolute;
    left: -9999px;
}


/* FOOTER */

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    max-width: var(--max);
    margin: auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner a {
    color: inherit;
    margin-left: 16px;
}


/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    right: 18px;
    top: 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

.legal {
    max-width: var(--content);
    margin: auto;
}

.legal h1,
.legal h2 {
    font-weight: 400;
}

.legal a {
    color: inherit;
}


/* TABLET / KLEINERE BILDSCHIRME */

@media (max-width:980px) {

    .header-inner {
        padding: 13px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 20px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav > a,
    .nav-parent > a {
        font-size: 14px;
        padding: 8px 0;
    }

    .nav-parent {
        width: 100%;
    }

    .nav-parent > a::after {
        display: none;
    }

    .submenu {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0 0 4px 15px;
    }

    .submenu a {
        font-size: 13px;
        padding: 6px 0;
        color: var(--muted);
    }

    .page-wrap {
        padding: 36px 20px 58px;
    }

    .gallery {
        grid-template-columns: 1fr;
        row-gap: 13px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-inner {
        padding: 20px;
        flex-direction: column;
    }

    .footer-inner a {
        margin: 0 16px 0 0;
    }
}


/* SMARTPHONE */

@media (max-width:560px) {

    body {
        font-size: 15px;
    }

    .page-wrap {
        padding-top: 30px;
    }

    .intro {
        margin-bottom: 20px;
    }

    .intro h1 {
        font-size: 33px;
    }

    .hero {
        margin-bottom: 22px;
    }

    .gallery {
        row-gap: 11px;
    }

    .artwork figcaption {
        margin-top: 3px;
    }

    .section-title {
        margin-top: 30px;
    }

    .lightbox {
        padding: 18px;
    }

    .aktuell-werk img {
        max-width: 220px;
    }

    .aktuell-flyer img {
        max-width: 100%;
    }
}