/* style.css - gemeinsames Aussehen von index.html und tech.html */
:root {
  color-scheme: dark;
  --ink: #090c10;
  --panel: #18222c;
  --panel-2: #222f3b;
  --line: #435363;
  --cream: #fff0cf;
  --muted: #aeb9c4;
  --gold: #ffc65c;
  --orange: #e9783d;
  --red: #d94b35;
  --green: #78d89b;
  --shadow: #05070a;
  --pixel: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -10%, #71331f 0, #1d2027 36rem, var(--ink) 70rem),
    var(--ink);
  font-family: var(--pixel);
  font-size: 1rem;
  line-height: 1.55;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 2px solid var(--orange);
  background: rgba(9, 12, 16, .92);
  backdrop-filter: blur(10px);
}
nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 3px 3px 0 #70291f;
}
.nav-actions, .nav-links, .language-switch { display: flex; align-items: center; }
.nav-actions { gap: 1.25rem; }
.nav-links { gap: 1.2rem; }
.nav-links a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); }
.language-switch { gap: .25rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.language-switch button {
  border: 1px solid transparent;
  padding: .28rem .48rem;
  color: var(--muted);
  background: transparent;
  font: 800 .78rem var(--pixel);
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] {
  border-color: var(--orange);
  color: var(--gold);
  background: #281a17;
}

.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 2.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.cover {
  border: 4px solid #111821;
  outline: 2px solid var(--orange);
  box-shadow: 16px 16px 0 rgba(0,0,0,.48);
  image-rendering: pixelated;
  width: 100%;
}
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2.15rem, 6vw, 4.4rem);
  line-height: .94;
  letter-spacing: -.05em;
  text-shadow: 5px 5px 0 #6c261c;
}
.lead { max-width: 33rem; color: #d7dee4; font-size: 1.06rem; }
.mission {
  margin: 1.5rem 0 0;
  border-left: 4px solid var(--orange);
  padding-left: 1rem;
  color: var(--cream);
  font-weight: 700;
}

section { padding: 3rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
h2 { margin: 0; color: var(--cream); font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1; }
.section-head p { margin: 0; color: var(--muted); }

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 2px solid var(--line);
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  box-shadow: 8px 8px 0 var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border-top: 1px solid rgba(255,255,255,.06);
}
.platform {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: start;
}
.platform h3 { margin: 0; color: var(--gold); font-size: 1.45rem; }
.badge {
  padding: .18rem .55rem;
  border: 1px solid #667585;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.card p { margin: .85rem 0 1.2rem; color: #cbd3da; }
.card .meta { margin-top: auto; color: #8f9daa; font-size: .82rem; }
.button {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 2px solid #ffb36a;
  color: #fff7e6;
  background: var(--orange);
  box-shadow: 4px 4px 0 #76291c;
  font-weight: 900;
  text-decoration: none;
}
.button:hover, .button:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #76291c; }
.button.pending {
  cursor: not-allowed;
  border-color: #4d5a66;
  color: #a0abb5;
  background: #2a3540;
  box-shadow: 4px 4px 0 #0a0d11;
}
.editor-card {
  grid-column: 1 / -1;
  min-height: 0;
  border-color: var(--orange);
  background: linear-gradient(115deg, #37241e, var(--panel) 55%);
}
.editor-card p { max-width: 52rem; }
.card-wide { grid-column: 1 / -1; }
.disclaimer {
  margin: 1.2rem 0 0;
  max-width: 60rem;
  color: var(--muted);
  font-size: .85rem;
}

.video-wrap .video, .video-wrap > p { max-width: 960px; }
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid var(--orange);
  background: #000;
  box-shadow: 10px 10px 0 var(--shadow);
  cursor: pointer;
  overflow: hidden;
}
.video img, .video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: var(--orange);
  box-shadow: 6px 6px 0 #76291c;
}
.video .play::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 18px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.video:hover .play, .video:focus-visible .play { transform: translate(calc(-50% + 2px), calc(-50% + 2px)); box-shadow: 4px 4px 0 #76291c; }
.video-note { margin: .9rem 0 0; color: var(--muted); font-size: .85rem; }
.video-note a { color: var(--cream); }

.manual-wrap {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid var(--orange);
  background: linear-gradient(115deg, #34231f, var(--panel) 48%);
  box-shadow: 10px 10px 0 var(--shadow);
}
.runner {
  width: 150px;
  margin: auto;
  image-rendering: pixelated;
  filter: drop-shadow(8px 8px 0 rgba(0,0,0,.35));
}
.manual-wrap h2 { color: var(--gold); }
.manual-wrap p { color: #d4dbe1; }
.manual-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button.secondary { background: transparent; border-color: #7d8b98; box-shadow: none; color: var(--cream); }

.requirements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid #34414d;
  color: var(--muted);
}
.requirements strong { display: block; margin-bottom: .35rem; color: var(--cream); }
.legal-section { padding-top: 2rem; }
.legal-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; }
.legal-card {
  scroll-margin-top: 86px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: #111820;
  color: #c2ccd5;
  box-shadow: 6px 6px 0 var(--shadow);
}
.legal-card h2 { margin-bottom: 1.25rem; color: var(--gold); font-size: 1.55rem; }
.legal-card h3 { margin: 1.15rem 0 .35rem; color: var(--cream); font-size: 1rem; }
.legal-card p { margin: .35rem 0; }
.legal-card a { color: var(--gold); }
footer { padding: 2rem 0 3rem; color: #778491; font-size: .82rem; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: .55rem; }
.footer-links a { color: #aeb9c4; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); }

/* Download-Zaehler: nur sichtbar mit ?stats=<Schluessel> (stats.php prueft ihn) */
.dl-count {
  display: inline-block;
  align-self: flex-start;   /* in den Karten (Flex-Spalte) nicht auf volle Breite ziehen */
  margin: .45rem 0 .2rem;
  padding: .1rem .5rem;
  border: 1px solid var(--green);
  color: var(--green);
  background: #12241a;
  font-size: .78rem;
  font-weight: 800;
  vertical-align: middle;
}
.dl-total { margin-left: 0; font-size: .9rem; }

@media (max-width: 760px) {
  .hero-grid, .downloads, .requirements, .legal-grid { grid-template-columns: 1fr; }
  .hero-copy { order: -1; }
  .section-head { align-items: start; flex-direction: column; }
  .manual-wrap { grid-template-columns: 1fr; text-align: center; }
  .manual-actions { justify-content: center; }
  nav { min-height: 56px; }
  .nav-actions { gap: .55rem; }
  .nav-links { gap: .7rem; }
  .nav-links a { font-size: .75rem; }
  .language-switch { padding-left: .5rem; }
  .language-switch button { padding: .25rem .34rem; }
}

/* Schmale Handys: Marke oben, Links und Sprache darunter */
@media (max-width: 560px) {
  nav { flex-wrap: wrap; gap: .3rem; padding: .55rem 0; }
  .nav-actions { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
