/*
 * site.css – Rahmen der Website (Kopf, Fuß, Startseite, Textseiten). Farben nur über die Variablen unten:
 * ein neues Spiel ändert diese Zeilen, nicht die Regeln darunter. Systemschriften (keine externen Anfragen).
 */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --text: #1d1b16;
  --muted: #6b665c;
  --accent: #2f7d4f;
  --accent-text: #ffffff;
  --border: #e2ddd1;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --surface: #211f19;
    --text: #f1eee6;
    --muted: #a8a294;
    --accent: #5cb27f;
    --accent-text: #0f1a13;
    --border: #36332b;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  overflow-wrap: anywhere;
  hyphens: auto;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.nav a {
  text-decoration: none;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.lang-icon {
  width: 18px;
  height: 18px;
}
.lang-switch select {
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  background: var(--surface);
  color: var(--text);
}
@media (max-width: 640px) {
  .nav-wide {
    display: none;
  }
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.btn-small {
  padding: 6px 14px;
  white-space: nowrap;
  color: var(--accent-text) !important;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.hero {
  text-align: center;
  padding: 48px 0 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  margin: 0 0 12px;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 auto 24px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.news-card,
.prose,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.when,
.meta,
.fine {
  color: var(--muted);
  font-size: 0.9rem;
}
.notes {
  list-style: none;
  padding: 0;
}
.note-item {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.note-item > a {
  font-weight: 700;
  font-size: 1.1rem;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.legal-text dt {
  font-weight: 700;
  margin-top: 8px;
}
.legal-text dd {
  margin: 0;
}
.bottom {
  border-top: 1px solid var(--border);
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ======================================================================================================
 * Look des Spiels (Besitzer, 2026-11-28): die Glutsee als Hintergrund, Inhalte auf Pergament mit Holzrahmen,
 * Kopf als Holzbalken, Überschriften in der Pixelschrift. Rahmen-Grafiken: Kenney „UI Pack – Pixel Adventure“
 * (CC0), dieselben wie im Spiel; Meer, Inseln, Möwen: site/img/sea.svg (selbst erzeugt).
 * ====================================================================================================== */
@font-face {
  font-family: 'KenPixel';
  src: url('/site/img/kenpixel_high.woff2') format('woff2');
  font-display: swap;
}
:root {
  --bg: #2f6f9a;
  --surface: #fff1d6;
  --text: #3b2a1a;
  --muted: #7b5a37;
  --accent: #a3561f;
  --accent-text: #fff1d6;
  --border: #d9bf8f;
  --wood: #a86d35;
  --wood-dark: #6b4423;
  --ink-on-sea: #fff8e6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17384f;
    --surface: #efdfbd;
    --text: #33240f;
    --muted: #6e5233;
    --accent: #94491a;
    --accent-text: #fff1d6;
    --border: #c9ad7b;
  }
  body {
    background-color: #17384f;
  }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 30, 0.45);
    pointer-events: none;
    z-index: -1;
  }
}
body {
  /* breites Meeresbild, nur nach unten wiederholt (oben/unten nahtlos), links und rechts verschiedene Inseln */
  background: var(--bg) url('/site/img/sea.svg') center top / 2400px auto repeat-y;
  color: var(--text);
}
a {
  color: var(--accent);
}
h1,
h2,
.brand,
.btn,
.marker {
  font-family: 'KenPixel', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}
/* Kopf: Holzbalken */
.top {
  background: var(--wood);
  border-bottom: 4px solid var(--wood-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.brand,
.nav a:not(.btn) {
  color: var(--accent-text);
}
.lang-switch {
  color: var(--accent-text);
}
.lang-switch select {
  background: var(--surface);
  color: var(--text);
  border-color: var(--wood-dark);
}
/* Knöpfe: Holz wie im Spiel */
.btn {
  border-radius: 0;
  border-style: solid;
  border-width: 10px;
  border-image: url('/site/img/panel-wood.png') 8 / 12px stretch;
  image-rendering: pixelated;
  background: var(--wood) padding-box;
  color: var(--accent-text);
  padding: 6px 14px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.btn-small {
  border-width: 8px;
  padding: 2px 8px;
}
.btn-ghost {
  background: var(--surface) padding-box;
  color: var(--text);
  text-shadow: none;
}
/* Inhalte: Pergament mit Rand */
.news-card,
.prose,
.card,
.hero-card {
  background: var(--surface) padding-box;
  border-radius: 0;
  border-style: solid;
  border-width: 12px;
  border-image: url('/site/img/panel-parchment.png') 8 / 14px stretch;
  image-rendering: pixelated;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.prose img,
.card img {
  image-rendering: auto;
}
.hero {
  padding: 24px 0 16px;
}
.hero-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 22px;
}
.hero h1 {
  color: var(--text);
  font-size: clamp(1.8rem, 6vw, 3rem);
}
.lead {
  color: var(--muted);
}
/* Bilder aus dem 3D-Spiel unter der Startkarte (Linie main-3d) */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 0 12px;
}
.shots img {
  width: 100%;
  height: auto;
  border: 4px solid #4a2f17;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.news-card {
  max-width: 760px;
  margin: 16px auto 0;
}
/* Seitentitel direkt auf dem Meer: helle Schrift mit Schatten */
main > h1,
.page-roadmap .intro h1,
.page-devnotes main > h1 {
  color: var(--ink-on-sea);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.bottom {
  background: var(--wood-dark);
  color: var(--accent-text);
  border-top: 4px solid #4a2f17;
}
.bottom a {
  color: #ffd99a;
}
.when,
.meta,
.fine {
  color: var(--muted);
}
.note-item {
  border-top-color: var(--border);
}
.hero-ship {
  display: block;
  margin: 0 auto 8px;
  width: 44px;
  height: auto;
  transform: rotate(180deg);
}
.news > h2 {
  color: var(--ink-on-sea);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  text-align: center;
}

/* Fußzeile unten am Fenster, auch bei kurzen Seiten (Besitzer: „sticky footer“) */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1 0 auto;
  width: 100%;
}

/* Am Handy: Meer kleiner, damit links und rechts Inseln zu sehen sind (sonst nur die leere Mitte) */
@media (max-width: 700px) {
  body {
    background-image: url('/site/img/sea-narrow.svg');
    background-size: 900px auto;
  }
}
