/* PixelElements — pixelelements.de
   Systemfonts statt Google Fonts: keine externen Requests, DSGVO-sicher.

   Palette: Twitch-Lila als Markenfarbe, Amber/Orange als Kontrast für alles
   Anklickbare, Cyan als dritte Farbe für Icons und Kategorie-Labels. */

:root {
  --bg:        #0b0810;
  --bg-2:      #100c18;
  --surface:   #17121f;
  --surface-2: #1f1830;
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.17);
  --text:      #ece9f2;
  --muted:     #a09aae;
  --muted-2:   #746d83;

  --violet:      #9146ff;   /* Twitch-Lila — Marke, Flächen, Glow */
  --violet-soft: #b98cff;   /* helleres Lila für Text auf Dunkel */
  --violet-dk:   #6b2fd4;
  --amber:       #ffb224;   /* Kontrast — Buttons, Kennzahlen */
  --amber-lt:    #ffc659;
  --cyan:        #22d3ee;   /* dritte Farbe — Icons, Labels */

  --radius: 14px;
  --maxw:   1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--violet-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--amber); color: #1a1000;
  padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 8, 16, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Ohne backdrop-filter würde der Inhalt durch den Header scheinen. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}

.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}

/* Wichtig: nur .logo-mark und .logo-text sind Flex-Items. Stünde der Text
   direkt im .logo, würde ihn der Flex-Gap von der zweiten Worthälfte trennen. */
.logo {
  display: flex; align-items: center; gap: 7px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo:hover { text-decoration: none; }

.logo-text {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.logo-text span { color: var(--violet-soft); font-weight: 500; }

.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
  flex: none;
}
.logo-mark i { border-radius: 1.5px; background: var(--violet); }
.logo-mark i:nth-child(2) { background: var(--amber); }
.logo-mark i:nth-child(3) { background: var(--cyan); }
.logo-mark i:nth-child(4) { background: #ffffff; }

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 26px;
}
.nav a {
  color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #1a1000;
  font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--amber-lt); text-decoration: none; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--violet); }

@media (max-width: 780px) {
  .nav a { display: none; }
  .nav .btn { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 10% -12%, rgba(145, 70, 255, 0.26), transparent 66%),
    radial-gradient(620px 380px at 88% 2%, rgba(255, 178, 36, 0.10), transparent 62%),
    radial-gradient(500px 340px at 62% 30%, rgba(34, 211, 238, 0.055), transparent 70%);
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(680px 400px at 25% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(680px 400px at 25% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--violet-soft);
  background: rgba(145, 70, 255, .13);
  border: 1px solid rgba(145, 70, 255, .34);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 15ch;
}
h1 em { font-style: normal; color: var(--violet-soft); }

.hero-lead {
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-note {
  color: var(--muted-2); font-size: 14.5px; margin-top: 22px;
}

/* Laufende Thumbnail-Leiste */

.reel {
  margin-top: 72px;
  position: relative;
  padding-bottom: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reel-track {
  display: flex; gap: 14px; width: max-content;
  animation: slide 58s linear infinite;
}
.reel:hover .reel-track { animation-play-state: paused; }

.reel-track img {
  height: 190px; width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .reel { overflow-x: auto; }
  html { scroll-behavior: auto; }
}

/* ---------- Kennzahlen ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 78px;
  background: var(--bg-2);
}
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; padding: 0;
}
.stat { padding: 30px 24px; }
.stat + .stat { box-shadow: -1px 0 0 var(--line); }
.stat b {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  color: var(--amber);
}
.stat span { color: var(--muted); font-size: 14.5px; }

@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { box-shadow: none; }
  .stat:nth-child(n+3) { box-shadow: 0 -1px 0 var(--line); }
  .stat:nth-child(4)   { box-shadow: 0 -1px 0 var(--line), -1px 0 0 var(--line); }
}

/* ---------- Sektionen ---------- */

section { padding: 96px 0; }
section.tight { padding: 70px 0; }

.sec-head { margin-bottom: 44px; max-width: 62ch; }
.sec-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  letter-spacing: -0.032em; line-height: 1.12;
  font-weight: 800; margin: 0 0 14px;
}
.sec-head p { color: var(--muted); margin: 0; font-size: 1.06rem; }

.sec-head.row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; max-width: none;
}
.sec-head.row > div { max-width: 62ch; }
@media (max-width: 700px) {
  .sec-head.row { display: block; }
  .sec-head.row .btn { margin-top: 22px; }
}

/* ---------- Referenz-Grid ---------- */

/* Einheitliche Zeilenhöhe: Hochformat schmal, Querformat über zwei Spalten.
   Kein Leerraum in den Karten, alle Bilder füllen per object-fit. */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 430px;
  grid-auto-flow: dense;
  gap: 18px;
}
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 400px; } }
@media (max-width: 780px)  { .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 330px; gap: 12px; } }
@media (max-width: 460px)  { .grid { grid-auto-rows: 260px; } }

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .22s ease;
}
.card:hover { border-color: rgba(145, 70, 255, .55); }

.card.wide { grid-column: span 2; }

.card .thumb {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--surface-2);
}

.card .thumb img,
.card .thumb video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.card:hover .thumb img,
.card:hover .thumb video { transform: scale(1.045); }

/* Das poster-Attribut des <video> zeigt von allein ein Standbild, solange
   nichts abgespielt wird — verhält sich optisch wie ein <img>, bis der Klick
   bzw. Hover den echten Clip lädt und startet (siehe JS weiter unten). */

.card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,5,13,.93) 0%, rgba(8,5,13,.3) 38%, transparent 62%);
}

.card .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 15px;
  z-index: 2;
}
.card .meta strong {
  display: block; font-size: 15.5px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3;
}
.card .meta span {
  display: block; margin-top: 3px;
  font-size: 13px; color: var(--cyan); font-weight: 600;
}

/* ---------- Leistungen ---------- */

.services {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: border-color .2s ease, background .2s ease;
}
.service:hover { border-color: rgba(145, 70, 255, .45); background: var(--surface-2); }

.service .ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .28);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service .ico svg { width: 21px; height: 21px; stroke: var(--cyan); fill: none; stroke-width: 1.9; }

.service h3 {
  margin: 0 0 10px; font-size: 1.13rem; font-weight: 700; letter-spacing: -0.015em;
}
.service p { margin: 0; color: var(--muted); font-size: 15.5px; }
.service ul {
  margin: 16px 0 0; padding: 0; list-style: none;
  font-size: 14.5px; color: var(--muted-2);
}
.service li { padding-left: 16px; position: relative; margin-top: 5px; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
}

/* ---------- Kanäle ---------- */

.channels { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.channel {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
}
.channel b { font-size: 1.08rem; letter-spacing: -0.015em; }
.channel .tag {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase;
  color: var(--violet-soft); background: rgba(145, 70, 255, .13);
  border: 1px solid rgba(145, 70, 255, .3);
  padding: 3px 10px; border-radius: 999px;
}
.channel p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Partner ---------- */

.partners {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.partner {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px; font-weight: 600; color: var(--muted);
}

/* ---------- Über / Kontakt ---------- */

.split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.prose p { color: var(--muted); font-size: 1.06rem; }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--text); }

.contact-box {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(145, 70, 255, .22), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 34px 30px;
}
.contact-box h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
.contact-box p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.contact-row svg { width: 18px; height: 18px; stroke: var(--violet-soft); fill: none; stroke-width: 1.8; flex: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 44px 0 52px;
  color: var(--muted-2); font-size: 14.5px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); }

/* ---------- Rechtsseiten ---------- */

.legal { padding: 68px 0 90px; max-width: 76ch; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); max-width: none; margin-bottom: 10px; }
.legal h2 {
  font-size: 1.28rem; letter-spacing: -0.02em; margin: 44px 0 12px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted-2); font-size: 14.5px; margin-bottom: 8px; }

.todo {
  background: rgba(255, 178, 36, .09);
  border: 1px solid rgba(255, 178, 36, .34);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 14px 18px; margin: 18px 0;
  color: var(--amber-lt); font-size: 15px;
}
.todo b { color: #ffdca8; }

mark {
  background: rgba(255, 178, 36, .2);
  color: var(--amber-lt); padding: 1px 6px; border-radius: 4px; font-weight: 600;
}

/* ---------- Reveal ---------- */

/* Ohne JavaScript ist alles sofort sichtbar — erst die .js-Klasse (im <head>
   gesetzt) blendet die Elemente aus, damit sie beim Scrollen einfliegen können. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
