/* =======================================================
   TKO_Web_V7_FixedNav_DE_EN
   Style-Datei für alle Seiten (index, rules, changelog)
   Erstellt für Thomas TKO – Stand: November 2025
   ======================================================= */

/* ---------- Farb- und Theme-Variablen ---------- */
:root {
  --color-primary: #06aedb;
  --bg-color: #040404;
  --card-bg: rgba(0, 0, 0, 0.65);
  --text-color: #06aedb;
}

/* ---------- Grundlayout ---------- */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--bg-color);
  background-image: url("../img/baseThomasNacht.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
  transition: background-color 1s, color 1s;
}

/* ---------- Hauptcontainer ---------- */
main {
  background-color: var(--card-bg);
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(6, 174, 219, 0.4);
  max-width: 800px;
  width: 90%;
  backdrop-filter: blur(5px);
  opacity: 0;
  animation: fadeInMain 1.5s ease-in-out 2.5s forwards;
  margin-top: 100px; /* Platz für fixierte Navbar */
}
@keyframes fadeInMain {
  to {
    opacity: 1;
  }
}

/* ---------- Tag/Nacht-Button ---------- */
.mode-toggle {
  position: fixed;
  top: 20px;
  right: 25px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}
.mode-toggle:hover {
  background: var(--color-primary);
  color: #040404;
  box-shadow: 0 0 15px var(--color-primary);
  transform: scale(1.1);
}

/* ---------- Fixierte Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(6, 174, 219, 0.3);
  z-index: 998;
  padding: 0.8rem 0;
}
.navbar a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.navbar a:hover {
  color: #040404;
  background: var(--color-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--color-primary);
}

/* ---------- Intro Screen ---------- */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #040404;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: introFadeOut 1s ease-in-out 2s forwards;
  z-index: 999;
}
@keyframes introFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
#intro img {
  width: 200px;
  animation: logoPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(6, 174, 219, 0.4));
}
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}
#intro h1 {
  color: var(--color-primary);
  margin-top: 1rem;
  font-size: 1.5rem;
  letter-spacing: 2px;
  animation: textFade 2s ease-in-out infinite alternate;
}
@keyframes textFade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Logo Floating ---------- */
img.logo {
  width: 180px;
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(6, 174, 219, 0.4));
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ---------- Text & Buttons ---------- */
h1, h2 {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(6, 174, 219, 0.4);
}
h3 {
  margin-top: 1.5rem;
  color: var(--color-primary);
}
ul {
  list-style-type: none;
  padding-left: 0;
}
li {
  margin: 0.4rem 0;
}
.button {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(6, 174, 219, 0.3), transparent);
  transition: all 0.6s;
}
.button:hover::before {
  left: 100%;
}
.button:hover {
  background: var(--color-primary);
  color: #040404;
  box-shadow: 0 0 25px var(--color-primary);
  transform: scale(1.05);
}

/* ---------- Serverbilder ---------- */
.server-images img {
  width: 100%;
  max-width: 560px;
  margin: 0.5rem auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(6, 174, 219, 0.4);
  transition: transform 0.4s ease;
}
.server-images img:hover {
  transform: scale(1.02);
}

/* ---------- Footer ---------- */
footer {
  font-size: 0.9em;
  color: var(--color-primary);
  margin-top: 2rem;
  opacity: 0.8;
}

/* ---------- Responsives Design ---------- */
@media (max-width: 600px) {
  main {
    padding: 1.5rem;
  }
  .button {
    width: 100%;
    max-width: 300px;
    margin: 0.3rem auto;
  }
  #intro h1 {
    font-size: 1.2rem;
  }
  .navbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ---------- Tag/Nacht-Farben ---------- */
body.day {
  --bg-color: #101010;
  --card-bg: rgba(20, 20, 20, 0.7);
  --color-primary: #08c4f5;
  --text-color: #08c4f5;
}
body.night {
  --bg-color: #000000;
  --card-bg: rgba(0, 0, 0, 0.7);
  --color-primary: #06aedb;
  --text-color: #06aedb;
}
