/* ==========================================================================
   Dana Schmidt Fotografie — Stylesheet
   Warm, hell, modern. Fraunces (Display) + Inter (Text).
   ========================================================================== */

:root {
    --bg:          #FBF9F5;
    --bg-soft:     #F3EEE6;
    --ink:         #201D1A;
    --ink-soft:    #57504A;
    --muted:       #8A817A;
    --accent:      #C2643A;
    --accent-dark: #A24E2A;
    --line:        #E5DED4;
    --white:       #FFFFFF;
    --shadow:      0 18px 50px -18px rgba(32, 29, 26, .22);
    --radius:      14px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --header-h:    76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
    /* clip (nicht hidden): kappt seitlichen Overflow von Off-Canvas-Elementen,
       ohne position:sticky zu brechen */
    overflow-x: clip;
}

/* Sanfte Überblendung beim Seitenwechsel (Chrome/Safari, progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; }

a, button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* Verhindert, dass Off-Canvas-Elemente (mobiles Menü) die Seite verbreitern */
    overflow-x: hidden;
    overflow-x: clip;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
    width: min(1180px, 92vw);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: .6em 1.2em;
    z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: .85em 1.9em;
    border-radius: 999px;
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .02em;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.btn--light:hover { color: var(--accent-dark); }

.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn--ghost-dark { border-color: var(--line); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--accent); color: var(--accent-dark); }

.text-link {
    font-weight: 500;
    color: var(--accent-dark);
    border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 249, 245, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, border-color .3s ease;
}

.site-header--overlay {
    position: fixed;
    left: 0; right: 0;
    background: transparent;
    border-bottom-color: transparent;
}
.site-header--overlay.is-scrolled {
    background: rgba(251, 249, 245, .92);
    border-bottom-color: var(--line);
}

.site-header__inner {
    width: min(1280px, 94vw);
    margin-inline: auto;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
}
.brand__sub {
    font-size: .68rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--accent-dark);
    font-weight: 500;
}

.site-header--overlay:not(.is-scrolled) .brand__name { color: #fff; }
.site-header--overlay:not(.is-scrolled) .brand__sub { color: rgba(255,255,255,.85); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}
.site-nav__link {
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    position: relative;
    padding: .3em 0;
}
.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--ink); }

.site-nav__social { color: var(--ink-soft); display: inline-flex; }
.site-nav__social:hover { color: var(--accent-dark); }

.site-header--overlay:not(.is-scrolled) .site-nav__link,
.site-header--overlay:not(.is-scrolled) .site-nav__social { color: rgba(255,255,255,.92); }
.site-header--overlay:not(.is-scrolled) .site-nav__link:hover { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease;
}
.site-header--overlay:not(.is-scrolled) .nav-toggle span { background: #fff; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero__slides, .hero__slide {
    position: absolute;
    inset: 0;
}
.hero__slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.6s ease, transform 7s linear;
}
.hero__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,16,12,.42) 0%, rgba(20,16,12,.18) 45%, rgba(20,16,12,.55) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: heroIn 1.1s ease both .2s;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.hero__kicker {
    letter-spacing: .38em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: rgba(255,255,255,.85);
}
.hero__title {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 500;
    margin-bottom: .15em;
    text-shadow: 0 4px 40px rgba(0,0,0,.35);
}
.hero__tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    color: rgba(255,255,255,.92);
    margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px; height: 44px;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 15px;
}
.hero__scroll span {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%      { transform: translateY(12px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section-kicker {
    letter-spacing: .3em;
    text-transform: uppercase;
    font-size: .74rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: .9rem;
}
.section-kicker a { color: inherit; }

.section-head { max-width: 640px; margin-bottom: 3rem; }

.intro { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.intro__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}
.intro__text h2 { max-width: 480px; }
.intro__text p { color: var(--ink-soft); max-width: 520px; }

.intro__stats {
    display: grid;
    gap: 1.2rem;
}
.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    box-shadow: 0 8px 26px -16px rgba(32,29,26,.18);
}
.stat__num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-dark);
    white-space: nowrap;
}
.stat__label {
    color: var(--muted);
    font-size: .92rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Kategorie-Karten
   -------------------------------------------------------------------------- */

.featured { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--bg-soft); }

/* Abstand der Portfolio-Übersicht: oben etwas Luft, unten großzügig zum Footer */
.portfolio-grid {
    padding-top: clamp(.5rem, 2vw, 1.5rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.featured__grid,
.portfolio-grid__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.cat-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--ink);
    box-shadow: var(--shadow);
}
.cat-card--wide { grid-column: span 2; aspect-ratio: auto; }

.cat-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .6, .2, 1), opacity .6s ease;
}
.cat-card:hover img { transform: scale(1.05); }

.cat-card__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem 1.7rem 1.4rem;
    background: linear-gradient(to top, rgba(18,14,10,.78), rgba(18,14,10,0));
    color: #fff;
}
.cat-card__body h3 { margin: 0 0 .15em; font-size: 1.45rem; color: #fff; }
.cat-card__body p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.82); }

.featured__more { text-align: center; margin-top: 3rem; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
    background: var(--ink);
    color: var(--bg);
    padding: clamp(4rem, 8vw, 7rem) 0;
    text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Seitenkopf (Unterseiten)
   -------------------------------------------------------------------------- */

.page-head {
    padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2rem, 5vw, 4rem);
}
.page-head h1 { max-width: 700px; }
.page-head__lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 560px;
}
.page-head--error { min-height: 55vh; }

/* --------------------------------------------------------------------------
   Blur-up-Bildladen
   Mini-Placeholder (24px, unscharf) liegt als Hintergrund unter dem Bild;
   das fertige Bild blendet sanft ein. Breite/Höhe sind gesetzt → kein Springen.
   -------------------------------------------------------------------------- */

.blur-load {
    display: block;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}

/* Dezenter Schimmer, solange das Bild lädt */
.blur-load::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
    background-size: 220% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    pointer-events: none;
}
.blur-load.done::after { content: none; }

@keyframes shimmer {
    from { background-position: 160% 0; }
    to   { background-position: -60% 0; }
}

img[data-fade] {
    opacity: 0;
    transition: opacity .6s ease;
}
img[data-fade].is-loaded { opacity: 1; }

.gallery__item .blur-load img { width: 100%; height: auto; }

.cat-card .blur-load {
    position: absolute;
    inset: 0;
}
.cat-card .blur-load img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
    .blur-load::after { animation: none; content: none; }
    img[data-fade] { transition: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */

.gallery { padding-bottom: clamp(3rem, 7vw, 6rem); }

.gallery__masonry {
    columns: 3;
    column-gap: 1.3rem;
}
.gallery__item {
    display: block;
    margin-bottom: 1.3rem;
    border-radius: 10px;
    overflow: hidden;
    break-inside: avoid;
    position: relative;
    background: var(--bg-soft);
}
.gallery__item img {
    width: 100%;
    transition: transform .7s cubic-bezier(.2, .6, .2, 1), filter .4s ease, opacity .6s ease;
}
.gallery__item:hover img {
    transform: scale(1.035);
    filter: brightness(1.05);
}
.gallery__empty { color: var(--muted); font-style: italic; }

.gallery-pager {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}
.gallery-pager__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 0;
}
.gallery-pager__link { display: flex; flex-direction: column; color: var(--muted); }
.gallery-pager__link strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 500;
}
.gallery-pager__link:hover strong { color: var(--accent-dark); }
.gallery-pager__link--next { text-align: right; }
.gallery-pager__all {
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.gallery-pager__all:hover { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(16, 13, 10, .94);
    overscroll-behavior: contain;
    touch-action: none;              /* verhindert Scroll/Zoom hinter dem Overlay */
    opacity: 0;
    transition: opacity .3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__img {
    /* absolute Zentrierung — stabil auch bei mobilen Browserleisten & Zoom */
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: min(92vw, 1400px);
    max-height: 86vh;
    max-height: 86svh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
    opacity: 1;
    transform: none;
    transition: opacity .26s ease, transform .34s cubic-bezier(.2, .6, .2, 1);
}
.lightbox__img.is-out {
    opacity: 0;
    transform: scale(.985);
}

/* Lade-Indikator für das große Bild */
.lightbox__spinner {
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid rgba(255,255,255,.18);
    border-top-color: rgba(255,255,255,.85);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease .15s;
}
.lightbox.is-loading .lightbox__spinner {
    opacity: 1;
    animation: lbSpin .8s linear infinite;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .lightbox, .lightbox__img { transition: none; }
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close {
    top: max(22px, env(safe-area-inset-top));
    right: max(22px, env(safe-area-inset-right));
}
.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}
.lightbox__nav--prev { left: max(22px, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(22px, env(safe-area-inset-right)); }
.lightbox__counter {
    position: absolute;
    bottom: max(22px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    letter-spacing: .1em;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contact__info h2 { font-size: 1.6rem; }
.contact__list {
    list-style: none;
    margin: 1.8rem 0;
    padding: 0;
    display: grid;
    gap: 1.4rem;
}
.contact__label {
    display: block;
    font-size: .74rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .2rem;
}
.contact__list a { font-size: 1.08rem; font-weight: 500; }
.contact__list address { font-style: normal; }
.contact__coords { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); }
.contact__social { display: flex; gap: .8rem; flex-wrap: wrap; }

.contact__form form,
.form-success {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.form-field { margin-bottom: 1.2rem; position: relative; }
.form-field label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: .4rem;
    color: var(--ink-soft);
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: .8em 1em;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    font: inherit;
    color: var(--ink);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(194, 100, 58, .13);
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: #C0392B; }
.form-error { color: #C0392B; font-size: .82rem; margin: .35rem 0 0; }
.form-hint { font-size: .82rem; color: var(--muted); }
.form-success h2 { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   Rechtstexte
   -------------------------------------------------------------------------- */

.legal { padding-bottom: clamp(4rem, 8vw, 7rem); }
.legal__content {
    max-width: 760px;
    color: var(--ink-soft);
}
.legal__content h2 {
    font-size: 1.5rem;
    margin-top: 2.2em;
    color: var(--ink);
}
.legal__content h3 {
    font-size: 1.08rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 1.8em;
    color: var(--ink);
}
.legal__content ul { padding-left: 1.2em; }
.legal__source { margin-top: 3em; font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.78);
}
.site-footer__inner {
    width: min(1180px, 92vw);
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
}
.site-footer .brand__name { color: #fff; font-size: 1.5rem; }
.site-footer .brand__sub { color: var(--accent); }
.site-footer__tagline {
    font-family: var(--font-display);
    font-style: italic;
    margin-top: 1rem;
    color: rgba(255,255,255,.6);
}
.site-footer h3 {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 1.1rem;
}
.site-footer__nav { display: flex; flex-direction: column; gap: .45rem; }
.site-footer__nav a, .site-footer__contact a {
    color: rgba(255,255,255,.82);
    display: block;
}
.site-footer__nav a:hover, .site-footer__contact a:hover { color: var(--accent); }
.site-footer__contact p { margin: .6rem 0; }
.site-footer__social { display: flex; gap: 1.2rem; margin-top: 1rem; }

.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1.4rem 0;
    width: min(1180px, 92vw);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}
.site-footer__legal nav { display: flex; gap: 1.6rem; }
.site-footer__legal a { color: rgba(255,255,255,.65); }
.site-footer__legal a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Reveal-Animationen
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__slide { transition: opacity 1s ease; transform: none; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .featured__grid, .portfolio-grid__items { grid-template-columns: repeat(2, 1fr); }
    .cat-card--wide { grid-column: span 2; }
    .gallery__masonry { columns: 2; }
    .intro__grid { grid-template-columns: 1fr; }
    .intro__stats { grid-template-columns: repeat(3, 1fr); }
    .stat { flex-direction: column; gap: .2rem; padding: 1.2rem; }
    .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .featured__grid, .portfolio-grid__items { grid-template-columns: 1fr; }
    .cat-card--wide { grid-column: span 1; }
    .gallery__masonry { columns: 1; }
    .form-row { grid-template-columns: 1fr; }
    .intro__stats { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__legal { flex-direction: column; }
    .gallery-pager__inner { flex-wrap: wrap; }

    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(320px, 84vw);
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        visibility: hidden; /* geschlossen: komplett raus aus Layout & Tab-Reihenfolge */
        transition: transform .35s cubic-bezier(.2, .6, .2, 1), visibility 0s linear .35s;
        box-shadow: -30px 0 60px rgba(0,0,0,.15);
        z-index: 150;
    }
    .site-nav.is-open {
        transform: none;
        visibility: visible;
        transition: transform .35s cubic-bezier(.2, .6, .2, 1), visibility 0s linear 0s;
    }
    .site-nav__link { font-size: 1.1rem; color: var(--ink); }
    .site-nav__social { color: var(--ink); }
    .nav-toggle { z-index: 160; }
    body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
    body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
    body.nav-open .nav-toggle span { background: var(--ink) !important; }

    .lightbox__nav { width: 42px; height: 42px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}
