/* NACHTPROTOKOLL – Webseite im Stil des Spiels: Kamera-Rahmen, Nacht, Kork und Papier */
@font-face { font-family: "Creepster"; src: url("fonts/creepster.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Typewriter"; src: url("fonts/texgyrecursor-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Typewriter"; src: url("fonts/texgyrecursor-regular.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --night: #07090b;
  --night-2: #0d1215;
  --line: rgba(120, 220, 210, .18);
  --teal: #5fd0c9;
  --bone: #e9e2d2;
  --dim: #8e968f;
  --red: #b3160f;
  --red-ink: #a8170f;
  --paper: #eee6d0;
  --paper-2: #f3ecd8;
  --ink: #1f1a14;
  --ink-soft: #544a3e;
  --ink-blue: #1c3a8c;
  --cork: #8a6440;
  --wood: #4a2c18;
  --hand: "Ink Free", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--bone);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
body::after { /* Filmkorn + Vignette */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.65) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
a { color: var(--teal); }

/* ---------- Kamera-Rahmen ---------- */
.cam { position: fixed; inset: 14px; pointer-events: none; z-index: 40; }
.cam-c { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(233,226,210,.55); }
.cam-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cam-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cam-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cam-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cam-rec, .cam-meta { position: absolute; top: 6px; font: 700 12px/1 "Typewriter", monospace; letter-spacing: .14em; color: rgba(233,226,210,.7); }
.cam-rec { right: 40px; }
.cam-meta { top: auto !important; bottom: 6px; }
.cam-rec i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e3271c; margin-right: 7px; vertical-align: -1px; animation: blink 1.4s steps(1) infinite; }
.cam-rec span { color: rgba(233,226,210,.5); margin-left: 8px; }
.cam-meta { left: 40px; color: rgba(233,226,210,.45); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Kopfzeile ---------- */
.top {
  position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 34px clamp(16px, 5vw, 64px) 0;
}
.brand { font: 34px/1 "Creepster", "Typewriter", serif; color: var(--bone); text-decoration: none; letter-spacing: .02em; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.top nav a { color: var(--dim); text-decoration: none; font: 700 13px/1 "Typewriter", monospace; letter-spacing: .12em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a.on { color: var(--bone); border-bottom-color: var(--teal); }
.top nav a.btn-mini { color: var(--bone); border: 1px solid var(--line); padding: 8px 12px; }
.top nav a.btn-mini:hover { border-color: var(--teal); }

main { flex: 1; position: relative; z-index: 10; }

/* ---------- Startseite ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; padding: 40px clamp(16px, 5vw, 64px); }
.hero-img {
  position: absolute; inset: -110px 0 0 0; z-index: -1;
  background: url("img/hero.webp") center 30% / cover no-repeat;
  filter: saturate(.8) contrast(1.05);
}
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,11,.94) 0%, rgba(7,9,11,.7) 45%, rgba(7,9,11,.15) 100%), linear-gradient(0deg, var(--night) 0%, transparent 30%); }
.hero-txt { max-width: 640px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font: 700 12px/1 "Typewriter", monospace; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 0; font: clamp(56px, 10vw, 112px)/.95 "Creepster", serif; color: var(--bone); letter-spacing: .01em; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.lead { font-size: 18px; color: #c9c3b5; margin: 18px 0 28px; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.small { color: var(--dim); font-size: 13px; margin-top: 14px; }

.btn {
  display: inline-block; cursor: pointer; border: 0; text-decoration: none;
  background: var(--red); color: #fbeee0; padding: 14px 26px;
  font: 700 15px/1 "Typewriter", monospace; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 -3px 0 rgba(0,0,0,.25);
  transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid rgba(233,226,210,.45); box-shadow: none; }
.paper .btn.ghost { color: var(--ink); border-color: rgba(31,26,20,.5); }

/* ---------- Kork-Wand ---------- */
.board, .cork {
  margin: 0 clamp(8px, 4vw, 64px) 56px;
  padding: clamp(28px, 4vw, 48px) clamp(14px, 4vw, 48px);
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.18) 0 2px, transparent 3px) 0 0 / 23px 19px,
    radial-gradient(circle at 70% 60%, rgba(255,230,190,.12) 0 1.5px, transparent 2.5px) 0 0 / 17px 21px,
    radial-gradient(ellipse at 50% 40%, #9a7149 0%, var(--cork) 60%, #6e4d30 100%);
  border: 14px solid var(--wood);
  border-image: linear-gradient(135deg, #5b3720, #3a2112 50%, #5b3720) 1;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.35);
}
.cork { display: flex; justify-content: center; margin-top: 40px; }
.board-title { margin: 0 0 22px; font: 700 26px/1 "Typewriter", monospace; letter-spacing: .14em; text-transform: uppercase; color: #f6ecd8; text-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.note {
  position: relative; background: var(--paper-2); color: var(--ink); padding: 26px 20px 20px;
  box-shadow: 4px 7px 0 rgba(0,0,0,.28);
}
.note.n1 { transform: rotate(-1.6deg); } .note.n2 { transform: rotate(1.2deg); background: #e7ecdf; }
.note.n3 { transform: rotate(-.6deg); background: #f2e6c4; } .note.n4 { transform: rotate(1.8deg); }
.note h3 { margin: 0 0 8px; font: 700 18px/1.2 "Typewriter", monospace; letter-spacing: .04em; text-transform: uppercase; }
.note p { margin: 0; font: 17px/1.45 var(--hand); color: var(--ink-soft); }
.pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a80, #b3160f 55%, #5a0904); box-shadow: 2px 4px 4px rgba(0,0,0,.45); }
.pin.blue { background: radial-gradient(circle at 35% 35%, #9fb8ff, #1f4fc0 55%, #0b1f55); }
.pin.yellow { background: radial-gradient(circle at 35% 35%, #fff2a8, #d8a514 55%, #6a4f05); }
.pin.green { background: radial-gradient(circle at 35% 35%, #b4f0bd, #23863a 55%, #0b3a16); }

/* ---------- Formulare als Zettel ---------- */
.paper {
  position: relative; width: 100%; max-width: 460px;
  background: var(--paper); color: var(--ink);
  padding: 34px clamp(18px, 4vw, 34px) 28px;
  box-shadow: 6px 10px 0 rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.05);
  transform: rotate(-.6deg);
  background-image: repeating-linear-gradient(0deg, transparent 0 29px, rgba(40,80,150,.12) 29px 30px);
  background-position: 0 92px;
}
.paper.wide { max-width: 640px; }
.paper h2 { margin: 0 0 6px; font: 700 28px/1.1 "Typewriter", monospace; letter-spacing: .06em; text-transform: uppercase; }
.paper .hint { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }
.paper label { display: block; margin: 14px 0 0; font: 700 13px/1.3 "Typewriter", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.paper label small { text-transform: none; letter-spacing: 0; font: 12px system-ui, sans-serif; color: #7b7062; margin-left: 6px; }
.paper input:not([type=checkbox]), .paper textarea {
  display: block; width: 100%; margin-top: 4px;
  background: rgba(255,255,255,.35); border: 0; border-bottom: 2px solid rgba(31,26,20,.55);
  padding: 8px 6px; color: var(--ink-blue);
  font: 22px/1.3 var(--hand); outline: none;
}
.paper input:focus, .paper textarea:focus { border-bottom-color: var(--ink-blue); background: rgba(255,255,255,.55); }
.paper textarea { resize: vertical; font-size: 19px; }
.paper .check { display: flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font: 14px system-ui, sans-serif; color: var(--ink-soft); }
.paper .check input { width: 18px; height: 18px; accent-color: var(--red); }
.paper .btn { margin-top: 22px; }
.paper .alt { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }
.paper a { color: var(--ink-blue); }
.paper a.btn { color: #fbeee0; text-decoration: none; }
.paper a.btn.ghost { color: var(--ink); }
.msg { margin: 10px 0 0; padding: 10px 12px; font-size: 14px; }
.msg.err { background: rgba(179,22,15,.1); color: var(--red-ink); border-left: 3px solid var(--red-ink); }
.msg.ok { background: rgba(28,58,140,.08); color: var(--ink-blue); border-left: 3px solid var(--ink-blue); }
.stamp {
  position: absolute; top: 24px; right: 22px; transform: rotate(9deg);
  border: 3px solid rgba(168,23,15,.7); color: rgba(168,23,15,.75); padding: 4px 10px;
  font: 700 16px/1 "Typewriter", monospace; letter-spacing: .14em;
}
.stamp.entwickler { border-color: rgba(214,120,20,.85); color: rgba(190,100,10,.9); }
.stamp.tester { border-color: rgba(30,120,115,.8); color: rgba(20,110,105,.9); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0 22px; }
.facts dt { font: 700 13px/1.7 "Typewriter", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font: 20px/1.4 var(--hand); color: var(--ink-blue); word-break: break-word; }
.legal { font-size: 15px; }
.legal h2 { margin-bottom: 14px; }

/* ---------- Download ---------- */
.download h3 { margin: 26px 0 8px; font: 700 16px/1.2 "Typewriter", monospace; letter-spacing: .1em; text-transform: uppercase; }
.btn.big { font-size: 18px; padding: 18px 34px; margin-top: 10px; }
.dl-meta { margin: 10px 0 0; font: 700 12px/1.4 "Typewriter", monospace; letter-spacing: .08em; color: var(--ink-soft); }
.steps { margin: 0; padding-left: 22px; font: 19px/1.5 var(--hand); color: var(--ink-blue); }
.steps li { margin: 6px 0; }
.steps strong, .steps em { color: var(--ink); }

/* ---------- Fusszeile ---------- */
.foot {
  position: relative; z-index: 30;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  padding: 22px 16px 36px; color: var(--dim);
  font: 700 12px/1.4 "Typewriter", monospace; letter-spacing: .1em; text-transform: uppercase;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--bone); }

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; padding-top: 30px; }
  .brand { font-size: 30px; }
  .hero { min-height: 70vh; }
  .paper, .note { transform: none; }
  .cam-meta { display: none; }
}
