@font-face {
  font-family: "Titan One";
  src: url("assets/TitanOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1a0f2e;
  --bg-2: #22143c;
  --card: #2b1a4a;
  --ink: #0f0820;
  --text: #f4ecff;
  --muted: #c7b6e6;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --teal: #2ee6c8;
  --orange: #ff8a3d;
  --green: #35d05a;
  --red: #ff3b3b;
  --twitch: #9146ff;
  --purple: #6b6bff;
  --radius: 22px;
  --display: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* Sternenhimmel wie im UNO-Titelbild */
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #ffd23f88 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 83%, #fff4 50%, transparent 51%);
  background-size: 420px 420px;
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code {
  font: 0.9em ui-monospace, Consolas, monospace;
  background: #0006; padding: 1px 6px; border-radius: 6px; color: var(--yellow);
}

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 16px; }

/* ---------- Sticker-Typo ---------- */
.title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 0 var(--ink), 3px 4px 0 var(--ink), -3px 4px 0 var(--ink);
}
.hl { color: var(--yellow); }

.kicker, .round, .tag {
  display: inline-block;
  font-family: var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.kicker {
  background: var(--pink); color: #fff; padding: 6px 14px 4px;
  border: 3px solid var(--ink); border-radius: 999px; font-size: 14px;
  transform: rotate(-3deg); box-shadow: 0 4px 0 var(--ink);
}
.round {
  color: var(--ink); background: var(--yellow); font-size: 14px;
  padding: 5px 16px 3px; border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 0 4px 0 var(--ink); transform: rotate(-2deg);
}
.tag { color: var(--accent, var(--teal)); font-size: 13px; margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 18px; letter-spacing: 0.5px;
  text-decoration: none; padding: 13px 24px 11px;
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-twitch { background: var(--twitch); color: #fff; }
.btn-discord { background: #5865f2; color: #fff; }
.btns-live { margin-top: 0; }
.live .btn-discord { background: var(--ink); color: #fff; }
.nav .nav-discord {
  display: inline-flex; align-items: center; gap: 6px; color: #fff; background: #5865f2;
  border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); margin-left: 6px;
}
.nav .nav-discord:hover { background: #6f7af5; }
.nav-discord svg { width: 16px; height: 16px; fill: currentColor; }
.btn-big { font-size: 22px; padding: 16px 30px 14px; }
.btn-small { font-size: 16px; padding: 10px 18px 8px; margin-top: 22px; box-shadow: 0 5px 0 var(--ink); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 26px; }
.logo img { width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 3px solid var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.nav a:hover { color: #fff; background: #ffffff12; }
.nav .nav-twitch {
  display: inline-flex; align-items: center; gap: 6px; color: #fff; background: var(--twitch);
  border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); margin-left: 6px;
}
.nav .nav-twitch:hover { background: #a26bff; }
.nav-twitch svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, #ff4fa333, transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.hero .title { font-size: clamp(44px, 7vw, 84px); }
.lead { font-size: 20px; max-width: 40ch; color: var(--text); margin: 22px 0 0; }
.lead.small { font-size: 17px; color: var(--muted); margin-top: 10px; }

/* Lobby-Bohne auf dem Podest */
.lobby { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.plate {
  font-family: var(--display); font-size: 22px; color: var(--yellow);
  background: #31c7e8; border: 3px solid var(--ink); border-radius: 12px;
  padding: 4px 8px 2px 14px; display: flex; align-items: center; gap: 10px;
  text-shadow: 0 2px 0 var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.plate-star { color: #fff; font-size: 18px; }
.plate-lvl {
  background: var(--yellow); color: #8a4b00; text-shadow: none; font-size: 16px;
  border: 3px solid var(--ink); border-radius: 8px; padding: 1px 6px 0;
}
.plate-arrow {
  width: 0; height: 0; margin-top: 6px;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 12px solid #31c7e8;
  filter: drop-shadow(0 3px 0 var(--ink));
}
.lobby-bean { width: min(340px, 80%); height: auto; margin-top: -6px; position: relative; z-index: 2; margin-bottom: -46px; }
.podium {
  position: relative; width: min(300px, 74%); height: 96px;
  background: linear-gradient(90deg, #d95f14, #ff8a3d 40%, #ff9e55 55%, #d95f14);
  border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 50% 50% / 0 0 40px 40px;
}
.podium span {
  position: absolute; left: -3px; right: -3px; top: -34px; height: 68px;
  background: radial-gradient(ellipse at 50% 40%, #ffb27a, #ff8a3d 65%);
  border: 3px solid var(--ink); border-radius: 50%;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; scroll-margin-top: 60px; }
.section-alt {
  background: var(--bg-2);
  border-block: 3px solid var(--ink);
  background-image: repeating-linear-gradient(-45deg, #ffffff05 0 18px, transparent 18px 36px);
}
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .title { font-size: clamp(36px, 5vw, 56px); margin-top: 6px; }
.sec-sub { color: var(--muted); margin: 14px auto 0; max-width: 52ch; }

/* ---------- Projekt-Karten ---------- */
.proj {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 36px; margin-bottom: 48px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 28px;
  box-shadow: 0 10px 0 var(--ink);
  position: relative;
}
.proj::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 10px;
  background: var(--accent); border-radius: 26px 0 0 26px;
}
.proj-flip { grid-template-columns: 0.9fr 1.1fr; }
.proj-flip .proj-media { order: 2; }
.proj-flip::before { inset: 0 0 0 auto; border-radius: 0 26px 26px 0; }

.proj-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; margin: 0 0 14px; text-shadow: 0 3px 0 var(--ink); }
.proj-text p { margin: 0 0 18px; font-size: 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 26px; color: var(--muted); }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 12px;
  background: var(--accent); border: 2px solid var(--ink); border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; /* kleine Bohne */
}
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.stack span {
  font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #0f082088; border: 2px solid #ffffff22; color: var(--text);
}

/* Screenshots */
.proj-media { position: relative; padding-bottom: 46px; }
.shot { margin: 0; }
.zoom {
  display: block; width: 100%; padding: 0; cursor: zoom-in; background: var(--ink);
  border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 0 var(--ink);
  transition: transform .2s ease;
}
.zoom img { width: 100%; height: auto; }
.zoom:hover { transform: translateY(-3px) rotate(0deg) !important; }
.zoom:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
.shot-main .zoom { border-color: var(--ink); outline: 3px solid var(--accent); outline-offset: -9px; }
.shot-side, .shot-third { position: absolute; width: 40%; bottom: 0; }
.shot-side { right: -14px; }
.shot-third { left: -14px; width: 34%; bottom: 6px; }
.proj-flip .shot-side { right: auto; left: -14px; }
.proj-flip .shot-third { left: auto; right: -14px; }
.tilt-r .zoom { transform: rotate(4deg); }
.tilt-l .zoom { transform: rotate(-4deg); }

/* ---------- Overlays ---------- */
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ov {
  background: var(--card); border: 3px solid var(--ink); border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 0 var(--ink); display: flex; flex-direction: column;
}
.ov-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; }
.ov-img { border: 0; border-radius: 0; box-shadow: none; border-bottom: 3px solid var(--ink); aspect-ratio: 16 / 9; }
.ov-img img { width: 100%; height: 100%; object-fit: cover; }
.ov-wide .ov-img { border-bottom: 0; border-right: 3px solid var(--ink); height: 100%; }
.ov .zoom:hover { transform: none !important; }
.ov .zoom img { transition: transform .4s ease; }
.ov .zoom:hover img { transform: scale(1.03); }
.ov-text { padding: 24px 28px 28px; border-top: 6px solid var(--accent); }
.ov-wide .ov-text { border-top: 0; border-left: 6px solid var(--accent); align-self: center; }
.ov-title { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 10px; text-shadow: 0 3px 0 var(--ink); }
.ov-text p:last-child { margin: 0; color: var(--muted); }

/* Wins-Banner auf der Nacht-Szene */
.ov-stage { position: relative; overflow: hidden; background: var(--ink); }
.stage-bg { transform: scale(1.05); }
.stage-banner {
  position: absolute; left: 4%; bottom: 6%; width: 56% !important; height: auto !important; object-fit: contain !important;
}

/* ---------- Twitch ---------- */
.live {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: var(--twitch); border: 3px solid var(--ink); border-radius: 32px;
  box-shadow: 0 12px 0 var(--ink); padding: 40px 48px;
  background-image: radial-gradient(circle at 15% 50%, #ffffff30, transparent 55%);
}
.live-bean { width: 100%; height: auto; }
/* Abschnitte außerhalb des Bildschirms nicht rendern – spart viel beim Scrollen */
.section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.live-text .title { font-size: clamp(34px, 4.5vw, 52px); margin: 6px 0 14px; }
.live-text p { font-size: 18px; max-width: 46ch; margin: 0 0 24px; }
.live .btn-twitch { background: #fff; color: var(--twitch); }

/* ---------- Video-Rahmen (wie die Screenshots) ---------- */
.video-frame {
  background: var(--ink); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 0 var(--ink); outline: 3px solid var(--accent); outline-offset: -9px;
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Sprachumschalter ---------- */
.lang {
  display: inline-flex; margin-left: 6px; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden;
  box-shadow: 0 3px 0 var(--ink); background: var(--card);
}
.lang button {
  font: 700 13px var(--body); color: var(--muted); background: transparent; border: 0;
  padding: 6px 8px; cursor: pointer;
}
.lang button + button { border-left: 2px solid var(--ink); }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

/* ---------- Live-Anzeige ---------- */
.live-dot {
  display: none; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b;
  box-shadow: 0 0 0 0 #ff3b3b99; animation: livepulse 1.6s infinite;
}
.is-live .nav-twitch .live-dot { display: inline-block; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px 10px;
  padding: 5px 12px 4px; border: 3px solid var(--ink); border-radius: 999px;
  background: #ff3b3b; color: #fff; font: 400 14px var(--display); letter-spacing: .5px; text-decoration: none;
  box-shadow: 0 4px 0 var(--ink); vertical-align: top;
}
.live-badge[hidden] { display: none; }
.live-badge .live-dot { display: inline-block; background: #fff; box-shadow: 0 0 0 0 #fff9; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Was ich sonst noch baue ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mini {
  background: var(--card); border: 3px solid var(--ink); border-radius: 20px; padding: 20px 20px 22px;
  box-shadow: 0 8px 0 var(--ink); border-top: 8px solid var(--accent);
}
.mini-title { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 0 0 8px; text-shadow: 0 2px 0 var(--ink); }
.mini p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; }
.logo-small { font-size: 20px; }
.logo-small img { width: 28px; height: 28px; border-radius: 8px; border-width: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 3px solid var(--ink); border-radius: 20px; padding: 14px; background: var(--card); color: var(--text);
  max-width: min(1200px, 94vw); box-shadow: 0 12px 0 var(--ink);
}
.lightbox::backdrop { background: #0f0820d9; }
.lightbox img { border-radius: 12px; max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox p { margin: 10px 4px 0; color: var(--muted); }
.lb-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); color: var(--ink);
  font-size: 18px; font-weight: 900; box-shadow: 0 3px 0 var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .proj, .proj-flip, .ov-wide, .live { grid-template-columns: 1fr; }
  .proj-flip .proj-media { order: 0; }
  .proj { padding: 24px 20px 28px; gap: 28px; }
  .lobby { order: -1; }
  .lobby-bean { width: 240px; }
  .podium { width: 210px; height: 70px; }
  .ov-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .ov-wide .ov-img { border-right: 0; border-bottom: 3px solid var(--ink); }
  .ov-wide .ov-text { border-left: 0; border-top: 6px solid var(--accent); }
  .live { padding: 28px 24px; text-align: center; gap: 12px; }
  .live-bean { width: 200px; margin: 0 auto; }
  .live-text p { margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .lead { font-size: 18px; }
  .nav a:not(.nav-twitch):not(.nav-discord) { display: none; }
  .nav .nav-discord, .nav .nav-twitch { padding: 7px 9px; }
  .nav .nav-label { display: none; }
  .lang button { padding: 6px 6px; font-size: 12px; }
  .mini-grid { grid-template-columns: 1fr; }
  .live-badge { margin-left: 0; }
  .shot-side, .shot-third { width: 46%; }
  .shot-side { right: -6px; }
  .shot-third { left: -6px; }
  .proj-flip .shot-side { left: -6px; }
  .proj-flip .shot-third { right: -6px; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
