/*
 * Die Startseite von galaxy-throne.de. Die Rechtsseiten haben ihr eigenes,
 * schlichtes stil.css und bleiben davon unberuehrt.
 *
 * Farben und Schrift sind die der App (DESIGN.md, Abschnitte 2 und 3). Das
 * eine praegende Element sind die ECKKLAMMERN (DESIGN.md, Abschnitt 5): vier
 * Winkel ohne Linie dazwischen. Sie rahmen hier genau eine Sache, den
 * Heimatplaneten, und sonst nichts.
 *
 * Die Schriften liegen auf dem eigenen Server und NICHT bei Google Fonts:
 * dort bekaeme Google die IP-Adresse jedes Besuchers, und die
 * Datenschutzerklaerung sagt "kein Tracking". Auf Latein zugeschnitten
 * (fontTools, 20.10.2026): 48 KB statt 1,1 MB. Lizenz SIL OFL, in schrift/.
 */

@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("schrift/Rajdhani_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("schrift/Rajdhani_700Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("schrift/JetBrainsMono_400Regular.woff2") format("woff2"); }

:root {
  --tief: #060b18;
  --gold: #e8b545;
  --klammer: #4db8e8;
  --text: #ffffff;
  --nebel: #8fd4f0;
  --leise: #5b7fa6;
  --trenner: rgba(143, 212, 240, 0.15);
  --rand: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { background: var(--tief); }

body {
  margin: 0;
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.1875rem;   /* 19 px: Rajdhani ist schmal und braucht etwas mehr Groesse */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--nebel); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--klammer); outline-offset: 3px; border-radius: 2px; }

/* Zahlen in Mono, wie in der App (DESIGN.md 3: "Alle Zahlen"). */
.mono, .zahl b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

/* ═══ Leiste ═══ */

.leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem var(--rand);
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.marke img { border-radius: 22%; }
.sprache { font-size: 1rem; }

main { max-width: 72rem; margin: 0 auto; padding: 0 var(--rand); }

/* ═══ Kopf ═══ */

.kopf { padding-top: clamp(2rem, 8vw, 5.5rem); }

h1 {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.lead {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--nebel);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.4;
}

.status {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.55rem 1rem 0.5rem;
  border: 1px solid rgba(77, 184, 232, 0.35);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Der Planet, gerahmt wie ein Panel der App. Der Grund des Bildes ist
   schwarz; `lighten` laesst ihn im Tiefraum der Seite verschwinden, ohne
   dass das Bild freigestellt werden muss. */
.heimat {
  position: relative;
  margin: clamp(2.5rem, 7vw, 4.5rem) 0 0;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
}
.heimat img { display: block; width: 100%; mix-blend-mode: lighten; }

.klammer {
  position: absolute;
  width: clamp(28px, 5vw, 56px);
  height: clamp(28px, 5vw, 56px);
  border: 0 solid var(--klammer);
  animation: erfassen 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both;
}
.ol { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; --dx: -28px; --dy: -28px; }
.or { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; --dx: 28px; --dy: -28px; }
.ul { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; --dx: -28px; --dy: 28px; }
.ur { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; --dx: 28px; --dy: 28px; }

/* Die eine Bewegung der Seite: die Klammern ziehen sich um den Planeten
   zusammen, wie wenn die App ein Ziel erfasst. */
@keyframes erfassen {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .klammer { animation: none; }
}

/* ═══ Abschnitte ═══ */

main > section + section { margin-top: clamp(4rem, 10vw, 7rem); }

h2 {
  margin: 0 0 1.5rem;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
}

/* Gebaut wie die Bauliste der App (EntityRow, DESIGN.md 7): Bild, Name, ein
   Satz, Trennlinie, rechts eine Zahl, wo es eine gibt. Keine Kacheln. */
.zeilen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trenner); }
.zeilen li {
  display: grid;
  grid-template-columns: clamp(72px, 12vw, 112px) 1fr auto;
  gap: 0 clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--trenner);
}
.zeilen img { display: block; width: 100%; }
.zeilen img.flaeche { border-radius: 50%; }
.zeilen h3 { margin: 0; font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
.zeilen p { margin: 0.2rem 0 0; max-width: 38rem; color: var(--nebel); }
.zahl { color: var(--leise); font-size: 1rem; text-align: right; white-space: nowrap; }
.zahl b { color: var(--gold); font-size: 1.125rem; }

.text p { max-width: 38rem; margin: 0 0 1rem; color: var(--nebel); }
.text p:last-child { margin-bottom: 0; }

.englisch { padding-top: 2.5rem; border-top: 1px solid var(--trenner); }

/* ═══ Fuss ═══ */

.fuss {
  max-width: 72rem;
  margin: clamp(4rem, 10vw, 7rem) auto 0;
  padding: 2rem var(--rand) 3rem;
  border-top: 1px solid var(--trenner);
  color: var(--leise);
  font-size: 1rem;
}
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 1rem; }
.fuss p { margin: 0; }

/* ═══ Schmal ═══ */

@media (max-width: 40rem) {
  .zeilen li { grid-template-columns: 72px 1fr; }
  .zahl { grid-column: 2; margin-top: 0.35rem; text-align: left; white-space: normal; }
}
