/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY LAYOUT ===== */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f6f8;
  color: #333;
  display: block; /* statt flex */
}

.homepage-intro {
  margin-left: 240px;       /* Platz für Sidebar */
  padding: 50px 40px;
  flex: 1;                  /* nimmt den restlichen Platz ein */
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 240px;
  background: #1e1e1e;
  color: white;
  padding: 25px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 20px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.sidebar a {
  display: block;
  color: #ddd;
  text-decoration: none;
  margin: 12px 0;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #ffcc00;
  padding-left: 5px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 50px 40px;
}

/* ===== WRAPPER FÜR CONTENT + COMMENTS ===== */
.article-wrapper {
  max-width: 950px;
  margin: 0 auto;
}

/* ===== IFRAMES ===== */
.content-frame,
.comment-frame {
  width: 100%;
  border: none;
  display: block;
  margin-bottom: 35px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: 0.3s;
}

.content-frame:hover,
.comment-frame:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== TYPOGRAFIE ===== */
h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #cc0000; /* Pokémon Theme Rot */
}

h2 {
  font-size: 22px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #2a75bb; /* Pokémon Theme Blau */
}

p {
  line-height: 1.7;
  margin-bottom: 15px;
}

/* ===== POKÉMON KARTEN LAUFBAND ===== */
.card-ticker {
  width: 100%;
  overflow: hidden;
  background: white;
  border-radius: 12px;
  margin-bottom: 30px;
  padding: 10px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.card-track {
  display: flex;
  flex-wrap: nowrap;        /* Keine Zeilenumbruch */
  width: max-content;       /* Track so breit wie alle Bilder zusammen */
  animation: scrollCards 20s linear infinite;
}

.card-track img {
  height: 180px;
  margin: 0 15px;
  object-fit: contain;
}

@keyframes scrollCards {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Hälfte der Track verschieben */
  }
}

.card-ticker:hover .card-track {
  animation-play-state: paused;
}

.pokemon-content {
  width: 100%;
  overflow: hidden;
  background: white;
  border-radius: 12px;
  margin-bottom: 30px;
  padding: 10px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 30px 20px;
  }

  .article-wrapper {
    max-width: 100%;
  }

  .homepage-intro {
    margin-left: 0;
    padding: 30px 20px;
  }
}


.top-games .game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.top-games .game {
  text-align: center;
}

.top-games .game img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.top-games .game img:hover {
  transform: scale(1.05);
}
