/* BlitzCase – dunkel, minimalistisch, Logo-Rot als Akzent */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700 900; font-stretch: 100% 125%; font-display: swap; src: url("../fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700 900; font-stretch: 100% 125%; font-display: swap; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: dark;
  --red: #9c2424; --red-hover: #b52b2b; --accent: #ef6a62;
  --bg: #111113; --bg-2: #17171a; --surface: #1c1c20; --surface-2: #24242a;
  --line: #2c2c33; --line-2: #3a3a43;
  --head: #fff; --text: #d6d2cd; --muted: #a39d97;
  --radius: 14px; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .35);
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: #ff8a83; }
h1, h2, h3 { color: var(--head); line-height: 1.12; letter-spacing: -.01em; font-family: var(--display); font-weight: 800; font-stretch: 112%; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong { color: var(--head); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--red); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* Logo: weißer Schriftzug, rotes Band */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; text-decoration: none; line-height: 1; margin: 0; }
.logo span:first-child { color: #fff; font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; }
.logo span:last-child { margin-top: .2rem; background: var(--red); color: #fff; font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; text-align: center; padding: .28em 0 .3em .26em; }
a.logo:hover span:first-child { color: #fff; }

/* Header & Navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(17 17 19 / .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--surface); color: #fff; }
.nav a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .55rem; font: 600 .95rem var(--font); background: none; border: 1.5px solid var(--line-2); border-radius: 8px; padding: .45rem .8rem; cursor: pointer; color: #fff; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 980px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; flex-direction: column; box-shadow: var(--shadow); }
  .js .nav.open { display: flex; }
  .nav a { padding: .7rem .5rem; font-size: 1.05rem; }
  .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--red); padding-left: .9rem; }
  .site-header .logo span:first-child { font-size: 1.45rem; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Bausteine */
.eyebrow { display: inline-block; background: var(--red); color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; padding: .3em .75em; margin-bottom: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: .55rem; background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: 10px; padding: .75rem 1.25rem; font-weight: 700; text-decoration: none; line-height: 1.2; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; }
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgb(156 36 36 / .35); }
.btn small { font-weight: 500; opacity: .8; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: #fff; box-shadow: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--red); }
.btn-light:hover { background: #f3e9e9; border-color: #f3e9e9; color: var(--red); }
.btn-outline-light { background: transparent; border-color: rgb(255 255 255 / .6); }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; box-shadow: none; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.badge { font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .15rem .6rem; text-decoration: none; background: var(--bg-2); position: relative; z-index: 1; }
a.badge:hover { border-color: var(--accent); color: #fff; }
.badge-red { background: var(--red); border-color: var(--red); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.link-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.link-btn .icon { width: 1em; height: 1em; }

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-soft { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { position: relative; padding-bottom: .6rem; margin-bottom: 1.75rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; background: var(--red); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }

/* Startseite */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 85% 40%, rgb(156 36 36 / .18), transparent 70%), radial-gradient(circle at 1px 1px, #26262c 1px, transparent 0) 0 0 / 22px 22px, var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.runner { margin: 0; background: var(--bg-2); border: 2px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 8px 8px 0 var(--red); }
.runner canvas { display: block; width: 100%; height: auto; aspect-ratio: 800 / 320; cursor: pointer; touch-action: manipulation; outline: none; }
.runner figcaption { border-top: 2px solid var(--line-2); padding: .55rem 1rem; font-size: .875rem; color: var(--muted); background: var(--surface); }
.runner figcaption strong { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
kbd { font: 600 .8em var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: .05em .4em; background: var(--surface-2); color: #fff; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.feature { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feature-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border-bottom: 5px solid var(--red); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.feature-body h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.feature-body h3 a { color: #fff; text-decoration: none; }
.feature-body h3 a:hover { color: var(--accent); }
.feature-sub { color: var(--accent); font-weight: 600; }
.feature .actions { margin-top: auto; padding-top: .5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.08rem; margin-bottom: .25rem; }
.card-title a { color: #fff; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { color: var(--accent); }
.card-sub { font-size: .9rem; color: var(--muted); line-height: 1.45; margin-bottom: .75rem; }
.card .badges { margin: auto 0 0; }
.card[hidden] { display: none; }

.genre-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.genre-tiles a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); transition: border-color .15s, transform .15s; }
.genre-tiles a:hover { border-color: var(--red); transform: translateY(-2px); }
.genre-tiles strong { color: #fff; font-size: 1.1rem; }
.genre-tiles span { grid-row: 2; color: var(--muted); font-size: .9rem; }
.genre-tiles .icon { grid-row: 1 / 3; grid-column: 2; color: var(--accent); transition: transform .15s; }
.genre-tiles a:hover .icon { transform: translateX(4px); }

.section-red { background: var(--red); color: #fff; }
.section-red h2 { color: #fff; }
.about p { color: rgb(255 255 255 / .92); font-size: 1.15rem; margin: 0; max-width: 70ch; }

/* Spieleseite */
.game-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 1.5rem 0 3rem; align-items: start; }
.gallery { min-width: 0; }
.gallery-main { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: zoom-in; aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs-wrap { position: relative; margin-top: .75rem; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs-nav { position: absolute; top: 0; bottom: 0; z-index: 2; width: 40px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: #fff; font-size: 1.6rem; line-height: 1; }
.thumbs-nav[hidden] { display: none; }
.thumbs-nav.prev { left: 0; background: linear-gradient(90deg, var(--bg) 35%, transparent); justify-content: start; }
.thumbs-nav.next { right: 0; background: linear-gradient(270deg, var(--bg) 35%, transparent); justify-content: end; }
.thumbs-nav span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); transition: background .15s; }
.thumbs-nav:hover span { background: var(--red); border-color: var(--red); }
.thumbs button { display: block; width: 92px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-2); opacity: .55; transition: opacity .15s, border-color .15s; }
.thumbs button:hover, .thumbs button[aria-current] { opacity: 1; border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.game-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.h1-sub { display: block; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; letter-spacing: 0; color: var(--accent); margin-top: .5rem; line-height: 1.4; }
.play { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 .75rem; }
.platforms { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; font-size: .9rem; color: var(--muted); }
.checks { list-style: none; padding: 1.25rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.checks li { position: relative; padding-left: 1.9rem; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7.1-7.1 1.4 1.4z'/%3E%3C/svg%3E") center / 85% no-repeat; }
.game-body { display: grid; gap: 3rem; padding-bottom: 4rem; }
.game-body.has-aside { grid-template-columns: minmax(0, 1fr) 320px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose img { border-radius: 8px; margin: 1rem 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--accent); }
.prose > :first-child { margin-top: 0; }
.cta { margin-top: 2.5rem; padding: 1.5rem; background: var(--surface); border-left: 5px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; }
.cta p { margin: 0; }
.cta .play { margin-bottom: 0; }
.scores { display: grid; gap: 1.25rem; align-content: start; position: sticky; top: 90px; }
.score-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.score-box h2 { font-size: 1rem; margin: 0; padding: .8rem 1rem; background: var(--red); color: #fff; letter-spacing: 0; }
.score-box ol { list-style: none; margin: 0; padding: 0; counter-reset: r; max-height: 520px; overflow-y: auto; font-size: .92rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.score-box li { counter-increment: r; display: flex; gap: .75rem; padding: .45rem 1rem; border-top: 1px solid var(--line); }
.score-box li:nth-child(even) { background: var(--bg-2); }
.score-box li::before { content: counter(r) "."; color: var(--muted); min-width: 1.8em; }
.score-box li:nth-child(-n+3)::before { color: var(--accent); font-weight: 800; }
.score-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-box b { font-variant-numeric: tabular-nums; color: #fff; }
.score-box small { display: block; color: var(--muted); font-size: .8rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgb(5 5 6 / .92); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox-caption { color: #ddd; text-align: center; margin: .75rem 0 0; font-size: .9rem; }
.lightbox button { position: fixed; background: rgb(255 255 255 / .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Unterseiten */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.page-head.center { text-align: center; }
.page-head.center .lead { max-width: 52ch; margin-inline: auto; }
.intro { margin-top: 1.5rem; }
.big-code { font-family: var(--display); font-stretch: 125%; font-size: clamp(6rem, 18vw, 10rem); font-weight: 900; color: var(--red); line-height: 1; margin: 0; letter-spacing: -.05em; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.filters button { font: 600 .92rem var(--font); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.filters button:hover { border-color: var(--accent); color: #fff; }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.sitemap { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.link-list { columns: 2 220px; padding-left: 1.2rem; margin: 0 0 2rem; }
.link-list li { margin-bottom: .35rem; break-inside: avoid; }
.link-list li::marker { color: var(--red); }
.legal h2 { font-size: 1.25rem; }
.note { color: var(--muted); font-size: .95rem; margin-top: 2rem; }

/* Footer */
.site-footer { background: #0b0b0c; color: var(--muted); padding: 3.5rem 0 1.5rem; font-size: .95rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem !important; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: #fff; }
.social a:hover { background: var(--red); text-decoration: none; }
.copyright { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .game-hero, .sitemap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .game-body.has-aside { grid-template-columns: 1fr; }
  .scores { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card-body { padding: .75rem; }
  .card-title { font-size: .95rem; }
  .card-sub { display: none; }
  .runner { box-shadow: 5px 5px 0 var(--red); }
  .feature-body { padding: 1.25rem; }
  .play .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
