:root {
  --sos-gruen: #61A36F;
  --sos-gruen-soft: #EDF7F0; /* helles SOS-Grün */
  --sos-lila: #8D4BA4;
  --sos-text: #283239;
}

/* ===========================================================
   GANZE SEITE – Hintergrund hellgrün
=========================================================== */
.sos-archiv-wrap {
  background: var(--sos-gruen-soft);
  padding: 40px 20px;
  border-radius: 22px;
}


/* ===========================================================
   GRID – 1:1 Layout wie Glücksmomente Karten
=========================================================== */
.sos-archiv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin: 20px auto;
  max-width: 1300px;
}



/* ===========================================================
   KARTEN – mit lila Rahmen und Schatten
=========================================================== */
.sos-archiv-card {
  background: #ffffff;
  border-radius: 22px;
  border: 3px solid var(--sos-lila); 
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  overflow: hidden;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sos-archiv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.sos-archiv-card img {
  display: block;
  width: 100%;
  height: auto;
}



/* ===========================================================
   LIGHTBOX – perfekter Overlay-Hintergrund
   NICHTS scheint mehr durch
=========================================================== */

#sos-archiv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* kein Durchscheinen */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 99999;
}

#sos-archiv-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}



/* ===========================================================
   LIGHTBOX-INHALT – 1 Bild, zentriert, NICHT abgeschnitten
=========================================================== */

.sos-archiv-overlay-inner {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  animation: sosFadeIn .25s ease;
}

@keyframes sosFadeIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

#sos-archiv-overlay img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
}



/* ===========================================================
   LIGHTBOX SCHLIESSEN-BUTTON
=========================================================== */

.sos-archiv-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--sos-lila);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform .2s ease;
}

.sos-archiv-close:hover {
  transform: scale(1.15);
}



/* ===========================================================
   LIGHTBOX NAVIGATION – Pfeile links und rechts
=========================================================== */

.sos-archiv-nav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--sos-lila);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;
  transition: transform .2s ease;
  z-index: 100000;
}

.sos-archiv-nav:hover {
  transform: scale(1.15);
}

.sos-archiv-prev { left: -70px; }
.sos-archiv-next { right: -70px; }



/* ===========================================================
   MOBILE VERSION
=========================================================== */

@media (max-width: 700px) {

  .sos-archiv-overlay-inner {
    max-width: 92vw;
    padding: 12px;
  }

  #sos-archiv-overlay img {
    max-height: 60vh;
  }

  .sos-archiv-prev { left: 10px; }
  .sos-archiv-next { right: 10px; }
}
