/* layout.css
   Enthält das Hauptlayout für größere Bildschirme (Desktop).
   Hier werden Container, Spalten und grundlegende Elemente definiert.
   Media Queries für Tablet und Smartphone werden in responsive.css festgelegt.
*/

/* ==========================================================
   1. Container und Spalten (Desktop)
   Legt das Layout für größere Bildschirme fest.
   ==========================================================
*/
.container {
  /* Flexbox-Container für horizontale Anordnung */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1400px;
  min-height: calc(100vh - 20px);
  margin: 10px auto;
  padding: 10px 20px;
  box-sizing: border-box;
}

.left {
  /* Linke Spalte (z.B. für Bilder oder Navigation) */
  flex: 0 1 auto;
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.right {
  /* Rechte Spalte (z.B. für Texte und Inhalte) */
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 60%;
}

.right-top {
  /* Oberer Bereich der rechten Spalte */
  position: relative;
  width: 100%;
}

.right-bottom {
  /* Unterer Bereich der rechten Spalte */
  width: 100%;
  position: relative;
}

/* ==========================================================
   2. Bild und Overlay-Text (Desktop)
   Styles für Bilder und den darüberliegenden Text.
   ==========================================================
*/
.image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  opacity: 1;
  transition: opacity 2s ease-in-out;
}

.hidden {
  /* Element unsichtbar machen (z.B. bei Übergängen) */
  opacity: 0;
  pointer-events: none;
}

/* Overlay-Text, der über Bildern liegt */
#overlay-text {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  color: white;
  font-size: 22px;
  text-align: center;
  font-weight: bold;
  padding: 10px;
  background: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 5;
  white-space: normal;
}

/* Aktivierter Overlay-Hintergrund */
#overlay-text.active-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* ==========================================================
   3. Spezielle Bereiche (Desktop)
   Definiert Styles für Video, Jubiläum, Experience und Kontakt.
   ==========================================================
*/
.video-container {
  /* Video-Bereich, standardmäßig ausgeblendet */
  display: none;
  text-align: center;
  margin-top: 20px;
}

#nostalgie-video {
  /* Video-Stil: Maximale Breite und abgerundete Ecken */
  max-width: 80%;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.jubilaeum-container {
  /* Jubiläum-Bereich, standardmäßig ausgeblendet */
  display: none;
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

.jubilaeum-container img {
  /* Bild im Jubiläum-Bereich */
  display: block;
  max-width: 70%;
  max-height: 60vh;
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.experience-container {
  /* Experience-Bereich, standardmäßig unsichtbar */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  width: 100%;
  height: 200px;
  margin-top: 20px;
  max-width: 90%;
  font-size: 24px;
  font-weight: bold;
  color: white;
  line-height: 1.4;
  background: rgba(0,0,0,0.5);
  overflow-wrap: normal;
  white-space: normal;
  padding-right: 20px;
}

#kontakt-container {
  /* Kontaktbereich, standardmäßig unsichtbar */
  display: none;
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

#kontakt-container img {
  /* Bild im Kontaktbereich */
  display: block;
  max-width: 70%;
  max-height: 60vh;
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* ==========================================================
   4. Impressum-Container (Desktop)
   Container für Impressum-Informationen, standardmäßig ausgeblendet.
   ==========================================================
*/
.impressum-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 20px;
  padding: 10px;
  background-color: black;
  color: white;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 100;
}

.impressum-container.visible {
  opacity: 1;
}

/* ==========================================================
   5. Button-Stile (Desktop)
   Einheitliche Darstellung für Buttons.
   ==========================================================
*/
.buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 5px;
}

button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  min-width: 120px;
  height: 40px;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #007BFF; /* Standard-Button-Farbe */
  color: white;
  transition: background 0.3s ease, color 0.3s ease;
}

button:hover {
  /* Hover-Zustand: Änderung von Hintergrund und Textfarbe */
  background-color: #f0f0f0;
  color: #ff0000;
}

button:disabled {
  /* Ausgeblendeter Zustand für deaktivierte Buttons */
  background-color: #ddd;
  color: #888;
  cursor: not-allowed;
}

button:disabled:hover {
  background-color: #ddd;
  color: #888;
}

#button-container {
  /* Container für Buttons, relativ positioniert */
  position: relative;
}

/* ==========================================================
   6. Loading-Status (Desktop)
   Anzeige für den Ladezustand.
   ==========================================================
*/
#loading-status {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 100;
  font-size: 14px;
  font-family: Arial, sans-serif;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  transition: opacity 0.5s ease-in-out;
}

/* ==========================================================
   7. Version-Container (Desktop)
   Zeigt die Versionsnummer mit Glow-Effekt an.
   ==========================================================
*/
.version-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  font-weight: bold;
  color: #ff0;
  text-shadow: 0 0 10px #ff0, 0 0 20px #f06, 0 0 30px #0ff;
  animation: glow 2s infinite alternate; /* Verweist auf die Glow-Animation in animations.css */
  z-index: 10;
  white-space: nowrap;
}

/* ==========================================================
   8. Gradient Text (Desktop)
   Erzeugt einen Farbverlaufseffekt im Text.
   ==========================================================
*/
.gradient-text {
  background: linear-gradient(
    45deg, 
    #00ff00,  /* Grün */
    #0000ff   /* Blau */
  );
  /* Chrome/Safari: Hintergrund-Clipping */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Standard: Firefox und neuere Browser */
  background-clip: text;
  color: transparent;
  /* Optionaler Glow-Effekt */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7),
               0 0 10px rgba(255, 255, 255, 0.4);
}
