/* CSS fuer Galerien - SpaceCassini.com */
/* Erstellt mit Gemini am 01.09.2026 */
/* Anpassungen: 19.09.2026 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000000;
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================================================
   Header (Gemeinsam für alle Seiten)
   =================================================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid #222222;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

header img {
  max-height: 70px;
  height: auto;
}

.header-text {
  margin-left: auto;
  text-align: right;
}

.header-text h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.header-text p {
  color: #aaaaaa;
  font-size: 0.95rem;
}

.scale-badge {
  display: inline-block;
  background-color: #111111;
  color: #00d2ff;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #00d2ff;
  margin-top: 5px;
}

.gallery-top-nav {
  max-width: 1200px;
  margin: 10px auto 25px auto;
  padding: 0;
  text-align: left;
}

.btn-home {
  display: inline-block;
  padding: 8px 18px;
  color: #00c3ff;
  border: 1px solid #00c3ff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-home:hover {
  background-color: #00c3ff;
  color: #000000;
}

/* ===================================================
   Link-Design definiert (Gemeinsam für alle Seiten)
   =================================================== */
.bilder-title a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #00d2ff;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.bilder-title a:hover {
  color: #00d2ff;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* ============================================================ */
/* GALERIE TOP NAVIGATION / HOME BUTTON                         */
/* Erstellt mit Gemini am 19.09.2026                            */
/* ============================================================ */

/* Container für den Navigations-Button oben */
.gallery-top-nav {
  margin: 15px 0 25px 0;      /* Abstand nach oben zum Header und unten zu den Bildern */
  display: flex;
  justify-content: flex-start;/* Richtet den Button linksbündig aus */
}

/* Styling für den Home-Button */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #1a1a24;  /* Dunkler Button-Hintergrund passend zum Space-Design */
  color: #ffffff;             /* Weiße Schriftfarbe */
  text-decoration: none;      /* Unterstreichung entfernen */
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #3a3a4c;  /* Dezenter Rahmen */
  border-radius: 6px;         /* Abgerundete Ecken */
  transition: all 0.25s ease; /* Weicher Übergang für Hover-Effekte */
}

/* Hover-Effekt beim Drüberfahren mit der Maus */
.btn-home:hover {
  background-color: #2a2a3d;  /* Etwas hellerer Hintergrund */
  border-color: #61618a;      /* Akzentuierter Rahmen */
  color: #ffffff;
  transform: translateX(-3px);/* Bewegt den Button leicht nach links (Pfeil-Effekt) */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===================================================
   1. SpaceCassini_Models (Raketenmodelle Grid)
   =================================================== */
.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.4rem;
  color: #ffffff;
  border-bottom: 2px solid #00d2ff;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.model-card {
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: #00d2ff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
}

.model-card a {
  display: block;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
}

.model-card:hover .model-title {
  color: #00d2ff;
}

.model-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background-color: #050505;
}

.model-title {
  display: block;
  padding: 10px 5px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #dddddd;
  transition: color 0.2s ease;
}

/* ===================================================
   2. SpaceCassini_Bilder & Astronauts (4er-Grid)
   =================================================== */
.astronaut-section,
.bilder-section {
  margin-bottom: 45px;
}

.astronaut-header,
.bilder-header {
  border-bottom: 2px solid #00d2ff;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.astronaut-header h2,
.bilder-header h2 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.astronaut-missions,
.bilder-title {
  color: #00d2ff;
  font-size: 0.95rem;
  font-weight: 500;
}

.photo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.photo-card {
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: #00d2ff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
}

.photo-card a {
  display: block;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-color: #050505;
}

.photo-card.portrait img {
  aspect-ratio: 2 / 3;
}

/* ===================================================
   Footer (Gemeinsam für alle Seiten)
   =================================================== */
footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #222222;
  text-align: center;
  color: #888888;
  font-size: 0.85rem;
}

.footer-copyright {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 15px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.footer-links {
  margin-bottom: 20px;
  color: #444444;
}

.footer-links a {
  color: #00d2ff;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

.disclaimer p {
  margin: 4px 0;
  color: #666666;
}

/* ===================================================
   Lightbox Overlay
   =================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.94);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 15px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #00d2ff;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: color 0.2s;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #00d2ff;
}

/* ===================================================
   Responsive Optimierungen
   =================================================== */
@media (max-width: 768px) {
  .photo-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .header-text {
    margin-left: 0;
    text-align: center;
  }

  .header-text h1 {
    font-size: 1.6rem;
  }

  .model-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .photo-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 28px;
    padding: 8px;
  }

  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 32px;
  }
}

.gallery-note {
  margin-top: 20px;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #00a8ff;
  border-radius: 4px;
  font-size: 0.9em;
  color: #b0b0b0;
  line-height: 1.5;
}

.gallery-note strong {
  color: #ffffff;
}