/* =========================================================
   ANNO 2205 – INDIVIDUELLER STIL
   Stimmung: Blau – Sci-Fi – Raumstation
   ========================================================= */

:root {
  --color-accent: #6fd6ff;

  --color-panel: rgba(8, 16, 32, 0.55);
  --color-panel-hover: rgba(16, 32, 60, 0.85);

  --color-border: rgba(130, 200, 255, 0.6);
  --color-line: rgba(130, 200, 255, 0.32);

  --color-text: #e9f4ff;
}

/* =========================================================
   Hintergrund – Overlay schwächer, Bild besser sichtbar
   ========================================================= */

.background {
  background-image: url("../Bilder/Hintergrund/Anno 2205.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;

  /* weniger Überlagerung, mehr Bild */
  background:
    radial-gradient(circle at top, rgba(120, 190, 255, 0.08), transparent 55%),
    linear-gradient(to bottom, rgba(0, 8, 20, 0.14), rgba(0, 4, 16, 0.45));

  backdrop-filter: brightness(1.0) saturate(1.02);
  z-index: 0;
}

/* Scrollbereich noch transparenter */

.scroll-content {
  background: rgba(0, 0, 10, 0.12);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Header – voller Balken, Titel mittig
   ========================================================= */

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin: 0 0 12px 0;
  padding: 8px 16px;

  background: rgba(3, 10, 26, 0.94);
  box-shadow: 0 0 10px rgba(120, 200, 255, 0.9);
  backdrop-filter: blur(4px);
}

.app-header h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9f4ff;
  text-align: center;
}

/* Zurück-Button links, Text-only */

.app-header .back-btn {
  position: absolute;
  left: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;

  color: #e9f4ff;
  text-decoration: none;

  border: 1px solid rgba(130, 200, 255, 0.75);
  background: radial-gradient(circle at top, #284a7d, #091528);
  box-shadow: 0 0 8px rgba(120, 200, 255, 0.8);

  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

/* Falls noch ein Bild im Button ist: ausblenden */
.app-header .back-btn img {
  display: none;
}

.app-header .back-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(150, 215, 255, 0.95);
}

/* =========================================================
   Buttons (z.B. „Daten übertragen“) – hübscher Sci-Fi Style
   ========================================================= */

.btn {
  padding: 8px 20px;
  border-radius: 999px;

  font-weight: 600;
  letter-spacing: 0.03em;

  color: #03101f;
  background: linear-gradient(120deg, #6fd6ff, #9cf4ff);
  border: 1px solid rgba(130, 200, 255, 0.9);

  box-shadow:
    0 0 10px rgba(120, 200, 255, 0.8),
    0 0 24px rgba(110, 255, 255, 0.4);

  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 0 14px rgba(150, 230, 255, 1),
    0 0 28px rgba(130, 255, 255, 0.6);
}

/* =========================================================
   Allgemeine Panels
   ========================================================= */

.panel {
  background: rgba(8, 16, 32, 0.55);
  border: 1px solid rgba(130, 200, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.panel:hover {
  box-shadow: 0 0 14px rgba(130, 200, 255, 0.8);
  transform: translateY(-2px);
}

/* =========================================================
   Produktionsketten – Farbliche Trennung über deine Farben
   ========================================================= */

#annoproduktionsketten {
  background: rgba(3, 8, 22, 0.45);
  border-radius: 12px;
  padding: 10px;
  margin: 0 auto 24px auto;
  max-width: 1800px;

  box-shadow: 0 0 14px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}

/* Basisshadow für alle Tabellen */
#annoproduktionsketten table {
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.55);
}

/* Einheitlicher Look für Produktionsketten in der Gemäßigten Zone */
.production-table.zone-temperate {
  background-color: rgba(0, 255, 0, 0.4);
  color: black;
  text-shadow: 0 0 15px white;

  border: 1px solid rgba(0, 255, 120, 0.8);
  box-shadow: 0 0 14px rgba(0, 255, 120, 0.85);
}

/* ===== Farbliche Verstärkung nach DLC/Zone (über deine inline-bg) ===== */

/* Gemäßigte Zone (grün) */
#annoproduktionsketten table[style*="rgba(0,255,0"] {
  border: 1px solid rgba(0, 255, 120, 0.8) !important;
  box-shadow: 0 0 14px rgba(0, 255, 120, 0.85);
}

/* Arktis (türkis) */
#annoproduktionsketten table[style*="rgba(0,245,255"] {
  border: 1px solid rgba(80, 240, 255, 0.85) !important;
  box-shadow: 0 0 14px rgba(80, 240, 255, 0.85);
}

/* Mond (grau) */
#annoproduktionsketten table[style*="rgba(80,80,80"] {
  border: 1px solid rgba(200, 200, 200, 0.7) !important;
  box-shadow: 0 0 14px rgba(200, 200, 200, 0.75);
}

/* Tundra (orange) */
#annoproduktionsketten table[style*="rgba(255,165,0"] {
  border: 1px solid rgba(255, 190, 90, 0.9) !important;
  box-shadow: 0 0 14px rgba(255, 190, 90, 0.9);
}

/* Orbit-Varianten (rot) */
#annoproduktionsketten table[style*="rgba(238,0,0"] {
  border: 1px solid rgba(255, 110, 110, 0.95) !important;
  box-shadow: 0 0 16px rgba(255, 110, 110, 0.95);
}


/* Icons leicht leuchtend, ohne Farbe kaputt zu machen */
#annoproduktionsketten img {
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(120, 200, 255, 0.35);
}

/* Lesbarkeit – du setzt im HTML meist black + white text-shadow */
#annoproduktionsketten,
#annoproduktionsketten table,
#annoproduktionsketten td,
#annoproduktionsketten th {
  color: #000;
}

/* =========================================================
   Entwicklungsstufen – farbige Abschnitts-Trennung
   jetzt konsistent nach ZONE
   Gemäßigt = grün, Arktis = türkis, Mond = grau/blau,
   Tundra = orange
   ========================================================= */

/* =========================================================
   Entwicklungsstufen – farbige Abschnitts-Trennung
   Zonen-einheitlich (Gemäßigte Zone / Arktis / Mond / Tundra)
   ========================================================= */

/* ---------------------------------------------
   Gemäßigte Zone
   → Arbeiter / Administratoren / Manager / Investoren
   (alle denselben Rahmen & Glow)
---------------------------------------------- */

#annoproduktionsketten:has(> img[src*="Arbeiter.png"]),
#annoproduktionsketten:has(> img[src*="Administratoren.png"]),
#annoproduktionsketten:has(> img[src*="Manager.png"]),
#annoproduktionsketten:has(> img[src*="Investoren.png"]),
#annoproduktionsketten:has(> img[src*="Arbeiter.png"]) + #annoproduktionsketten,
#annoproduktionsketten:has(> img[src*="Administratoren.png"]) + #annoproduktionsketten,
#annoproduktionsketten:has(> img[src*="Manager.png"]) + #annoproduktionsketten,
#annoproduktionsketten:has(> img[src*="Investoren.png"]) + #annoproduktionsketten {
  background: radial-gradient(circle at top,
              rgba(60, 220, 150, 0.18),
              rgba(0, 20, 8, 0.92));
  border: 1px solid rgba(120, 255, 180, 0.9);
  box-shadow: 0 0 18px rgba(60, 220, 150, 0.9);
}

/* ---------------------------------------------
   Arktis
   → Beschützer / Wissenschaftler
---------------------------------------------- */

#annoproduktionsketten:has(> img[src*="Beschuetzer.png"]),
#annoproduktionsketten:has(> img[src*="Wissenschaftler.png"]),
#annoproduktionsketten:has(> img[src*="Beschuetzer.png"]) + #annoproduktionsketten,
#annoproduktionsketten:has(> img[src*="Wissenschaftler.png"]) + #annoproduktionsketten {
  background: radial-gradient(circle at top,
              rgba(120, 240, 255, 0.20),
              rgba(0, 18, 26, 0.95));
  border: 1px solid rgba(140, 240, 255, 0.95);
  box-shadow: 0 0 18px rgba(120, 240, 255, 0.95);
}

/* ---------------------------------------------
   Mond
   → Minenarbeiter / Offiziere
---------------------------------------------- */

#annoproduktionsketten:has(> img[src*="Minenarbeiter.png"]),
#annoproduktionsketten:has(> img[src*="Offiziere.png"]),
#annoproduktionsketten:has(> img[src*="Minenarbeiter.png"]) + #annoproduktionsketten,
#annoproduktionsketten:has(> img[src*="Offiziere.png"]) + #annoproduktionsketten {
  background: radial-gradient(circle at top,
              rgba(200, 200, 200, 0.20),
              rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(220, 220, 220, 0.9);
  box-shadow: 0 0 18px rgba(220, 220, 220, 0.85);
}

/* ---------------------------------------------
   Tundra
   → Ökologen / Feldforscher
---------------------------------------------- */

#annoproduktionsketten:has(> img[src*="Tundra/Oekologen.png"]),
#annoproduktionsketten:has(> img[src*="Tundra/Feldforscher.png"]),
#annoproduktionsketten:has(> img[src*="Tundra/Oekologen.png"]) + #annoproduktionsketten,
#annoproduktionsketten:has(> img[src*="Tundra/Feldforscher.png"]) + #annoproduktionsketten {
  background: radial-gradient(circle at top,
              rgba(255, 210, 140, 0.22),
              rgba(40, 20, 0, 0.96));
  border: 1px solid rgba(255, 220, 160, 0.95);
  box-shadow: 0 0 18px rgba(255, 210, 140, 0.95);
}




/* Zonen-Farben für die Einwohner-Übersicht */
.zone-temperate {
  background: rgba(0, 255, 0, 0.26);
}

.zone-arctic {
  background: rgba(0, 245, 255, 0.26);
}

.zone-moon {
  background: rgba(80, 80, 80, 0.45);
  color: #f5f5f5;
}

.zone-tundra {
  background: rgba(255, 165, 0, 0.3);
}

/* Zonen-Farben für die Einwohner-Übersicht (Kopfzeile) */
.population-table thead th.zone-temperate {
  background: rgba(0, 255, 0, 0.26);
}

.population-table thead th.zone-arctic {
  background: rgba(0, 245, 255, 0.26);
}

.population-table thead th.zone-moon {
  background: rgba(80, 80, 80, 0.75);
  color: #f5f5f5;
}

.population-table thead th.zone-tundra {
  background: rgba(255, 165, 0, 0.3);
}

/* =========================================================
   Moderne Produktionsketten-Tabellen (ohne Inline-Styles)
   ========================================================= */

.production-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.production-table th,
.production-table td {
  padding: 6px 10px;
  text-align: center;
}

/* Zonen-Farben für Produktionsketten */
.production-table.zone-temperate {
  background: rgba(0, 255, 0, 0.26);
  border: 1px solid rgba(0, 255, 120, 0.85);
  box-shadow: 0 0 14px rgba(0, 255, 120, 0.85);
}

.production-table.zone-arctic {
  background: rgba(0, 245, 255, 0.26);
  border: 1px solid rgba(80, 240, 255, 0.85);
  box-shadow: 0 0 14px rgba(80, 240, 255, 0.85);
}

.production-table.zone-moon {
  background: rgba(80, 80, 80, 0.45);
  border: 1px solid rgba(200, 200, 200, 0.7);
  box-shadow: 0 0 14px rgba(200, 200, 200, 0.75);
  color: #f5f5f5;
}

.production-table.zone-tundra {
  background: rgba(255, 165, 0, 0.30);
  border: 1px solid rgba(255, 190, 90, 0.9);
  box-shadow: 0 0 14px rgba(255, 190, 90, 0.9);
}

.production-table.zone-orbit {
  background: rgba(238, 0, 0, 0.30);
  border: 1px solid rgba(255, 110, 110, 0.95);
  box-shadow: 0 0 16px rgba(255, 110, 110, 0.95);
}

/* Orbit-DLC – rote Hervorhebung für Produktionsketten */
.production-table.dlc-orbit {
  background: rgba(40, 0, 0, 0.7);
  border: 1px solid rgba(255, 110, 110, 0.95);
  box-shadow: 0 0 16px rgba(255, 110, 110, 0.95);
}

/* Optional: Titel in Orbit-Ketten leicht leuchten lassen */
.production-table.dlc-orbit b {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

