/* GridClash - Webseite (Startseite, Downloads, Rechtliches). Keine externen Dateien, keine Cookies. */
@font-face { font-family: "Exo 2"; font-weight: 500; font-display: swap; src: url("fonts/Exo2-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 500; font-display: swap; src: url("fonts/Exo2-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Exo 2"; font-weight: 800; font-display: swap; src: url("fonts/Exo2-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 800; font-display: swap; src: url("fonts/Exo2-latin-ext-800.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --bg: #07090f;
  --panel: rgba(12, 16, 26, 0.86);
  --line: rgba(255, 153, 38, 0.55);
  --text: #eef1f6;
  --muted: #a3adbd;
  --accent: #ff9926;
  --accent-2: #ffb85c;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 500 17px/1.55 "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent-2); }
a:hover { color: #fff; }

/* Startseite */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding: 24px 16px 28px;
  background: #0b0d14;
}
.hero > .bg { position: absolute; inset: 0; z-index: 0; background-position: center top; background-size: cover; background-repeat: no-repeat; transition: opacity .7s ease; }
.hero > .bg-wide { background-image: url("img/hero.jpg"); opacity: 1; }
.hero > .bg-tall { background-image: url("img/hero_tall.jpg"); opacity: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,9,15,0) 35%, rgba(7,9,15,0.55) 70%, rgba(7,9,15,0.95) 100%);
}
.hero > * { position: relative; z-index: 1; }
.tagline { margin: 0 0 18px; font-size: clamp(16px, 2.2vw, 22px); text-align: center; font-weight: 800; text-shadow: 0 0 10px #000, 0 0 4px #000, 0 2px 3px #000; max-width: 640px; }
.play {
  display: inline-block; text-decoration: none; color: #fff; font-weight: 800; text-align: center;
  font-size: clamp(22px, 3.6vw, 32px); letter-spacing: .02em;
  padding: 14px 42px; border-radius: 16px; border: 3px solid var(--accent);
  background: rgba(10, 14, 24, 0.72); box-shadow: 0 6px 24px rgba(0,0,0,.5);
  transition: transform .12s ease, background .12s ease;
}
.play:hover { transform: translateY(-2px); background: rgba(60, 34, 6, 0.85); color: #fff; }
.play small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; }

.downloads {
  margin-top: 22px; background: var(--panel); border: 2px solid var(--line); border-radius: 18px;
  padding: 12px 18px 14px; max-width: 760px; width: 100%;
}
.downloads h2 { margin: 0 0 10px; font-size: 16px; font-weight: 500; text-align: center; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pf {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px;
  text-decoration: none; color: var(--text); font-size: 13px; text-align: center;
}
.pf span.tile {
  width: 62px; height: 62px; border-radius: 14px; background: rgba(238,242,250,.94);
  display: grid; place-items: center; transition: background .12s ease, transform .12s ease;
}
.pf img { width: 50px; height: 50px; }
a.pf:hover span.tile { background: #ffd9a3; transform: translateY(-2px); }
.pf em { font-style: normal; color: var(--muted); font-size: 12px; }
.pf.soon { opacity: .55; }

footer {
  padding: 16px; text-align: center; font-size: 14px; color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
}
footer a { color: var(--muted); margin: 0 10px; text-decoration: none; }
footer a:hover { color: #fff; }

/* Textseiten (Impressum, Datenschutz, Lizenzen) */
.page { max-width: 820px; margin: 0 auto; padding: 28px 16px 40px; }
.page header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.page header img { width: 48px; height: 48px; border-radius: 10px; }
.page header a { text-decoration: none; color: var(--text); font-weight: 800; font-size: 22px; }
.page h1 { font-size: 30px; margin: 8px 0 14px; }
.page h2 { font-size: 20px; margin: 26px 0 8px; color: var(--accent-2); }
.page p, .page li { color: #dfe4ec; }
.page .box { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 16px; }
.page .note { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { body { font-size: 16px; } .pf { width: 76px; } }
/* Hochkant (Handy): das lange Titelbild (Logo oben, Arena darunter, Wolken bis unten) nutzen, volle Breite */
@media (max-aspect-ratio: 1/1) {
  .hero > .bg-wide { opacity: 0; }
  .hero > .bg-tall { opacity: 1; }
  .hero { padding-top: 21vw; justify-content: flex-start; }
  .tagline { margin-bottom: 36vw; }
  .play { padding: 14px 22px; font-size: clamp(20px, 5.6vw, 30px); white-space: nowrap; }   /* Knopf liegt unterhalb der Arena */
  .hero::after { background: linear-gradient(to bottom, rgba(7,9,15,0) 55%, rgba(7,9,15,0.9) 100%); }
}
/* Breit: Text direkt unter dem Logo (Logo endet bei ca. 30 % der Bildhoehe; Bild deckt die Flaeche, oben ausgerichtet) */
@media (min-aspect-ratio: 1/1) {
  .tagline {
    position: absolute; top: calc(max(100svh, 100vw * 0.602) * 0.315); left: 50%;
    transform: translateX(-50%); width: min(92vw, 720px); margin: 0;
  }
}

.downloads .note { margin: 14px auto 0; max-width: 520px; text-align: center; font-size: 12px; color: var(--muted); }

/* Hinweis-Popup (Linux/Android): sofort beim Drueberfahren/Fokus, auf Touch nach dem ersten Tippen */
.pf[data-tip] { position: relative; }
.pf[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  width: 240px; max-width: calc(100vw - 24px); transform: translateX(calc(-50% + var(--shift, 0px)));
  background: #1d1a17; color: #fff; font-size: 13px; line-height: 1.4; text-align: left;
  padding: 9px 11px; border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 20;
}
.pf[data-tip]:hover::after, .pf[data-tip]:focus-visible::after, .pf[data-tip].tip-open::after { opacity: 1; visibility: visible; }

/* Textseiten: etwas aufgeraeumter (Karten, Kontaktblock am Schluss) */
.page h1 { padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.page h2 { padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.25; }
.page .card, .page .box { margin: 6px 0 4px; }
.page .card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 4px 18px; }
.page .box.summary { border-color: var(--line); }
.page .box ul { margin: 6px 0; padding-left: 20px; }
.page li { margin: 5px 0; }
.page .owner { margin-top: 10px; padding: 14px 18px; border: 2px solid var(--line); background: rgba(255,153,38,.07); }
.page .owner p { margin: 6px 0; }
.page ul { padding-left: 22px; }

/* Schlagwoerter unter dem Slogan: eine Zeile Text */
.tagline .perks { display: block; text-wrap: balance; margin-top: 8px; font-weight: 500; font-size: clamp(13px, 1.6vw, 17px); line-height: 1.4; }

/* Sprachumschaltung */
html:not([data-l="en"]) [lang="en"] { display: none !important; }
html[data-l="en"] [lang="de"] { display: none !important; }
#lang-btn { position: fixed; top: 12px; right: 12px; z-index: 50; width: 52px; height: 52px; padding: 4px; cursor: pointer;
  border-radius: 12px; border: 2px solid var(--line); background: rgba(10,14,24,.72); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
#lang-btn:hover { background: rgba(60,34,6,.85); }
#lang-btn svg { width: 100%; height: 100%; display: block; }
@media (max-aspect-ratio: 1/1) { #lang-btn { width: 40px; height: 40px; top: 8px; right: 8px; padding: 3px; border-radius: 10px; } }

/* Beschreibungstext unter dem Titelbild (Suchmaschinen und Neugierige) */
.about{max-width:820px;margin:0 auto;padding:40px 20px 28px;color:#d9dde6;line-height:1.6;font-size:1.02rem}
.about h1{font-size:1.45rem;line-height:1.25;margin:0 0 14px;color:#fff}
.about p{margin:0 0 12px}
