@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --background-color: #0f172a;
  --accent-color: #3b82f6;
  --accent-color-rgb: 59, 130, 246;
  --accent-color-darker: #1e40af;
  --accent-color-darker-rgb: 30, 64, 175;
  --main-text-color: #ffffff;
  --second-text-color: #94a3b8;
  --info-text-color: #64748b;
  --text-dark: #0f172a;
  --page-padding: 10rem;
  --header-height: 4rem;
  --footer-height: 15rem;
  --header-smaller-height: 4rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

html {
  height: 100%;
  background-color: var(--background-color);
}

body {
  width: 100%;
  color: var(--main-text-color);
  font-weight: 600;
  user-select: none;
  isolation: isolate;
  overflow-x: hidden;
}

i {
  line-height: 1;
}

img {
  user-select: none;
  user-drag: none;
  pointer-events: none;
}

h1,
h2,
h3 {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  font-style: italic;
}

h1.blue-text,
h2.blue-text,
h3.blue-text,
h1 .blue-text,
h2 .blue-text,
h3 .blue-text {
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.3);
}

.blue-text {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.2);
}

.blue-button {
  background: linear-gradient(-45deg, var(--accent-color-darker), var(--accent-color), var(--accent-color-darker));
  box-shadow: inset 0 0 15px var(--accent-color);
  border: none;
  color: var(--text-dark);
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 40px;
  transition: scale 0.2s ease-in-out;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.gray-button {
  background: linear-gradient(-45deg, #484848, #838383, #484848);
  border: none;
  color: var(--text-dark);
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px #696969;
  cursor: pointer;
  padding: 0 40px;
  transition: scale 0.2s ease-in-out;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.play-button:hover,
.blue-button:hover {
  scale: 0.95;
}

.play-button i,
.blue-button i {
  font-size: 1rem;
  margin-right: 1rem;
  color: var(--text-dark);
}

.online-players-text {
  font-weight: 600;
  margin-right: 0.5rem;
}

@media only screen and (max-width: 992px) {
  :root {
    --page-padding: 5rem;
  }
}

@media only screen and (max-width: 1800px) {
  :root {
    --page-padding: 6rem;
  }
}

@media only screen and (max-width: 560px) {
  :root {
    --page-padding: 2rem;
  }
}

/* Page Container */
#page-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-background {
  position: fixed;
  top: -1.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  scale: 1.25;
  z-index: -1;
  object-fit: cover;
}

/* Header */
#page-header {
  width: 100%;
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  flex-direction: row;
  padding: 0 var(--page-padding);
  height: var(--header-height);
  z-index: 10000;
  transition: background-color 0.3s ease-in-out, height 0.3s ease-in-out;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

#page-header .header-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#page-header .logo-link {
  margin-right: auto;
}

#page-header .logo-link .logo {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
}

#page-header .logo-link .logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

#page-header .logo-link .logo .logo-text .title {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
}

#page-header .header-nav {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
}

#page-header .header-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--second-text-color);
  font-size: 0.875rem;
  font-style: italic;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  gap: 0.5rem;
  transition: color 0.3s ease-in-out, background 0.3s ease-in-out;
  border-radius: 10px;
  flex-shrink: 0;
}

#page-header .header-nav .nav-item:hover {
  color: var(--main-text-color);
  background: rgba(59, 130, 246, 0.1);
}

#page-header .header-nav .nav-item--selected {
  color: var(--accent-color);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-darker));
  color: white;
}

#page-header .header-nav .nav-item i {
  font-size: 1rem;
}

#page-header .header__mobile-nav-button {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: end;
}

#page-header .header__mobile-nav-button .mobile-nav-button__btn {
  cursor: pointer;
}

#page-header .header__mobile-nav-button .mobile-nav-button__btn i {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

@media only screen and (max-width: 1200px) {
  #page-header .header__mobile-nav-button {
    display: flex;
  }
  #page-header .header-nav {
    display: none;
  }
}

/* Side Bar */
.side-bar {
  position: fixed;
  width: 3rem;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  z-index: 1000;
  background: linear-gradient(
    -45deg,
    rgba(var(--accent-color-darker-rgb), 0.3),
    rgba(var(--accent-color-rgb), 0.3),
    rgba(var(--accent-color-darker-rgb), 0.3)
  );
  box-shadow: inset 0 0 15px rgba(var(--accent-color-rgb), 0.3);
  transition: background-color 0.3s ease-in-out;
}

.side-bar .item {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.side-bar .item:hover {
  background: linear-gradient(
      -45deg,
      rgb(var(--accent-color-darker-rgb), 0.9),
      rgba(var(--accent-color-rgb), 0.4),
      rgb(var(--accent-color-darker-rgb), 0.9)
    )
    no-repeat;
  box-shadow: inset 0 0 15px rgba(var(--accent-color-rgb), 0.3);
}

.side-bar .item:hover .title {
  visibility: visible;
  opacity: 1;
  transform: translate(-100%, -50%);
}

.side-bar .item .link {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--main-text-color);
}

.side-bar .item .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-color);
}

.side-bar .item .title {
  visibility: hidden;
  opacity: 0;
  z-index: 90;
  position: absolute;
  top: 50%;
  transform: translate(-90%, -50%);
  left: -1rem;
  font-size: 0.875rem;
  white-space: nowrap;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s, opacity 0.2s, visibility 0.2s;
  background-color: var(--background-color);
  padding: 0.5rem;
  border-radius: 0.2rem;
  pointer-events: none;
}

@media only screen and (max-width: 992px) {
  .side-bar {
    display: none;
  }
}

/* Main Content */
#page-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#page-content section {
    width: 100%;
    height: 100vh;  /* Jede Section = 1 Bildschirmhöhe */
}

#page-content #first-section {
  grid-template-columns: 1fr 2fr;
}

#page-content #second-section {
  grid-template-columns: 2fr 1fr;
}

#page-content .content-section {
  display: grid;
  height: 100vh;
  padding: 0 var(--page-padding);
  z-index: 100;
}

#page-content .content-section .content-info {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  gap: 2rem;
}

#page-content .content-section .content-info .info-title {
  font-size: 2.25rem;
  font-style: italic;
}

#page-content .content-section .content-info .info-text {
  font-size: 0.875rem;
  color: var(--info-text-color);
}

#page-content .content-section .content-info .info-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

#page-content .content-section .content-image {
  position: relative;
  max-width: 100%;
  height: 100vh;
}

#page-content .content-section .content-image img {
  position: absolute;
  bottom: 0;
  max-width: 100%;
  max-height: 100%;
  -webkit-mask-image: -webkit-gradient(linear, left 90%, left bottom, from(rgb(0, 0, 0)), to(rgba(0, 0, 0, 0)));
}

/* Slideshow */
.slideshow-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.slideshow-container .texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slideshow-container .texts .title {
  font-size: 1.5rem;
}

.slideshow-container .texts .text {
  color: var(--info-text-color);
}

/* Server Status */
.server-status {
  margin-bottom: 32px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.player-count {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  color: #10b981;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

/* Feature Highlights */
.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-item i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* Footer */
footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  height: var(--footer-height);
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

footer .copyright {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer .copyright .copyright-text {
  color: var(--second-text-color);
  font-size: 0.75rem;
}

footer .image {
  margin-left: -5rem;
  max-height: 100%;
  opacity: 0.75;
}

@media only screen and (max-width: 992px) {
  footer .copyright {
    width: 60%;
    text-align: center;
  }
  footer .image {
    display: none;
  }

  #page-content #first-section,
  #page-content #second-section {
    grid-template-columns: 1fr;
  }

  #page-content #first-section .content-image,
  #page-content #second-section .content-image {
    display: none;
  }
}

@media only screen and (max-width: 560px) {
  footer .copyright {
    width: 90%;
    text-align: center;
  }

  :root {
    --header-height: 6rem;
  }
}

@media only screen and (max-width: 1400px) {
  #page-content .content-section .content-info .info-buttons {
    flex-direction: column;
  }
  #page-content #first-section {
    grid-template-columns: 1fr 1.5fr;
  }
  #page-content #second-section {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media only screen and (max-width: 1800px) {
  #page-content .content-section .content-image img {
    bottom: 50%;
    transform: translateY(50%);
  }
}

@media only screen and (min-width: 1401px) {
  #page-content .content-section .content-info .info-buttons > * {
    flex: 1;
  }
}

/* Füge diese Regeln am Ende der Datei hinzu */

html, body {
    height: 100%;
}

#page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-content {
    flex: 1;
}