/**
 * Clean, calm photography layout.
 * - Hero image contained (no cropping)
 * - Gallery tiles cover with aspect ratio
 * - Opened gallery & lightbox use contain, no clipping
 */

:root {
    color-scheme: dark;
    --bg: #0f1115;
    --panel: #14171d;
    --text: #e7e8ea;
    --muted: #9ba0a8;
    --accent: #d2c7a5;
    --border: #1e222b;
    --max-width: 1080px;
    --radius: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 32%),
                radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.04), transparent 30%),
                var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

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

main {
    display: flex;
    flex-direction: column;
    gap: 96px;
    padding: 120px 20px 120px;
    align-items: center;
}

.section-header {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto 32px;
}

.section-header h2 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}


.logo {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
}

.nav a {
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    background: var(--panel);
    outline: none;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: linear-gradient(120deg, #1a1d24, #14171d);
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.hero-cta:active {
    transform: translateY(1px);
}

.hero-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    letter-spacing: -0.04em;
}

.hero .lede {
    margin: 0;
    color: var(--text);
    max-width: 640px;
    font-size: clamp(1.05rem, 2.3vw, 1.4rem);
    line-height: 1.7;
    font-weight: 500;
}

.hero-visual {
    margin: 0;
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: saturate(0.94);
}

.galerie {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.grid img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.grid figure:hover img {
    transform: scale(1.02);
}

.gallery-tiles {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Galerie-Kacheln: ruhiger, gleichmäßiger Zuschnitt */
.gallery-tiles img {
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* Masonry artige Ansicht für geöffnete Galerien */
.gallery-view .grid {
    display: block;
    column-count: 3;
    column-gap: 16px;
}

.gallery-view .grid figure {
    break-inside: avoid;
    margin: 0 0 16px;
}

.gallery-view .grid img {
    width: 100%;
    height: auto;
}

.gallery-card {
    position: relative;
    cursor: pointer;
}

.gallery-card figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(20, 23, 29, 0.75);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gallery-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-view[hidden] {
    display: none;
}

/* Geöffnete Galerie: Bilder vollständig sichtbar */
.gallery-view img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gallery-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-title {
    margin: 0;
}

.gallery-back {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.gallery-back:hover,
.gallery-back:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

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

.lightbox[hidden] {
    display: none;
}

.lightbox-frame {
    position: relative;
    max-width: min(1080px, 90vw);
    max-height: 95vh;
    width: auto;
    background: #0b0d11;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 95vh;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #0b0d11;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15, 17, 21, 0.88);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.about {
    max-width: var(--max-width);
    width: 100%;
    padding: 36px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about .eyebrow {
    margin: 0 0 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
}

.about h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.about p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.7;
}

.kontakt {
    max-width: var(--max-width);
    width: 100%;
    display: grid;
    gap: 10px;
}

.kontakt h2 {
    margin: 0;
}

.kontakt p {
    margin: 0;
    color: var(--muted);
}

.contact-hint {
    margin: 0;
    color: var(--muted);
}

.contact-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    display: grid;
    gap: 4px;
}

.mail-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.site-footer {
    max-width: var(--max-width);
    width: 100%;
    margin: 80px auto 40px;
    padding: 0 20px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
    gap: 6px;
}

.site-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 18px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.95rem;
    }

    body {
        font-size: 16px;
        line-height: 1.65;
    }

    main {
        padding: 90px 16px 90px;
        gap: 72px;
    }

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

    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 2.6rem);
    }

    .hero .lede {
        font-size: 1.05rem;
        line-height: 1.65;
        max-width: 100%;
    }

    .hero-visual {
        order: 2;
    }

    .hero-text {
        order: 1;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 1.7rem);
    }

    .section-header p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

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

    .gallery-view-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-back {
        width: 100%;
        text-align: center;
    }

    .about,
    .kontakt {
        padding: 28px;
    }

    .about h2,
    .kontakt h2 {
        font-size: clamp(1.4rem, 4vw, 1.7rem);
    }

    .about p,
    .kontakt p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .site-footer {
        padding: 0 16px;
        gap: 8px;
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Tablet-Optimierung: entspannte Abstände, klare Zeilenlängen */
@media (max-width: 1024px) {
    body {
        font-size: 16.5px;
        line-height: 1.65;
    }

    main {
        padding: 110px 18px 100px;
        gap: 80px;
    }

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

    .hero {
        gap: 28px;
    }

    .hero .lede {
        max-width: 560px;
    }

    .about,
    .kontakt {
        padding: 32px;
    }

    .site-header {
        padding: 18px 22px;
    }
}
