:root {
  /* --accent is the wordmark red, sampled off the logo artwork (not chosen). */
  --ink: #1b1f24;
  --ink-soft: #55606b;
  --line: #e2e5e9;
  --bg: #ffffff;
  --bg-band: #f7f7f8;
  --accent: #bd131c;
  --accent-ink: #ffffff;
  --radius: 10px;
  --wrap: 62rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap.narrow { max-width: 44rem; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); }

/* header / footer ------------------------------------------------------- */

header.site { border-bottom: 1px solid var(--line); }
footer.site { border-top: 1px solid var(--line); margin-top: 4rem; color: var(--ink-soft); font-size: .9rem; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
  /* Narrow screens wrap the nav under the logo; without this the logo sits
     flush against the top edge of the viewport. */
  padding-top: .75rem;
  padding-bottom: .75rem;
}

/* The logo is a transparent PNG of red line art — it sits on either scheme
   unchanged, which is why the subline and the white plate were cropped out. */
.brand { display: inline-flex; line-height: 0; }
.brand img { width: auto; height: 2.1rem; }

header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
header nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
header nav a:hover { color: var(--accent); }

/* hero ------------------------------------------------------------------ */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42rem;
}

.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.button {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 550;
  border: 1px solid var(--accent);
}

.button:hover { filter: brightness(1.1); }

.button.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.button.ghost:hover { border-color: var(--accent); filter: none; }

/* bands & sections ------------------------------------------------------ */

.band {
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
}

section.wrap { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(1rem, 3vw, 2rem); }

/* feature grid ---------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg);
}

.grid p { margin: 0; color: var(--ink-soft); }

/* screenshots ----------------------------------------------------------- */

/* The app renders dark-only, this page is light by default — a bare screenshot
   would be a dark plate dropped on white. So every shot is seated in a plate of
   its own background colour, which reads as a device rather than as a mistake.
   The plate colour is the app shell's own #0f1115 and is deliberately NOT
   theme-dependent: the images are dark in both schemes. */
.screens figure { margin: clamp(2rem, 5vw, 3rem) 0 0; }
.screens figcaption { max-width: 44rem; }
.screens figcaption p { color: var(--ink-soft); margin: 0; }

.screens .plate {
  margin-top: 1.25rem;
  background: #0f1115;
  border: 1px solid #2c3238;
  border-radius: var(--radius);
  padding: .75rem;
  overflow: hidden;
}

/* The shots are 1048px wide and the wrap is narrower, so they always scale
   down — never up, which would soften the type. */
.screens .plate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
}

/* The two origin results are one argument, but they are NOT set side by side:
   the shots are 1048px of dense table text and the wrap is 62rem, so a
   two-column pair renders each at ~470px and nothing in them is readable.
   Stacked, each gets the full column and stays near 1:1. */
/* min-width:0 — a grid item defaults to min-width:auto, so the 1048px image
   inside would push the track wider than the column and the sideways scroll
   would escape the plate and land on the page. */
.screens .stack { display: grid; gap: 1rem; }
.screens .stack > * { min-width: 0; }
.screens .shot-label {
  font-size: .85rem;
  font-weight: 550;
  color: var(--ink-soft);
  margin: 0 0 .4rem;
}

/* On a phone the full 1048px scaled to ~370px is a grey blob — the type is the
   whole point of these shots. Panning at 1:1 instead was the first answer, and it
   cost more than it saved: a 370px window onto a 1048px shot shows 35% of it, and
   the 35% that lands on screen is the left edge, so the verdict the figure exists
   to show ("Qualifiziert für präferenziellen Ursprung") was cut mid-word. Each
   plate was also taller than the phone screen, and the swipe cue sat below it.
   So a phone now gets its OWN shots — single cards from the app's mobile layout,
   whole sentences, no gesture — served by <picture> so the desktop asset is never
   downloaded on a phone at all. Panning stays only where there is nothing to crop
   (`--pan`, the supplier table). */
@media (max-width: 60rem) {
  .screens .plate--pan { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .screens .plate--pan img { width: 1048px; max-width: none; }
  .screens .plate--pan + .scroll-hint { display: block; }
}

/* Phone-only extra plate (the origin tests, which have no desktop counterpart —
   on desktop they are already inside the full-screen shot above). display:none
   also keeps a lazy image from being fetched, so desktop pays nothing for it. */
.screens .only-phone { display: none; }
@media (max-width: 60rem) {
  .screens .only-phone { display: block; margin-top: .6rem; }
}

.screens .scroll-hint {
  display: none;
  font-size: .8rem;
  color: var(--ink-soft);
  margin: .4rem 0 0;
}

/* statements & contact -------------------------------------------------- */

.statement {
  font-size: 1.15rem;
  font-weight: 550;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.75rem 0 .75rem;
}

.contact { font-size: 1.15rem; }

.fineprint { color: var(--ink-soft); font-size: .9rem; }

@media (prefers-color-scheme: dark) {
  :root {
    /* The brand red is too dark to read on a dark ground — lightened, same hue. */
    --ink: #e9ecef;
    --ink-soft: #aab3bc;
    --line: #2c3238;
    --bg: #14171a;
    --bg-band: #1b1f23;
    --accent: #ef5f68;
    --accent-ink: #17080a;
  }
}
