/* Matthias Seidel – Stylesheet
   Logo: Mittelkreis mit Mittellinie, M und S auf je einer Hälfte, Anstoßpunkt in Messing.
   Dieselben Spielfeldlinien laufen groß und blass hinter der Seite. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --ink: #161a23;
  --muted: #6a6f7b;
  --line: #d9dce2;
  --accent: #b8862b;
  --pitch: rgb(22 26 35 / .07);
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101319; --surface: #171b23; --ink: #eceef3; --muted: #9399a6; --line: #262b36; --accent: #d9a54a; --pitch: rgb(236 238 243 / .06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101319; --surface: #171b23; --ink: #eceef3; --muted: #9399a6; --line: #262b36; --accent: #d9a54a; --pitch: rgb(236 238 243 / .06);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Spielfeld im Hintergrund ---------- */
.pitch { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pitch svg { position: absolute; left: 50%; top: 46%; width: max(140vmax, 900px); height: auto; max-width: none; transform: translate(-50%, -50%); }
.pitch .l { fill: none; stroke: var(--pitch); stroke-width: 1.4; }

/* ---------- Logo ---------- */
.mark { display: block; height: auto; overflow: visible; }
.mark .c, .mark .h { fill: none; stroke: var(--ink); stroke-width: 3.2; }
.mark .g { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mark .spot { fill: var(--accent); }
.mark .spot-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; transform-origin: 0 0; animation: ping 3.2s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }

/* ---------- Startseite ---------- */
.home {
  position: relative; z-index: 1;
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding-block: clamp(3rem, 10vh, 6rem);
}
.card { display: grid; justify-items: center; text-align: center; gap: 1.6rem; }
.card .mark { width: clamp(132px, 30vw, 184px); }

.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding-left: .3em; /* optisch zentrieren */
  text-wrap: balance;
}
.rule { width: 3rem; height: 2px; background: var(--accent); border: 0; margin: 0; }
.claim { margin: 0; font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: var(--muted); }
.claim a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: color .2s; }
.claim a:hover { color: var(--accent); }

.groups { display: grid; gap: 1.4rem; justify-items: center; margin-top: .6rem; }
.group { display: grid; gap: .7rem; justify-items: center; }
.group-label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  max-width: 54rem;
}
.links a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, color .2s;
}
.links a::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); }
.links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.foot { padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .85rem; color: var(--muted); max-width: 60rem; margin: 0 auto; }
.foot nav { display: flex; gap: 1.5rem; }
.foot a { text-decoration: none; color: var(--muted); font-weight: 600; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--ink); }
.home ~ footer { border-top: 0; }

/* ---------- Impressum / Datenschutz ---------- */
.legal-top { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-top .bar { max-width: 46rem; margin: 0 auto; padding-block: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand .mark { width: 38px; }
.brand .mark .c, .brand .mark .h, .brand .mark .g { stroke-width: 4.4; }
.brand span { font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; }
.back { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }

.legal { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; max-width: 46rem; margin: 0 auto; padding-block: clamp(2.5rem, 7vw, 4rem); display: grid; gap: 2rem; align-content: start; }
.legal h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -.01em; }
.legal h1 span { color: var(--accent); }
.legal .intro { margin: 0; font-size: 1.05rem; color: var(--muted); max-width: 40rem; }
.legal section { display: grid; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h2 { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.legal p { margin: 0; }
.legal section p + p { margin-top: .5rem; }
.legal ul { margin: .25rem 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .kv { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem 1rem; align-items: center; }
.legal .kv > * { min-width: 0; }
.legal .kv .k { color: var(--muted); font-size: .9rem; }
.legal .stand { font-size: .85rem; color: var(--muted); }
@media (max-width: 420px) { .legal .kv { grid-template-columns: 1fr; gap: .15rem; } .legal .kv .k { margin-top: .5rem; } }

.reveal {
  font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .9rem;
  cursor: pointer;
}
.reveal:hover { border-color: var(--accent); }
canvas.shown { display: block; max-width: 100%; user-select: none; -webkit-user-select: none; }

@media (prefers-reduced-motion: reduce) { .mark .spot-ring { animation: none; opacity: 0; } }
