/* ===== Spielmodus-Unterseiten (ergänzt legal.css) ===== */

/* Akzentfarben je Spielmodus (Fallback: Seitengrün) */
.modus-classic {
  --modus-a: #e8291c;
  --modus-b: #0ea5e9;
}

.modus-luckycups {
  --modus-a: #da4a03;
  --modus-b: #06c3b5;
}

.modus-goodcupbadcup {
  --modus-a: #e70b1b;
  --modus-b: #8fbb08;
}

/* Einzelne Folie nur in einem Akzent (z. B. Good Cup grün, Bad Cup rot) */
.slide--akzent-a {
  --modus-b: var(--modus-a);
}

.slide--akzent-b {
  --modus-a: var(--modus-b);
}

/* Logo wie auf der Startseite (PNG hat viel transparenten Rand) */
.navbar__logo img {
  height: 160px;
  padding-top: 10px;
}

.navbar__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__lang a img {
  display: block;
  width: 24px;
  height: 24px;
}

.navbar__lang a.active img {
  box-shadow: 0 0 0 2px var(--navbar-accent);
  border-radius: 2px;
}

.modus {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.modus__icon {
  width: 260px;
  max-width: 70%;
  height: auto;
}

.modus__title {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  color: var(--modus-a, var(--navbar-accent));
  margin: 1rem 0 1.5rem;
}

.modus__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  margin: 0 0 1.25rem;
}

.modus__text strong {
  color: var(--modus-b, var(--navbar-accent));
}

.modus__btn {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  background-color: var(--modus-a, var(--navbar-accent));
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.modus__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px var(--modus-a, var(--navbar-accent));
}

/* ===== Vollbild-Folien: eigener Scroll-Container unter der Navbar, rastet pro Folie ein ===== */
.slides {
  position: fixed;
  inset: var(--navbar-height) 0 0 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
}

.slide {
  box-sizing: border-box;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  padding: 2rem 3.5rem 2rem 1.5rem;
}

.slide__card {
  box-sizing: border-box;
  width: 100%;
  max-width: 1050px;
  height: min(560px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  padding: 3.5rem;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Bild und Text abwechselnd links/rechts */
.slide:nth-of-type(even) .slide__img,
.slide:nth-of-type(even) .booster-list {
  order: 2;
}

.slide__img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

/* Startfolie als Cover: ohne Karte, alles mittig untereinander */
.slide--intro .slide__card {
  height: auto;
  max-width: 700px;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.slide--intro .slide__img {
  width: auto;
  max-width: 100%;
  height: clamp(160px, 38vh, 340px);
  max-height: none;
  justify-self: center;
}

.slide--intro .slide__body {
  text-align: center;
  min-height: 0;
  font-size: inherit;
}

.slide--intro .slide__body .modus__title {
  font-size: clamp(2.5rem, 10vw, 4rem);
  margin: 0 0 0.75rem;
}

.slide--intro .slide__text {
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
}

.slide__body {
  text-align: left;
}

.slide__body .modus__title {
  font-size: 3.5rem;
  margin: 0 0 1rem;
}

.slide__nr {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--modus-a, var(--navbar-accent));
}

.slide__title {
  font-family: var(--font-primary);
  font-size: 2.6rem;
  line-height: 1.15;
  color: #fff;
  margin: 0.25rem 0 1.25rem;
}

.slide__text {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

.slide__text strong,
.booster p strong {
  color: var(--modus-b, var(--navbar-accent));
}

.slides .site-footer {
  scroll-snap-align: end;
}

/* Ausklappliste statt Bild (z. B. Booster bei Lucky Cups); immer nur einer offen */
.booster-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-self: center;
  max-height: 100%;
  overflow-y: auto;
}

.booster {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.booster[open] {
  border-color: var(--modus-b, var(--navbar-accent));
}

.booster summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.booster summary::-webkit-details-marker {
  display: none;
}

.booster summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--modus-b, var(--navbar-accent));
}

.booster[open] summary::after {
  content: '–';
}

.booster__icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.booster p {
  margin: 0;
  padding: 0 1rem 1rem 4.4rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #fff;
}

/* Hinweis unter der ersten Karte: vertikal scrollen */
.slide--intro {
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: 1.25rem;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0 1rem;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  cursor: pointer;
}

.scroll-hint__arrow {
  color: var(--modus-b, var(--navbar-accent));
  font-size: 2em;
  line-height: 1;
  animation: scroll-hint-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(4px); }
}

/* Fortschrittspunkte rechts */
.slide-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.slide-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.slide-dots button.active {
  background: var(--modus-b, var(--navbar-accent));
}

@media (max-width: 768px) {
  .navbar__back-text {
    display: none;
  }
}

/* Hochformat (Handy, Tablet hochkant): Bild über Text, Größen wachsen mit der Bildschirmbreite */
@media (max-width: 768px), (orientation: portrait) {
  .slide {
    padding: 1.25rem 2rem 1.25rem 1.25rem;
  }

  /* Karte nur so hoch wie Inhalt; feste Bild- und Textflächen halten alle Karten gleich groß */
  .slide__card {
    max-width: 900px;
    height: auto;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    padding: clamp(1.5rem, 6vw, 4rem);
    border-radius: 24px;
  }

  .slide:nth-of-type(even) .slide__img {
    order: 0;
  }

  /* Ausklappliste unter den Text; Karte bleibt im Bildschirm, Liste scrollt notfalls in sich */
  .slide .booster-list {
    order: 2;
    gap: 0.4rem;
  }

  .slide__card:has(.booster-list) {
    max-height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .slide__card:has(.booster-list) .slide__body {
    min-height: 0;
  }

  .booster summary {
    gap: 0.7rem;
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
  }

  .booster__icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .booster p {
    padding: 0 0.75rem 0.75rem 3.7rem;
    font-size: 1rem;
  }

  .slide__img {
    width: 100%;
    max-width: none;
    height: clamp(220px, 60vw, 640px);
    max-height: 48vh;
  }

  .slide__body {
    font-size: clamp(1.15rem, 4.6vw, 2.2rem);
    min-height: 13em;
  }

  .slide__text {
    font-size: 1em;
  }

  .slide__body .modus__title {
    font-size: 2.2em;
  }

  .slide__title {
    font-size: 1.75em;
    margin-bottom: 0.5em;
  }

  .slide__nr {
    font-size: 0.9em;
  }

  /* Fortschritt rechts, aktiver Punkt als senkrechter Balken */
  .slide-dots {
    right: 0.5rem;
    gap: 0.5rem;
  }

  .slide-dots button {
    width: 0.6rem;
    height: 0.6rem;
    transition: height 0.3s ease;
  }

  .slide-dots button.active {
    height: 1.6rem;
    border-radius: 999px;
  }
}
