/* Schriften: lokal gehostet, keine externen Anfragen */
@font-face {
  font-family: "Adventor";
  src: url("fonts/texgyreadventor-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Adventor";
  src: url("fonts/texgyreadventor-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LM Mono";
  src: url("fonts/lmmonolt10-regular.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}

:root {
  --bg: #0c0c0c;
  --fg: #efece6;
  --muted: #9a958d;
  --line: #262523;
  --sans: "Adventor", "Century Gothic", "Avenir Next", Helvetica, Arial, sans-serif;
  --mono: "LM Mono", "Courier New", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain (inline SVG, keine externe Datei) */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 50;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-6%, 4%); }
  33%  { transform: translate(5%, -7%); }
  50%  { transform: translate(-3%, 9%); }
  67%  { transform: translate(8%, 2%); }
  83%  { transform: translate(-8%, -4%); }
  100% { transform: translate(0, 0); }
}
/* Leichte Vignette */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 49;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
a:hover { border-color: var(--fg); }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 2px; }

/* Skip-Link */
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .6rem 1rem; border: none;
}
.skip:focus { top: 1rem; }

footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 1.25rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem;
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
}
footer a { color: var(--muted); border: none; padding: .5rem 0; }
footer a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* Sprachumschalter oben rechts */
.lang { display: inline-block; padding: .6rem .4rem; margin: -.6rem -.4rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--muted); border: none; }
.lang:hover, .lang:focus-visible { color: var(--fg); }
