/* Actionschnitzel Redesign
   Farben aus dem bestehenden Design übernommen. Fonts selbst gehostet (DSGVO). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --text: #1c1e26;
  --muted: #555a66;
  --card-bg: #f4f5f9;
  --line: #e2e5ee;
  --accent: #0078d4;
  --accent-light: #1e90ff;
  --link: #0078d4;
  --down: #b45309;
  --chrome: #1d1e20;
  --chrome-2: #26282c;
  --chrome-line: #34373c;
  --chrome-text: #d7d9de;
  --chrome-muted: #b8bbc2;
  --radius: 16px;
  --wrap: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --muted: #a8abb2;
    --card-bg: #2d2d2d;
    --line: #3a3a3a;
    --link: #1e90ff;
    --down: #f59e0b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-light); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Header */
.site-header { background: var(--chrome); color: #e6e7ea; position: sticky; top: 0; z-index: 50; }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.125rem; }
.brand:hover { color: #fff; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--chrome-line); color: #fff; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; font-weight: 500; }
.nav-list a { display: block; padding: 12px 14px; border-radius: 8px; color: #c9cbd1; }
.nav-list a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-list a[aria-current="page"] { color: #fff; background: rgba(0,120,212,0.45); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--chrome); border-top: 1px solid var(--chrome-line); display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: 12px 16px 20px; font-size: 1rem; }
  .nav-list a { padding: 14px 12px; }
}

/* Typo-Bausteine */
.eyebrow { align-self: flex-start; display: inline-block; font-family: var(--mono); font-size: 0.8125rem; color: var(--link); background: rgba(0,120,212,0.10); border: 1px solid rgba(0,120,212,0.30); padding: 6px 12px; border-radius: 999px; }
.page-title { font-size: clamp(2.3rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.page-title .hl, .hl { color: var(--link); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 680px; }
.lead a { color: var(--link); font-weight: 600; }
.section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.section-head .num { font-family: var(--mono); font-size: 0.8125rem; color: var(--link); }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.section--tint { background: var(--card-bg); border-block: 1px solid var(--line); }
.section--dark { background: var(--chrome); color: #e6e7ea; }
.section--dark .section-head .num { color: var(--accent-light); }
.section--dark .section-head h2 { color: #fff; }
.page-hero { padding: 80px 0 48px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.1); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.875rem; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero Startseite */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }

/* Terminal */
.terminal { flex: 1 1 360px; min-width: 0; background: var(--chrome); border: 1px solid #2d2f33; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,60,120,0.35); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--chrome-2); }
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; background: #3a3d42; }
.terminal-bar i:nth-child(3) { background: var(--accent); }
.terminal-bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.75rem; color: #9a9da4; }
.terminal-body { padding: 22px; font-family: var(--mono); font-size: 0.875rem; line-height: 1.85; color: var(--chrome-text); overflow-wrap: anywhere; }
.terminal-body .p { color: var(--accent-light); }
.terminal-body .out { color: #fff; }
.terminal-body .gap { margin-top: 10px; }
.cursor { display: inline-block; width: 9px; height: 17px; background: var(--accent-light); margin-left: 4px; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.progress-track { flex-grow: 1; height: 10px; border-radius: 5px; background: var(--chrome-line); overflow: hidden; }
.progress-track span { display: block; width: 42%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }

/* Grids und Karten */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }

.contact { display: flex; align-items: center; gap: 14px; padding: 18px; }
.icon-tile { width: 44px; height: 44px; border-radius: 10px; background: rgba(0,120,212,0.12); color: var(--link); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact small { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact strong { display: block; font-weight: 600; overflow-wrap: anywhere; }

.task { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.task-head { display: flex; align-items: center; gap: 14px; }
.task-head .icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #fff; }
.task h3 { font-size: 1.35rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-light); flex-shrink: 0; }

.distro { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.distro-logo { width: 60px; height: 60px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.distro-logo img { width: 34px; height: 34px; object-fit: contain; }
.distro-name { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.15rem; }
.distro-name span { color: var(--link); font-weight: 400; }
.distro p, .muted { color: var(--muted); }

.project { background: var(--chrome-2); border: 1px solid var(--chrome-line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.project h3 { font-size: 1.45rem; color: #fff; }
.project p { color: var(--chrome-muted); flex-grow: 1; }
.tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 6px; }
.project-links { display: flex; gap: 16px; font-weight: 600; font-size: 0.875rem; }
.project-links a { color: var(--accent-light); padding: 10px 0; }
.project-links a:hover { color: #fff; }

.article { display: flex; align-items: center; gap: 22px; padding: 28px; }
.article .icon-tile { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); color: #fff; }
.article strong { font-size: 1.25rem; }
.article em { font-style: normal; color: var(--link); font-size: 0.95rem; font-weight: 600; margin-left: 6px; }
.article p { color: var(--muted); }

/* Highlights */
.games { display: flex; flex-direction: column; gap: 28px; }
.game { display: flex; flex-wrap: wrap; background: var(--card-bg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.game-media { flex: 1 1 420px; min-width: 0; position: relative; background: var(--chrome); }
.game-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.game-nr { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; color: #fff; background: var(--accent); padding: 6px 10px; border-radius: 6px; }
.game-body { flex: 999 1 460px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.game-body h2 { font-size: 1.6rem; font-weight: 800; }
.game-body p { color: var(--muted); flex-grow: 1; line-height: 1.7; }
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 0.875rem; }
.badge:hover { border-color: var(--accent); color: var(--text); }

/* Stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 20px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 2rem; font-weight: 800; color: var(--link); line-height: 1.1; }
.stat span { font-size: 0.875rem; color: var(--muted); }
.stat--dark { background: var(--chrome); border-color: var(--chrome); }
.stat--dark b { color: #fff; }
.stat--dark span { color: var(--chrome-muted); }

/* Toolbar GOG */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 320px; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-bg); color: var(--text); font: inherit; font-size: 1rem; }
.search input:focus { outline: 3px solid rgba(30,144,255,0.45); outline-offset: 1px; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; background: var(--card-bg); color: var(--text); border: 1px solid var(--line); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { font-size: 0.875rem; color: var(--muted); margin-bottom: 14px; }

/* Tabellen */
.table-box { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th { background: var(--accent); color: #fff; text-align: left; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 14px 16px; white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.table tbody tr:nth-child(even) td { background: var(--card-bg); }
.table td.title { font-weight: 600; min-width: 220px; }
.table td.fix { color: var(--muted); font-size: 0.875rem; line-height: 1.55; min-width: 260px; }
.table td.fix code { font-family: var(--mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
.table td.fix a { color: var(--link); font-weight: 600; }
.mark { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; align-items: center; justify-content: center; }
.mark--yes { background: rgba(0,120,212,0.14); color: var(--link); font-weight: 800; }
.mark--no { color: var(--line); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }

/* Survey */
.survey td { vertical-align: middle; }
.survey .rank { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); width: 48px; }
.survey .bar { width: 38%; min-width: 140px; }
.bar-track { height: 12px; border-radius: 6px; background: var(--card-bg); overflow: hidden; }
.survey tbody tr:nth-child(even) .bar-track { background: var(--bg); }
.bar-track span { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.survey .num { text-align: right; font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.survey .up { color: var(--link); }
.survey .down { color: var(--down); }
.leader { flex: 1 1 260px; padding: 24px; border-radius: var(--radius); background: var(--chrome); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.leader small { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--chrome-muted); }
.leader strong { font-size: 1.6rem; }
.leader b { font-family: var(--mono); font-size: 2.4rem; font-weight: 600; color: var(--accent-light); }
.hero-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.hero-split > div:first-child { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.source { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.source a { color: var(--link); font-weight: 600; }

/* Footer */
.site-footer { background: var(--chrome); color: #a9acb3; border-top: 3px solid var(--accent); font-size: 0.875rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 24px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--chrome-text); padding: 12px 0; }
.footer-inner a:hover { color: var(--accent-light); }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero, .page-hero { padding-top: 56px; }
  .task, .game-body, .project { padding: 24px; }
  .article { flex-direction: column; align-items: flex-start; }
}
