/* schnuecks.dev – Stil (keine externen Ressourcen, kein JavaScript) */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0f1115;
  --bg-alt: #13161b;
  --surface: #181b21;
  --surface-2: #1f232b;
  --line: #2a2f38;
  --text: #e9ecf1;
  --muted: #9aa3b0;
  --accent: #f2a33a;
  --accent-strong: #ffb44f;
  --on-accent: #1a1206;
  --ok: #4cc38a;
  --term-bg: #0b0d10;
  --term-text: #d6dbe3;
  --layer: rgba(242, 163, 58, .07);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --coffee: #ff5e5b;
  --coffee-hover: #ff7f7d;
  --radius: 16px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4f0;
    --bg-alt: #efece6;
    --surface: #ffffff;
    --surface-2: #f3f1ec;
    --line: #dfdad1;
    --text: #1b1d22;
    --muted: #5d6470;
    --accent: #c86f12;
    --accent-strong: #a95a08;
    --on-accent: #ffffff;
    --ok: #1f8a57;
    --layer: rgba(200, 111, 18, .08);
    --shadow: 0 20px 45px -25px rgba(60, 40, 10, .35);
    --coffee: #e2433f;
    --coffee-hover: #c7302c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 "Barlow", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Kopfleiste */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.25rem/1 var(--head); }
.dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .lang { border: 1px solid var(--line); margin-left: 6px; }
.nav .icon-link { display: flex; padding: 9px; }
.nav .icon-link .ico { width: 20px; height: 20px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 600; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 8px 14px; font-size: .95rem; border-radius: 10px; }
.btn-kofi { background: var(--coffee); color: #fff; font-size: 1.05rem; padding: 14px 24px; }
.btn-kofi:hover { background: var(--coffee-hover); }
.btn-kofi .ico { width: 22px; height: 22px; }

/* Kopfbereich */
.hero { position: relative; overflow: hidden; padding: 88px 0 56px; }
.layers {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--layer) 0 3px, transparent 3px 7px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 0%, transparent 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); max-width: 18ch; }
.hero h1:lang(de) { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.lead { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.term {
  margin: 0; background: var(--term-bg); color: var(--term-text);
  border: 1px solid #262b33; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #14171c; border-bottom: 1px solid #22262d; }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3f48; }
.term-bar span:first-child { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar b { margin-left: 10px; font: 500 .8rem var(--mono); color: #7c8592; }
.term pre { margin: 0; padding: 18px 20px 20px; font-size: .86rem; line-height: 1.75; overflow-x: auto; white-space: pre; }
.term .p { color: #f2a33a; }
.term .h { color: #7c8592; }
.term .ok { color: #4cc38a; }
.term .st { color: #9fd3c8; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #f2a33a; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.facts li { background: var(--surface); padding: 20px 22px; display: flex; align-items: baseline; gap: 12px; }
.facts strong { font: 600 2.2rem/1 var(--head); color: var(--accent); }
.facts span { color: var(--muted); line-height: 1.3; }

/* Abschnitte */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.kicker { font: 600 .9rem var(--mono); color: var(--accent); margin-bottom: 10px; }
.kicker::before { content: "// "; opacity: .6; }
.section h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.12rem; }

/* Projekte */
.project {
  --c: var(--accent);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.project:first-of-type { border-top: 0; padding-top: 0; }
.project.flip .project-text { order: 2; }
.p-plateshelf { --c: #2fae9b; }
.p-rdapi { --c: #3d8fe0; }
.p-roulette { --c: #c9a54b; }
.p-tps { --c: #5fd3bc; }
.project-title { display: flex; align-items: center; gap: 16px; }
.project-title img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--c) 60%, transparent); }
.project h3 { font-size: 2rem; }
.status { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.s-soon { color: #a0a8b4; }
.s-beta { color: #e4572e; }
.s-live, .s-stable { color: var(--ok); }
.tagline { margin-top: 22px; font: 600 1.35rem/1.3 var(--head); color: var(--c); }
.project-text > p:not(.tagline) { margin-top: 12px; color: var(--muted); }
.points { margin-top: 18px; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 4px; border-radius: 2px; background: var(--c); box-shadow: 0 -6px 0 color-mix(in srgb, var(--c) 45%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li { font: 500 .8rem var(--mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.shot {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #111;
}
.shot::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); z-index: 1; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.project:hover .shot img { transform: scale(1.015); }

.tps {
  margin: 0; position: relative; padding: 22px; border-radius: var(--radius); background: var(--term-bg);
  border: 1px solid #262b33; box-shadow: var(--shadow); color: var(--term-text); font-size: .85rem; overflow: hidden;
}
.tps::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.tps-head, .tps-row { display: grid; grid-template-columns: 1fr 28px 1.25fr; align-items: center; gap: 10px; }
.tps-head { font: 600 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #7c8592; padding: 4px 4px 12px; }
.tps-row { padding: 11px 4px; border-top: 1px solid #1f232a; }
.tps-row code { font-size: .82rem; overflow-wrap: anywhere; }
.tps-row code:first-child { color: #9cc8f5; }
.tps-row b { color: #f2a33a; font-weight: 600; margin-right: 4px; }
.tps-row i { color: #7c8592; font-style: normal; }
.tps-arrow { color: #5fd3bc; display: flex; justify-content: center; }
.tps-gone code:first-child { text-decoration: line-through; color: #6b7380; }
.tps-gone code:last-child { color: #e4572e; }
.tps-gone .tps-arrow { color: #e4572e; }

/* Werkstatt */
.bench { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tool-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool h3 { font-size: 1.5rem; margin-top: 18px; }
.tool-sub { font: 500 .85rem var(--mono); color: var(--accent); margin-top: 6px; }
.tool p:last-child { color: var(--muted); margin-top: 12px; }
.sub { font-size: 1.6rem; margin: 64px 0 22px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: pr; }
.principles li { counter-increment: pr; border-top: 3px solid var(--accent); padding-top: 16px; }
.principles strong { display: block; font: 600 1.2rem var(--head); }
.principles strong::before { content: "0" counter(pr) " "; font: 500 .85rem var(--mono); color: var(--accent); margin-right: 4px; vertical-align: .15em; }
.principles span { display: block; color: var(--muted); margin-top: 6px; }

/* Unterstützen */
.support {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px; border-radius: 24px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(to bottom, var(--layer) 0 3px, transparent 3px 7px),
    linear-gradient(135deg, color-mix(in srgb, var(--coffee) 12%, var(--surface)), var(--surface) 60%);
}
.support h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.support p:last-child { margin-top: 12px; color: var(--muted); max-width: 56ch; font-size: 1.1rem; }
.support .btn { flex: none; }

/* Fuß */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.fine { grid-column: 1 / -1; font-size: .82rem; opacity: .8; margin-top: 12px; }

/* Schmale Bildschirme */
@media (max-width: 960px) {
  .hero-in, .project { grid-template-columns: 1fr; gap: 36px; }
  .project.flip .project-text { order: 0; }
  .bench { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav a:not(.lang):not(.icon-link) { display: none; }
  .hero { padding-top: 56px; }
  .section { padding: 72px 0; }
  .facts li { flex-direction: column; gap: 4px; padding: 16px; }
  .principles { grid-template-columns: 1fr; }
  .support { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .term pre { font-size: .74rem; padding: 14px; }
  .tps { padding: 16px 12px; }
  .tps-head, .tps-row { grid-template-columns: 1fr; gap: 4px; }
  .tps-head span:nth-child(n+2), .tps-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn, .shot img { transition: none; }
}

/* 404 */
.nf { min-height: 100vh; display: grid; align-content: center; }
.nf .term { max-width: 640px; }

