/* Schriften aus dem gemeinsamen Ordner homepages/fonts */
@import url("../../fonts/lato.css");
@import url("../../fonts/oswald.css");

:root {
  --blue: #3c78d8;
  --teal: #226e93;
  --text: #212121;
  --link: #006580;
  --header-bg: #212121;
  --max-width: 880px;
  --page-width: 1260px; /* maximale Seitenbreite */
}

* { box-sizing: border-box; }

html { background: #fff; }

body {
  max-width: var(--page-width);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  color: var(--text);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 18.67px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--link); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px;
}

hr {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .15);
}

/* ---------- Kopfzeile ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  font-family: "Lato", sans-serif;
  font-size: 20px;
  font-weight: 300;
}
.site-header a { color: inherit; text-decoration: none; }
/* Logo.jpg ist 16:9 – mittigen Ausschnitt zeigen statt verzerren */
.site-header img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }

/* Startseite: fixiert, transparent über dem Titelbild, dunkel nach dem Scrollen */
.site-header--overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-width);
  z-index: 10;
  color: #fff;
  transition: background-color .2s;
}
.site-header--overlay.is-scrolled { background: var(--header-bg); }

/* Unterseiten: feste dunkle Leiste wie die Startseite nach dem Scrollen */
.site-header.site-header--bar,
.legal .site-header.site-header--bar {
  position: sticky; /* bleibt beim Scrollen oben stehen */
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  color: #fff;
}

/* ---------- Startseite ---------- */
.hero {
  /* Bild auf 63,75 % der ursprünglichen Darstellung (520px hoch, cover), damit das Logo
     ganz unter der Kopfzeile sichtbar ist; Bild ist 16:9 mit schwarzem Rand */
  height: 390px;
  background: #000 url("../images/Logo.jpg") center / max(63.75%, 589px) auto no-repeat;
}

.tagline {
  margin: 0;
  text-align: center;
  color: var(--blue);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
}

h2, h3 { font-weight: 700; line-height: 1.3; margin: 12px 0 4px; }
h2 { font-size: 32px; margin-top: 0; }
h3 { font-size: 24px; }
h2 small { font-size: 24px; color: #000; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin: 0 0 6px; }
.accent { color: var(--blue); }

.media {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Store-Karte: Spielfigur, Name, Kurzbeschreibung, Play-Button */
.store-card {
  width: 340px;
  max-width: 100%;
  padding: 28px 24px;
  border-radius: 20px;
  background: #f4f6fb;
  text-align: center;
}
.store-card img { margin: 0 auto; }
.store-card__art { width: 200px; }
.store-card h3 { margin: 12px 0 4px; font-size: 30px; }
.store-card p { margin: 0 0 20px; font-size: 17px; color: #555; line-height: 1.4; }
.store-card__badge { display: inline-block; transition: transform .15s; }
.store-card__badge:hover { transform: scale(1.04); }
.store-card__badge img { width: 220px; } /* offizielles Badge, eigene runde Ecken */

/* ---------- Karussell (im Handy-Rahmen) ---------- */
.carousel {
  position: relative;
  box-sizing: content-box; /* Rahmen kommt zur Bildgröße hinzu */
  height: 518px;
  aspect-ratio: 1080 / 2340; /* Format der Screenshots */
  border: 10px solid #111;
  border-radius: 30px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  outline: none;
}
.carousel:focus-visible { box-shadow: 0 0 0 3px var(--blue), 0 18px 40px rgba(0, 0, 0, .25); }
.carousel__slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity .5s;
}
.carousel__slide.is-active { opacity: 1; }
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.carousel:hover .carousel__btn,
.carousel:focus-within .carousel__btn { opacity: 1; }
.carousel__btn--prev { left: 6px; }
.carousel__btn--next { right: 6px; }
.carousel__dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}
.carousel__dot.is-active { background: #fff; }

/* ---------- Neuigkeiten ---------- */
.news {
  margin: 20px 0;
  padding: 16px 20px 6px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #f4f6fb;
}
.news time {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  margin-top: 32px;
  padding: 24px 16px;
  background: var(--header-bg);
  font-family: "Lato", sans-serif;
  font-size: 16px;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.site-footer a { color: #fff; text-decoration: none; opacity: .8; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer a[aria-current="page"] { opacity: 1; font-weight: 700; }

/* ---------- Rechtstexte (EULA, Datenschutz) ---------- */
.legal main {
  max-width: calc(70ch + 32px); /* ca. 70 Zeichen pro Zeile */
  font-family: "Lato", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}
.legal main h1,
.legal main h2,
.legal main h3,
.legal main h4 {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.legal main h1 { font-size: 36px; margin: 8px 0 20px; color: var(--blue); }
.legal main h2 { font-size: 24px; margin: 36px 0 12px; }
.legal main h3 { font-size: 20px; margin: 28px 0 8px; }
.legal main h4 { font-size: 17px; font-weight: 500; margin: 20px 0 6px; }
.legal main p { margin: 0 0 14px; }
.legal main ul { margin: 0 0 14px; padding-left: 24px; list-style: disc; }
.legal main li { margin: 0 0 6px; }
.legal main a {
  color: var(--blue);
  overflow-wrap: anywhere; /* lange URLs auf dem Handy umbrechen */
}
.legal main a:hover { color: var(--teal); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { height: 225px; background-size: max(63.75%, 340px) auto; }
  .tagline { font-size: 30px; }
  h2 { font-size: 26px; }
  .legal .site-header { font-size: 16px; line-height: 1.2; }
  .legal main { font-size: 16px; }
  .legal main h1 { font-size: 28px; }
  .legal main h2 { font-size: 21px; margin-top: 28px; }
  .legal main h3 { font-size: 18px; }
}
