@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

:root {
  --base-clr: #ffffff;
  --line-clr: #42434a;
  --hover-clr: #6e7075;
  --text-clr: #202022;
  --texthover-clr: white;
  --accent-clr: #f8693e;
  --secondary-text-clr: #777575;
  --sidebar-clr: #ffffff;
}
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

html {
  font-family: Poppins, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5rem;
}

body {
  min-height: 100vh;
  min-height: 100dhv;
  background-color: var(--base-clr);
  color: var(--text-clr);
  display: grid;
  grid-template-columns: auto 1fr;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}


/* Animation definieren */
@keyframes fadeInBackground {
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255));
  }
  50% {
    filter: drop-shadow(0 0 75px rgba(255, 255, 255));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255));
  }
}

main {
  padding: min(30px, 7%);
}
main p {
  color: var(--secondary-text-clr);
  margin-top: 5px;
  margin-bottom: 15px;
}

.watermark {
  position: fixed;
  top: 50%;
  left: calc(50% + 120px);
  transform: translate(-50%, -50%);
  font-size: 100px;
  color: rgba(255, 255, 255, 5.1); /* Sehr hell, transparent */
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 2.7));
  transition: filter 0.3s ease;
  pointer-events: none; /* Klicks durchlaufen lassen */
  z-index: 9999; /* Immer im Vordergrund */
  white-space: nowrap;
  opacity: 0;
  transition: all 0.4s ease;
  animation: fadeInBackground 1s ease-in forwards;
}

#sidebar.close ~ .watermark {
  left: calc(50% + 24px);
}

#container {
  display: flex;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  line-height: 1.1rem;
  height: auto;
  border-radius: 1em;
  padding: min(2em, 10%);
  color: rgb(0, 0, 0);
  text-align: center;
  opacity: 0;
  animation: fadeInBackground 1s ease-in forwards;
  h1 {
    margin-top: 0.5em;
    color: var(--accent-clr);
    text-shadow: 0px 1px 3px rgb(119, 118, 118);
  }
}

h1 {
  margin-top: 40px;
  font-size: 40px;
  opacity: 0;
  color: rgb(0, 0, 0);
  text-shadow:
    0 0 2px #fff,
    0 0 20px #fff;
  text-align: center;
  animation: fadeInBackground 1s ease-in forwards;
  
}

h2 {
  margin-top: 20px;
  font-size: 24px;
  opacity: 0;
  color: rgb(255, 119, 28);
  text-shadow: 0px 1px 2px rgb(22, 22, 22);
  animation: fadeInBackground 1s ease-in forwards;
}

h3 {
  margin-top: 4px;
  font-size: 18px;
  opacity: 0;
  color: rgb(0, 0, 0);
  text-shadow: 0px 1px 3px rgb(119, 118, 118);
  animation: fadeInBackground 1s ease-in forwards;
}

h3 span {
  margin-top: 4px;
  font-size: 18px;
  opacity: 0;
  color: rgb(255, 119, 28);
  text-shadow: 0px 1px 2px rgb(22, 22, 22);
  animation: fadeInBackground 1s ease-in forwards;
}

.aktuell {
  position: absolute;
  top: 50%;
  left: 50%; /* Optional für horizontale Zentrierung */
  transform: translate(-0%, -50%); /* Zentriert das Element exakt */
  height: 400px;
  width: 380px;
  left: 300px;
  transition: all 0.4s ease;
  text-shadow: 0px 1px 3px rgb(66, 65, 65);
  
}

#sidebar.close ~ .aktuell {
  left: 100px; /* Muss der Breite der Sidebar entsprechen */
}

/* -----------------------SMARTPHONE ANSICHT--------------------------------- */
@media (max-width: 768px) {
  body {
    grid-template-columns: 1r;
  }
  main {
    padding: 2em 1em 60px 1em;
     text-align: center;
  justify-content: center;
  align-items: center;
  }

 #containerinhalt h1 {
  font-size: 30px;
  opacity: 0;
  color: rgb(255, 119, 28);
  text-shadow: 0px 2px 3px rgb(22, 22, 22);
  margin-bottom: 10px;
  line-height: 1.8rem;
  animation: fadeInBackground 1s ease-in forwards;
}

  .slider-wrapper {
    margin: 0 10px 40px;
  }

  .slider-wrapper .swiper-slide-button {
    display: none;
  }

  h1 {
  margin-top: 20px;
  font-size: 24px;
  opacity: 0;
  color: rgb(0, 0, 0);
  text-shadow:
    0 0 2px #fff,
    0 0 20px #fff;
  text-align: center;
  justify-content: center;
  align-items: center;
  animation: fadeInBackground 1s ease-in forwards;
  
  }
  body::before {
        content: "";
        position: fixed; /* Fixiert, damit es beim Scrollen bleibt */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        /* Bild-Einstellungen */

        background-image: url('../images/background_media.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center;

        /* Fade-In Effekt */
        opacity: 1;
        animation: fadeInBackground 1s ease-in forwards;

        /* Damit der Inhalt vor dem Bild bleibt */
        z-index: -1;
}
  .watermark {
    position: fixed;
    top: 50%;
    left: calc(50%);
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: rgba(0, 0, 0, 0.1); /* Sehr hell, transparent */
    pointer-events: none; /* Klicks durchlaufen lassen */
    z-index: 119999; /* Immer im Vordergrund */
    white-space: nowrap;
    opacity: 6%;
    transition: all 0.4s ease;
  }
  .watermark img {
    width: 300px;
  }
  .aktuell{
    display: none;
  }

}
