/* Website von Escape the Stars IDLE: derselbe Schrottplatz-Stil wie im Spiel (src/styles.css).
   Menüs sind genietete Typenschilder, Überschriften Schablonenschrift, Signale Warngelb, Knöpfe lackiertes Rostblech.
   Dahinter liegt fest eine Galaxie mit lila Nebel (bilder/galaxie.webp). */

@font-face { font-family: 'Big Shoulders Stencil Display'; font-weight: 700; font-display: swap; src: url(schrift/stencil-700.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Stencil Display'; font-weight: 800; font-display: swap; src: url(schrift/stencil-800.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 400; font-display: swap; src: url(schrift/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url(schrift/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(schrift/barlow-700.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --void: #0b0a09;
  --plate: #2a2826;
  --plate-hi: #35322e;
  --edge: #4d4841;
  --groove: #161514;
  --bone: #efe6d6;
  --dim: #b8ad9a;
  --rust: #e2601f;
  --rust-deep: #9a3a12;
  --hazard: #f2c014;
  --hazard-deep: #c59a05;
  --verdigris: #58c2a4;
  --alien: #b79cff;
  --ink: #17120a;
  --stencil: 'Big Shoulders Stencil Display', 'Arial Narrow', sans-serif;
  --body: 'Barlow Semi Condensed', 'Roboto Condensed', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --niete: radial-gradient(circle, #8a8478 0 1.6px, #12110f 2.2px 3.2px, transparent 3.6px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--bone); font: 18px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--hazard); color: var(--ink); }
:focus-visible { outline: 2px solid var(--hazard); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hazard); text-underline-offset: 3px; }

/* Sprache: nur auf der Startseite (html.wahl) wird die andere ausgeblendet. Rechtstexte bleiben immer vollständig sichtbar (Google-Vorgabe), dort springt die Wahl nur zum Abschnitt. */
html.wahl[data-sprache='de'] [lang='en']:not(html), html.wahl[data-sprache='en'] [lang='de']:not(html) { display: none !important; }

/* ---------- Weltall: Galaxie fest im Hintergrund, darüber zwei Sternebenen wie im Spiel ---------- */
.all { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #07050c url(bilder/galaxie.webp) center / cover no-repeat; }
.all::before, .all::after { content: ''; position: absolute; top: 0; left: 0; width: 200%; height: 100%; background-repeat: repeat; }
.all::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #ffe9c9, transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent),
    radial-gradient(1px 1px at 220px 180px, #e4d6ff, transparent),
    radial-gradient(1px 1px at 60px 210px, #fff, transparent);
  background-size: 240px 240px; opacity: 0.55; animation: drift 120s linear infinite;
}
.all::after {
  background-image:
    radial-gradient(2px 2px at 50px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 300px 200px, #d9c9ff, transparent),
    radial-gradient(2px 2px at 200px 330px, #fff, transparent);
  background-size: 400px 400px; opacity: 0.45; animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Kopfleiste ---------- */
.leiste { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)); background: linear-gradient(rgba(11, 10, 9, 0.84), rgba(11, 10, 9, 0.64)); border-bottom: 1px solid rgba(77, 72, 65, 0.6); backdrop-filter: blur(6px); }
.leiste .marke { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font-family: var(--stencil); font-weight: 800; font-size: 22px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; }
.leiste .marke img { width: 34px; height: 34px; border-radius: 8px; }
.sprachwahl { margin-left: auto; display: flex; gap: 4px; }
.sprachwahl button { min-width: 44px; min-height: 36px; font: 700 15px var(--body); letter-spacing: 0.08em; color: var(--dim); background: var(--groove); border: 1px solid var(--edge); border-radius: 2px; cursor: pointer; }
.sprachwahl button[aria-pressed='true'] { color: var(--ink); background: var(--hazard); border-color: var(--hazard-deep); box-shadow: inset 0 -2px 0 var(--hazard-deep); }

/* ---------- Bausteine aus dem Spiel ---------- */
.chip { display: inline-block; font-family: var(--stencil); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--hazard); padding: 6px 12px 5px; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--hazard-deep); }

.platte {
  position: relative; padding: 20px 24px 22px; border: 1px solid var(--edge); border-radius: 3px;
  background:
    var(--niete) 2px 2px / 16px 16px no-repeat,
    var(--niete) calc(100% - 2px) 2px / 16px 16px no-repeat,
    var(--niete) 2px calc(100% - 2px) / 16px 16px no-repeat,
    var(--niete) calc(100% - 2px) calc(100% - 2px) / 16px 16px no-repeat,
    linear-gradient(178deg, rgba(53, 50, 46, 0.88), rgba(42, 40, 38, 0.88) 55%, rgba(36, 34, 32, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 10px 26px rgba(0, 0, 0, 0.6);
}
.titel { font-family: var(--stencil); font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: 0.035em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); margin: 0 0 6px; }
.sub { color: var(--dim); font-size: 16.5px; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 22px 6px;
  font-family: var(--stencil); font-weight: 800; font-size: 22px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  color: var(--ink); background: var(--rust); border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 var(--rust-deep), 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s var(--ease), filter 0.12s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); }
.btn.alien { background: var(--alien); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 #7a5fd0, 0 4px 12px rgba(0, 0, 0, 0.6); }
.btn.bald { color: #8f8677; background: rgba(31, 30, 28, 0.9); box-shadow: inset 0 0 0 1px var(--edge); cursor: default; }
.btn.bald:hover { filter: none; } .btn.bald:active { transform: none; }
.btn svg { width: 24px; height: 24px; flex: none; }


/* ---------- Werbeseite: Hero mit Titelbild ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: grid; align-items: end; overflow: hidden; background: #07050c; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 5, 12, 0.88) 0%, rgba(7, 5, 12, 0.55) 38%, rgba(7, 5, 12, 0) 62%), linear-gradient(transparent 55%, rgba(11, 10, 9, 0.9)); }
.hero-text { position: relative; z-index: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding: 64px 22px 64px; display: grid; justify-items: start; gap: 16px; }
.hero h1 { margin: 0; font-family: var(--stencil); font-weight: 800; font-size: clamp(56px, 10vw, 128px); line-height: 0.86; letter-spacing: 0.02em; text-transform: uppercase; color: var(--bone); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55); }
.hero h1 span { display: block; color: var(--hazard); }
.hero .kurz { max-width: 30ch; margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; line-height: 1.3; color: var(--bone); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.fakten { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.fakten li { background: rgba(22, 21, 20, 0.72); border: 1px solid var(--edge); border-radius: 2px; padding: 4px 11px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 700px) {
  .hero { min-height: 0; align-items: stretch; }
  .hero > img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 58% 50%; }
  .hero::before { background: linear-gradient(transparent 38%, rgba(7, 5, 12, 0.95) 56%, rgba(11, 10, 9, 0.98)); }
  .hero { display: block; }
  .hero-text { margin-top: -36px; padding: 0 18px 44px; }
}

/* Screenshots: Handys mit Rahmen, waagerecht wischbar */
.galerie { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 18px 18px; margin: 0 -18px; scrollbar-width: thin; scrollbar-color: var(--rust-deep) transparent; }
.galerie figure { flex: 0 0 auto; width: min(240px, 68vw); margin: 0; scroll-snap-align: center; }
.telefon { padding: 8px; border-radius: 26px; background: linear-gradient(160deg, #3b3833, #1a1917 60%); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px rgba(0, 0, 0, 0.7); }
.telefon img { width: 100%; aspect-ratio: 412 / 892; border-radius: 19px; background: var(--groove); }
.galerie figcaption { margin: 10px 4px 0; text-align: center; }
.galerie figcaption b { display: block; font-family: var(--stencil); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.galerie figcaption span { color: var(--dim); font-size: 15.5px; line-height: 1.35; }
.wisch { color: var(--dim); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0 0; }

/* Download */
.download { text-align: center; }
.download > h2, .download > .vorspann { margin-left: auto !important; margin-right: auto !important; }
.download .platte { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
.download .knoepfe { justify-content: center; }
.eintrag { display: flex; align-items: center; gap: 16px; text-align: left; }
.eintrag img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 1px var(--edge), 0 6px 14px rgba(0, 0, 0, 0.6); }
.eintrag strong { display: block; font-family: var(--stencil); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone); }
.eintrag span { display: block; margin-top: 4px; color: var(--dim); font-size: 16px; }
.download img.erde { display: block; width: min(460px, 86%); margin: 0 auto -30px; }
.leiste nav { display: flex; gap: 18px; margin-left: 18px; }
.leiste nav a { color: var(--dim); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.leiste nav a:hover { color: var(--bone); }
@media (max-width: 640px) { .leiste nav { display: none; } }

.abschnitt { max-width: 1080px; margin: 0 auto; padding: 72px 18px; }
.abschnitt > h2 { margin: 0 0 8px; font-family: var(--stencil); font-weight: 800; font-size: clamp(36px, 6vw, 56px); line-height: 0.95; letter-spacing: 0.03em; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55); }
.abschnitt > .vorspann { max-width: 60ch; margin: 0 0 28px; color: var(--bone); font-size: 19px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.dunkel { background: rgba(11, 10, 9, 0.7); box-shadow: 0 0 0 100vmax rgba(11, 10, 9, 0.7); clip-path: inset(0 -100vmax); }

/* Logbuch-Eintrag: Geschichte */
.logbuch { max-width: 760px; margin: 0 auto; }
.logbuch .stempel { font-family: var(--stencil); font-weight: 700; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); margin: 0 0 8px; }
.logbuch p { margin: 0 0 12px; font-size: 19px; }
.logbuch p:last-child { margin: 0; }

/* Werft: zwölf Klassen */
.werft { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.werft li { padding: 10px 10px 12px; }
.werft img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: var(--groove); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9); }
.werft .titel { font-size: 21px; margin: 10px 4px 0; display: flex; align-items: baseline; gap: 8px; }
.werft .nr { font-family: var(--stencil); font-weight: 800; font-size: 24px; color: var(--hazard); }
.werft .fach { aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 2px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px), var(--groove); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9); font-family: var(--stencil); font-weight: 800; font-size: 64px; color: rgba(255, 255, 255, 0.16); }
.werft li.zu .titel { color: rgba(255, 255, 255, 0.4); }
.werft li.zu .nr { color: rgba(255, 255, 255, 0.28); }

/* Was dich erwartet */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.raster .platte { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-items: start; }
.raster .platte > img { width: 56px; height: 56px; object-fit: contain; grid-row: span 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.7)); }

/* Ehrlich: Typenschild-Datenfelder */
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 0; }
.felder > div { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 0, 0, 0.55); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); border-radius: 2px; padding: 8px 12px 10px; }
.felder dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.felder dd { margin: 2px 0 0; font-family: var(--stencil); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.03em; color: var(--verdigris); }


/* ---------- Rechtstexte ---------- */
.text { max-width: 820px; margin: 32px auto 48px; padding: 0 14px; }
.text .platte { padding: 28px clamp(18px, 4vw, 40px) 32px; background-color: rgba(30, 28, 26, 0.88); }
.text h1 { margin: 0 0 4px; font-family: var(--stencil); font-weight: 800; font-size: clamp(36px, 7vw, 52px); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; color: var(--hazard); }
.text h2 { margin: 2rem 0 .4rem; font-family: var(--stencil); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: 0.035em; text-transform: uppercase; color: var(--bone); }
.text h3 { margin: 1.2rem 0 .3rem; font-size: 18px; font-weight: 700; color: var(--hazard); }
.text p, .text li { max-width: 70ch; line-height: 1.55; }
.text .stand { color: var(--dim); margin: 0 0 1.5rem; }
.text section + section { margin-top: 24px; }

/* ---------- Fuß ---------- */
.fuss { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 24px max(18px, env(safe-area-inset-left)) 36px; background: rgba(11, 10, 9, 0.84); border-top: 1px solid var(--edge); color: var(--dim); }
.fuss a { color: var(--dim); }
.fuss a:hover { color: var(--bone); }
.fuss .rechts { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .all::before, .all::after { animation: none; }
}
.text section { scroll-margin-top: 72px; }
main [id] { scroll-margin-top: 60px; }
.download .felder { grid-template-columns: repeat(3, minmax(0, 1fr)); } .download .felder dd { font-size: clamp(15px, 4vw, 26px); white-space: nowrap; }
.download .felder { gap: 6px; } .download .felder > div { padding: 8px 6px 10px; } .download .platte { padding-left: 16px; padding-right: 16px; }
/* Fußzeile: Sternchen zwischen den Einträgen, Schrägstrich zwischen DE/EN-Link, solange keine Sprache gewählt ist */
.fuss > * + *::before { content: '✦'; display: inline-block; margin-right: 24px; color: var(--dim); opacity: .6; text-decoration: none; }
html:not(.wahl) .fuss [lang='de'] + [lang='en']::before { content: '/'; display: inline-block; margin: 0 6px; color: var(--dim); text-decoration: none; }
/* Fußzeile passt sich an: Die eine Zeile mit Sternen gibt es nur, wo sie sicher ganz hineinpasst (ab 1000px, auch mit beiden Sprachen). Darunter stehen die Einträge mittig untereinander und brechen bei Bedarf um */
@media (max-width: 999px) {
  .fuss { flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 6px; padding-top: 22px; padding-bottom: max(30px, env(safe-area-inset-bottom)); padding-right: max(18px, env(safe-area-inset-right)); text-align: center; }
  .fuss > * { max-width: 100%; overflow-wrap: anywhere; }
  .fuss .rechts { margin-left: 0; }
  .fuss > * + *::before { content: none; }
  .fuss a { display: inline-block; padding: 8px 2px; }
}
