@font-face {
  font-family: "Sora";
  src: url("/fonts/sora.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --graphit: #0b0b0f;
  --flaeche: #131318;
  --linie: #24242b;
  --text: #f2f3ef;
  --leise: #8a8d93;
  --neon: #c6f432;
  --breite: 1080px;
  --rand: clamp(16px, 5vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  scrollbar-color: var(--linie) var(--graphit);
}

::selection { background: var(--neon); color: var(--graphit); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--graphit);
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--leise); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--neon); }
a:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 2px; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.kopf .marke { display: block; line-height: 0; }
.kopf .marke img { width: 150px; height: auto; }
.kopf nav { display: flex; gap: 22px; font-size: 14px; }
.kopf nav a { text-decoration: none; color: var(--leise); }
.kopf nav a:hover { color: var(--text); }

/* Einstieg: Text links, Pixel-e rechts; das Canvas liegt über der ganzen Fläche, damit die Pixel von überall kommen können */
.einstieg {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding-top: clamp(56px, 12vw, 140px);
  padding-bottom: clamp(56px, 10vw, 120px);
}
.einstieg .text { position: relative; z-index: 1; min-width: 0; }
.pixelfeld { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.zeichen { position: relative; z-index: 0; width: clamp(150px, 19vw, 208px); margin-right: clamp(0px, 3vw, 40px); line-height: 0; }
.zeichen svg { width: 100%; height: auto; display: block; }
.zeichen.uebernommen svg { visibility: hidden; }
@media (max-width: 760px) {
  .einstieg { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .zeichen { width: 84px; margin-right: 0; }
}
.einstieg h1 {
  font-weight: 300;
  font-size: clamp(34px, 6.2vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 17ch;
}
.einstieg h1 .punkt { color: var(--neon); }
.einstieg p { color: var(--leise); font-size: clamp(17px, 2vw, 20px); max-width: 46ch; margin: 28px 0 0; }

/* Abschnitte */
section { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--linie); transform-origin: left center; }
.etikett { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leise); margin: 0 0 32px; font-weight: 400; }

/* Produkte */
.produkte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); }
.produkt { background: var(--graphit); padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.produkt .art { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leise); }
.produkt h3 { font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin: 0; }
.produkt p { margin: 0; color: #c9cbc5; max-width: 40ch; }
.produkt .links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.produkt .links a { font-weight: 400; position: relative; padding-bottom: 6px; text-decoration-thickness: 1px; }
/* Pixel-Linie aus dem Logo: baut sich beim Überfahren in Schritten auf */
.produkt .links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--neon) 0 3px, transparent 3px 5px) left center / 5px 3px repeat-x;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 240ms steps(8, end);
}
.produkt .links a:hover, .produkt .links a:focus-visible { text-decoration-color: transparent; }
.produkt .links a:hover::after, .produkt .links a:focus-visible::after { clip-path: inset(0 0 0 0); }
.produkt h3 { transition: transform 220ms var(--ease-out); }

/* Arbeitsweise */
.grundsaetze { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin: 0; padding: 0; list-style: none; }
.grundsaetze h3 { font-weight: 400; font-size: 19px; margin: 0 0 10px; }
.grundsaetze h3::before { content: ""; display: block; width: 8px; height: 8px; background: var(--neon); margin-bottom: 18px; }
.grundsaetze p { margin: 0; color: #c9cbc5; font-size: 16px; }

/* Kontakt */
.kontakt p { font-size: clamp(22px, 3.4vw, 34px); font-weight: 300; line-height: 1.3; margin: 0; max-width: 24ch; }
.kontakt a { text-decoration-color: var(--neon); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--leise); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--text); }

/* Rechtstexte */
.recht { max-width: 720px; padding-top: 32px; padding-bottom: 80px; }
.recht h1 { font-weight: 300; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin: 24px 0 8px; }
.recht h2 { font-weight: 400; font-size: 19px; margin: 40px 0 8px; }
.recht p, .recht li { color: #c9cbc5; font-size: 16px; }
.recht .stand { color: var(--leise); font-size: 14px; margin: 0 0 24px; }
.recht address { font-style: normal; }

@media (max-width: 760px) {
  .produkte { grid-template-columns: minmax(0, 1fr); }
  .produkt { min-height: 0; }
  .grundsaetze { grid-template-columns: minmax(0, 1fr); }
  .kopf nav a.nur-breit { display: none; }
  .kopf .marke img { width: 128px; }
}

.produkt { transition: background-color 160ms ease; }
.produkt:hover { background: var(--flaeche); }

/* Details aus „Linie“: nur aktiv, wenn motion.js läuft (also nie bei „Bewegung reduzieren“) */
@media (prefers-reduced-motion: no-preference) {
  .produkt:hover h3 { transform: translateX(4px); }

  .motion section::before { transition: transform 900ms var(--ease-out); }
  .motion section.wartet::before { transform: scaleX(0); }
  .motion section.an::before { transform: scaleX(1); }

  .motion .grundsaetze h3::before { transition: background-color 200ms ease, box-shadow 200ms ease; }
  .motion .grundsaetze.wartet h3::before { background-color: transparent; box-shadow: inset 0 0 0 1px var(--neon); }
  .motion .grundsaetze.an li:nth-child(2) h3::before { transition-delay: 160ms; }
  .motion .grundsaetze.an li:nth-child(3) h3::before { transition-delay: 320ms; }
}
@media (prefers-reduced-motion: reduce) {
  .produkt .links a::after { transition: none; }
}
