/* Global */
body {
  animation: fadeIn 1.0s ease-in;
  margin: 0;
  min-height: 100vh;
  background-color: black;
  position: relative;
  font-family: sans-serif;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #999999; 
}

/* --- HOMEPAGE LAYOUT (Zentriert) --- */
body.home-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Verhindert Scrollen auf der Startseite */
}

body.home-page .scene-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.home-page .text-container {
  text-align: center;
}


/* --- SUB-PAGES LAYOUT (Universell für alle Inhaltsseiten) --- */
body.sub-page {
  display: flex !important;       /* Zentriert die Inhaltsbox auf dem Bildschirm */
  justify-content: center;
  align-items: flex-start;        /* Startet oben, damit Scrollen sauber funktioniert */
  overflow-y: auto !important;    /* Erlaubt vertikales Scrollen auf der Unterseite */
  padding: 50px 50px;             /* Abstand oben/unten und zu den Rändern */
  box-sizing: border-box;
  text-align: left !important;
}

/* Universelle Inhaltsbox (für Patchnotes, About, Kontakt, etc.) */
.content-box {
	
	
  position: relative;
  z-index: 3;                     /* Über dem Video und dem globalen Schleier */
  width: 100%;
  max-width: 1200px;               /* Begrenzt die Breite für optimale Lesbarkeit */
  background: rgba(0, 0, 0, 0.85); /* Starke, zusätzliche Abdunklung für den Textbereich */
  padding: 150px 80px;                  /* Innerer Abstand vom Text zum Box-Rand */
  border-radius: 8px;             /* Leicht abgerundete Ecken */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sanfter Tiefenschatten */
  box-sizing: border-box;
  color: #999999;                 /* Normaler Fließtext/Listenpunkte in der Box werden grau */
}

.box-logo {
  position: absolute;
  top: 30px;         /* Abstand vom oberen Box-Rand */
  left: 30px;        /* Passt sich optisch dem linken Box-Rand an */
  display: inline-block;
  z-index: 10;
  transition: transform 0.5s ease, opacity 0.5s ease !important;
  opacity: 0.75;
}

.box-logo img {
  width: 240px;      /* Steuert die Breite des Logos (nach Wunsch anpassen) */
  height: auto;      /* Verhindert Verzerrungen */
  display: block;
}

/* Hover-Effekt: Logo wird heller und skaliert leicht beim Drüberfahren */
.box-logo:hover {
  transform: scale(1.05);
  opacity: 1 !important; /* Überschreibt globale Link-Farbregeln */
}

/* Richtet Überschriften innerhalb der Box linksbündig aus und erzwingt Weiß */
body.sub-page h1, 
body.sub-page h2, 
body.sub-page h3 {
  color: white !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-top: 0;
}

/* Richtet Listen und Listenpunkte linksbündig aus */
body.sub-page ul, 
body.sub-page ol {
  text-align: left !important;
  list-style-position: outside;   /* Bulletpoints stehen sauber links neben dem Text */
  padding-left: 20px;
}

body.sub-page li {
  text-align: left !important;
  margin-bottom: 8px;
}

a, a:link, a:visited, a:active {
  color: rgb(255, 255, 255) !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

a:hover {
  color: rgb(255, 0, 0) !important;
  text-decoration: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Ebene 1 (Ganz hinten): Background video */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* Niedrigste Ebene */
}

.video-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-foreground iframe {
  /* Erhöht die Grundgröße um 15%, um die UI-Ränder aus dem Viewport zu schieben */
  width: 115vw; 
  height: 64.68vw; /* 115 * 0.5625 (16:9 Verhältnis) */
  min-height: 115vh;
  min-width: 204.44vh; /* 115 * 1.7777 (16:9 Verhältnis) */
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Ebene 2 (Mittig): Dark overlay nur über dem Video */
.overlay-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.50); /* Startansicht: Hellerer Schleier (vorher 0.85) */
  z-index: 2;
  pointer-events: none;
  transition: background-color 0.4s ease; /* Ermöglicht die sanfte Überblendung */
}

body.sub-page .overlay-dark {
  background: rgba(0, 0, 0, 0.80) !important; 
}

/* NEU: Diese Hilfsklasse regelt das Overlay für den zweiten Teil hoch */
.overlay-dark.darker {
  background-color: rgba(0, 0, 0, 0.85); /* Inhaltsansicht: Starke Abdunklung */
}

/* Ebene 3 (Ganz vorne): Szenen-Strukturierung */
.scene-home, .scene-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  width: 100%;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  position: relative; 
  z-index: 3; /* Höchste Ebene: Komplett unbeeinflusst vom Schleier */
}

/* Hilfsklassen für Animationen & Sichtbarkeit */
.hidden {
  display: none !important;
}

.fade-out {
  opacity: 0;
}

.scene-content {
  opacity: 0;
}

.scene-content.fade-in-active {
  opacity: 1;
}

/* Main logo (klickbar) */
.main-logo {
  cursor: pointer;
}

.main-logo img {
  width: 550px;
  max-width: 60vw;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-logo img:hover {
  transform: scale(1.05);
  opacity: 1;
}


h1, h2 {
  letter-spacing: 0.2em; 
  text-transform: uppercase;
}

/* Sub logos */
.sub-logos {
  margin-top: 40px;
  display: flex;
  gap: 30px;
}

.sub-logos img {
  max-width: 32px;
  height: auto;
  opacity: 0.15;
  transition: transform 1.0s ease, opacity 1.0s ease;
}

.sub-logos img:hover {
  transform: scale(1.2);
  opacity: .65;
}


/* Kleines Logo (Desktop-Standard) */
.small-logo {
  cursor: pointer;
  margin-bottom: 0px;
}

.small-logo img {
  width: 100px; /* Hier kannst du die Desktop-Größe anpassen */
  max-width: 40vw;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.small-logo img:hover {
  transform: scale(1.05);
  opacity: 1;
}


/* --- CENTRAL SUB-PAGES FOOTER (Optimiert) --- */
.sub-footer {
  margin-top: 120px;           /* Abstand nach oben zu den Patchnotes */
  padding-top: 30px;          /* Innerer Abstand über der Trennlinie */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Dezente Trennlinie */
  display: flex !important;
  flex-direction: column;     /* Stapelt obere Zeile und untere Textzeile */
  gap: 20px;                  /* Abstand zwischen der Icon-Zeile und dem Text darunter */
  width: 100%;
}

/* Die neue obere Zeile: Erzwingt perfekte Gleichhöhe von Icons und Logo */
.sub-footer .footer-top-row {
  display: flex !important;
  justify-content: space-between; /* Drückt Icons nach links, Logo nach rechts */
  align-items: center;            /* Zwingt beide exakt auf dieselbe horizontale Linie */
  width: 100%;
}

/* Linke Seite: Setzt die Icons linksbündig */
.sub-footer .sub-logos {
  margin-top: 0 !important;   /* Hebt Startseiten-Abstand auf */
  display: flex;
  justify-content: flex-start !important;
  gap: 20px;                  /* Abstand zwischen den kleinen Icons */
}

.sub-footer .sub-logos img {
  max-width: 24px;            /* Kompakte Icon-Größe */
  opacity: 0.35;
  display: block;
}

.sub-footer .sub-logos img:hover {
  opacity: 0.85;
}

/* Rechte Seite: Das kleine Logo in der Ecke */
.sub-footer .footer-logo-right {
  display: block;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-right: 20px;
}

.sub-footer .footer-logo-right img {
  width: 30px;               /* Kompakte Breite für das Eck-Logo */
  height: auto;
  display: block;
}

.sub-footer .footer-logo-right:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Unterer Block: Ausrichtung für Text-Links und Copyright */
.sub-footer .footer-text {
  text-align: left !important;
  width: 100%;
}

.sub-footer .footer-links {
  margin: 0 0 8px 0;          /* Kleiner Abstand nach unten zum Copyright */
}

.sub-footer .footer-links a {
  color: #999999 !important;
  font-size: 0.95rem;
  margin-right: 20px;         /* Abstand zwischen den Text-Links */
  transition: color 0.3s ease;
}

.sub-footer .footer-links a:hover {
  color: rgb(255, 0, 0) !important;
}

/* KORREKTUR: Copyright-Text deutlich verkleinert und dezenter gefärbt */
.sub-footer .copyright-text {
  font-size: 0.75rem !important; /* Spürbar kleinere Schriftgröße */
  color: #555555 !important;     /* Dunkleres Grau für weniger visuelle Ablenkung */
  margin: 0;
}
