:root {
  --color-primary: #8a2be2;
  --color-secondary: #ff69b4;
  --color-background: #f0f0f5;
  --color-text-dark: #333333;
  --color-text-light: #ffffff;
  --color-card-bg: #ffffff;
  --font-family-primary: "Arial", sans-serif;
  --spacing-xl: 6rem;
  --spacing-lg: 4rem;
  --spacing-md: 2rem;
  --spacing-sm: 1rem;
  --border-radius-large: 16px;
  --border-radius-medium: 8px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-deep: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s, opacity 0.3s;
}

a:hover {
  color: var(--color-secondary);
}

.section {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-dark);
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   Header und Navigation
   ========================================================================== */
.header {
  background-color: var(--color-card-bg);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text-dark);
}

.logo__img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
}

.nav__link {
  font-weight: 600;
  color: var(--color-text-dark);
  padding: 5px 10px;
  border-bottom: 3px solid transparent;
}

.nav__link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #e6e6fa 0%, var(--color-background) 100%);
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  text-align: left;
}

.hero__container {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero__content {
  flex: 1;
  max-width: 550px;
}

.hero__title {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  text-align: left;
}

.hero__subtitle {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-md);
}

.hero__text {
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.hero__image-wrapper {
  flex: 1;
  max-width: 450px;
  position: relative;
  padding: var(--spacing-md);
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-deep);
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-medium);
}

.hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
}

.download-badge {
  height: 50px;
  width: auto;
  transition: transform 0.3s;
}

.download-link:hover .download-badge {
  transform: translateY(-5px);
}

/* ==========================================================================
   Game Description Section (Spielmechanik)
   ========================================================================== */
.game-description {
  background-color: var(--color-card-bg);
  padding: var(--spacing-xl) 0;
}

.game-description__container {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  text-align: left;
}

.game-description__content {
  flex: 3;
}

.game-description__image-wrapper {
  flex: 2;
  padding: var(--spacing-md);
  background: #f7f7f7;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
}

.game-description__image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-medium);
}

.game-description__subtitle {
  color: var(--color-primary);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  font-size: 1.8rem;
}

.game-description__benefits-list {
  list-style: none;
  padding-left: 0;
  margin-top: var(--spacing-md);
}

.benefits-list__item {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
}

.benefits-list__item::before {
  content: "✨";
  margin-right: 10px;
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================================================
   How To Play Section (Spielanleitung)
   ========================================================================== */
.how-to-play {
  background-color: #e8e8f2;
}

.steps-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.steps-list__item {
  background: var(--color-card-bg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  position: relative;
  padding-left: 60px;
  font-size: 1.1rem;
  font-weight: 500;
}

.steps-list__item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 10px var(--color-primary);
}

/* ==========================================================================
   Screenshots Section
   ========================================================================== */
.game-screenshots {
  background-color: var(--color-card-bg);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.screenshot-item {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  object-fit: cover;
  aspect-ratio: 9/16;
}

.screenshot-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
}

/* ==========================================================================
   Call To Action Section
   ========================================================================== */
.call-to-action {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0;
}

.cta__title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.cta__title::after {
  background: var(--color-text-light);
}

.cta__text {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.call-to-action .download-badge {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-text-dark);
  color: #cccccc;
  padding: var(--spacing-lg) 0 0;
  font-size: 0.95rem;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  text-align: left;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.footer__section {
  flex: 1;
  min-width: 150px;
}

.footer__heading {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 5px;
}

.footer__list {
  list-style: none;
  padding: 0;
}

.footer__item {
  margin-bottom: 5px;
}

.footer__link {
  color: #cccccc;
  text-decoration: none;
  display: inline-block;
}

.footer__link:hover {
  color: var(--color-primary);
}

.contact__address,
.contact__developer {
  margin-bottom: 5px;
}

.footer__download-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-badge--small {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.footer__bottom {
  border-top: 1px solid #444;
  padding: var(--spacing-sm) 0;
  text-align: center;
  background-color: #222;
}

.footer__copyright {
  color: #999999;
  margin: 0;
  padding: 10px 0;
}

/* ==========================================================================
   Media Queries (Anpassungsfähigkeit)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__container,
  .game-description__container {
    flex-direction: column;
    text-align: center;
  }

  .hero__content,
  .game-description__content {
    max-width: 100%;
    order: 2;
  }

  .hero__image-wrapper,
  .game-description__image-wrapper {
    order: 1;
    max-width: 400px;
  }

  .hero__title {
    text-align: center;
    font-size: 3rem;
  }

  .hero__buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    gap: 10px;
  }

  .nav__list {
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .footer__container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .footer__heading {
    border-bottom: none;
  }

  .footer__download-badges {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .hero__buttons,
  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-badge {
    height: 45px;
  }
}
