:root {
    --bg: #0b0b0b;
    --surface: #131313;
    --text: #f3f3f0;
    --muted: #9a9a94;
    --line: rgba(255,255,255,.14);
    --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px var(--pad);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.05rem; font-weight: 760; letter-spacing: -.04em; }
.brand-sub { margin-top: 5px; color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .16em; }
.site-nav { display: flex; gap: 26px; align-items: center; font-size: .9rem; }
.site-nav a { color: var(--muted); transition: color .2s ease; }
.site-nav a:hover, .site-nav .active { color: var(--text); }
.nav-toggle { display: none; border: 0; background: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text); margin: 6px 0; }

.hero {
    min-height: 64vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(80px, 12vw, 170px) var(--pad) clamp(60px, 8vw, 110px);
    border-bottom: 1px solid var(--line);
}
.hero-kicker, .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; margin-bottom: 18px; }
.hero h1, .content-page h1, .legal-page h1 {
    margin: 0;
    font-size: clamp(3.5rem, 10vw, 10rem);
    line-height: .86;
    letter-spacing: -.075em;
    font-weight: 650;
}
.hero p { margin: 30px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); }

.gallery-wrap { padding: var(--pad); }
.masonry-gallery { columns: 3 320px; column-gap: 14px; }
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0 0 14px;
    break-inside: avoid;
    background: var(--surface);
}
.gallery-item img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(transparent 55%, rgba(0,0,0,.68));
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-overlay span { font-size: .9rem; letter-spacing: .02em; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.empty-state { padding: 8vw 0; color: var(--muted); }
.empty-state code { color: var(--text); }

.content-page {
    min-height: 72vh;
    padding: clamp(100px, 12vw, 180px) var(--pad);
}
.about-grid, .contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(40px, 10vw, 160px); align-items: start; }
.content-page h1 { font-size: clamp(3.2rem, 7vw, 7.5rem); }
.copy-large { max-width: 680px; font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.45; }
.copy-large p:first-child { margin-top: 0; }
.muted { color: var(--muted); font-size: .68em; }
.contact-card { padding-top: 34px; font-size: 1.1rem; }
.big-link { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.25rem, 2.4vw, 2rem); }
.big-link:hover { opacity: .65; }

.legal-page { max-width: 960px; padding: clamp(100px, 12vw, 170px) var(--pad); min-height: 70vh; }
.legal-page h1 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 50px; }
.legal-page p { max-width: 720px; color: #c7c7c1; }

.site-footer {
    padding: 30px var(--pad);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: var(--muted);
    font-size: .78rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 780px) {
    .site-header { padding-block: 14px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px var(--pad) 24px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
    .site-nav.open { display: flex; }
    .site-nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .hero { min-height: 72vh; }
    .about-grid, .contact-layout { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
    .footer-links { flex-wrap: wrap; }
}

@media (hover: none), (pointer: coarse) {
    .gallery-overlay { display: none; }
    .gallery-item:hover img { transform: none; }
}

/* ---------- Flexible Navigation / Footer / Full-height layout ---------- */
html, body { min-height: 100%; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.site-footer { margin-top: auto; }

.site-nav a,
.footer-links a,
.big-link-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.link-icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}
.external-mark { margin-left: -3px; opacity: .75; }

/* Kurze Unterseiten füllen den freien Bildschirm und zentrieren ihren Inhalt. */
.content-page,
.legal-page {
    flex: 1 0 auto;
}
.content-page {
    display: grid;
    align-content: center;
}
.legal-page {
    width: 100%;
    margin-block: auto;
}

/* ---------- About ---------- */
.about-page {
    gap: clamp(55px, 8vw, 110px);
}
.about-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}
.about-image {
    grid-column: span 6;
    margin: 0;
    overflow: hidden;
    background: var(--surface);
}
.about-image:nth-child(3n) { grid-column: span 12; }
.about-image img {
    width: 100%;
    height: clamp(300px, 42vw, 680px);
    object-fit: cover;
}
.about-image:nth-child(3n) img { height: clamp(360px, 52vw, 820px); }
.about-image figcaption {
    padding: 10px 2px 0;
    color: var(--muted);
    font-size: .78rem;
}

/* ---------- Kontakt ---------- */
.contact-page { padding-top: clamp(85px, 9vw, 140px); padding-bottom: clamp(85px, 9vw, 140px); }
.contact-layout { align-items: center; }
.contact-intro {
    max-width: 620px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
}
.contact-sections {
    display: grid;
    gap: clamp(38px, 5vw, 70px);
}
.contact-group {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    background: var(--surface);
}
.contact-group-heading { margin-bottom: 12px; }
.contact-group-heading .eyebrow { margin-bottom: 8px; }
.contact-group h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2vw, 2.15rem);
    font-weight: 560;
    letter-spacing: -.035em;
}
.big-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.big-link small {
    color: var(--muted);
    font-size: .42em;
    text-align: right;
    font-weight: 400;
}

@media (max-width: 780px) {
    .site-nav a { display: flex; align-items: center; gap: 10px; }
    .content-page { align-content: start; }
    .about-gallery { grid-template-columns: 1fr; }
    .about-image,
    .about-image:nth-child(3n) { grid-column: auto; }
    .about-image img,
    .about-image:nth-child(3n) img { height: auto; aspect-ratio: 4 / 3; }
    .contact-layout { align-items: start; }
    .big-link { align-items: flex-start; }
    .big-link small { max-width: 55%; }
    .footer-links a { gap: 6px; }
}

/* ---------- v3: Icon-only links, Hero image data, compact contact ---------- */
.site-nav a.icon-only,
.footer-links a.icon-only {
    justify-content: center;
    gap: 0;
}
.site-nav a.icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
}
.footer-links a.icon-only {
    width: 28px;
    height: 28px;
}
.site-nav a.icon-only .link-icon,
.footer-links a.icon-only .link-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.hero-with-image {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0b0b0b;
}
.hero-background {
    position: absolute;
    inset: -2%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
}
.hero-with-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(5,5,5,.78) 0%, rgba(5,5,5,.54) 46%, rgba(5,5,5,.66) 100%);
}
.hero-with-image .hero-kicker,
.hero-with-image p { color: rgba(255,255,255,.72); }
.hero-with-image .hero-content { max-width: 1100px; }

.gallery-info { max-width: 100%; }
.gallery-meta-combined {
    display: block;
    color: #fff;
    font-size: .9rem;
    line-height: 1.35;
    text-shadow: 0 1px 12px rgba(0,0,0,.5);
}

.contact-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: clamp(58px, 6vw, 92px);
    padding-bottom: clamp(58px, 6vw, 92px);
}
.contact-background {
    position: absolute;
    inset: -2%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
}
.contact-with-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7,7,7,.74), rgba(7,7,7,.66));
}
.contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    gap: clamp(34px, 7vw, 100px);
}
.contact-page h1 {
    font-size: clamp(3rem, 6vw, 6.4rem);
}
.contact-intro {
    margin-top: 22px;
    max-width: 540px;
}
.contact-sections {
    gap: 16px;
}
.contact-group {
    padding: clamp(16px, 2vw, 23px);
    background: rgba(14,14,14,.58);
    backdrop-filter: blur(8px);
}
.contact-group-heading { margin-bottom: 4px; }
.contact-group-heading .eyebrow { margin-bottom: 0; }
.contact-group h2 {
    margin: 0 0 4px;
    font-size: clamp(.78rem, 1vw, .9rem);
    font-weight: 560;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(255,255,255,.68);
}
.contact-group .big-link {
    padding: 12px 0;
    font-size: clamp(1.05rem, 1.65vw, 1.4rem);
}
.contact-group .big-link small { font-size: .5em; }

@media (max-width: 780px) {
    .site-nav a.icon-only {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        padding: 13px 0;
    }
    .contact-page {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .contact-layout { grid-template-columns: 1fr; gap: 34px; }
    .contact-group { padding: 16px; }
}

/* ---------- v3.2: responsive icon labels + text-only footer ---------- */
@media (min-width: 781px) {
    .site-nav a.icon-only .nav-label,
    .site-nav a.icon-only .external-mark {
        display: none;
    }
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
}

@media (max-width: 780px) {
    .site-nav a.icon-only .nav-label,
    .site-nav a.icon-only .external-mark {
        display: inline;
    }
    .site-nav a.icon-only {
        gap: 10px;
    }
}


/* ---------- v3.3: konfigurierbare Seiten-Hintergründe ---------- */
.about-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.about-background {
    position: absolute;
    inset: -2%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
}
.about-with-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7,7,7,.82), rgba(7,7,7,.69));
}
.about-with-image .about-grid {
    position: relative;
    z-index: 1;
}
.about-with-image .about-image {
    position: relative;
    z-index: 1;
}

/* ---------- v3.4: About Story + eigene Arbeitsgalerie ---------- */
.about-page {
    display: block;
    padding-top: clamp(72px, 8vw, 120px);
    padding-bottom: clamp(72px, 9vw, 140px);
}
.about-intro-block {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin-bottom: clamp(70px, 10vw, 150px);
}
.about-intro-block h1 {
    max-width: 1050px;
}
.about-intro-block > p {
    margin: 28px 0 0;
    color: rgba(255,255,255,.7);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}
.about-story {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(70px, 10vw, 150px);
}
.about-story-row {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: clamp(36px, 7vw, 105px);
    align-items: center;
}
.about-story-row--reverse .about-story-copy { order: 2; }
.about-story-row--reverse .about-story-image { order: 1; }
.about-story-row--text-only {
    grid-template-columns: minmax(0, 760px);
}
.about-story-row--text-only:nth-child(even) {
    justify-content: end;
}
.about-story-copy {
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(10,10,10,.52);
    backdrop-filter: blur(10px);
}
.about-story-number {
    margin-bottom: 20px;
    color: rgba(255,255,255,.45);
    font-size: .7rem;
    letter-spacing: .18em;
}
.about-story-copy h2,
.about-extra-heading h2 {
    margin: 0 0 24px;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 620;
}
.about-story-copy p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.78);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.7;
}
.about-story-copy p:last-child { margin-bottom: 0; }
.about-story-copy a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.42);
    text-underline-offset: .18em;
    transition: text-decoration-color .2s ease, opacity .2s ease;
}
.about-story-copy a:hover {
    text-decoration-color: #fff;
    opacity: .78;
}
.about-signoff {
    padding-top: 10px;
    color: #fff !important;
}
.about-story-image {
    margin: 0;
    min-width: 0;
}
.about-story-image img {
    width: 100%;
    height: clamp(420px, 55vw, 820px);
    object-fit: cover;
    background: var(--surface);
}
.about-story-image figcaption,
.about-image figcaption {
    padding: 10px 2px 0;
    color: rgba(255,255,255,.58);
    font-size: .76rem;
}
.about-extra-gallery {
    position: relative;
    z-index: 1;
    margin-top: clamp(90px, 13vw, 180px);
}
.about-extra-heading {
    max-width: 760px;
    margin-bottom: clamp(34px, 5vw, 65px);
}
.about-extra-heading h2 { margin-bottom: 0; }
.about-extra-gallery .about-gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .about-story-row,
    .about-story-row--text-only {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-story-row--reverse .about-story-copy,
    .about-story-row--reverse .about-story-image {
        order: initial;
    }
    .about-story-image img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 780px) {
    .about-page {
        padding-top: 52px;
        padding-bottom: 72px;
    }
    .about-intro-block {
        margin-bottom: 62px;
    }
    .about-intro-block h1 {
        font-size: clamp(3rem, 17vw, 5.4rem);
    }
    .about-story {
        gap: 58px;
    }
    .about-story-copy {
        padding: 22px;
    }
    .about-story-copy h2 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }
    .about-extra-gallery {
        margin-top: 78px;
    }
}

/* ---------- v3.5: kompakte About-Seite + engere Social-Icons ---------- */
@media (min-width: 781px) {
    .site-nav {
        gap: 20px;
    }
    .site-nav a.icon-only + a.icon-only {
        margin-left: -12px;
    }
}

.about-page-compact {
    padding-top: clamp(58px, 6vw, 92px);
    padding-bottom: clamp(58px, 6vw, 92px);
}
.about-compact-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
    gap: clamp(34px, 7vw, 100px);
    align-items: center;
}
.about-compact-lead h1 {
    font-size: clamp(3rem, 6vw, 6.4rem);
}
.about-compact-copy {
    max-width: 620px;
    margin-top: 24px;
}
.about-compact-copy p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.74);
    font-size: clamp(.98rem, 1.15vw, 1.08rem);
    line-height: 1.65;
}
.about-compact-copy p:last-child {
    margin-bottom: 0;
}
.about-gallery-card {
    padding: clamp(16px, 2vw, 23px);
    background: rgba(14,14,14,.58);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.08);
}
.about-gallery-card-heading {
    margin-bottom: 14px;
    color: rgba(255,255,255,.68);
    font-size: clamp(.78rem, 1vw, .9rem);
    font-weight: 560;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.about-compact-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.about-compact-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--surface);
}
.about-compact-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .45s ease;
}
.about-compact-image:nth-child(3n) {
    grid-column: span 2;
}
.about-compact-image:nth-child(3n) img {
    aspect-ratio: 16 / 8.5;
}
.about-compact-image figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 22px 12px 10px;
    color: rgba(255,255,255,.9);
    font-size: .72rem;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    opacity: 0;
    transition: opacity .2s ease;
}
.about-compact-image:hover img {
    transform: scale(1.02);
}
.about-compact-image:hover figcaption {
    opacity: 1;
}
.about-gallery-empty {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 900px) {
    .about-compact-layout {
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
    }
    .about-compact-copy {
        max-width: 720px;
    }
}

@media (max-width: 780px) {
    .about-page-compact {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .about-compact-lead h1 {
        font-size: clamp(3rem, 15vw, 5.2rem);
    }
    .about-compact-copy {
        margin-top: 20px;
    }
    .about-gallery-card {
        padding: 16px;
    }
    .about-compact-gallery {
        gap: 6px;
    }
    .about-compact-image figcaption {
        display: none;
    }
    .about-compact-image:hover img {
        transform: none;
    }
}
