/* ============================================================
   FOTOSTUDIO BARBARA HAWLITZKI
   Dunkel · atmosphärisch · Galerie   |   Mobile-First
   ============================================================ */

/* --- 1. Custom Properties ---------------------------------- */
:root {
    --c-bg:         #15120f;   /* off-black, warm */
    --c-bg-alt:     #1c1815;   /* anthrazit warm */
    --c-surface:    #241f1a;   /* karten / eingaben */
    --c-text:       #ece6dc;   /* warmes weiß */
    --c-text-soft:  #cabfb0;
    --c-muted:      #9c9488;   /* warmes grau */
    --c-accent:     #b39777;   /* sepia / beige */
    --c-accent-lt:  #cdb896;
    --c-line:       rgba(236,230,220,0.12);
    --c-line-soft:  rgba(236,230,220,0.07);

    --ff-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --ff-body: "Jost", "Segoe UI", system-ui, sans-serif;

    --wrap: 1240px;
    --gap:  clamp(1rem, 4vw, 2rem);
    --sp:   clamp(3.5rem, 9vw, 7rem);   /* vertikaler Sektionsabstand */

    --header-h: 68px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --- 2. Reset & Basis (Mobile) ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--ff-body);
    font-weight: 400;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.7;
    font-size: clamp(1rem, 0.4vw + 0.92rem, 1.075rem);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

h1, h2, h3 {
    font-family: var(--ff-head);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.005em;
}

::selection { background: var(--c-accent); color: var(--c-bg); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--c-accent); color: var(--c-bg);
    padding: .6rem 1rem; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--c-accent-lt); outline-offset: 3px; }

/* --- 3. Layout-Helfer -------------------------------------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.section  { padding-block: var(--sp); }
.section--alt { background: var(--c-bg-alt); }
.narrow { max-width: 720px; margin-inline: auto; }

/* Eyebrow / Kicker */
.eyebrow {
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--c-accent);
    display: inline-block;
    margin-bottom: 1.1rem;
}
.eyebrow--line { position: relative; padding-left: 3.4rem; }
.eyebrow--line::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 2.6rem; height: 1px; background: var(--c-accent);
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 5vw + 0.5rem, 3.6rem); }
.section-head p  { color: var(--c-muted); max-width: 46ch; margin-top: 1rem; }
.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }

/* --- 4. Buttons -------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--ff-body); font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem;
    padding: 1rem 2rem; min-height: 48px;
    border: 1px solid var(--c-accent);
    color: var(--c-text);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--c-accent); color: var(--c-bg); }
.btn--solid { background: var(--c-accent); color: var(--c-bg); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--c-accent-lt); border-color: var(--c-accent-lt); }
.btn--ghost { border-color: var(--c-line); }

.textlink {
    display: inline-flex; align-items: center; gap: .5rem;
    text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem;
    color: var(--c-accent-lt);
    padding-block: .35rem;
    transition: gap .25s var(--ease), color .25s var(--ease);
}
.textlink::after { content: "→"; transition: transform .25s var(--ease); }
.textlink:hover { color: var(--c-text); }
.textlink:hover::after { transform: translateX(4px); }

/* --- 5. Header / Navigation -------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header__inner {
    max-width: var(--wrap); margin-inline: auto;
    padding: 0 var(--gap);
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
}
/* Solide, sobald gescrollt oder nicht auf Hero */
.site-header.is-solid,
body:not(.has-hero) .site-header {
    background: rgba(21,18,15,0.92);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--c-line);
}

.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand img { display: block; height: 36px; width: auto; }
@media (min-width: 800px) { .brand img { height: 40px; } }

.nav-toggle {
    width: 44px; height: 44px; display: inline-flex; flex-direction: column;
    justify-content: center; gap: 5px; align-items: center; z-index: 120;
}
.nav-toggle span {
    width: 24px; height: 1.5px; background: var(--c-text);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.main-nav {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(18,15,12,0.98);
    backdrop-filter: blur(6px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2.4rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav ul { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.main-nav a {
    font-family: var(--ff-head); font-size: 2rem; color: var(--c-text-soft);
    transition: color .25s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--c-accent-lt); }
.nav-social { color: var(--c-muted); transition: color .25s var(--ease); }
.nav-social:hover { color: var(--c-accent-lt); }

/* --- 6. Hero ----------------------------------------------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: flex-end;
    padding: 0 0 clamp(3rem, 8vh, 6rem);
    overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.15) 35%, rgba(10,8,6,0.82) 100%);
}
.hero__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); width: 100%; }
.hero h1 {
    font-size: clamp(2.6rem, 10vw, 6rem);
    font-weight: 400; line-height: 1.02; max-width: 15ch;
    text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.hero h1 em { font-style: italic; color: var(--c-accent-lt); }
.hero__sub { color: var(--c-text-soft); font-size: 1.05rem; max-width: 40ch; margin-top: 1.4rem; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* kompakter Seitenkopf (Unterseiten) */
.pagehead { position: relative; padding-top: calc(var(--header-h) + clamp(3rem,10vh,7rem)); padding-bottom: clamp(2.5rem,7vh,5rem); overflow: hidden; }
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media picture, .pagehead__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.pagehead::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(21,18,15,.65), rgba(21,18,15,.95)); }
.pagehead .container { position: relative; }
.pagehead h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 400; }
.pagehead p { color: var(--c-muted); max-width: 52ch; margin-top: 1.1rem; }
.breadcrumb { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--c-accent-lt); }
.breadcrumb span { color: var(--c-accent); }

/* --- 7. Kategorie-Kacheln (Startseite) --------------------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: clamp(.8rem, 2vw, 1.4rem); }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(5, 1fr); } }

/* Fullwidth-Variante: bricht aus dem Container aus, kleine Ränder auf
   Mobile/Tablet, Edge-to-Edge auf Desktop. */
.tiles--full { padding-inline: var(--gap); gap: clamp(.4rem, 1vw, .8rem); }
@media (min-width: 1100px) {
    .tiles--full { padding-inline: 0; gap: 2px; }
    .tiles--full .tile { aspect-ratio: 3 / 4; }
}
.tile {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 4 / 5; background: var(--c-bg-alt);
}
.tile picture, .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,8,6,0.05) 30%, rgba(10,8,6,0.85) 100%);
    transition: background .4s var(--ease);
}
.tile:hover picture img, .tile:focus-visible picture img { transform: scale(1.05); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.4rem, 3vw, 2rem); }
.tile__title { font-family: var(--ff-head); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1; }
.tile__sub   { color: var(--c-text-soft); font-size: .92rem; margin-top: .4rem; }
.tile__more  { margin-top: .9rem; display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent-lt); }
.tile__more::after { content: "→"; transition: transform .25s var(--ease); }
.tile:hover .tile__more::after { transform: translateX(4px); }

/* --- 8. Portfolio-Galerie (Masonry) ------------------------ */
.filter { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: center; margin-bottom: clamp(2rem,5vw,3rem); }
.filter button {
    text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; color: var(--c-muted);
    padding: .5rem .2rem; position: relative; transition: color .25s var(--ease);
}
.filter button::after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background: var(--c-accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.filter button:hover { color: var(--c-text); }
.filter button.is-active { color: var(--c-accent-lt); }
.filter button.is-active::after { transform: scaleX(1); }

.gallery { columns: 1; column-gap: clamp(.7rem, 2vw, 1.1rem); }
.gallery__item { break-inside: avoid; margin-bottom: clamp(.7rem, 2vw, 1.1rem); position: relative; overflow: hidden; background: var(--c-bg-alt); }
.gallery__item picture, .gallery__item img { width: 100%; transition: transform 1s var(--ease), opacity .25s var(--ease); }
.gallery__item::after { content:""; position:absolute; inset:0; background: rgba(15,12,9,0); transition: background .35s var(--ease); }
.gallery__item:hover picture img { transform: scale(1.04); }
.gallery__item:hover::after { background: rgba(15,12,9,.18); }
.gallery__cap {
    position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1rem 1.1rem;
    font-size: .82rem; letter-spacing: .04em; color: var(--c-text);
    opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
    text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
.gallery__item.is-hidden { display: none; }

/* --- 9. Lightbox ------------------------------------------- */
.lightbox {
    position: fixed; inset: 0; z-index: 300; display: none;
    background: rgba(8,6,4,0.96); align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
    position: absolute; color: var(--c-text-soft); width: 54px; height: 54px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem;
    transition: color .2s var(--ease);
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox__nav--prev { left: .3rem; }
.lightbox__nav--next { right: .3rem; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--c-accent-lt); }

/* --- 10. Split / Über mich --------------------------------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media img, .split__media picture { width: 100%; }
.split__media .ph { width: 100%; }
.split h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.split p + p { margin-top: 1.1rem; }
.split .lead { font-family: var(--ff-head); font-size: 1.4rem; font-style: italic; color: var(--c-text-soft); line-height: 1.5; }

.facts { margin-top: 1.8rem; display: grid; gap: .1rem; border-top: 1px solid var(--c-line); }
.facts div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--c-line-soft); }
.facts dt { color: var(--c-muted); }
.facts dd { color: var(--c-text-soft); text-align: right; }

.prose p { color: var(--c-text-soft); }
.prose p + p { margin-top: 1.1rem; }

/* --- 11. Kontakt / Formular -------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4.5rem); }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact-info address { font-style: normal; color: var(--c-text-soft); line-height: 2; margin-top: 1.4rem; }
.contact-info a:hover { color: var(--c-accent-lt); }

.form-row { margin-bottom: 1.3rem; }
.form-row label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .5rem; }
.form-row input, .form-row textarea {
    width: 100%; background: var(--c-surface); border: 1px solid var(--c-line);
    color: var(--c-text); padding: .9rem 1rem; font: inherit; border-radius: 2px;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--c-accent); background: #2a2420; }
.form-row textarea { min-height: 160px; resize: vertical; }
.form-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.form-consent input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--c-accent); flex-shrink: 0; }
.form-consent a { color: var(--c-accent-lt); text-decoration: underline; }
.form-note { font-size: .82rem; color: var(--c-muted); margin-top: 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 1rem 1.2rem; border-radius: 3px; margin-bottom: 1.4rem; font-size: .92rem; }
.form-status--ok  { background: rgba(120,150,90,0.14); border: 1px solid rgba(150,180,110,0.4); color: #cfe0b0; }
.form-status--err { background: rgba(180,90,70,0.14);  border: 1px solid rgba(200,110,90,0.4);  color: #e6b8a8; }

/* --- 12. Platzhalter (fehlende Bilder) --------------------- */
.ph {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
    background: repeating-linear-gradient(135deg, #201b16 0 12px, #241f19 12px 24px);
    border: 1px solid var(--c-line); color: var(--c-muted); text-align: center; padding: 1.5rem;
}
.ph__icon { font-size: 1.6rem; color: var(--c-accent); opacity: .6; }
.ph__label { font-size: .8rem; letter-spacing: .04em; max-width: 24ch; }

/* --- 13. Footer -------------------------------------------- */
.site-footer { background: #100d0b; border-top: 1px solid var(--c-line); padding-top: clamp(3rem, 7vw, 5rem); }
.site-footer__inner {
    max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap);
    display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
.brand--footer img { height: 48px; }
.site-footer__claim { color: var(--c-muted); margin-top: 1rem; font-size: .92rem; }
.site-footer__insta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; color: var(--c-muted); font-size: .82rem; letter-spacing: .06em; transition: color .25s var(--ease); }
.site-footer__insta:hover { color: var(--c-accent-lt); }
.site-footer__title { font-family: var(--ff-body); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--c-text-soft); padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 1px solid var(--c-line); }
.site-footer__col ul { display: grid; gap: .6rem; }
.site-footer address { font-style: normal; color: var(--c-muted); line-height: 1.9; font-size: .92rem; }
.site-footer a { color: var(--c-muted); transition: color .25s var(--ease); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--c-accent-lt); }
.site-footer__base { max-width: var(--wrap); margin: clamp(2.5rem,6vw,4rem) auto 0; padding: 1.5rem var(--gap); border-top: 1px solid var(--c-line-soft); font-size: .8rem; color: var(--c-muted); }

/* --- 14. Cookie-Hinweis ------------------------------------ */
#cookie-hinweis { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 250; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cookie-hinweis__inner { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .9rem; }
.cookie-hinweis__inner p { font-size: .86rem; color: var(--c-text-soft); }
.cookie-hinweis__inner a { color: var(--c-accent-lt); text-decoration: underline; }

/* --- 15. Reveal-Animation ---------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- 16. Impressum / Legal --------------------------------- */
.legal h2 { font-size: clamp(1.5rem,3vw,2rem); margin: 2.4rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal address { color: var(--c-text-soft); font-style: normal; margin-bottom: .6rem; }
.legal a { color: var(--c-accent-lt); text-decoration: underline; }
.legal__smartline-credit { margin-top: 1rem; }
.legal__smartline-credit img { width: 190px; height: auto; opacity: .9; transition: opacity .3s var(--ease); }
.legal__smartline-credit a:hover img { opacity: 1; }

/* ============================================================
   TABLET  (ab 700px)
   ============================================================ */
@media (min-width: 700px) {
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .gallery { columns: 2; }
    .split { grid-template-columns: 1.05fr 1fr; }
    .split--reverse .split__media { order: 2; }
    .contact-grid { grid-template-columns: 1fr 1.1fr; }
    .site-footer__inner { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; }
    .cookie-hinweis__inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .cookie-hinweis__inner p { flex: 1; }
    #cookie-hinweis { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 620px; }
}

/* ============================================================
   DESKTOP  (ab 960px)
   ============================================================ */
@media (min-width: 960px) {
    :root { --header-h: 84px; }

    .nav-toggle { display: none; }
    .main-nav {
        position: static; inset: auto; flex-direction: row; background: none; backdrop-filter: none;
        opacity: 1; visibility: visible; transform: none; gap: 2.2rem; align-items: center;
    }
    .main-nav ul { flex-direction: row; gap: 2rem; }
    .main-nav a { font-family: var(--ff-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; color: var(--c-text-soft); position: relative; }
    .main-nav a::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
    .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

    .gallery { columns: 3; }
    .hero h1 { font-size: clamp(4rem, 7vw, 7rem); }
}

@media (min-width: 1300px) {
    .gallery { columns: 3; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
