/* =========================================================================
   Steins Photography – Grundgeruest
   Ein einziges Stylesheet fuer alle Seiten. Farben zentral als Variablen,
   damit du die gesamte Optik an einer Stelle anpassen kannst.
   ========================================================================= */

:root {
  /* --- Farbwelt (dunkles Grau) --- */
  --bg:            #17181a;   /* Grundfarbe der Seite            */
  --bg-2:          #1e1f22;   /* etwas hellere Flaechen (Karten) */
  --bg-3:          #26282c;   /* Hover / Trennlinien             */
  --text:          #e7e7e9;   /* Haupttext                       */
  --text-dim:      #9a9ba0;   /* gedaempfter Text                */
  --text-faint:    #6a6b70;   /* sehr dezent (Footer, Meta)      */
  --accent:        #c9a15a;   /* warmer Akzent (Gold)            */
  --line:          rgba(255,255,255,.08);

  /* --- Layout --- */
  --maxw: 1360px;
  --gap: 16px;
  --radius: 4px;
  --header-h: 68px;
  --ease: cubic-bezier(.4,.0,.2,1);
}

/* ---------- Reset / Grundlagen ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Kopierschutz auf CSS-Ebene: Auswaehlen & Ziehen von Bildern unterbinden */
img, .noselect {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;   /* iOS: kein "Bild sichern" per Longpress */
  pointer-events: auto;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================ Kopfzeile ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(23,24,26,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand {
  font-size: 15px; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 600; color: var(--text);
}
.brand span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); transition: color .2s var(--ease); position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
}

/* Mobiles Menue */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; color: var(--text);
}
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 4px 0; transition: .25s var(--ease); }

/* Bereich rechts: Navigation + Sprachumschalter (+ Mobil-Button) */
.nav-area { display: flex; align-items: center; gap: 30px; }

/* Sprachumschalter DE / EN – bewusst sehr dezent, kein Hintergrund, ganz rechts */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.lang-switch button {
  background: none; border: 0; cursor: pointer; padding: 2px 1px;
  color: var(--text-faint); font: inherit; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; opacity: .65;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.lang-switch button:hover { color: var(--text-dim); opacity: 1; }
.lang-switch button[aria-pressed="true"] { color: var(--text-dim); opacity: 1; }
.lang-switch span { color: var(--text-faint); opacity: .3; font-size: 9px; }

/* ============================ Hero ============================ */
.hero {
  position: relative; height: min(88vh, 820px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(23,24,26,.15), rgba(23,24,26,.72) 75%),
              linear-gradient(to bottom, rgba(23,24,26,.35), rgba(23,24,26,.15) 40%, rgba(23,24,26,.85));
}
.hero__inner { position: relative; z-index: 2; padding: 0 24px; }
.hero__title {
  font-size: clamp(30px, 6vw, 64px); font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase; margin: 0;
}
.hero__title b { font-weight: 600; color: var(--accent); }
.hero__sub {
  margin: 18px auto 0; max-width: 560px; color: var(--text-dim);
  font-size: clamp(14px, 2vw, 17px); letter-spacing: .04em; font-weight: 300;
}
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-dim); font-size: 22px; animation: bob 2.4s infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ============================ Abschnitte ============================ */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 {
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 300;
  letter-spacing: .16em; text-transform: uppercase; margin: 0;
}
.section-head p { color: var(--text-dim); margin: 12px auto 0; max-width: 620px; font-weight: 300; }
.eyebrow {
  display: inline-block; color: var(--accent); font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase; margin-bottom: 14px;
}

/* ---------- Galerie-Uebersicht (Startseite) ---------- */
.collections {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.collection {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--bg-2);
}
.collection img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
  filter: brightness(.72);
}
.collection:hover img { transform: scale(1.06); filter: brightness(.95); }
.collection__label {
  position: absolute; inset: auto 0 0 0; padding: 26px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
}
.collection__label h3 {
  margin: 0; font-size: 20px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.collection__label span { color: var(--text-dim); font-size: 13px; letter-spacing: .08em; }

/* ============================ Masonry-Raster ============================ */
.gallery {
  column-count: 3; column-gap: var(--gap);
}
.gallery__item {
  break-inside: avoid; margin-bottom: var(--gap);
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-2); cursor: zoom-in;
}
.gallery__item img { width: 100%; transition: transform .6s var(--ease), filter .4s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(23,24,26,.28); opacity: 0; transition: opacity .3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 13px; letter-spacing: .1em; color: #fff; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: .3s var(--ease);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }

/* ============================ Lightbox (Vollbild) ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,11,12,.96);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; max-width: 92vw; max-height: 88vh; }
.lightbox__img {
  max-width: 92vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 2px; box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transition: opacity .25s var(--ease);
}
/* Transparente Schutzschicht ueber dem Vollbild – erschwert "Bild speichern" */
.lightbox__shield { position: absolute; inset: 0; z-index: 3; cursor: default; }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: -38px; text-align: center;
  color: var(--text-dim); font-size: 14px; letter-spacing: .1em;
}
.lightbox__cap .count { color: var(--text-faint); margin-left: 12px; font-size: 12px; }

.lb-btn {
  position: absolute; z-index: 4; background: rgba(255,255,255,.06);
  border: 1px solid var(--line); color: var(--text);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-close { top: 22px; right: 22px; }
.lb-prev  { left: 22px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }
body.lb-open { overflow: hidden; }

/* ============================ Inhalt / Textseiten ============================ */
.page-head { padding: calc(var(--header-h) + 40px) 0 10px; text-align: center; }
.page-head h1 {
  font-size: clamp(26px, 4.5vw, 44px); font-weight: 300;
  letter-spacing: .16em; text-transform: uppercase; margin: 0;
}
.page-head p { color: var(--text-dim); max-width: 620px; margin: 14px auto 0; font-weight: 300; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-weight: 400; letter-spacing: .06em; margin-top: 40px; font-size: 20px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose .todo {
  background: rgba(201,161,90,.08); border-left: 3px solid var(--accent);
  padding: 4px 12px; color: var(--accent); border-radius: 2px;
}
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.contact-mail {
  display: inline-block; font-size: clamp(18px, 3vw, 26px);
  letter-spacing: .06em; color: var(--accent); margin: 8px 0 4px;
}
.contact-mail:hover { text-decoration: underline; }

/* ============================ Footer ============================ */
.site-footer {
  border-top: 1px solid var(--line); padding: 48px 0; margin-top: 40px;
  color: var(--text-faint); font-size: 13px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }
.foot-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-social { display: inline-flex; align-items: center; gap: 15px; }
.foot-social a { color: var(--text-faint); display: inline-flex; transition: color .2s var(--ease), transform .2s var(--ease); }
.foot-social a:hover { color: var(--text); transform: translateY(-1px); }
.foot-note { width: 100%; color: var(--text-faint); font-size: 12px; opacity: .8; }

/* ============================ Responsiv ============================ */
@media (max-width: 900px) {
  .gallery { column-count: 2; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(23,24,26,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s var(--ease);
    padding: 8px 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .gallery { column-count: 1; }
  .section { padding: 60px 0; }
  .brand { font-size: 13px; letter-spacing: .2em; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
