/* Griffel - styles.css
   Ein Stil für alle drei Seiten: Start, Impressum, Datenschutz.

   DUNKEL, WEIL DAS SPIEL DUNKEL IST. Griffel spielt abends auf einem
   Jahrmarkt; eine weiße Seite davor wäre ein anderer Ort. Gold ist der
   Akzent, genau wie im Spiel (Theme.c.gold).

   Gedruckt wird trotzdem schwarz auf weiß - siehe @media print ganz unten.
   Ein Impressum landet irgendwann auf Papier, und dunkle Flächen sind dort
   nur Toner. */

:root {
  --bg:        #100f16;
  --bg-tief:   #0a0910;
  --panel:     #1a1922;
  --panel-hi:  #22212d;
  --rule:      #2f2d3c;
  --ink:       #efece5;
  --ink-dim:   #c2bcb1;
  --ink-mute:  #8b8479;
  --gold:      #e8b93f;
  --gold-tief: #3a2f14;
  --rot:       #c8434b;
  --todo-bg:   #4a3608;
  --todo-ink:  #ffd77a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* Das Rautenmuster des Spiels, sehr zurückgenommen: zwei gekreuzte
     Verläufe statt einer Bilddatei. */
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.014) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.014) 0 2px, transparent 2px 12px);
}

img { max-width: 100%; height: auto; display: block; }

/* Pixelgrafik bleibt Pixelgrafik. Ohne das verwischt jeder Browser die
   Würfel beim Hochskalieren zu Matsch. */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--gold); text-underline-offset: 2px; }
a:hover { color: #fff; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.schmal { max-width: 46rem; }

/* ------------------------------------------------------------------ Kopf */
.kopfleiste {
  border-bottom: 1px solid var(--rule);
  background: rgba(10, 9, 16, .75);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.kopfleiste .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .7rem; padding-bottom: .7rem;
}
.marke {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: .82rem; color: var(--gold); text-decoration: none;
}
.marke img { width: 26px; height: 26px; }
.kopfleiste nav { display: flex; gap: 1.1rem; font-size: .85rem; }
.kopfleiste nav a { color: var(--ink-dim); text-decoration: none; }
.kopfleiste nav a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ Hero */
.hero {
  text-align: center;
  padding: 3.5rem 0 1rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232,185,63,.10), transparent 60%),
    linear-gradient(var(--bg-tief), var(--bg));
  border-bottom: 1px solid var(--rule);
}
.hero-logo {
  width: min(320px, 64vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.6));
}
.hero p.pitch {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink);
  max-width: 34rem;
  margin: 0 auto 1.2rem;
}
.hero p.unter {
  color: var(--ink-mute);
  max-width: 36rem;
  margin: 0 auto 2.2rem;
  font-size: .98rem;
}

.bild-gross {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  margin-bottom: -3rem;
  background: #000;
}
/* FUELLT SEINEN KASTEN. Ohne das steht die Aufnahme in ihrer Naturbreite
   (640 Pixel) und rechts daneben bliebe der schwarze Grund stehen. */
.bild-gross img { width: 100%; }

/* --------------------------------------------------------------- Absätze */
section { padding: 4rem 0; }
section.erste { padding-top: 6rem; }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.01em;
}
h2 {
  font-size: 1.35rem; margin: 0 0 1.4rem;
  letter-spacing: .01em;
}
h2 .zier { color: var(--gold); }
h3 { font-size: 1.02rem; margin: 0 0 .4rem; }

p { margin: 0 0 1rem; color: var(--ink-dim); }
li { color: var(--ink-dim); margin-bottom: .45rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }

.eyebrow {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin: 0 0 .5rem;
}

/* ---------------------------------------------------------------- Karten */
.karten {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.karte {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
}
.karte p { margin: 0; font-size: .95rem; }
.karte .zahl {
  font-size: 1.7rem; font-weight: 800; color: var(--gold);
  line-height: 1; margin-bottom: .35rem;
}

/* ------------------------------------------------------------- Galerie */
.galerie { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.galerie img {
  border: 1px solid var(--rule); border-radius: 6px; background: #000;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.galerie figcaption {
  color: var(--ink-mute); font-size: .87rem; margin-top: .5rem;
}

/* -------------------------------------------------------------- Plattform */
.plattformen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.plattform {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.2rem 1.3rem;
}
.plattform h3 { color: var(--ink); }
.marke-hinweis {
  display: inline-block; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold); background: var(--gold-tief);
  border-radius: 999px; padding: .15rem .7rem; margin-top: .5rem;
}

/* ---------------------------------------------------------- Dokumentseiten */
.dok { padding: 3rem 0 4rem; }
.dok h2 {
  font-size: 1.16rem; margin: 2.6rem 0 .8rem;
  padding-top: 1.6rem; border-top: 1px solid var(--rule);
}
.dok h2:first-of-type { border-top: none; padding-top: 0; }
.dok h3 { margin: 1.6rem 0 .5rem; }
.stand { color: var(--ink-mute); font-size: .92rem; margin: 0; }

.kasten {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 6px; padding: 1rem 1.2rem; margin: 0 0 1.2rem;
}
.kasten p:last-child, .kasten ul:last-child { margin-bottom: 0; }

.merksatz {
  background: var(--panel); border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 1.25rem 1.4rem; margin: 0 0 2.5rem;
}
.merksatz p:last-child { margin-bottom: 0; }
.merksatz strong { color: var(--ink); }

code, .pfad {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--panel-hi);
  padding: .12em .4em; border-radius: 4px; color: var(--ink);
  word-break: break-all;
}

.scroll { overflow-x: auto; margin: 0 0 1.2rem; }
table { border-collapse: collapse; width: 100%; min-width: 28rem; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink); font-weight: 600; white-space: nowrap; }
td { color: var(--ink-dim); }

/* Sprachumschalter */
.sprachen { display: flex; gap: .4rem; margin: 1.4rem 0 0; }
.sprachen button {
  font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: .35rem .85rem; border: 1px solid var(--rule); border-radius: 999px;
  background: transparent; color: var(--ink-dim); cursor: pointer;
}
.sprachen button[aria-pressed="true"] {
  background: var(--gold-tief); border-color: var(--gold); color: var(--gold);
}
.sprachen button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------ Fuß */
footer.fuss {
  border-top: 1px solid var(--rule);
  background: var(--bg-tief);
  padding: 2.5rem 0;
  color: var(--ink-mute); font-size: .88rem;
}
footer.fuss .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer.fuss nav { display: flex; gap: 1.2rem; }
footer.fuss p { color: var(--ink-mute); margin: 0; }

[hidden] { display: none !important; }

/* AUSFÜLLEN, BEVOR ES ONLINE GEHT. Absichtlich grell. */
.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  border-bottom: 2px solid var(--gold);
  padding: .05em .35em; border-radius: 3px; font-weight: 600;
}

@media (max-width: 34rem) {
  .kopfleiste nav { gap: .8rem; font-size: .8rem; }
  .marke span { display: none; }
  section { padding: 2.8rem 0; }
  section.erste { padding-top: 4.5rem; }
}

/* ---------------------------------------------------------------- Drucken
   Ein Impressum landet irgendwann auf Papier. Dunkle Flächen sind dort nur
   Toner, und die Kopfleiste, die Bilder und die Umschalter helfen niemandem. */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .kopfleiste, .sprachen, .hero, .galerie, .bild-gross { display: none; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  p, li, td { color: #222; }
  h2 { border-color: #ccc; }
  .kasten, .merksatz { border: 1px solid #999; background: #fff; }
  footer.fuss { background: #fff; border-color: #999; color: #444; }
}
