/* ==========================================================================
   phpFarm — Landingpage
   Gestaltung nach der Oberflaeche des Spiels: dunkle Welt, helle Fenster,
   Pillen-Knoepfe, Statusfahnen. Keine externen Dateien.
   ========================================================================== */

:root {
  /* --- Werte aus dem Briefing (stammen aus dem Spiel) --- */
  --bg:          rgb(250, 253, 249);
  --surface:     rgb(255, 255, 255);
  --surface-alt: rgb(240, 246, 239);
  --edge:        rgba(23, 66, 51, 0.16);
  --text:        rgb(23, 66, 51);
  --text-muted:  rgb(74, 104, 91);
  --accent:      rgb(70, 154, 78);
  --accent-dark: rgb(52, 124, 58);
  --php:         rgb(124, 109, 199);
  --discord:     rgb(88, 101, 242);
  --radius:      14px;

  --code-bg:   rgb(15, 18, 24);
  --code-text: rgb(214, 222, 235);
  --keyword:  #c792ea;
  --variable: #82aaff;
  --string:   #c3e88d;
  --number:   #f78c6c;
  --comment:  #5c6773;
  --call:     #ffcb6b;
  --operator: #89ddff;
  --punct:    #a3b1bf;
  --opentag:  #6b7a8a;

  /* --- aus den Screenshots abgelesen --- */
  --toolbar:   rgb(229, 236, 229);

  /* --- abgeleitet (Rot nennt das Briefing nicht; aus dem Fehlerfenster) --- */
  --win:       var(--surface);
  --win-bar:   rgb(247, 251, 246);
  --chip:      rgb(237, 244, 236);
  --ok:        rgb(52, 124, 58);
  --ok-soft:   rgb(226, 243, 227);
  --stop:      rgb(196, 62, 62);
  --stop-soft: rgb(252, 234, 234);


  --accent-text:    rgb(44, 107, 50);   /* Gruen als Text auf Hell, 5,2:1 */
  --btn-green:      rgb(52, 124, 58);   /* Knopffuellung */
  --btn-green-over: rgb(44, 107, 50);   /* Hover: dunkler, nicht heller */
  --btn-blue:       rgb(88, 101, 242);
  --btn-blue-over:  rgb(71, 82, 219);
  --link:   var(--accent-dark);
  --shadow: 0 1px 2px rgba(23, 66, 51, 0.06), 0 10px 28px rgba(23, 66, 51, 0.09);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.10), 0 24px 56px rgba(0, 0, 0, 0.22);
  --maxw:   1140px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          rgb(15, 18, 24);
    --surface:     rgb(23, 28, 38);
    --surface-alt: rgb(19, 23, 31);
    --edge:        rgb(44, 53, 69);
    --text:        rgb(214, 222, 235);
    --text-muted:  rgb(129, 141, 160);
    --accent:      rgb(92, 201, 92);
    --accent-dark: rgb(70, 154, 78);
    --toolbar:     rgb(19, 23, 31);

    --win-bar:   rgb(28, 34, 45);
    --chip:      rgb(36, 43, 56);
    --ok:        rgb(92, 201, 92);
    --ok-soft:   rgba(92, 201, 92, 0.16);
    --stop:      rgb(238, 120, 120);
    --stop-soft: rgba(238, 120, 120, 0.16);

    --accent-text: rgb(92, 201, 92);
    --link:      rgb(92, 201, 92);
    --shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

/* --- Grundlagen ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
body.no-scroll { overflow: hidden; }

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

/* Browser geben <figure> von Haus aus 40px Rand links und rechts. In einem
   Raster zaehlt das zur Mindestbreite der Spalte und sprengt sie. */
figure { margin: 0; }
a { color: var(--link); }
a:not(.btn):hover { color: var(--text); }

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); }
h3 { font-size: 1.08rem; }
p  { margin: 0 0 1em; }

code, pre, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-ligatures: none;
}
:where(p, li, figcaption, td) code {
  background: var(--chip);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 0.08em 0.36em;
  font-size: 0.88em;
  /* Ein Plaettchen rutscht als Ganzes in die naechste Zeile, statt in der
     Mitte aufzureissen — ein halbes Plaettchen am Zeilenende liest sich
     wie ein Fehler. */
  white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--accent); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 70;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border: 1px solid var(--edge); border-radius: var(--radius);
}
.skip:focus { left: var(--gutter); top: 8px; }

section { padding: 60px 0; }
.band-alt { background: var(--surface-alt); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }

/* ==========================================================================
   Bausteine der Spiel-Oberflaeche
   ========================================================================== */

/* --- Pillen-Knopf, wie in der Werkzeugleiste ----------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.86rem; font-weight: 600;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--edge); border-radius: 11px;
  padding: 7px 12px; cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.pill:hover { border-color: var(--text-muted); color: var(--text); }

/* --- Fenster ------------------------------------------------------------- */
.win {
  position: relative;
  background: var(--win);
  border: 1px solid var(--edge);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.win-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--win-bar);
  border-bottom: 1px solid var(--edge);
  border-radius: 15px 15px 0 0;
}
.win-icon { width: 26px; height: 26px; flex: none; object-fit: contain; }
.win-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem; font-weight: 600; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.win-body { padding: 16px; }
.win-body > :last-child { margin-bottom: 0; }

/* Knopfgruppe rechts in der Leiste — reine Zierde */
.win-ctl { margin-left: auto; display: flex; gap: 5px; flex: none; }
.win-ctl i {
  position: relative;
  width: 26px; height: 21px; border-radius: 7px;
  background: var(--chip); border: 1px solid var(--edge);
}
.win-ctl i.play { background: var(--ok-soft); border-color: transparent; }
.win-ctl i.play::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-left: 7px solid var(--ok);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transform: translateX(1px);
}
.win-ctl i.step::before, .win-ctl i.step::after {
  content: ""; position: absolute; top: 6px; bottom: 6px;
  background: var(--text-muted); border-radius: 1px;
}
.win-ctl i.step::before { left: 9px; width: 2px; }
.win-ctl i.step::after  { left: 14px; width: 2px; }
.win-ctl i.close { background: var(--stop-soft); border-color: transparent; }
.win-ctl i.close::before, .win-ctl i.close::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 11px; height: 1.8px; border-radius: 1px; background: var(--stop);
}
.win-ctl i.close::before { transform: rotate(45deg); }
.win-ctl i.close::after  { transform: rotate(-45deg); }

/* Statusfahne ueber dem Fenster */
/* Reiter: bottom:100% setzt die Unterkante genau auf die Fensterkante,
   unabhaengig davon, wie hoch die Fahne durch Schriftgroesse wird.
   Vorher stand hier top:-12px — bei rund 25px Hoehe lag die Fahne damit
   13px in der Titelleiste und auf dem Fenstersymbol. */
.win-tag {
  position: absolute; bottom: 100%; left: 16px; z-index: 2;
  margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 10px; border-radius: 8px 8px 0 0;
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid var(--edge); border-bottom: 0;
}
/* Platz schaffen, damit der Reiter nicht in das Element darueber ragt */
.win:has(.win-tag) { margin-top: 28px; }
.win-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.win-tag.stop { background: var(--stop-soft); color: var(--stop); }

/* Blume, die hinter der Fensterecke hervorschaut — wie im Spiel */
.win-deco {
  position: absolute; right: -16px; top: -30px; z-index: 1;
  width: 88px; pointer-events: none; user-select: none;
}
.win-deco.left { right: auto; left: -20px; transform: scaleX(-1); }

@media (max-width: 560px) { .win-deco { width: 64px; top: -22px; right: -8px; } }

/* --- Abschnittskopf, wie der Panel-Kopf im Spiel ------------------------- */
.head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 26px;
}
/* Symbolflaechen sind <span>. Ohne display:block waeren sie inline und
   Breite/Hoehe wirkungslos — das Bild darin sprengt dann die Karte.
   object-fit haelt jedes Seitenverhaeltnis, auch wenn ein Symbol mal
   nicht quadratisch ist. */
.head-icon, .card-icon {
  display: block;
  flex: none;
  width: 46px;
  height: 46px;
}
.head-icon img, .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.head h2 { margin: 0; }
.head p { margin: 2px 0 0; font-size: 0.92rem; color: var(--text-muted); }

/* ==========================================================================
   Kopfleiste
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--toolbar);
  border-bottom: 1px solid var(--edge);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 58px;
}
/* Das echte Logo statt nachgebauter Schrift. Seine Farben (#00B0FF, #80E030)
   leben von der dunklen Kontur und halten als reiner Text auf der hellen
   Leiste keinen Kontrast — 1,96:1 und 1,35:1. */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 38px; }

.head-tools { display: flex; align-items: center; gap: 8px; }
.nav { display: none; gap: 6px; }
@media (min-width: 860px) { .nav { display: flex; } }
.nav a { font-size: 0.84rem; padding: 6px 11px; }

/* ==========================================================================
   Hero — das Hauptmenue des Spiels
   ========================================================================== */
.world {
  position: relative;
  overflow: hidden;
  color: var(--text);
  padding: 58px 0 76px;
  border-bottom: 1px solid var(--edge);
  background-color: var(--surface-alt);
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: cover;
  background-image:
    linear-gradient(100deg, rgba(250, 253, 249, 0.94) 0%, rgba(250, 253, 249, 0.86) 44%, rgba(250, 253, 249, 0.40) 100%),
    url("img/menu-bg-small.jpg");
}
@media (min-width: 860px) {
  .world {
    background-image:
      linear-gradient(100deg, rgba(250, 253, 249, 0.94) 0%, rgba(250, 253, 249, 0.84) 44%, rgba(250, 253, 249, 0.34) 100%),
      url("img/menu-bg.jpg");
  }
}
@media (prefers-color-scheme: dark) {
  .world {
    background-image:
      linear-gradient(100deg, rgba(15, 18, 24, 0.94) 0%, rgba(15, 18, 24, 0.88) 44%, rgba(15, 18, 24, 0.52) 100%),
      url("img/menu-bg-small.jpg");
  }
}
@media (prefers-color-scheme: dark) and (min-width: 860px) {
  .world {
    background-image:
      linear-gradient(100deg, rgba(15, 18, 24, 0.94) 0%, rgba(15, 18, 24, 0.86) 44%, rgba(15, 18, 24, 0.46) 100%),
      url("img/menu-bg.jpg");
  }
}

.world .wrap { position: relative; z-index: 2; }
.world-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .world-grid { grid-template-columns: 1fr 1fr; gap: 52px; } }

.world h1 { margin: 0 0 20px; }
.hero-logo { width: min(430px, 88%); height: auto; }

.tagline {
  font-size: clamp(1.12rem, 3vw, 1.38rem); font-weight: 700;
  color: var(--accent-text); margin-bottom: 0.5em;
}
.subline { font-size: 1.06rem; color: var(--text-muted); max-width: 46ch; }

.release {
  display: flex; align-items: center; gap: 9px;
  margin: 20px 0 0; font-size: 0.94rem; font-weight: 600; color: var(--text-muted);
}
.release time { color: var(--accent-text); }
.launch-offer { margin: 12px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--accent-text); }
.launch-offer[hidden] { display: none; }
.release-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent-text); box-shadow: 0 0 0 4px rgba(70, 154, 78, 0.16);
}

/* --- Knoepfe ------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; flex-direction: row; align-items: center; gap: 11px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 1.02rem; line-height: 1.25; text-decoration: none;
  transition: background-color 0.14s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-steam {
  background: var(--btn-green); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), inset 0 -3px 0 rgba(0, 0, 0, 0.20);
}
.btn-discord {
  background: var(--btn-blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), inset 0 -3px 0 rgba(0, 0, 0, 0.20);
}

/* Hover dunkelt ab. Weisse Schrift auf dunklerem Grund heisst mehr Kontrast,
   nicht weniger — Aufhellen hatte genau das Gegenteil bewirkt. */
.btn-steam[href]:hover,
.btn-steam[href]:focus-visible   { background: var(--btn-green-over); }
.btn-discord[href]:hover,
.btn-discord[href]:focus-visible { background: var(--btn-blue-over); }
.btn[href]:hover { transform: translateY(-1px); }

/* Die Schrift bleibt weiss. [href] greift nur am aktiven Knopf, der
   gedaempfte Wartezustand behaelt damit seine eigene Farbe. */
.btn[href]:hover,
.btn[href]:focus-visible,
.btn[href]:active { color: #fff; }

/* Druckpunkt: der Knopf setzt sich auf die Kante */
.btn[href]:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}
.btn-note { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; opacity: 0.9; }

/* Adresse steht noch nicht fest: sichtbar, aber ohne Klickziel */
.btn[aria-disabled="true"] {
  cursor: default; background: var(--chip);
  color: var(--text-muted); border-color: var(--edge);
  box-shadow: none;
}
.btn[aria-disabled="true"]:hover { transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn[href]:hover, .btn[href]:active, .gallery .win:hover { transform: none; }
}

/* --- Code-Fenster -------------------------------------------------------- */
.code-win .win-body { padding: 12px; }
.code {
  margin: 0; background: var(--code-bg); color: var(--code-text);
  border-radius: 10px; padding: 16px 18px; overflow-x: auto;
  font-size: 0.92rem; line-height: 1.7;
}
.code code { font-variant-ligatures: none; white-space: pre; }
.code .kw { color: var(--keyword); } .code .var { color: var(--variable); }
.code .str { color: var(--string); }  .code .num { color: var(--number); }
.code .cm  { color: var(--comment); } .code .fn  { color: var(--call); }
.code .op  { color: var(--operator); } .code .pn { color: var(--punct); }
.code .tag { color: var(--opentag); }
.code-note { margin: 10px 0 0; font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   Abschnitte
   ========================================================================== */

/* --- Was das ist --------------------------------------------------------- */
.split { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 46px; } }
.split p { font-size: 1.06rem; }

/* --- Karten, nach den Knoten im Skillbaum -------------------------------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 620px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  min-width: 0;
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.card-icon { margin-bottom: 13px; }
@media (min-width: 1020px) { .cards.cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Early Access ------------------------------------------------------- */
.ea-meta { margin: 26px 0 4px; }
.ea-langs { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.supporter {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 0; padding: 14px 18px; max-width: 760px;
  background: var(--surface); border: 1px solid var(--edge); border-radius: 12px;
  font-size: 0.94rem; color: var(--text-muted);
}
.supporter img { width: 40px; height: 40px; flex: none; }
.supporter strong { color: var(--text); }
.card h3 { margin-bottom: 0.45em; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* --- Trailer ------------------------------------------------------------- */
.trailer-win { max-width: 880px; margin: 0 auto; }
.trailer-win .win-body { padding: 12px; }
.trailer-win video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: 10px; background: var(--code-bg);
}

/* --- Screenshots --------------------------------------------------------- */
.gallery { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
.gallery > li { min-width: 0; }
@media (min-width: 680px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery > li:first-child { grid-column: 1 / -1; }
}
.shot-link { display: block; text-decoration: none; }
.shot-link img { width: 100%; height: auto; border-radius: 9px; }
.gallery .win-body { padding: 10px; }
.win-body figcaption {
  margin: 9px 2px 2px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.gallery .win { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.gallery .win:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* --- Roadmap, nach der Missionsliste ------------------------------------- */
.road-win { max-width: 820px; }
.roadmap { list-style: none; padding: 0; margin: 0; }
.stage { position: relative; padding: 0 0 26px 38px; }
.stage:last-child { padding-bottom: 0; }
.stage::after {
  content: ""; position: absolute; left: 12px; top: 24px; bottom: 2px;
  width: 2px; background: var(--edge);
}
.stage:last-child::after { display: none; }
.stage::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--edge); background: var(--surface);
}
.stage.current::before { background: var(--accent); border-color: var(--accent); }
.stage.current::after  { background: var(--accent); opacity: 0.35; }
.stage.done::before {
  content: "\2713"; background: var(--accent); border-color: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
.stage.done::after { background: var(--accent); opacity: 0.35; }
.stage-live {
  display: inline-block; margin-left: 8px; padding: 1px 7px; vertical-align: 2px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.stage h3 { margin-bottom: 0.3em; }
.stage p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.stage-num {
  display: inline-block; margin-left: 8px; vertical-align: 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.road-note { font-size: 0.86rem; color: var(--text-muted); margin: 0 0 22px; }
.road-more {
  margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--edge);
  font-size: 0.94rem; color: var(--text-muted);
}

/* ==========================================================================
   Sprachumschalter
   ========================================================================== */
.lang { position: relative; }
.lang-btn { gap: 7px; font-size: 0.84rem; letter-spacing: 0.03em; }
.flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px var(--edge) inset; flex: none; }
.caret {
  width: 0; height: 0; margin-left: 1px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  transition: transform 0.15s ease;
}
.lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; z-index: 50; top: calc(100% + 6px); right: 0;
  min-width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: 12px; box-shadow: var(--shadow);
}
.lang-menu[hidden] { display: none; }
.lang[data-drop="up"] .lang-menu { top: auto; bottom: calc(100% + 6px); }
.lang-menu button {
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--text); background: transparent; border: 0; border-radius: 8px;
  padding: 7px 10px; cursor: pointer; text-align: left; white-space: nowrap;
}
.lang-menu button:hover { background: var(--chip); }
.lang-menu button[aria-current="true"] { color: var(--accent-dark); }
@media (prefers-color-scheme: dark) { .lang-menu button[aria-current="true"] { color: var(--accent); } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 23, 47, 0.93);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 88vh; width: auto;
  border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  font: inherit; font-size: 0.95rem; font-weight: 700;
  color: var(--stop); background: var(--stop-soft);
  border: 1px solid var(--edge); border-radius: 10px;
  padding: 8px 15px; cursor: pointer;
}

/* ==========================================================================
   Fuss
   ========================================================================== */
.site-foot {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--edge);
  background: var(--toolbar);
  padding: 38px 0 46px;
  font-size: 0.92rem; color: var(--text-muted);
}
.site-foot .wrap {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  align-items: flex-start; justify-content: space-between;
}
.foot-note { max-width: 40ch; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 0; list-style: none; }
.foot-links a { display: inline-block; padding: 6px 0; }   /* Tippziel ueber 24px */
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.foot-social .pill { text-decoration: none; }
.foot-social .pill:hover { border-color: var(--text-muted); }

/* Platz fuer die offiziellen Marken-Symbole, sobald sie in img/ liegen.
   Beide Dienste geben sie als Paket heraus; eigene Nachbauten waeren
   gegen ihre Markenrichtlinien. */
/* Markenzeichen: unveraenderte Originaldateien, Hoehe vorgegeben,
   Breite frei — so kann nichts verzerren. Der Abstand zur Schrift ist
   zugleich der von Discord verlangte Schutzraum. */
.btn-ico { height: 18px; width: auto; flex: none; }
.social-ico { height: 14px; width: auto; flex: none; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.foot-ground { position: absolute; left: 0; right: 0; bottom: -6px; height: 74px; z-index: 1; pointer-events: none; }
.foot-ground img { position: absolute; bottom: 0; width: auto; height: 100%; opacity: 0.55; }
.foot-ground .g1 { left: -12px; }
.foot-ground .g2 { right: -14px; height: 86%; }
@media (max-width: 700px) { .foot-ground { height: 52px; } }

/* --- Tippziele auf dem Telefon ------------------------------------------
   WCAG 2.5.8 verlangt mindestens 24px, Apple empfiehlt 44. Die Pillen lagen
   bei 38, die Textlinks im Fuss bei 17. */
@media (max-width: 760px) {
  .pill, .lang-btn { min-height: 44px; }
  .foot-links { gap: 2px 22px; }
  .foot-links a { display: inline-block; padding: 13px 0; }
  .foot-social { gap: 10px; }
}

/* ==========================================================================
   Rechtstexte
   ========================================================================== */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 0.6em; }
.legal h2 { font-size: 1.2rem; margin-top: 1.9em; }
.legal h3 { font-size: 1.02rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--text-muted); }
.legal address { font-style: normal; color: var(--text); }
.legal .back { display: inline-block; margin-bottom: 24px; font-size: 0.9rem; }
