/* ============================================================
   MG Brickz — Landingpage im mono-Stil (awesome-design/mono)
   Farbwelt: exakt aus dem Logo — Anthrazit #333335 + Weiß.
   Typografie: Space Mono (primär), JetBrains Mono (Fußzeile),
   selbst gehostet (keine externen Requests, DSGVO).
   ============================================================ */

@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens (aus dem Logo abgeleitet) --- */
:root {
  --bg: #333335;         /* Logo-Anthrazit als Grund — Logo verschmilzt darin */
  --surface: #3c3c3f;    /* eine Stufe heller (Karten, Dokumente) */
  --line: #4d4d52;       /* 1-px-Kanten, Terminal-Manier des Stils */
  --text: #ffffff;       /* Logo-Weiß */
  --dim: #b9b9bf;        /* Sekundärtext, ~7:1 auf dem Grund */
  --invert-ink: #26262a; /* Schrift auf invertierten (weißen) Flächen */

  --font: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-foot: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* --- Mittelfeld: Marke + Shops --- */
.gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 8vh, 88px);
  padding: clamp(32px, 6vh, 64px) 24px;
  text-align: center;
}

.mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.mark-logo {
  width: clamp(150px, 24vw, 200px);
  height: auto;
  display: block;
}
.nowrap { white-space: nowrap; }
.mark-tagline {
  margin: 0;
  color: var(--dim);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.5;
}

/* --- Shop-Verlinkungen: Terminal-Karten mit Inversions-Hover --- */
.shops-label {
  margin: 0 0 6px;
  font-family: var(--font-foot);
  font-size: 0.8125rem;
  color: var(--dim);
}
.shops {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left; /* entgegen .gate: Karteninhalt linksbündig, auch bei Zeilenumbruch */
  gap: 24px;
  width: min(420px, 100%);
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.shop-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.shop-name {
  font-weight: 700;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1;
}
.shop-sub {
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--dim);
  transition: color 0.12s ease;
}
.shop .arrow { font-weight: 400; font-size: 1.25em; }
.shop:hover, .shop:focus-visible {
  background: var(--text);
  color: var(--invert-ink);
  border-color: var(--text);
}
.shop:hover .shop-sub, .shop:focus-visible .shop-sub { color: var(--invert-ink); }
.shop:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* --- Fußzeile --- */
.foot {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 24px;
  font-family: var(--font-foot);
  font-size: 0.8125rem;
  color: var(--dim);
}
.foot-links { display: flex; gap: 10px; }
.foot a { color: var(--dim); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a:hover, .foot a:focus-visible { color: var(--text); }
.foot-note { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .shop { transition: none; }
}

/* --- Unterseiten (Impressum/Datenschutz): Terminal-Dokument --- */
.doc {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: clamp(40px, 8vh, 88px) 20px;
}
.doc-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 52px);
}
.doc-sheet h1 { font-size: clamp(1.5rem, 4vw, 2.125rem); margin: 0; }
.doc-sheet h2 { font-size: 1.0625rem; margin-top: 32px; }
.doc-sheet p, .doc-sheet address, .doc-sheet ul {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 12px;
  font-style: normal;
}
.doc-sheet a { color: var(--text); }
.doc-back { margin-top: 40px; }
.ph { color: var(--text); background: rgba(255,255,255,0.08); padding: 0 4px; }

.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 20px;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--text);
  color: var(--invert-ink);
  border-color: var(--text);
}
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
