/* ============================================================
   Galerie – nutzt dieselben Tokens wie seite.css
   ============================================================ */

:root{
  --gruen:#79A83C;
  --gruen-dunkel:#557A28;
  --blatt:#E8F1DA;
  --papier:#FDFDF9;
  --tinte:#26301F;
  --grau:#5C6653;
  --nacht:#161B12;
  --radius:18px;
  --display:"Fraunces", Georgia, serif;
  --body:"Figtree", "Segoe UI", Arial, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--papier); color:var(--tinte);
  font-family:var(--body); font-size:17px; line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* ---------- Kopfzeile: identisch zur Startseite ---------- */
.nav{ position:sticky; top:0; z-index:60; background:rgba(253,253,249,.92); backdrop-filter:blur(10px);
      border-bottom:1px solid rgba(38,48,31,.08); }
.nav-inner{ max-width:1180px; margin:0 auto; padding:12px 24px; display:flex; align-items:center; gap:28px; }
.nav-inner img{ height:44px; width:auto; }
nav.links{ display:flex; gap:22px; margin-left:auto; flex-wrap:wrap; align-items:center; }
nav.links a{ text-decoration:none; color:var(--tinte); font-weight:600; font-size:14.5px;
             padding:6px 2px; border-bottom:2px solid transparent; }
nav.links a:hover{ border-bottom-color:var(--gruen); }
nav.links a[aria-current="page"]{ border-bottom-color:var(--gruen); }
.nav-cta{ background:var(--gruen); color:#fff !important; padding:10px 20px !important;
          border-radius:999px; border-bottom:none !important; }
.nav-cta:hover{ background:var(--gruen-dunkel); }
@media (max-width:900px){ nav.links a:not(.nav-cta){ display:none; } }

/* ---------- Einstieg ---------- */
.kopf{ padding:64px 0 30px; }
.eyebrow{ font-size:13px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--gruen-dunkel); }
h1{ font-family:var(--display); font-weight:500; font-size:clamp(32px,5vw,52px); line-height:1.1; margin:10px 0 16px; }
.lead{ font-size:19px; max-width:62ch; color:var(--grau); margin:0; }

/* ---------- Filterleiste ---------- */
.filter{
  position:sticky; top:69px; z-index:50;
  display:flex; gap:9px; flex-wrap:wrap; align-items:center;
  padding:18px 0 20px; margin-bottom:8px;
  background:linear-gradient(var(--papier) 72%, rgba(253,253,249,0));
}
.chip{
  font:inherit; font-size:14.5px; font-weight:600; cursor:pointer;
  padding:9px 17px; border-radius:999px; white-space:nowrap;
  background:#fff; color:var(--tinte); border:1.5px solid rgba(38,48,31,.14);
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover{ border-color:var(--gruen); }
.chip span{ opacity:.5; font-weight:600; margin-left:5px; font-variant-numeric:tabular-nums; }
.chip[aria-pressed="true"]{ background:var(--gruen); border-color:var(--gruen); color:#fff; }
.chip[aria-pressed="true"] span{ opacity:.75; }
.chip:focus-visible{ outline:3px solid var(--gruen-dunkel); outline-offset:2px; }

/* ---------- Raster: Masonry über CSS-Spalten ---------- */
.raster{ columns:4 260px; column-gap:16px; padding-bottom:40px; }
@media (max-width:1100px){ .raster{ columns:3 240px; } }
@media (max-width:760px){  .raster{ columns:2 160px; column-gap:12px; } }

.gbild{
  display:block; position:relative; margin:0 0 16px;
  break-inside:avoid; -webkit-column-break-inside:avoid;
  border-radius:14px; overflow:hidden; background:var(--blatt);
  text-decoration:none; cursor:zoom-in;
  transition:transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
  box-shadow:0 1px 2px rgba(38,48,31,.06);
}
@media (max-width:760px){ .gbild{ margin-bottom:12px; } }
.gbild img{ width:100%; height:auto; transition:transform .5s cubic-bezier(.22,1,.36,1); }
.gbild::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top, rgba(22,27,18,.34), rgba(22,27,18,0) 45%);
  opacity:0; transition:opacity .28s ease;
}
.gbild:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(38,48,31,.16); }
.gbild:hover img{ transform:scale(1.045); }
.gbild:hover::after{ opacity:1; }
.gbild:focus-visible{ outline:3px solid var(--gruen); outline-offset:3px; }
.gbild[hidden]{ display:none; }

/* ---------- Abschluss ---------- */
.abschluss{ background:var(--blatt); padding:70px 0; text-align:center; }
.abschluss h2{ font-family:var(--display); font-weight:500; font-size:clamp(26px,3.5vw,38px); margin:8px 0 14px; }
.abschluss p{ color:var(--grau); max-width:54ch; margin:0 auto 26px; }
.btn{ display:inline-block; text-decoration:none; font-weight:700; font-size:16px;
      padding:14px 28px; border-radius:999px; transition:transform .15s ease, background .15s ease; }
.btn:hover{ transform:translateY(-2px); }
.btn-gruen{ background:var(--gruen); color:#fff; }
.btn-gruen:hover{ background:var(--gruen-dunkel); }

footer{ background:var(--nacht); color:#C9D2BE; padding:34px 0; font-size:14.5px; }
footer .wrap{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
footer a{ color:#C9D2BE; }

/* ============================================================
   Lightbox
   ============================================================ */
.lb{
  position:fixed; inset:0; z-index:100;
  background:rgba(14,18,11,.94);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .22s ease;
}
@supports (backdrop-filter:blur(4px)){ .lb{ background:rgba(14,18,11,.86); backdrop-filter:blur(6px); } }
.lb.offen{ opacity:1; }
.lb[hidden]{ display:none; }

.lb-buehne{ margin:0; max-width:min(1500px,94vw); max-height:88vh; display:flex; flex-direction:column; gap:14px; }
.lb-buehne img{
  max-width:100%; max-height:78vh; width:auto; height:auto; margin:0 auto;
  border-radius:10px; background:#0c0f09;
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}
.lb-text{ color:#E6ECDF; font-size:15px; text-align:center; margin:0; max-width:70ch; }

.lb-knopf{
  position:absolute; z-index:2; cursor:pointer;
  background:rgba(255,255,255,.10); border:1.5px solid rgba(255,255,255,.28);
  color:#fff; border-radius:999px; display:grid; place-items:center;
  transition:background .15s ease, transform .15s ease;
}
.lb-knopf:hover{ background:rgba(255,255,255,.24); }
.lb-knopf:focus-visible{ outline:3px solid var(--gruen); outline-offset:3px; }
.lb-knopf svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

.lb-zu{ top:18px; right:18px; width:46px; height:46px; }
.lb-zurueck,.lb-weiter{ top:50%; margin-top:-27px; width:54px; height:54px; }
.lb-zurueck{ left:18px; }
.lb-weiter{ right:18px; }
.lb-knopf[disabled]{ opacity:.28; cursor:default; }
.lb-knopf[disabled]:hover{ background:rgba(255,255,255,.10); }

.lb-zaehler{
  position:absolute; top:24px; left:50%; transform:translateX(-50%);
  color:#B9C4AC; font-size:14px; font-variant-numeric:tabular-nums; letter-spacing:.04em;
}

@media (max-width:760px){
  .lb-zurueck,.lb-weiter{ width:44px; height:44px; margin-top:-22px; }
  .lb-zurueck{ left:8px; } .lb-weiter{ right:8px; }
  .lb-zu{ top:10px; right:10px; }
  .lb-buehne{ max-width:96vw; }
  .lb-buehne img{ max-height:72vh; }
}

/* Wer weniger Bewegung eingestellt hat, bekommt weniger Bewegung. */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .gbild,.gbild img,.gbild::after,.lb,.lb-knopf,.btn{ transition:none !important; }
  .gbild:hover{ transform:none; }
  .gbild:hover img{ transform:none; }
}
