/* Sendepult – Website
   Hell: Pult-Aluminium bei Tageslicht. Dunkel: Studio bei Nacht.
   Kopf, Hero, Download und Fuß sind immer „Studio“ – wie die App selbst. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  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-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #e2e3df;
  --bg-alt: #d5d7d2;
  --surface: #eceeea;
  --ink: #16181b;
  --ink-2: #4a4f57;
  --line: #b5b8b2;
  --line-soft: #c8cbc5;
  --panel-a: #cfd2cd;
  --panel-b: #bec1bb;
  --shot-shadow: 0 0 0 1px rgba(10, 12, 15, 0.35), 0 28px 56px -28px rgba(10, 12, 15, 0.55);
  --focus: #0a62c9;

  --red: #d4271d;
  --red-hover: #b71f16;
  --lamp: #ff453a;
  --green: #30d158;
  --green-ink: #12783a;
  --yellow: #ffd60a;

  --studio: #0f1215;
  --studio-2: #171b20;
  --studio-3: #1f242b;
  --studio-ink: #e7eaf0;
  --studio-ink-2: #9aa2af;
  --studio-line: #2a3038;
  --studio-focus: #5aa9ff;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 16px;
  --overlap: clamp(72px, 15vw, 230px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13171b;
    --bg-alt: #181d22;
    --surface: #1d2329;
    --ink: #e7eaf0;
    --ink-2: #a2aab6;
    --line: #333a44;
    --line-soft: #262c34;
    --panel-a: #262b32;
    --panel-b: #1d2127;
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 28px 56px -28px rgba(0, 0, 0, 0.8);
    --focus: #5aa9ff;
    --green-ink: #4fdc78;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --green-ink: #4fdc78;
  --bg: #13171b;
  --bg-alt: #181d22;
  --surface: #1d2329;
  --ink: #e7eaf0;
  --ink-2: #a2aab6;
  --line: #333a44;
  --line-soft: #262c34;
  --panel-a: #262b32;
  --panel-b: #1d2127;
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 28px 56px -28px rgba(0, 0, 0, 0.8);
  --focus: #5aa9ff;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, figure, h1, h2, h3, h4 { margin: 0; }
code { font: 0.875em/1.4 var(--mono); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0.08em 0.35em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--studio-ink); color: var(--studio); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: calc(880px + 2 * var(--gutter)); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

h1, h2, h3, h4 { font-family: var(--sans); color: inherit; }
h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-stretch: 78%;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3 { font-size: 1.375rem; font-stretch: 100%; font-weight: 680; line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-size: 1rem; font-weight: 680; line-height: 1.35; }
strong { font-weight: 680; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--red); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px;
  font-weight: 700; font-size: 1.0625rem; font-stretch: 100%; line-height: 1.2;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px -8px rgba(212, 39, 29, 0.7);
  transition: background-color 0.15s;
}
.btn:hover { background: var(--red-hover); }
.btn-small { min-height: 36px; padding: 7px 14px; font-size: 0.9375rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.link-quiet { font-weight: 600; color: inherit; }
.copy {
  font: 600 0.8125rem/1 var(--sans); color: inherit; cursor: pointer;
  padding: 7px 10px; border-radius: 6px; border: 1px solid currentColor; background: transparent; opacity: 0.85;
}
.copy:hover { opacity: 1; }
.copy[data-done] { color: var(--green); }

/* ---------- Kopf ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--studio); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(15, 18, 21, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--studio-line);
  color: var(--studio-ink);
}
.site-head :focus-visible, .hero :focus-visible, .download :focus-visible, .site-foot :focus-visible { outline-color: var(--studio-focus); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.125rem; letter-spacing: 0.005em; }
.brand img { width: 32px; height: 32px; }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 0.9375rem; }
.nav a { color: var(--studio-ink-2); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--studio-ink); }
.head-row .btn-small { margin-left: auto; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .head-row .btn-small { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  color: var(--studio-ink);
  background:
    linear-gradient(var(--studio), var(--studio)) top / 100% calc(100% - var(--overlap)) no-repeat,
    var(--bg);
  padding-top: clamp(40px, 7vw, 96px);
}
.hero-grid {
  display: grid; gap: 0 56px;
  grid-template-areas: "lamp" "copy" "clock";
}
.hero-grid > .lamp { grid-area: lamp; justify-self: start; }
.hero-copy { grid-area: copy; }
.clock { grid-area: clock; margin-top: 44px; }
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "copy lamp" "copy clock" "copy .";
  }
  .hero-grid > .lamp { margin: 6px 0 18px; }
  .clock { margin-top: 0; }
}

.lamp {
  display: inline-block;
  font: 800 0.8125rem/1 var(--sans); letter-spacing: 0.24em; font-stretch: 100%;
  padding: 9px 14px 9px 17px; border-radius: 6px;
  border: 1px solid #3a2523; color: #6b3a36; background: #1a1111;
  margin-bottom: 28px;
}
.lamp.is-on, .no-js .lamp {
  color: #fff; background: var(--lamp); border-color: #ff6b62;
  box-shadow: 0 0 22px rgba(255, 69, 58, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .lamp.is-on { animation: lamp-strike 0.9s steps(1, end) both; }
}
@keyframes lamp-strike {
  0%   { color: #6b3a36; background: #1a1111; border-color: #3a2523; box-shadow: none; }
  10%  { color: #fff; background: var(--lamp); border-color: #ff6b62; box-shadow: 0 0 22px rgba(255, 69, 58, 0.55); }
  16%  { color: #6b3a36; background: #1a1111; border-color: #3a2523; box-shadow: none; }
  30%  { color: #fff; background: var(--lamp); border-color: #ff6b62; box-shadow: 0 0 10px rgba(255, 69, 58, 0.35); }
  38%  { color: #b9605a; background: #3a1714; border-color: #5a2b28; box-shadow: none; }
  52%  { color: #fff; background: var(--lamp); border-color: #ff6b62; box-shadow: 0 0 22px rgba(255, 69, 58, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}

.hero h1 {
  font-size: clamp(2.875rem, 1.4rem + 6.4vw, 6rem);
  font-stretch: 72%;
  font-weight: 820;
  line-height: 0.93;
  letter-spacing: -0.012em;
  max-width: 12ch;
  text-wrap: balance;
}
.lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: #c9ced7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; font-size: 0.875rem; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border: 1px solid var(--studio-line); border-radius: 999px; background: var(--studio-2); color: var(--studio-ink);
}
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(48, 209, 88, 0.6); }

/* Studiouhr */
.clock {
  background: var(--studio-2); border: 1px solid var(--studio-line); border-radius: 10px;
  padding: 22px 24px 20px;
}
.clock-time {
  font-size: clamp(3rem, 2rem + 4vw, 4.4rem);
  font-stretch: 118%; font-weight: 720; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  color: #fff;
}
.clock-date { margin-top: 10px; color: var(--studio-ink-2); font-size: 0.9375rem; }
.clock-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--studio-line); }
.clock-side dt { font-size: 0.8125rem; color: var(--studio-ink-2); }
.clock-side dd { margin: 2px 0 0; font-size: 1.625rem; font-stretch: 112%; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
#clock-hour { color: var(--lamp); }
#clock-news { color: var(--yellow); }
.clock.is-final #clock-hour { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .clock.is-final #clock-hour { animation: none; } }

.shot-hero { margin-top: clamp(48px, 7vw, 84px); }
.shot img, .shot-hero img { border-radius: 10px; box-shadow: var(--shot-shadow); background: var(--studio); }
.shot-hero img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.125rem; }

/* Funktionen */
.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature-text p { margin-top: 14px; color: var(--ink-2); max-width: 54ch; }
@media (min-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature:nth-of-type(even) .feature-text { order: 2; }
}
.ticks { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 2px; background: var(--ink); opacity: 0.75; }
.shot-narrow { max-width: 485px; }
@media (min-width: 1000px) { .feature:nth-of-type(even) .shot-narrow { justify-self: end; } }
.shot-pair { display: grid; gap: 20px; }
@media (min-width: 560px) { .shot-pair { grid-template-columns: 1fr 1fr; } }
.zoom { display: block; cursor: zoom-in; border-radius: 10px; }
.lightbox {
  width: min(96vw, 1800px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 12px;
  background: var(--studio); color: var(--studio-ink); overflow: auto;
}
.lightbox::backdrop { background: rgba(6, 8, 10, 0.82); }
.lightbox img { width: 100%; height: auto; }
.lightbox-close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -48px 0; z-index: 1;
  font: 650 0.875rem/1 var(--sans); padding: 10px 14px; border-radius: 8px; cursor: pointer;
  color: var(--studio-ink); background: rgba(15, 18, 21, 0.85); border: 1px solid var(--studio-line);
}
.lightbox-close:focus-visible { outline-color: var(--studio-focus); }
figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-2); }

.more { margin-top: clamp(80px, 10vw, 128px); padding-top: 32px; border-top: 2px solid var(--ink); }
.more-title { font-size: 1.5rem; font-stretch: 85%; font-weight: 740; }
.more-list { display: grid; gap: 28px 40px; margin-top: 28px; }
@media (min-width: 680px) { .more-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .more-list { grid-template-columns: 1fr 1fr 1fr; } }
.more-list > div { padding-top: 14px; border-top: 1px solid var(--line); }
.more-list dt { font-weight: 680; }
.more-list dd { margin: 6px 0 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Hardware: Pult ---------- */
.section-console { background: var(--bg-alt); }
.console { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1040px) { .console { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }

.desk {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px;
  padding: 18px; border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 24px 48px -32px rgba(10, 12, 15, 0.5);
}
@media (max-width: 639px) {
  .desk { grid-template-columns: 1fr 1fr; }
  .screen { grid-column: 1 / -1; }
}
.strip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; min-width: 124px; padding: 14px 10px 12px;
  background: rgba(0, 0, 0, 0.06); border: 1px solid var(--line); border-radius: 8px;
}
.strip-name { font-weight: 750; font-stretch: 85%; font-size: 1.0625rem; line-height: 1.1; }
.strip-ch { font-size: 0.8125rem; color: var(--ink-2); }
.strip-lamp {
  margin: 6px 0 8px; padding: 5px 8px 5px 10px; border-radius: 4px;
  font: 800 0.6875rem/1 var(--sans); letter-spacing: 0.18em;
  color: #7a4a46; background: #2a1a19; border: 1px solid #3a2523;
}
.strip.is-live .strip-lamp { color: #fff; background: var(--lamp); border-color: #ff6b62; box-shadow: 0 0 14px rgba(255, 69, 58, 0.6); }
.strip-db { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 0.9375rem; min-width: 7ch; text-align: center; }

/* Fader: Schlitz bei x = 32px, Skala rechts daneben. Kappe 30px hoch, Weg = Höhe − 30px. */
.fader {
  position: relative; width: 100px; height: 260px; cursor: grab; touch-action: none;
  border-radius: 6px; margin: 4px 0;
}
.fader:active { cursor: grabbing; }
.fader::before { /* Schlitz */
  content: ""; position: absolute; left: 29px; top: 8px; bottom: 8px; width: 6px;
  background: #121417; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.25);
}
.fader-scale { position: absolute; inset: 0; pointer-events: none; }
.fader-scale i { position: absolute; left: 58px; width: 8px; height: 1px; margin-bottom: -0.5px; background: var(--ink-2); opacity: 0.8; }
.fader-scale i.minor { width: 5px; opacity: 0.55; }
.fader-scale i.mark { background: var(--red); opacity: 1; height: 2px; width: 10px; margin-bottom: -1px; }
.fader-scale b {
  position: absolute; left: 70px; margin-bottom: -0.6em; font: 600 0.6875rem/1.2 var(--sans); color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fader-scale b.mark { color: var(--red); }
.fader-cap {
  position: absolute; left: 10px; width: 44px; height: 30px; bottom: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #5d636b 0%, #3b4047 46%, #2a2e33 54%, #43484f 100%);
  box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.fader-cap::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: #f2f3f5; border-radius: 1px; }
.fader:focus-visible { outline-offset: 2px; }

.screen {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 8px;
  background: var(--studio); color: var(--studio-ink);
  border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--studio-line);
  min-width: 0;
}
.screen-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; align-items: center;
  padding: 12px 12px 12px 14px; border-radius: 6px; position: relative; overflow: hidden;
  background: var(--studio-2); border: 1px solid var(--studio-line);
}
.screen-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.screen-id {
  grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 5px;
  font-weight: 800; font-size: 0.875rem; background: var(--green); color: #04210d;
}
.screen-title { font-weight: 650; font-size: 1rem; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.screen-artist { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--studio-ink-2); }
.screen-state { grid-column: 2; font: 700 0.6875rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.screen-time { grid-column: 3; grid-row: 1 / 3; font-size: 1.75rem; font-stretch: 112%; font-weight: 700; font-variant-numeric: tabular-nums; }
.screen-row.is-live { background: linear-gradient(180deg, #2a1514, var(--studio-2)); border-color: #4a2a28; }
.screen-row.is-live::before, .screen-row.is-live .screen-id { background: var(--lamp); color: #fff; }
.screen-row.is-live .screen-state { color: var(--lamp); }
.screen-row.is-stopped::before, .screen-row.is-stopped .screen-id { background: #39404a; color: var(--studio-ink-2); }
.screen-row.is-stopped .screen-state { color: var(--studio-ink-2); }
.screen-hint { font-size: 0.875rem; color: var(--studio-ink-2); min-height: 2.8em; margin-top: auto; padding-top: 6px; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 4px; }
.screen-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--studio-line); background: var(--studio-2); font-size: 0.75rem; font-weight: 700;
}
.screen-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.screen-mode { padding: 4px 10px; border-radius: 5px; background: var(--yellow); color: #2a2300; font: 800 0.6875rem/1.2 var(--sans); letter-spacing: 0.1em; }

.console-text h3 + p { margin-top: 10px; }
.console-text p { color: var(--ink-2); max-width: 56ch; }
.console-text h3:not(:first-child) { margin-top: 36px; }
.routing { width: 100%; max-width: 440px; margin-top: 24px; border-collapse: collapse; font-size: 1rem; }
.routing caption { text-align: left; font-size: 0.875rem; color: var(--ink-2); padding-bottom: 8px; }
.routing th, .routing td { text-align: left; padding: 9px 0; border-top: 1px solid var(--line); }
.routing th { font-weight: 650; width: 42%; }
.routing td { font-variant-numeric: tabular-nums; }
.note { margin-top: 28px; padding: 14px 16px; border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 6px 6px 0; color: var(--ink) !important; }

/* ---------- Vergleich ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; padding-bottom: 12px; font-size: 1.25rem; font-stretch: 85%; font-weight: 760; }
.compare thead th:nth-child(2) { color: var(--red); }
.compare tbody th { font-weight: 650; width: 28%; }
.compare td { color: var(--ink-2); width: 36%; }
.compare td:nth-child(2) { color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.fineprint { margin-top: 18px; font-size: 0.875rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- Installation ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 44px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; }
.steps > li::before {
  content: counter(step);
  grid-row: 1 / span 6;
  font-size: 3rem; font-stretch: 118%; font-weight: 760; line-height: 0.9; font-variant-numeric: tabular-nums;
  color: var(--ink); opacity: 0.9;
}
.steps > li > * { grid-column: 2; }
.steps p { margin-top: 10px; color: var(--ink-2); }
.os-variants { display: grid; gap: 18px; margin-top: 16px; }
@media (min-width: 700px) { .os-variants { grid-template-columns: 1fr 1fr; gap: 28px; } }
.os-variants > div { padding-left: 16px; border-left: 2px solid var(--line); }
.os-variants p { margin-top: 6px; }
.code {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between;
  margin-top: 10px; padding: 14px 16px; border-radius: 8px;
  background: var(--studio); color: var(--studio-ink); border: 1px solid var(--studio-line);
}
.code code { background: none; border: 0; padding: 0; color: inherit; font-size: 0.9375rem; }
.code :focus-visible { outline-color: var(--studio-focus); }

/* ---------- Fragen ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0; font-weight: 650; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Download ---------- */
.download { background: var(--studio); color: var(--studio-ink); padding-block: clamp(72px, 10vw, 128px); }
.download-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .download-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.download-icon { width: 104px; height: 104px; margin: -10px 0 18px -10px; }
.download h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); font-stretch: 74%; }
.download-grid > div:first-child > p:not([class]) { margin-top: 14px; color: #c9ced7; font-size: 1.125rem; }
.download-meta dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--studio-line); }
.download-meta dt { color: var(--studio-ink-2); font-size: 0.9375rem; }
.download-meta dd { margin: 0; overflow-wrap: anywhere; }
.download-meta code, .download .fineprint code { background: var(--studio-3); border-color: var(--studio-line); color: var(--studio-ink); }
.download-meta .hash dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.download-meta .hash code { font-size: 0.8125rem; word-break: break-all; }
.download .fineprint { color: var(--studio-ink-2); }
@media (max-width: 520px) { .download-meta dl > div { grid-template-columns: 1fr; gap: 2px; } }
.changelog { margin-top: 26px; border-top: 1px solid var(--studio-line); border-bottom: 1px solid var(--studio-line); }
.changelog summary { cursor: pointer; padding: 16px 0; font-weight: 650; }
.changelog dl { padding-bottom: 16px; }
.changelog dl > div { grid-template-columns: 110px minmax(0, 1fr); padding: 8px 0; border-top: 0; font-size: 0.9375rem; }
.changelog dd { color: #c9ced7; }

/* ---------- Fuß ---------- */
.site-foot { background: var(--studio); color: var(--studio-ink-2); border-top: 1px solid var(--studio-line); padding-block: 36px 44px; font-size: 0.875rem; }
.foot-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: auto 1fr; align-items: center; } .foot-note { grid-column: 1 / -1; } }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--studio-ink); font-weight: 700; font-size: 1rem; }
.site-foot nav { display: flex; gap: 22px; }
@media (min-width: 820px) { .site-foot nav { justify-content: flex-end; } }
.site-foot nav a { color: var(--studio-ink); }
.foot-note { max-width: 90ch; line-height: 1.5; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px); }
.page h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); font-stretch: 74%; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.page h2 { font-size: 1.5rem; font-stretch: 90%; margin-top: 44px; }
.page h3 { font-size: 1.125rem; margin-top: 24px; }
.page p, .page ul { margin-top: 12px; max-width: 70ch; color: var(--ink-2); }
.page ul { padding-left: 1.2em; }
.page address { font-style: normal; margin-top: 12px; color: var(--ink); line-height: 1.6; }
.page .lead-page { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.page .btn { margin-top: 28px; }

@media print {
  .site-head, .hero-actions, .copy, .desk { display: none !important; }
  .hero, .download, .site-foot { background: none !important; color: #000 !important; }
}

/* Platzhalter in den Rechtstexten – deploy.sh bricht ab, solange welche drin sind */
mark.todo { background: #ffd60a; color: #2a2300; padding: 0.05em 0.3em; border-radius: 3px; font-weight: 600; }

/* Vergleichstabelle auf schmalen Bildschirmen: Merkmal als Zeile darüber, zwei Spalten darunter */
@media (max-width: 639px) {
  .compare { min-width: 0; }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; border-top: 1px solid var(--line); }
  .compare thead tr { border-top: 0; }
  .compare thead th:first-child { display: none; }
  .compare th, .compare td { border-top: 0; padding: 0; width: auto; }
  .compare thead th { padding-bottom: 10px; }
  .compare tbody th { grid-column: 1 / -1; padding: 14px 0 4px; width: auto; }
  .compare td { padding: 0 0 14px; }
  .compare tbody tr:last-child > * { border-bottom: 0; }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- Lizenz ---------- */
.licence { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1040px) { .licence { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.licence-text > p { margin-top: 16px; color: var(--ink-2); max-width: 56ch; }
.licence-text h3 { margin-top: 36px; }
.editions { margin-top: 0; }
.editions td { font-weight: 650; }
.editions tr:first-child td { color: var(--green-ink); }
.mini-steps { list-style: none; padding: 0; margin-top: 14px; counter-reset: ms; display: grid; gap: 12px; }
.mini-steps li { counter-increment: ms; position: relative; padding-left: 38px; color: var(--ink-2); }
.mini-steps li::before {
  content: counter(ms); position: absolute; left: 0; top: 0.05em;
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 750; font-size: 0.875rem; font-variant-numeric: tabular-nums;
}
.mini-steps a { color: var(--ink); font-weight: 650; }
.code.mail { margin-top: 20px; }
.code.mail span { font-weight: 650; font-size: 1.0625rem; overflow-wrap: anywhere; }

/* ---------- Download: zwei Fassungen ---------- */
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-meta { font-weight: 500; opacity: 0.8; font-size: 0.875rem; }
.btn-ghost { background: transparent; border-color: #4a525e; box-shadow: none; color: var(--studio-ink); }
.btn-ghost:hover { background: var(--studio-3); }
.dl-hint { margin-top: 18px; font-size: 0.9375rem; color: var(--studio-ink-2); max-width: 50ch; }
.dl-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 1rem; }
.dl-links a { font-weight: 600; color: var(--studio-ink); }
.changelog + .changelog { margin-top: 0; border-top: 0; }

.nobr { white-space: nowrap; }
.mini-steps code { white-space: nowrap; }
