/* Niklas Schoring — Fotografie
   Keine externen Schriften/Assets: alles lokal, damit keine Drittanbieter-
   Verbindungen aufgebaut werden (DSGVO). */

:root {
  --bg:        #faf9f7;
  --bg-alt:    #f0eeea;
  --fg:        #16150f;
  --fg-muted:  #5f5c54;
  --line:      #dcd8d0;
  --accent:    #8a7355;
  --maxw:      1180px;
  --serif:     ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:      ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #131211;
    --bg-alt:   #1c1a18;
    --fg:       #f2efe9;
    --fg-muted: #a29c92;
    --line:     #302d29;
    --accent:   #c3a880;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip {
  position: absolute; left: -9999px;
  background: var(--fg); color: var(--bg);
  padding: .7rem 1.2rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1.1rem clamp(1.2rem, 5vw, 3.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-decoration: none;
}

.site-header nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); flex-wrap: wrap; }

.site-header nav a {
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-header nav a:hover { color: var(--fg); border-bottom-color: var(--accent); }

/* ---------- Layout ---------- */

main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3.5rem); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 2.5rem;
}
.section-title::after {
  content: ""; display: block;
  width: 46px; height: 1px;
  background: var(--accent);
  margin-top: 1rem;
}

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

.hero { padding: clamp(4.5rem, 13vw, 10rem) 0 clamp(3rem, 7vw, 5rem); max-width: 46rem; }

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 1.6rem;
}

.lead { font-size: clamp(1rem, 1.7vw, 1.15rem); color: var(--fg-muted); margin: 0 0 2.2rem; max-width: 38rem; }

.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border: 1px solid var(--fg);
  text-decoration: none;
  font-size: .82rem; letter-spacing: .13em; text-transform: uppercase;
  transition: background .22s, color .22s;
}
.btn:hover { background: var(--fg); color: var(--bg); }

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

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
  /* dense: fuellt Luecken, die durch tall/wide entstehen, mit nachfolgenden
     Kacheln auf. Ohne das reisst das Raster bei gemischten Formaten Loecher. */
  grid-auto-flow: dense;
}

.gallery figure { margin: 0; overflow: hidden; background: var(--bg-alt); position: relative; }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }

.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .55s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.gallery figure:hover img { transform: scale(1.045); }

@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery figure.wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery figure.wide, .gallery figure.tall { grid-column: auto; grid-row: auto; }
}

/* ---------- Über mich ---------- */

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg-alt); }
.split-text p { color: var(--fg-muted); }
.split-text p:first-of-type { color: var(--fg); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split-img { max-width: 320px; }
}

/* ---------- Leistungen ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.4rem; }

.card {
  border: 1px solid var(--line);
  padding: 2rem 1.8rem;
  background: var(--bg-alt);
  display: flex; flex-direction: column;
}
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 .8rem; }
.card p { color: var(--fg-muted); margin: 0 0 1.2rem; font-size: .95rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; color: var(--fg-muted); }
.card li { padding-left: 1.1rem; position: relative; margin-bottom: .35rem; }
.card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.card .price {
  margin: auto 0 0;
  font-family: var(--serif); font-size: 1.1rem; color: var(--fg);
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}

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

.contact { border-top: 1px solid var(--line); }
.contact-lines { font-size: 1.05rem; line-height: 2; }
.contact-lines a { color: var(--accent); }
.muted { color: var(--fg-muted); }

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

.site-footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1.2rem, 5vw, 3.5rem) 3rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--fg-muted);
}
.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer p { margin: 0; }

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

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,9,8,.94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; }

.lb-caption {
  position: absolute; bottom: clamp(.8rem, 3vw, 2rem); left: 0; right: 0;
  text-align: center; color: #cfcac2; font-size: .85rem;
  letter-spacing: .09em; text-transform: uppercase; margin: 0;
}

.lightbox button {
  position: absolute;
  background: none; border: none; color: #fff;
  cursor: pointer; line-height: 1;
  opacity: .65; transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: clamp(.6rem, 2vw, 1.6rem); right: clamp(.8rem, 3vw, 2rem); font-size: 2.6rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0 1rem; }
.lb-prev { left: clamp(.2rem, 1vw, 1rem); }
.lb-next { right: clamp(.2rem, 1vw, 1rem); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.legal { max-width: 46rem; padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 2rem; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 2.5rem 0 .8rem; }
.legal p, .legal li { color: var(--fg-muted); }
.legal address { font-style: normal; color: var(--fg); }
