/* === Reset und Basis === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    width: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
  }
  
  /* === Hintergrund === */
  body {
    background: radial-gradient(
      circle at center,
      rgb(255, 255, 120) 0%,
      rgb(255, 220, 100) 10%,
      rgb(180, 235, 255) 100%
    );
  }

  body.gastmodus {
    background-color: rgb(245, 245, 245);
    filter: grayscale(3%);
}
  
  /* === Wolkenanimation === */
  .cloud {
    position: absolute;
    background: rgb(235, 235, 235);
    border-radius: 50%;
    box-shadow:
      30px 0px 0px 0px rgb(235, 235, 235),
      60px 10px 0px 0px rgb(235, 235, 235),
      90px 0px 0px 0px rgb(235, 235, 235),
      45px 20px 0px 0px rgb(235, 235, 235);
    z-index: 0;
    opacity: 0.9;
  }
  
  .cloud1 {
    width: 80px; height: 40px; top: 80px; left: -150px;
    animation: moveCloud 150s linear infinite;
  }
  .cloud1.delay {
    top: 230px;
    animation-delay: 75s;
  }
  
  .cloud2 {
    width: 60px; height: 50px; top: 200px; left: -150px;
    animation: moveCloud 120s linear infinite;
  }
  .cloud2.delay {
    top: 350px;
    animation-delay: 60s;
  }
  
  .cloud3 {
    width: 50px; height: 30px; top: 300px; left: -150px;
    animation: moveCloud 180s linear infinite;
  }
  .cloud3.delay {
    top: 400px;
    animation-delay: 90s;
  }
  
  @keyframes moveCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 150px)); }
  }
  
  /* === Pixel-Vögel === */
  .pixel-bird-wrapper {
    position: absolute;
    animation: flyLeft 30s linear infinite;
    right: -100px;
    z-index: 2;
  }
  
  .pixel-bird {
    width: 16px;
    height: 16px;
    background-image: url("../images/pictures/bird1.png");
    background-size: cover;
    background-repeat: no-repeat;
    animation:
      flapFrames 0.6s steps(1) infinite,
      flapFloat 2s ease-in-out infinite;
    opacity: 0.9;
  }
  
  .bird1 { top: 100px; animation-duration: 30s; }
  .bird1.delay { top: 140px; animation-delay: 15s; }
  
  .bird2 { top: 180px; animation-duration: 40s; }
  .bird2.delay { top: 220px; animation-delay: 20s; }
  
  .bird3 { top: 260px; animation-duration: 50s; }
  .bird3.delay { top: 300px; animation-delay: 25s; }
  
  @keyframes flyLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-110vw); }
  }
  
  @keyframes flapFrames {
    0% { background-image: url("../images/pictures/bird1.png"); }
    16% { background-image: url("../images/pictures/bird2.png"); }
    33% { background-image: url("../images/pictures/bird3.png"); }
    50% { background-image: url("../images/pictures/bird4.png"); }
    66% { background-image: url("../images/pictures/bird3.png"); }
    83% { background-image: url("../images/pictures/bird2.png"); }
    100% { background-image: url("../images/pictures/bird1.png"); }
  }
  
  @keyframes flapFloat {
    0%, 50%, 100% { transform: scaleX(-1) translateY(0); }
    25% { transform: scaleX(-1) translateY(-4px); }
    75% { transform: scaleX(-1) translateY(4px); }
  }
  
  /* === Seitenlayout: Wrapper, Header, Footer === */
  .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  header {
    width: calc(100% - 20px);
    height: 50px;
    margin: 5px auto 0;
    border: 3px solid rgb(245, 140, 0);
    border-radius: 10px;
    display: flex;
  }
  
  /* === Logo + Seitentitel === */
  .logo-box {
    height: 100%;
    padding-left: 10px;
    display: flex;
    align-items: center;
  }
  .logo-box img {
    height: 32px;
    width: auto;
    max-width: 100%;
  }
  
  .seitentitel {
    font-size: 1.5em;
    margin-left: 5px;
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: bold;
    align-self: center;
  }

  .seitentitel a.title-link:visited,
  .seitentitel a.title-link:active,
  .seitentitel a.title-link:hover {
  text-decoration: none;
  color: inherit;
}
  
  /* === Datum + Uhrzeit === */
  .datetime-box {
    margin-left: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
  }
  #date-box {
    color: rgb(80, 80, 80);
  }
  .digital-clock {
    margin-left: 5px;
    font-size: 0.9em;
    color: rgb(0, 255, 0);
    background-color: black;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 5px limegreen;
    letter-spacing: 2px;
    font-weight: bold;
    text-align: center;
  }
  
  /* === Navigation & Login === */
  .navigation {
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .navigation a {
    display: inline-block;
   /* min-width: 100px; */
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    background-color: rgb(200, 100, 0);
    color: white;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1em;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s;
  }
  .navigation a:hover {
    background-color: rgb(255, 140, 0);
    transform: translateY(-3px);
  }
  
  .login-box {
    margin-left: auto;
    margin-right: 10px;
   /* padding-top: 5px; */
    display: flex;
    gap: 5px;
    align-items: center;
  }
  .login-box a {
    text-decoration: none;
    color: white;
    background-color: rgb(255, 140, 0);
    padding: 5px 10px;
    border: 2px solid rgb(200, 100, 0);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  .login-box a:hover {
    background-color: rgb(200, 100, 0);
    color: white;
  }

  .login-box img {
    object-fit: contain; /* ✅ zeigt gesamtes Bild an */
    border-radius: 5px;
    border: 2px solid rgb(255, 140, 0);
  }

.userName {
    font-size: 1em;
    font-weight: bold;
    color: rgb(80, 50, 0); /* leichtes Braun, gut lesbar */
    margin: 0 10px;
    align-self: center;
    white-space: nowrap;
}

.login-box a.avatar {
    all: unset; /* entfernt ALLE geerbten Stile */
    display: inline-block;
    cursor: pointer;
}

.login-box a.avatar img {
  width: 60px;
  height: 65px;
  object-fit: contain;
  object-position: center;
  
  border-radius: 5px;
  border: 2px solid rgb(200, 100, 0);
  transition: border-color 0.2s;
}

.login-box a.avatar img:hover {
    border-color: rgb(255, 140, 0);
}
  
  /* === Main-Layout === */
  .main-bereich {
    flex: 1;
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    gap: 5px;
    width: calc(100% - 20px);
    margin: 2px auto 0;
    z-index: 10;
  }
  
  /* === Info, Area, News === */
  .info-box, .area, .news-box {
    border: 3px solid rgb(245, 140, 0);
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    padding: 5px;
    overflow-y: auto;
    max-height: 700px;
  }

  .info-box .headline {
    color: red;
    font-size: 1.2em;
    font-weight: bold;
  }
  .news-box .headline {
    color: green;
    font-size: 1.2em;
    font-weight: bold;
  }
  .info-box h2, .news-box h2 {
    font-size: 1.2em;
    font-weight: bold;
  }
  .area h2 {
    text-align: center;
    margin-top: 5px;
    font-size: 1.2em;
    font-weight: bold;
  }

  .danger {
    display: block;
    margin: 5px auto 0 auto; /* 5px Abstand oben, zentriert */
    max-width: 300px; /* Optional: Begrenzung der Bildgröße */
    height: auto;
}

p.info {
  margin: 5px auto 0 auto; /* 5px Abstand zum Bild, zentriert */
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
  color: rgb(180, 0, 0); /* dunkles Rot */
}

  .luck {
    display: block;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(0, 110, 0);
  }
  
  /* === Spiel-Galerie === */
  .game-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 5px;
  }
  .game-link {
    /* width: 50px; */
    text-align: center;
    position: relative;
  }

  .game-link a {
    text-decoration: none;
  }
  .game-link img {
    
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid rgb(200, 100, 0);
    border-radius: 10px;
    transition: transform 0.3s;
  }
  .game-link span {
   
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    color: rgb(50, 50, 50);
  }
  
  /* === Emoji & Footer === */
  .emoji {
    font-size: 32px;
    margin-right: 5px;
  }
  
  footer {
    width: calc(100% - 20px);
    height: 50px;
    margin: 2px auto 10px auto;
    border: 3px solid rgb(245, 140, 0);
    border-radius: 10px;
    text-align: center;
    line-height: 45px;
    font-weight: bold;
  }
  