/*
    style.css
    Playzo.de Website Stylesheet

    #ff8000 hellorange kontrastfarbe
    #FF4343 rot aus logo
    
*/
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1c1c1c;
  color: #f0f0f0;
  scroll-behavior: smooth;
}

a[target="_blank"]::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0 3px 0 5px;
  filter: contrast(1%);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  background: rgba(57, 57, 57, 0.71);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8.9px);
  -webkit-backdrop-filter: blur(8.9px);
}

header h1 {
  color: #FF4343;
  margin: 0;
  animation: glow 2s infinite alternate;
}

/* Hamburger Button */
.hamburger {
  display: none; /* Desktop ausblenden */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ff7f00;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger transformiert sich zu X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation responsive */
.nav-links {
  display: flex;
  gap: 2rem;
  padding-right: 3rem;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #FF4343; }
  to { text-shadow: 0 0 20px #FF4343; }
}

a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s;
}

a:hover {
  color: #ff8000;
}

nav a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #FF4343;
}

section {
  min-height: 40vh;
  padding: 6rem 2rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

section#short-facts, section#spiele {
  min-height: initial;
}
section#news {
  min-height: 80vh;
}


section h2 {
  color: #FF4343;
  margin-bottom: 1rem;
}

.news-box {
  background-color: #2a2a2a;
  border-radius: 0;
  padding: 1.5rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.news-box.visible {
  opacity: 1;
  transform: translateY(0);
}
#news .slider-item img {
  max-width: 350px;
  height: auto;
  float:left;
  margin: 1rem;
}
#news .slider-item {
  overflow-y: scroll;
}


.direct-link-btn {
  margin: 1rem;
  padding: 0.4rem 0.8rem;
  background-color: #ff7f00;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s ease;
  display: block;
  width: 160px;
}

.direct-link-btn:hover {
  background-color: #e36c00;
}



.parallax {
  background-size: auto 230%;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: end;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}
.parallax p {
  padding: 1rem 2rem;
  border-radius: 0px;
  background: rgba(57, 57, 57, 0.71);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8.9px);
  -webkit-backdrop-filter: blur(8.9px);
}

.content {
  padding: 2rem;
  background-color: rgba(28, 28, 28, 0.9);
    background-size: cover;
}

footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #FF4343;
  text-decoration: none;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #e65216;
  color: #1c1c1c;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Anfangs versteckt */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}

#backToTop:hover {
  background-color: #ff8000;
  transform: scale(1.1);
}

/* Slider Basis */
.slider-container {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  touch-action: pan-y;
}

.slider-item {
  min-width: 100vw;       /* volle Bildschirmbreite */
  max-width: 100vw;
  height: 70vh;           /* höhere Box für die Bilder */
  margin-right: 0;
  border-radius: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  padding: 2rem;
  color: white;
  background-size: cover;      /* Bild passt sich an */
  background-position: center; /* zentriert */
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.3); /* leichter Overlay für Text */
  
}
#news .slider-item {
  height: 80vh;
}
.slider-item h3, .slider-item p {
  margin: 0.5rem 0;
  text-shadow: 0 0 5px rgba(0,0,0,0.7); /* besser lesbar */
  display: block;
  width: 80%;
  margin: 1rem;
  line-height: 1.4em;
  font-size: 1.4em;
}
.slider-item h4 {
  margin-top: 0; 
  margin-bottom:0;
  margin-left: 1rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.7); /* besser lesbar */
  display: block;
  width: 80%;
  line-height: 1em;
  font-weight: normal;
  font-size: 1em;
}
.slider-item li {
    list-style: none;
}
.slider-item ul {
    margin: 1rem;
    padding: 0;
}
.slider-item li img {
    height:50px;
}


.slider-container button.prev,
.slider-container button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #e65216;
  color: #1c1c1c;
  border: none;
  width: 40px;
  height: 80px;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 10;
  font-weight: bold;
}

.slider-container button.prev { left: 0px; }
.slider-container button.next { right: 0px; }

.slider-container button:hover {
  background-color: #ff8000;
}


#playzo-site-logo {
  height: 40px;
  cursor:pointer;
}

.game-logo {
  max-width: 31vw;
  position: relative;
  top: 0;
  left: 0px;
  margin: 1rem;
}
.game-logo.fussballcup {
  filter: drop-shadow(3px 3px 0 black);
}
.game-logo.worldofcrime {
  top: 1rem;
}
.game-logo.harvestopia {
  top: 1rem;
}
.game-logo.do, .game-logo.generalsofwar {
  height: 15vw;
  visibility: hidden;
}

.short-facts {
  position: relative;
  background-color: #ffffff;
  padding: 2rem 1rem;   /* weniger Höhe */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  top: 80px;
}


.facts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* darüber */
}

.fact {
  flex: 1 1 200px;
  min-width: 180px;
}

.fact h3 {
  color: #ff7f00; /* Orange Akzent */
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.fact p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

/* =====================================================
   Triangle mesh background (base #1c1c1c)
   Usage: add class "triangle-bg" to the element (e.g. <body>)
   ===================================================== */
.triangle-bg {
  background-color: #1c1c1c;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  /* fallback pattern tint if SVG fails */
  background-image: linear-gradient(rgba(255,127,0,0.02), rgba(255,127,0,0.02));
  transition: background-image .25s linear;
  will-change: background-position;
}

.partnerlogo {
  max-height: 60px;
  margin: 1rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}


/* Timeline-Container */
#unternehmen .news-box.timeline {
  position: relative;
  padding-left: 50px; /* Platz für Linie und Punkte */
  margin-top: 20px;
}

/* Vertikale Linie in der Mitte der linken Spalte */
#unternehmen .news-box.timeline::before {
  content: '';
  position: absolute;
  left: 32px; /* Position der Linie */
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #ff7f00; /* orange Linie */
  z-index: 1;
}

/* Timeline-Entry */
#unternehmen .timeline-entry {
  position: relative;
  margin-bottom: 40px;
  margin-left: 12px;
}

/* Punkt/Indikator links der Linie */
#unternehmen .timeline-entry h2::before {
  content: '';
  position: absolute;
  left: -37px; /* Punkt links von Linie */
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ff7f00;
  border: 2px solid #fff; /* optional weißer Rand */
  z-index: 2;
}

.slider-dots {
  position: absolute;
  bottom: 0; /* Abstand vom unteren Rand */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10; /* über dem Slider */
  cursor: pointer;
  background: rgba(28, 28, 28, 0.71);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8.9px);
  -webkit-backdrop-filter: blur(8.9px);
  padding: 10px;
  border-radius: 0;
}

.slider-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}

.slider-dot.active {
  background-color: #ff7f00; /* aktive Farbe */
  transform: scale(1.3);
}


@media screen and (max-width: 1200px) {
    .hamburger {
        display: flex;
        width: 30px;
        height: 20px;
        position: relative;
        right: 50px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* ausblenden */
        height: 100vw;
        width: 250px;
        background-color: #1c1c1c;
        flex-direction: column;
        padding-top: 5rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        z-index: 10;
    }

    .nav-links.active {
        right: 0; /* Menü ausklappen */
    }

    .nav-links a {
        color: #fff;
        font-size: 1.2rem;
    }
  }


@media screen and (max-width: 768px) {
    .slider-item h3, .slider-item p {
        font-size: 0.9em;
    }
    .slider-item h4 {
        font-size: 0.9em;
    }
    .slider-item  {
        height: 80vh
    }
    .slider-container button.prev,
    .slider-container button.next {
        visibility: hidden;
    }

    .slider-dot {
      width: 16px;
      height: 16px;
    }

    #news .slider-item img {
      max-width: 200px;
      height: auto;
      float: none;
      margin: 1rem auto;
    }

    .game-logo {
        max-height: 20vw;
        position: relative;
        top: 0;
        left: 0px;
        margin: 1rem;
    }
    .game-logo.fussballcup {
        filter: drop-shadow(1px 1px 0 black);
        max-height: 13vw;
    }
    .game-logo.worldofcrime {
   
    }
    .game-logo.harvestopia {
   
    }
    
    .game-logo.do, .game-logo.generalsofwar {
        height: 20vw;
    }
}