/* Alpenwacht – gemeinsame Gestaltung aller Seiten. Nur Systemschriften, keine externen Dateien. */
:root {
  --wood: #5a3a22;
  --wood-dark: #3a2414;
  --wood-light: #8a5a34;
  --parchment: #f4e6c4;
  --gold: #ffcd5a;
  --red: #c8322a;
  --green: #4caf50;
  --sky: #6ab4ea;
  --night: #14141a;
  --ink: #2a1a0e;
  --text: #f4e6c4;
  --muted: #cdbb95;
  --panel: rgba(36, 22, 12, 0.88);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html[data-lang="de"] [lang="en"]:not(html), html[data-lang="en"] [lang="de"]:not(html) { display: none !important; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img.pixel, .pixel img { image-rendering: pixelated; }
a { color: var(--gold); }
a:hover { color: #fff; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10; background: rgba(20, 16, 12, 0.92);
  border-bottom: 3px solid var(--wood-dark); backdrop-filter: blur(6px);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--parchment); font: 700 18px/1 var(--mono); letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--parchment); text-decoration: none; font: 600 15px var(--mono); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.langs { display: flex; border: 2px solid var(--wood-light); }
.langs button { background: transparent; color: var(--muted); border: 0; padding: 4px 9px; font: 700 13px var(--mono); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--wood-light); color: #fff; }

/* Holzrahmen-Knöpfe wie im Spiel */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; text-decoration: none;
  font: 700 16px var(--mono); color: #fff; background: var(--green);
  border: 3px solid rgba(0, 0, 0, 0.7); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25), 0 4px 0 rgba(0, 0, 0, 0.45);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.red { background: var(--red); }
.btn.wood { background: var(--wood-light); }
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: 0.85; }

/* Startbereich */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; background: url("hero.jpg") center / cover no-repeat;
  image-rendering: pixelated;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 14, 0.82) 0%, rgba(10, 8, 14, 0.45) 55%, rgba(10, 8, 14, 0.1) 100%), linear-gradient(0deg, var(--night) 0%, transparent 25%); }
.hero .wrap { position: relative; z-index: 1; padding: 64px 0; }
.hero h1 { margin: 0; font: 900 clamp(46px, 9vw, 104px)/0.95 var(--mono); letter-spacing: 2px; color: var(--parchment); text-shadow: 4px 4px 0 var(--ink), 0 0 30px rgba(0, 0, 0, 0.6); }
.hero .tag { margin: 10px 0 22px; font: 700 clamp(20px, 3vw, 30px) var(--mono); color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.hero p.lead { max-width: 560px; font-size: 19px; color: var(--parchment); text-shadow: 1px 1px 0 var(--ink); }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); margin-bottom: 18px; }

/* Abschnitte */
section { padding: 72px 0; }
section.alt { background: linear-gradient(180deg, #1c1510, #15110d); border-block: 3px solid var(--wood-dark); }
h2 { font: 800 clamp(28px, 4vw, 40px)/1.15 var(--mono); color: var(--gold); margin: 0 0 10px; text-shadow: 2px 2px 0 var(--ink); }
h3 { font: 700 20px var(--mono); color: var(--parchment); margin: 0 0 6px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 34px; }
.serif { font-family: var(--serif); }

.panel { background: var(--panel); border: 3px solid var(--wood-dark); box-shadow: inset 0 0 0 1px rgba(138, 90, 52, 0.6); padding: 22px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.feature .emoji { font-size: 30px; }

/* Trailer */
.trailer { position: relative; aspect-ratio: 16 / 9; background: #000 url("trailer_poster.jpg") center / cover; border: 4px solid var(--wood-dark); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); cursor: default; overflow: hidden; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer .overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(0, 0, 0, 0.35); padding: 16px; }
.trailer .play { width: 92px; height: 92px; border-radius: 50%; background: var(--red); border: 4px solid rgba(0, 0, 0, 0.7); display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45); }
.trailer .play::before { content: ""; border-left: 30px solid #fff; border-top: 18px solid transparent; border-bottom: 18px solid transparent; margin-left: 8px; }
.trailer .note { font-size: 13px; color: var(--parchment); max-width: 520px; margin: 0 auto; text-shadow: 1px 1px 0 #000; }
.trailer.ready { cursor: pointer; }
.trailer.ready:hover .play { filter: brightness(1.15); }
.trailer .soon { display: none; font: 700 22px var(--mono); color: var(--gold); text-shadow: 2px 2px 0 #000; }
.trailer.pending .soon { display: block; }
.trailer.pending .play, .trailer.pending .note { display: none; }

/* Screenshots */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shots figure { margin: 0; }
.shots a { display: block; border: 3px solid var(--wood-dark); background: #000; overflow: hidden; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s; }
.shots a:hover img { transform: scale(1.04); }
.shots figcaption { font: 13px var(--mono); color: var(--muted); padding: 6px 2px 0; }

/* Türme und Gegner */
.roster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.unit { background: var(--panel); border: 3px solid var(--wood-dark); padding: 12px 10px; text-align: center; }
.unit img { height: 72px; width: auto; max-width: 100%; image-rendering: pixelated; }
.unit b { display: block; font: 700 14px var(--mono); color: var(--parchment); margin-top: 6px; }
.unit span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.unit .badge { display: inline-block; margin-top: 6px; font: 700 11px var(--mono); color: var(--ink); background: var(--gold); padding: 1px 6px; }

/* Regionen */
.maps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.maps figure { margin: 0; background: var(--panel); border: 3px solid var(--wood-dark); }
.maps img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.maps figcaption { padding: 8px 10px; font: 700 14px var(--mono); color: var(--parchment); }
.maps figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* Engel */
.angels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.angel { text-align: center; }
.angel img { width: 96px; height: 96px; image-rendering: pixelated; }

/* Versionen */
.versions { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.versions ul { margin: 12px 0 0; padding-left: 20px; }
.versions li { margin: 4px 0; }
.versions .price { font: 800 28px var(--mono); color: var(--gold); }

/* Textseiten (Support, Datenschutz, Impressum) */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 860px; }
.page h1 { font: 800 clamp(30px, 5vw, 44px)/1.15 var(--mono); color: var(--gold); margin: 0 0 8px; text-shadow: 2px 2px 0 var(--ink); }
.page h2 { font-size: 22px; margin-top: 34px; }
.page p, .page li { color: var(--parchment); }
.page .meta { color: var(--muted); font-size: 14px; }
details { background: var(--panel); border: 3px solid var(--wood-dark); padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font: 700 16px var(--mono); color: var(--parchment); }
details[open] summary { color: var(--gold); margin-bottom: 8px; }
.placeholder { background: #ffeb3b; color: #000; padding: 0 4px; font-family: var(--mono); font-size: 0.9em; }

/* Fußzeile */
footer { border-top: 3px solid var(--wood-dark); background: #0f0c09; padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--parchment); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .mada { display: flex; align-items: center; gap: 12px; }
footer .mada img { height: 40px; width: auto; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 12px; margin-left: 0; width: 100%; padding-bottom: 8px; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(0deg, var(--night) 0%, rgba(10, 8, 14, 0.7) 40%, rgba(10, 8, 14, 0.55) 100%); }
  section { padding: 52px 0; }
  .unit img { height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } }
