/* Erstellt mit Gemini am 01.09.2026 */
/* css2026.css - Hauptverzeichnis */

* {
  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;
}

/* ===================================================
   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);
}

/* ===================================================
   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;
}

/* Standard: Querformat 4:3 */
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-color: #050505;
}

/* Zusatzklasse für Hochkant-Thumbnails (2:3) */
.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 (Gemeinsam für alle Seiten)
   =================================================== */
.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);
}

.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;
  }
}

/* Styling für Anmerkungs-Boxen unter Bildreihen */
.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;
}