/* ==========================================================================
   Grundgeruest - Fotografie-Homepage
   Farben und Abstaende zentral als Variablen, damit du alles an einer
   Stelle umstellen kannst.
   ========================================================================== */

:root {
  --bg:            #0e0f11;
  --bg-erhoben:    #16181c;
  --bg-karte:      #1b1e23;
  --linie:         #2a2e35;
  --text:          #e8e6e3;
  --text-leise:    #9aa0a8;
  --akzent:        #c8a165;
  --akzent-hell:   #e0bd85;

  /* Hoehe des Logos in der Kopfzeile. Die Kopfzeile waechst automatisch mit. */
  --logo-hoehe:       132px;
  --logo-hoehe-klein:  58px;   /* sobald man nach unten scrollt */

  --breite:        1240px;
  --radius:        4px;
  --uebergang:     180ms ease;

  --schrift: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --schrift-titel: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--akzent); text-decoration: none; }
a:hover { color: var(--akzent-hell); }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.inhalt {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: 20px;
}

.leise { color: var(--text-leise); }

/* ------------------------------------------------------------------ Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 17, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}

.kopf__inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: calc(var(--logo-hoehe) + 26px);
  transition: min-height 220ms ease;
}

/* Beim Scrollen faehrt die Kopfzeile zusammen, damit sie nicht dauerhaft ein
   Drittel des Bildschirms belegt. Willst du das nicht: in
   assets/js/gallery.js die Funktion kopfSchrumpfen() auskommentieren. */
.kopf--klein { --logo-hoehe: var(--logo-hoehe-klein); }

.marke {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: .02em;
  line-height: 0;
}
.marke img {
  width: auto;
  height: var(--logo-hoehe);
  transition: height 220ms ease, opacity var(--uebergang);
}
.marke:hover img { opacity: .8; }

.navigation ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.navigation a {
  color: var(--text-leise);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--uebergang), border-color var(--uebergang);
}
.navigation a:hover,
.navigation a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--akzent);
}

.nav-schalter {
  display: none;
  background: none;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  :root { --logo-hoehe: 104px; }
}
@media (max-width: 560px) {
  :root { --logo-hoehe: 76px; --logo-hoehe-klein: 50px; }
}

@media (max-width: 760px) {
  .nav-schalter { display: block; }
  .navigation {
    position: absolute;
    top: 100%;            /* haengt immer direkt unter der Kopfzeile */
    left: 0;
    right: 0;
    background: var(--bg-erhoben);
    border-bottom: 1px solid var(--linie);
    display: none;
  }
  .navigation.offen { display: block; }
  .navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .navigation li { border-top: 1px solid var(--linie); }
  .navigation a { display: block; padding: 14px 0; border-bottom: none; }
}

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

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 56px;
  background:
    linear-gradient(180deg, rgba(14,15,17,.35), rgba(14,15,17,.95)),
    var(--hero-bild, radial-gradient(120% 90% at 70% 10%, #2b3038, #0e0f11));
  background-size: cover;
  background-position: center;
}
.hero p {
  max-width: 62ch;
  color: var(--text-leise);
  font-size: 1.1rem;
}
.hero__kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--akzent);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- Bereiche */

.bereich { padding: 72px 0; }
/* Beim Sprung auf eine Marke (#tfp, #gemeinsam) nicht unter die klebende
   Kopfzeile scrollen, sondern darunter anhalten. */
.bereich[id] { scroll-margin-top: calc(var(--logo-hoehe-klein) + 40px); }
.bereich--schmal { max-width: 78ch; }
.bereich + .bereich { border-top: 1px solid var(--linie); }

.bereich__kopf { margin-bottom: 36px; }
.bereich__kopf p { color: var(--text-leise); max-width: 62ch; margin: 0; }
/* Mehrere Absaetze im Bereichskopf brauchen Luft dazwischen. */
.bereich__kopf p + p { margin-top: 1.15em; }

.knopf {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 26px;
  border: 1px solid var(--akzent);
  border-radius: var(--radius);
  color: var(--akzent);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background var(--uebergang), color var(--uebergang);
}
.knopf:hover { background: var(--akzent); color: #14151a; }

/* -------------------------------------------------------- Kategorie-Kacheln */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.kachel {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--bg-karte);
  color: var(--text);
}
.kachel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
  transition: transform 600ms ease, opacity var(--uebergang);
}
.kachel:hover img { transform: scale(1.05); opacity: .78; }
.kachel__text {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  background: linear-gradient(180deg, transparent 35%, rgba(14,15,17,.9));
}
.kachel__text h3 { font-size: 1.6rem; margin-bottom: 6px; }
.kachel__text p { margin: 0; color: var(--text-leise); font-size: .95rem; }

/* ------------------------------------------------------------- Ueber mich */

.portraet-block {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 48px;
  align-items: start;
}
.portraet-block img {
  width: 100%;
  /* Bewusst ohne festen Rahmen: jedes Bild behaelt sein eigenes Format und
     wird nicht beschnitten. Die Hoehe richtet sich also nach dem Bild. */
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
}
@media (max-width: 720px) {
  .portraet-block { grid-template-columns: 1fr; gap: 28px; }
}

.fakten { list-style: none; padding: 0; margin: 28px 0 0; }
.fakten li {
  /* Feste erste Spalte, damit die Werte untereinander buendig stehen -
     auch wenn ein Label deutlich laenger ist als die anderen. */
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--linie);
  font-size: .95rem;
}
.fakten strong {
  color: var(--text-leise);
  font-weight: 400;
}
@media (max-width: 560px) {
  .fakten li { grid-template-columns: 1fr; gap: 2px; }
}

/* ------------------------------------------------- Aufzaehlung in Spalten */

.punkte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 38px;
}
.punkte > div { border-top: 1px solid var(--akzent); padding-top: 18px; }
.punkte h3 { font-family: var(--schrift); font-size: .98rem; letter-spacing: .02em; }
.punkte p { margin: 0; color: var(--text-leise); font-size: .95rem; }

/* ------------------------------------------------------------ Filterleiste */

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.filter__titel {
  width: 100%;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 2px;
}
.chip {
  background: transparent;
  border: 1px solid var(--linie);
  border-radius: 999px;
  color: var(--text-leise);
  padding: 7px 16px;
  font: inherit;
  font-size: .87rem;
  cursor: pointer;
  transition: all var(--uebergang);
}
.chip:hover { color: var(--text); border-color: var(--text-leise); }
.chip[aria-pressed="true"] {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #14151a;
}
.chip small { opacity: .65; margin-left: 6px; }

.galerie-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 26px 0 18px;
  font-size: .9rem;
  color: var(--text-leise);
}

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

.galerie {
  columns: 3 320px;
  column-gap: 16px;
}
@media (max-width: 640px) { .galerie { columns: 1; } }

.galerie__bild {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-karte);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
}
.galerie__bild img {
  width: 100%;
  height: auto;
  transition: transform 500ms ease, opacity 400ms ease;
}
.galerie__bild:hover img { transform: scale(1.03); }
.galerie__bild:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.galerie__unterschrift {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10,11,13,.92));
  font-size: .9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--uebergang), transform var(--uebergang);
}
.galerie__bild:hover .galerie__unterschrift,
.galerie__bild:focus-visible .galerie__unterschrift { opacity: 1; transform: none; }
.galerie__unterschrift span { display: block; color: var(--text-leise); font-size: .78rem; }

.hinweis {
  border: 1px dashed var(--linie);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text-leise);
  background: var(--bg-erhoben);
}
.hinweis code {
  background: #000;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--akzent-hell);
  font-size: .9em;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 10, .96);
  padding: 24px;
}
.lightbox[open], .lightbox.offen { display: flex; }

.lightbox img {
  max-width: min(100%, 1600px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__bildunterschrift {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-leise);
  font-size: .92rem;
}
.lightbox__bildunterschrift strong { color: var(--text); font-weight: 400; }

.lightbox__knopf {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--linie);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--uebergang);
}
.lightbox__knopf:hover { background: rgba(255,255,255,.16); }
.lightbox__zu   { top: 20px; right: 20px; }
.lightbox__vor  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__zurueck { left: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__vor { right: 12px; }
  .lightbox__zurueck { left: 12px; }
}

/* ------------------------------------------------------------------- Fuss */

.fuss {
  border-top: 1px solid var(--linie);
  padding: 44px 0;
  color: var(--text-leise);
  font-size: .9rem;
}
.fuss__inhalt {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
}
.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------ Mailadresse */

.mail {
  margin: 34px 0 10px;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  word-break: break-word;
}
.mail a {
  border-bottom: 1px solid rgba(200, 161, 101, .4);
  padding-bottom: 3px;
  transition: border-color var(--uebergang);
}
.mail a:hover { border-bottom-color: var(--akzent-hell); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
