/* ===========================================================================
   PlanetSMP — Gestaltungssystem

   Die Szene, die alles erzwingt:
   Halb elf abends. Jemand hat ein Video gesehen, in dem einer in Brandenburg
   ein Haus baut, auf der echten Erde. Zwei Fragen stehen im Raum: "Kann ich
   mir da einfach einen Ort aussuchen?" und "Geht das auch am Handy?"

   Daraus folgt: Der Planet steht zuerst und ist anfassbar. Man sieht sofort,
   welche Orte vergeben sind. Bedrock steht nicht im Kleingedruckten.

   Farbe: aus der echten Kartentextur des Servers GEMESSEN, nicht erfunden.
     #203070  Tiefsee (18,9 % + 13,3 % der Kartenfläche)  -> Grundfläche
     #205080  Schelfmeer                                   -> angehobene Fläche
     #90b0f0  Flachwasser                                  -> Sekundärtext
     #f0f0f0  Eiskappen                                    -> Text
     #508040  Vegetation                                   -> Akzent "frei/aktiv"
   Ein zweiter Akzent (Bernstein) trägt ausschliesslich "besetzt/Claim".

   Schrift: Archivo (Breitenachse, die Karte dehnt sich zu den Polen, die
   Schrift kann das mitmachen) und Newsreader für Fliesstext. Beide selbst
   gehostet. Kein Inter, kein Space Grotesk.
   =========================================================================== */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("../fonts/archivo-TOxK-vA.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url("../fonts/newsreader-9DyjJBG.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}

:root {
  --tiefsee:  #16233f;
  --grund:    #101a30;
  --schelf:   #1d3057;
  --flach:    #90b0f0;
  --eis:      #f0f2f7;
  --eis-matt: #aebdd8;
  --land:     #6aa653;
  --land-hell:#8ecb74;
  --land-tief:#2f5e28;
  --claim:    #e0a341;
  --linie:    #26395f;
  --breit: min(1180px, 92vw);
  --rund: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--grund); color: var(--eis);
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.05vw + 14px, 20px); line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .marke, nav a, .knopf, .zahl, .ueberzeile, .schild, code, .nr, small {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--land-hell); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--eis); }

/* ── Kopfzeile ───────────────────────────────────────────────────────── */
header.oben {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 14px max(18px, calc((100vw - var(--breit)) / 2));
  background: linear-gradient(to bottom, rgba(16,26,48,.94), rgba(16,26,48,0));
  backdrop-filter: blur(6px);
}
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 18px; letter-spacing: -.01em; color: var(--eis); text-decoration: none; }
.marke img { width: 26px; height: 26px; image-rendering: pixelated; border-radius: 3px; }
header.oben nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
header.oben nav a { font-size: 14px; font-weight: 500; color: var(--eis-matt);
  text-decoration: none; }
header.oben nav a:hover { color: var(--eis); }
.sprache { font-size: 13px; border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 5px 10px; color: var(--eis-matt); text-decoration: none; }
.sprache:hover { border-color: var(--land); }
@media (max-width: 820px) { .weg-klein { display: none !important; } }

/* ── Der Planet ──────────────────────────────────────────────────────── */
.buehne { position: relative; overflow: hidden; display: grid; align-items: center;
  min-height: 100svh; }
#globus { position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: pan-y; cursor: grab; }
#globus.greift { cursor: grabbing; }
/* Die Leinwand darf unter keinen Umstaenden groesser werden als ihr Behaelter. */
#globus canvas { display: block; width: 100% !important; height: 100% !important; }
.buehne .text { position: relative; z-index: 2; width: var(--breit); margin: 0 auto;
  padding: 130px 0 96px; max-width: 34rem; }

.ueberzeile { margin: 0 0 12px; font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--land-hell); }
.buehne h1 { margin: 0 0 18px; font-weight: 800; line-height: 1.04;
  font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.035em; text-wrap: balance; }
.buehne h1 em { font-style: normal; color: var(--land-hell);
  font-variation-settings: "wdth" 88; }
.vorspann { color: var(--eis-matt); font-size: 1.05rem; margin: 0 0 26px; max-width: 30rem; }

/* Adressfeld: das Ding, wegen dem die Leute herkommen */
.adressfeld { display: flex; align-items: stretch; gap: 0; margin: 0 0 10px;
  background: rgba(10,17,32,.72); border: 1px solid var(--linie);
  border-radius: var(--rund); overflow: hidden; max-width: 27rem;
  backdrop-filter: blur(3px); }
.adressfeld .schild { display: none; }
.adressfeld code { flex: 1; display: flex; align-items: center; padding: 0 16px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .005em; color: var(--eis); }
.adressfeld button { display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-left: 1px solid var(--linie); cursor: pointer;
  background: var(--land); color: #0a2109; padding: 13px 18px;
  font-family: Archivo, sans-serif; font-size: .92rem; font-weight: 700;
  transition: background .14s ease; }
.adressfeld button:hover { background: var(--land-hell); }
.adressfeld button.fertig { background: var(--land-hell); }
.adressfeld button svg { width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bedrock { font-size: .85rem; color: var(--eis-matt); margin: 0 0 26px; }
.bedrock b { color: var(--eis); font-weight: 600; }

/* Knöpfe: ein Hauptweg, alles andere ruhig */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 11px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: Archivo, sans-serif; font-size: .95rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--rund); text-decoration: none;
  border: 1px solid var(--linie); background: rgba(29,48,87,.55); color: var(--eis);
  transition: border-color .14s ease, background .14s ease, transform .14s ease; }
.knopf:hover { border-color: var(--flach); background: rgba(29,48,87,.85); color: var(--eis); }
.knopf:active { transform: translateY(1px); }
.knopf.haupt { background: var(--land); border-color: var(--land); color: #0a2109; }
.knopf.haupt:hover { background: var(--land-hell); border-color: var(--land-hell); color: #0a2109; }
.knopf.klein { padding: 8px 14px; font-size: .84rem; }

.legende { position: absolute; z-index: 2; left: max(18px, calc((100vw - var(--breit)) / 2));
  bottom: 20px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem;
  color: var(--eis-matt); font-family: Archivo, sans-serif; }
.legende b { color: var(--eis); }
.legende span { display: inline-flex; align-items: center; gap: 7px; }
.punkt { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.punkt.c { background: var(--claim); }
.punkt.s { background: var(--land-hell); box-shadow: 0 0 9px var(--land-hell); }

/* ── Abschnitte: eigener Grund, damit der Globus nirgends durchscheint ─ */
section, footer, .breitengrad {
  position: relative; z-index: 3; background: var(--grund);
}
section { width: 100%; padding: 82px 0; }
section > * { width: var(--breit); margin-left: auto; margin-right: auto; }
section > h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700;
  letter-spacing: -.028em; margin: 0 auto 8px; text-wrap: balance; }
.hinfuehrung { color: var(--eis-matt); margin: 0 auto 36px; max-width: 42rem; }
.breitengrad { width: 100%; height: 34px; display: block; opacity: .55; }
.breitengrad path { fill: none; stroke: var(--linie); stroke-width: 1.5; }

.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.karte { background: var(--tiefsee); border: 1px solid var(--linie);
  border-radius: var(--rund); padding: 22px; transition: border-color .15s ease; }
.karte:hover { border-color: var(--land-tief); }
.karte h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.012em; }
.karte p { margin: 0; color: var(--eis-matt); font-size: .96rem; }
.nr { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--land-hell); display: block; margin-bottom: 11px; font-weight: 600; }

ol.schritte { list-style: none; counter-reset: s; margin: 0 auto 22px; padding: 0;
  display: grid; gap: 13px; }
ol.schritte li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr;
  gap: 16px; align-items: start; background: var(--tiefsee);
  border: 1px solid var(--linie); border-radius: var(--rund); padding: 18px 20px; }
ol.schritte li::before { content: counter(s); font-family: Archivo, sans-serif;
  font-weight: 800; font-size: 1.3rem; color: var(--land-hell); line-height: 1.15; }
ol.schritte h3 { margin: 0 0 4px; font-size: 1rem; }
ol.schritte p { margin: 0; color: var(--eis-matt); font-size: .94rem; }
code { background: rgba(10,17,32,.6); border: 1px solid var(--linie); border-radius: 3px;
  padding: 1px 6px; font-size: .92em; color: var(--eis); }
ol.schritte code { font-weight: 600; }

.zahlenreihe { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.zahlenreihe div { background: var(--tiefsee); border: 1px solid var(--linie);
  border-radius: var(--rund); padding: 17px 19px; }
.zahl { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; }
.zahlenreihe small { color: var(--eis-matt); font-size: .8rem; letter-spacing: .02em; }

/* ── Live-Karte eingebettet ──────────────────────────────────────────── */
.kartenrahmen { border: 1px solid var(--linie); border-radius: var(--rund);
  overflow: hidden; background: var(--tiefsee); }
.kartenkopf { display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  border-bottom: 1px solid var(--linie); }
.kartenkopf .knopf { margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: Archivo, sans-serif;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--eis-matt); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--land-hell);
  box-shadow: 0 0 0 0 rgba(142,203,116,.6); animation: puls 2.4s ease-out infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 9px rgba(142,203,116,0); } 100% { box-shadow: 0 0 0 0 rgba(142,203,116,0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.kartenrahmen iframe { display: block; width: 100%; height: clamp(360px, 58vh, 620px);
  border: 0; background: #0b1a30; }

footer { border-top: 1px solid var(--linie); margin-top: 30px; }
footer .innen { width: var(--breit); margin: 0 auto; padding: 38px 0 58px;
  display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start;
  color: var(--eis-matt); font-size: .9rem; }
footer .wer strong { color: var(--eis); font-family: Archivo, sans-serif; font-size: 1rem; }
footer a { color: var(--eis-matt); }
footer .rechts { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--land-hell); outline-offset: 3px; }

/* ── Handy ───────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  /* Der Globus bekommt eine feste Höhe und bleibt darin. Vorher wuchs die
     Bühne mit dem Text mit, und die Kugel ragte in den nächsten Abschnitt. */
  .buehne { min-height: auto; padding-bottom: 8px; }
  #globus { position: relative; inset: auto; height: min(58svh, 92vw); min-height: 300px;
    margin-top: 58px; }
  .buehne .text { padding: 22px 0 10px; max-width: none; }
  .legende { position: static; width: var(--breit); margin: 0 auto 26px;
    gap: 14px; font-size: .78rem; }
  .knopfreihe .knopf { flex: 1 1 auto; }
  section { padding: 62px 0; }
}
