/* Ghost Train Suplex: Webseite zum Release. Schwarz, Pixel, wenig Farbe: eine einzige Akzentfarbe. */
@font-face { font-family: "Press Start 2P"; font-weight: 400; font-display: swap; src: url("../assets/fonts/press-start-2p-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #050505;
  --panel: #0e0e0d;
  --line: #2c2c2a;
  --text: #edebe4;
  --muted: #a09d94;
  --accent: #ff3347;
  --font-px: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Pixelify Sans", ui-monospace, monospace;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 19px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; }
img { max-width: 100%; }
a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; padding: 10px 14px; background: var(--text); color: #000; font-family: var(--font-px); font-size: 11px; z-index: 20; }
.skip:focus { top: 12px; }

/* feine Zeilen wie bei einem alten Röhrenbildschirm, sehr dezent */
body::before { content: ""; position: fixed; inset: 0; z-index: 10; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); }

/* ---------- Kopf und Menü (immer waagerecht) ---------- */
.bar { border-bottom: 4px solid var(--line); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; width: min(var(--maxw), 100%); margin: 0 auto; padding: 10px 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0 12px; font-family: var(--font-px); font-size: 13px; line-height: 1.2; letter-spacing: .02em; text-decoration: none; color: var(--text); }
.brand svg { width: 24px; height: 24px; fill: currentColor; shape-rendering: crispEdges; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 14px 14px 16px; font-family: var(--font-px); font-size: 11px; letter-spacing: .04em; text-decoration: none; color: var(--muted); box-shadow: inset 0 -4px 0 transparent; }
.nav a:hover { color: var(--text); box-shadow: inset 0 -4px 0 var(--line); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -4px 0 var(--accent); }

/* ---------- Kopfbild ---------- */
.hero { position: relative; background: #000; border-bottom: 4px solid var(--line); }
.hero img { display: block; width: 100%; height: clamp(150px, 27vw, 330px); object-fit: cover; object-position: 55% 60%; image-rendering: pixelated; }
.hero--small img { height: clamp(110px, 17vw, 210px); object-position: 55% 82%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 36px; background: linear-gradient(to bottom, transparent, var(--bg)); }

/* ---------- Inhalt ---------- */
.wrap { flex: 1; width: min(var(--maxw), 100% - 40px); margin: 0 auto; padding: 40px 0 64px; }
.kicker { margin: 0 auto 14px; text-align: center; font-family: var(--font-px); font-size: 10px; letter-spacing: .12em; color: var(--accent); }
h1 { margin: 0 0 18px; text-align: center; font-family: var(--font-px); font-weight: 400; font-size: clamp(20px, 4.4vw, 38px); line-height: 1.35; letter-spacing: .01em; overflow-wrap: anywhere; }
h2 { margin: 48px 0 14px; text-align: center; font-family: var(--font-px); font-weight: 400; font-size: clamp(14px, 2.4vw, 18px); line-height: 1.5; }
h2::before { content: "> "; color: var(--accent); }
h2::after { content: " <"; color: var(--accent); }
h3 { margin: 28px 0 8px; text-align: center; font-family: var(--font-px); font-weight: 400; font-size: 12px; line-height: 1.6; letter-spacing: .06em; color: var(--muted); }
.lead { max-width: 40ch; margin: 0 auto 18px; text-align: center; font-size: clamp(23px, 3.4vw, 32px); line-height: 1.3; }
p { max-width: 62ch; margin: 0 auto 16px; text-align: center; }
.stats { margin: 0 auto 22px; font-family: var(--font-px); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.small { font-size: 15px; color: var(--muted); }
.tiny { font-size: 13px; color: var(--muted); }
.cursor::after { content: "_"; margin-left: 4px; color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor::after { animation: none; } }

/* Rahmen mit abgeschnittenen Ecken (nur aus Kästchen gebaut) */
.px { margin: 4px; background: var(--panel); box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line); }
.px--hi { box-shadow: 0 -4px 0 0 var(--text), 0 4px 0 0 var(--text), -4px 0 0 0 var(--text), 4px 0 0 0 var(--text); }

.btn, .press { display: inline-block; padding: 12px 16px; font-family: var(--font-px); font-size: 10px; letter-spacing: .06em; line-height: 1.3; text-decoration: none; color: var(--text); background: var(--bg); border: 0; cursor: pointer; box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line); margin: 4px; }
.btn:hover { color: #000; background: var(--text); box-shadow: 0 -4px 0 0 var(--text), 0 4px 0 0 var(--text), -4px 0 0 0 var(--text), 4px 0 0 0 var(--text); }
.btn[hidden] { display: none; }

/* ---------- Spiel ---------- */
.game { margin: 36px 0 8px; }
.game-box { position: relative; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; background: #000; }
.game-box .embed-slot, .game-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px; text-align: center; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .8)), url("../assets/header.png") 55% 60% / cover; image-rendering: pixelated; }
.press { padding: 16px 22px; font-size: clamp(12px, 2.6vw, 20px); color: #000; background: var(--text); box-shadow: 6px 6px 0 var(--accent); margin: 0; }
.press:hover { background: var(--accent); color: #000; }
.poster-note { margin: 0; max-width: 34ch; font-size: 14px; color: var(--muted); image-rendering: auto; }
.game-box:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.game-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 18px 0 6px; }
.rotate-hint { display: none; }
@media (max-width: 700px) and (orientation: portrait) { .rotate-hint { display: block; } }

/* ---------- Player, Titelliste, Videos ---------- */
.player { margin: 22px 0; }
.player .px { min-height: 150px; }
.player .px.is-live { min-height: 0; }
.player .px[data-embed="bandcamp"] { --h: 120px; max-width: 700px; margin-left: auto; margin-right: auto; }
.player .poster { position: relative; min-height: 150px; }
.player iframe { display: block; width: 100%; height: var(--h, 352px); border: 0; background: #000; }
.tracks { max-width: 780px; margin: 10px auto 0; padding: 0; list-style: none; counter-reset: t; text-align: left; }
.tracks > li { counter-increment: t; border-bottom: 2px dashed var(--line); }
.tracks summary { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto 1.1em; gap: 0 14px; align-items: baseline; padding: 13px 4px; cursor: pointer; list-style: none; }
.tracks summary::-webkit-details-marker { display: none; }
.tracks summary::before { content: counter(t, decimal-leading-zero); font-family: var(--font-px); font-size: 10px; color: var(--accent); }
.tracks summary::after { content: "+"; font-family: var(--font-px); font-size: 12px; text-align: right; color: var(--muted); }
.tracks details[open] > summary::after { content: "-"; color: var(--accent); }
.tracks summary:hover .t-title { color: var(--accent); }
.tracks .t-title { overflow-wrap: anywhere; }
.tracks .len { color: var(--muted); font-size: 16px; white-space: nowrap; }
.thoughts { display: grid; gap: 16px; margin: 2px 0 20px; padding: 6px 4px 0 calc(2.2em + 14px); list-style: none; }
.thoughts li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.thoughts li:not(:last-child) { padding-bottom: 14px; border-bottom: 2px dotted var(--line); }
.thoughts img { display: block; width: 64px; height: 64px; background: #000; image-rendering: pixelated; box-shadow: 0 0 0 4px var(--line); margin: 4px; }
.thoughts b { display: block; margin-bottom: 4px; font-family: var(--font-px); font-weight: 400; font-size: 9px; line-height: 1.7; letter-spacing: .06em; color: var(--accent); }
.thoughts p { max-width: none; margin: 0; font-size: 17px; text-align: left; }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 8px; }
.video .px { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.video .poster { background: #000 center / cover no-repeat; image-rendering: pixelated; }
.video .poster--1 { background-image: url("../assets/v1.png"); }
.video .poster--2 { background-image: url("../assets/v2.png"); }
.video .press { font-size: 11px; padding: 12px 14px; }
.video figcaption { margin-top: 14px; text-align: center; }
.video figcaption b { display: block; font-family: var(--font-px); font-weight: 400; font-size: 11px; line-height: 1.6; }
.video .embed-slot, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video { margin: 0; }
@media (max-width: 720px) { .videos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Über uns ---------- */
.crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.member { flex: 0 1 188px; margin: 4px; padding: 18px 14px 20px; text-align: center; background: var(--panel); box-shadow: 0 -4px 0 0 var(--line), 0 4px 0 0 var(--line), -4px 0 0 0 var(--line), 4px 0 0 0 var(--line); }
.member img { display: block; width: 96px; height: 96px; margin: 4px auto 18px; background: #000; image-rendering: pixelated; box-shadow: 0 0 0 4px var(--line); }
.member b { display: block; font-family: var(--font-px); font-weight: 400; font-size: 13px; line-height: 1.5; }
.member .role { display: block; margin: 8px 0 12px; font-family: var(--font-px); font-size: 9px; line-height: 1.6; letter-spacing: .08em; color: var(--accent); }
.member p { max-width: none; margin: 0; font-size: 16px; color: var(--muted); }
.notes { max-width: 640px; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.notes li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 2px dashed var(--line); }
.notes b { flex: none; width: 96px; font-family: var(--font-px); font-weight: 400; font-size: 10px; line-height: 2; color: var(--muted); }

/* ---------- Fuß ---------- */
.foot { border-top: 4px solid var(--line); padding: 20px 20px 26px; text-align: center; }
.icons { display: flex; justify-content: center; gap: 14px; margin: 0 0 8px; padding: 0; list-style: none; }
.icons a, .icons button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--muted); background: none; border: 0; cursor: pointer; }
.icons svg { width: 26px; height: 26px; fill: currentColor; shape-rendering: crispEdges; }
.icons a:hover, .icons button:hover { color: var(--accent); }
.legal { margin: 0 auto; max-width: none; font-family: var(--font-px); font-size: 8px; line-height: 2; letter-spacing: .08em; color: var(--muted); }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--accent); text-decoration: underline; }
.legal span { display: inline-block; }

/* ---------- Kontaktfeld ---------- */
dialog { width: min(520px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; color: var(--text); background: var(--panel); border: 0; box-shadow: 0 -4px 0 0 var(--text), 0 4px 0 0 var(--text), -4px 0 0 0 var(--text), 4px 0 0 0 var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .86); }
.dlg { padding: 22px 22px 24px; }
.dlg h2 { margin: 0 0 6px; }
.dlg label { display: block; margin: 14px 0 6px; font-family: var(--font-px); font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.dlg input, .dlg textarea { display: block; width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: #000; border: 4px solid var(--line); border-radius: 0; }
.dlg textarea { min-height: 130px; resize: vertical; }
.dlg input:focus, .dlg textarea:focus { outline: none; border-color: var(--accent); }
.dlg .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 20px; }
.dlg-status { min-height: 1.6em; margin: 12px 0 0; font-size: 16px; }
.dlg-status.ok { color: var(--text); }
.dlg-status.err { color: var(--accent); }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 560px) {
  html { font-size: 18px; }
  .bar-in { justify-content: center; padding-top: 12px; }
  .brand { padding-bottom: 4px; font-size: 12px; }
  .nav { width: 100%; justify-content: space-around; }
  .nav a { flex: 1; text-align: center; padding: 12px 6px 14px; font-size: 10px; }
  .wrap { padding-top: 30px; }
  .legal .sep { display: none; }
  .legal > span { display: block; }
}

/* Im Kontaktfeld bleibt alles linksbündig */
.dlg h2, .dlg p { text-align: left; margin-left: 0; }
.dlg h2::after { content: none; }
@media (max-width: 560px) {
  .member { flex-basis: 150px; padding: 16px 10px 18px; }
  .thoughts { padding-left: 0; }
  .thoughts li { gap: 12px; }
  .tracks summary { grid-template-columns: 2em minmax(0, 1fr) auto 1em; gap: 0 10px; }
}
