/* Tender landing - brand tokens
 * Source: brand/DESIGN-SYSTEM.md (buildOS / TE manual DNA) + Tender handover.
 * Sentence case enforced (all-lowercase styling is banned per brand rule). No em dashes.
 */
:root {
  /* neutrals */
  --ink:    oklch(24% 0.015 140);   /* primary text, dark buttons */
  --bone:   #ebe7df;                /* brand bone (warm beige). Hex is canonical; oklch(95% 0.012 85) renders ~#f2eee6, too light against white. */
  --white:  #ffffff;                /* alt light section bg (pairs with bone) */
  --cream:  #e3ddd3;                /* brand cream, PINNED TO HEX (oklch(92% 0.02 80) renders too light). Subtle fill: table headers, avatars, drop zones, badges, compare-tool accents. */
  --paper:  oklch(90% 0.022 78);    /* deeper alt bg, hovers */
  --faint:  oklch(82% 0.015 130);   /* borders, dividers */
  --rule:   oklch(78% 0.015 130);   /* heavier rules, grid lines */
  --mute:   oklch(45% 0.015 140);   /* secondary text */
  --quiet:  oklch(60% 0.012 130);   /* tertiary text, dim labels */
  --night:  oklch(20% 0.015 140);   /* dark surfaces (footer) */
  --shadow: oklch(16% 0.015 140);   /* deepest dark */

  /* accents */
  --ember:       oklch(64% 0.18 40);   /* primary accent / CTA (burnt orange) */
  --ember-hover: oklch(57% 0.17 38);
  --ember-tint:  oklch(96% 0.05 70);   /* selected / highlight bg */
  --ember-border: oklch(78% 0.1 50);
  --forest:      oklch(38% 0.07 155);  /* success / lowest bid */
  --forest-tint: oklch(92% 0.04 155);
  --amber:       oklch(76% 0.15 75);   /* star rating */
  --error:       oklch(48% 0.13 25);   /* problem / overdue */
  --error-tint:  oklch(94% 0.03 30);

  /* type families — use the app's next/font instances (Inter + JetBrains Mono)
     exposed as --font-inter / --font-jetbrains-mono in app/layout.tsx, so the
     landing renders in the SAME loaded fonts as the rest of the app. The bare
     family names are kept only as fallback. */
  --sans: var(--font-inter), 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: var(--font-jetbrains-mono), 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* type scale */
  --text-hero: clamp(44px, 6.4vw, 92px);
  --text-h2:   clamp(30px, 4.2vw, 56px);
  --text-h3:   clamp(20px, 2.3vw, 28px);
  --text-lead: clamp(17px, 1.5vw, 21px);
  --text-body: 16px;
  --text-sm:   14px;
  --text-cap:  11px;

  /* spacing (4pt scale) */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  20px;
  --space-lg:  32px;
  --space-xl:  56px;
  --space-2xl: 88px;
  --space-3xl: 120px;

  /* radius */
  --radius-btn:  4px;
  --radius-card: 10px;
  --radius-pill: 999px;

  /* elevation (floating header) */
  --shadow-float: 0 8px 28px -12px oklch(20% 0.02 140 / 0.22), 0 2px 8px -4px oklch(20% 0.02 140 / 0.12);

  /* layout */
  --maxw: 1200px;
  --pad-x: 56px;

  /* motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 220ms;
}

/* Hallmark - macrostructure: Marquee Hero (product-demo-led) - genre: modern-minimal
 * theme: buildOS brand system (brand/DESIGN-SYSTEM.md) - accent: ember / burnt orange
 * tone: minimal, technical - sentence case (lowercase styling banned) - no em dashes
 * pre-emit critique: P5 H4 E4 S4 R5 V4
 */

/* ---------- reset + base ---------- */
.tender-site, .tender-site *, .tender-site *::before, .tender-site *::after { box-sizing: border-box; }
.tender-site { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* Anchor jumps (#vergleich, #finden, …) land below the sticky nav. */
.tender-site [id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
.tender-site {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
/* Element resets are wrapped in :where(.tender-site) so they keep the LOW
   specificity (0,0,1) of the original static site's bare element selectors.
   Otherwise `.tender-site p` (0,1,1) would override single-class rules like
   `.hero__micro { margin-top }` (0,1,0) and silently kill their margins. */
:where(.tender-site) img, :where(.tender-site) svg { display: block; max-width: 100%; }
:where(.tender-site) a { color: inherit; text-decoration: none; }
:where(.tender-site) button { font-family: inherit; cursor: pointer; }
:where(.tender-site) h1, :where(.tender-site) h2, :where(.tender-site) h3, :where(.tender-site) h4 { font-weight: 400; font-style: normal; margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
:where(.tender-site) p { margin: 0; }
:where(.tender-site) ::selection { background: var(--ember-tint); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.section--cream, .section--night { position: relative; isolation: isolate; }
.section--cream::before, .section--night::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: calc(50% - 50vw); width: 100vw;
}
.section--cream::before { background: var(--white); } /* alternating light sections are white (was cream) */
.section--night::before { background: var(--ink); }
.section--night { color: var(--bone); }
.section--night .mono { color: color-mix(in oklch, var(--bone) 60%, transparent); }
.section--night .rule-line { background: color-mix(in oklch, var(--bone) 22%, transparent); }
.section--night .lead { color: color-mix(in oklch, var(--bone) 80%, transparent); }
.final .btn-primary, .section--night .btn-primary { background: var(--bone); color: var(--ink); }
.final .btn-primary:hover, .section--night .btn-primary:hover { background: #ffffff; color: var(--ink); }
.section--tight { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* placeholder marker (every empty field) */
.ph {
  color: var(--quiet);
  font-style: normal;
}
.ph::before { content: '[ '; }
.ph::after  { content: ' ]'; }
.ph-block {
  border: 1px dashed var(--rule);
  border-radius: 6px;
  color: var(--quiet);
  background: color-mix(in oklch, var(--cream) 60%, transparent);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: var(--text-cap);
  letter-spacing: 0.06em;
  padding: var(--space-md);
}

/* ---------- type helpers ---------- */
.mono { font-family: var(--mono); font-size: var(--text-cap); letter-spacing: 0.16em; color: var(--mute); text-transform: uppercase; }
.lead { font-size: var(--text-lead); color: var(--mute); line-height: 1.5; max-width: 62ch; }
.lead + .lead { margin-top: var(--space-md); }
.h2 { font-size: var(--text-h2); }
.h3 { font-size: var(--text-h3); letter-spacing: -0.02em; }

/* section kicker: mono label + rule line */
.kicker { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.kicker .rule-line { flex: 1; height: 1px; background: var(--rule); }

/* ---------- pills + badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  border: 1px solid var(--faint); border-radius: var(--radius-pill);
  padding: 5px 12px; font-family: var(--mono); font-size: var(--text-cap);
  letter-spacing: 0.1em; color: var(--mute); background: var(--bone);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.num-badge {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: var(--radius-btn);
  background: var(--ink); color: var(--bone);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 13px 22px; font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn-primary { background: var(--night); color: var(--bone); }
.btn-primary:hover { background: var(--shadow); color: var(--bone); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--night); }
.btn-outline { background: transparent; border-color: var(--faint); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--faint); padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn-link .arw { transition: transform var(--dur) var(--ease-out); }
.btn-link:hover { color: var(--ember-hover); border-color: var(--ember); }
.btn-link:hover .arw { transform: translateX(3px); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn:focus-visible, .btn-link:focus-visible, .tender-site a:focus-visible, .tender-site button:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 2px; border-radius: var(--radius-btn);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: transparent;
}
.nav__row {
  position: relative;
  display: flex; align-items: center; gap: var(--space-lg);
  height: 60px; padding: 0 22px;
  background: #ffffff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--faint);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.03em; font-size: 18px; }
.brand svg { width: 22px; height: 22px; }
.nav__menu { display: flex; align-items: center; gap: var(--space-lg); flex: 1; margin-left: var(--space-md); }
.nav__menu > a:not(.btn) { font-size: 15px; color: var(--mute); white-space: nowrap; transition: color var(--dur) var(--ease-out); }
.nav__menu > a:not(.btn):hover { color: var(--ink); }
.nav__login { color: var(--ink); }
.nav__spacer { flex: 1; }
.nav__burger { display: none; margin-left: auto; background: none; border: 1px solid var(--faint); border-radius: var(--radius-btn); padding: 8px; }
.nav__burger svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.hero__eyebrow { margin-bottom: var(--space-md); }
.hero h1 { font-size: var(--text-hero); font-weight: 300; color: var(--ember); max-width: 16ch; margin-bottom: var(--space-md); min-width: 0; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; -webkit-hyphens: auto; }
.hero .lead { margin-bottom: var(--space-lg); font-size: var(--text-lead); }
.hero__actions { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.hero__micro { margin-top: var(--space-md); font-family: var(--mono); font-size: var(--text-cap); letter-spacing: 0.08em; color: var(--quiet); }
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ember) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero__eyebrow .dot { animation: dot-pulse 2.2s var(--ease-out) infinite; }

/* before / after slider */
.ba {
  position: relative; margin-top: var(--space-2xl);
  border: 1px solid var(--faint); border-radius: 18px;
  overflow: hidden; background: var(--bone); aspect-ratio: 16 / 9;
  user-select: none; touch-action: pan-y;
  box-shadow: 0 30px 60px -30px oklch(20% 0.02 140 / 0.35), 0 10px 24px -14px oklch(20% 0.02 140 / 0.18);
}
.ba__layer { position: absolute; inset: 0; }
.ba__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ba__layer--before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3;
  width: 2px; background: var(--ember); transform: translateX(-1px);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ember); color: var(--ink);
  display: grid; place-items: center; cursor: ew-resize;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--bone) 70%, transparent);
}
.ba__grip svg { width: 20px; height: 20px; }
.ba__tag {
  position: absolute; top: 14px; z-index: 4;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  padding: 4px 9px; border-radius: var(--radius-pill); border: 1px solid var(--faint);
  background: color-mix(in oklch, var(--bone) 80%, transparent); color: var(--mute);
}
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }
.ba__corner { position: absolute; right: 12px; bottom: 10px; z-index: 4; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--quiet); }

/* before = excel chaos */
.chaos { position: absolute; inset: 0; background: var(--paper); padding: 28px; overflow: hidden; }
.chaos__sheet {
  position: absolute; width: 200px; height: 130px; background: var(--bone);
  border: 1px solid var(--rule); border-radius: 4px; padding: 8px;
}
.chaos__sheet::before { content: ''; display: block; height: 12px; background: var(--forest-tint); margin-bottom: 6px; border-radius: 2px; }
.chaos__sheet i { display: block; height: 6px; background: var(--cream); margin: 5px 0; border-radius: 1px; }
.chaos__lbl { font-family: var(--mono); font-size: 9px; color: var(--quiet); margin-top: 4px; }
.chaos__s1 { top: 24px; left: 28px; transform: rotate(-5deg); }
.chaos__s2 { top: 70px; left: 150px; transform: rotate(4deg); }
.chaos__s3 { top: 150px; left: 70px; transform: rotate(-2deg); }
.chaos__s4 { top: 110px; left: 250px; transform: rotate(7deg); }

/* after = preisspiegel */
.spiegel { position: absolute; inset: 0; background: var(--bone); padding: 28px; }
.spiegel__head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mute); margin-bottom: 14px; }
.spiegel__table { width: 100%; border: 1px solid var(--faint); border-radius: 6px; overflow: hidden; font-size: 12px; }
.spiegel__r { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--faint); }
.spiegel__r:last-child { border-bottom: 0; }
.spiegel__r > span { padding: 9px 12px; border-right: 1px solid var(--faint); }
.spiegel__r > span:last-child { border-right: 0; }
.spiegel__r--h { background: var(--cream); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--mute); }
.spiegel__low { background: var(--forest-tint); color: var(--forest); font-weight: 500; }

/* ---------- objection-killer badge bar ---------- */
.badges { border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); background: var(--cream); }
.badges__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md) var(--space-xl); padding: var(--space-lg) 0; }
.hero__badges { margin-top: var(--space-lg); padding: var(--space-lg) 0 0; border-top: 1px solid var(--faint); }
.badge { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--mono); font-size: var(--text-cap); letter-spacing: 0.08em; color: var(--mute); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); animation: dot-pulse-green 2.4s var(--ease-out) infinite; }
.badges__row .badge:nth-child(2) .dot { animation-delay: 0.4s; }
.badges__row .badge:nth-child(3) .dot { animation-delay: 0.8s; }
.badges__row .badge:nth-child(4) .dot { animation-delay: 1.2s; }
@keyframes dot-pulse-green {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--forest) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- generic section header ---------- */
.shead { max-width: none; margin-bottom: var(--space-xl); }
.shead h2 { margin-bottom: var(--space-md); }

/* ---------- problem / enemy ---------- */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.cmp-card { border: 1px solid var(--faint); border-radius: var(--radius-card); padding: var(--space-lg); background: var(--bone); }
.cmp-card--bad { background: var(--error-tint); border-color: color-mix(in oklch, var(--error) 25%, var(--faint)); }
.cmp-card--good { background: var(--forest-tint); border-color: color-mix(in oklch, var(--forest) 25%, var(--faint)); }
.cmp-card h3 { margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-xs); }
.cmp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.cmp-list li { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--mute); font-size: 15px; }
.cmp-list .mk { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.cmp-list .mk svg { width: 15px; height: 15px; }

/* ---------- compare tool (Flow 2) ---------- */
.tool { border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-float); overflow: hidden; } /* both tools (compare + finder): white body, lifted off the section */
.tool__bar { display: flex; align-items: center; gap: var(--space-xs); border-bottom: 1px solid var(--faint); padding: var(--space-sm); background: var(--cream); flex-wrap: wrap; }
.tool__step {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  border: 1px solid transparent; border-radius: var(--radius-btn);
  padding: 8px 14px; font-size: 14px; color: var(--mute); background: transparent;
}
.tool__step .n { font-family: var(--mono); font-size: 11px; color: var(--quiet); }
.tool__step[aria-selected="true"] { background: var(--white); border-color: var(--faint); color: var(--ink); }
.tool__step[aria-selected="true"] .n { color: var(--ember); }
.tool__free { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--quiet); padding-right: var(--space-xs); }
.tool__panel { padding: var(--space-xl); display: none; }
.tool__panel.is-active { display: block; }

/* state 1: dropzones */
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.drop { border: 1px dashed var(--rule); border-radius: var(--radius-card); padding: var(--space-lg); text-align: center; background: var(--cream); }
.drop__ico { width: 36px; height: 36px; margin: 0 auto var(--space-sm); color: var(--mute); }
.drop__file { display: inline-flex; align-items: center; gap: var(--space-xs); border: 1px solid var(--faint); border-radius: var(--radius-btn); background: var(--bone); padding: 8px 12px; font-family: var(--mono); font-size: 12px; color: var(--ink); margin-top: var(--space-sm); }
.drop__file svg { width: 15px; height: 15px; color: var(--error); }
.drops__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }
.drops__hint { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--quiet); }

/* state 2 + 3: result table */
.result__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap; }
/* Horizontal-scroll wrapper so the Preisspiegel never squishes on mobile —
   it keeps all columns and scrolls sideways instead. */
.ptable-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; min-width: 460px; border: 1px solid var(--faint); border-radius: var(--radius-card); overflow: hidden; font-size: 14px; }
.ptable__r { display: grid; grid-template-columns: 2fr 1fr 1fr; border-bottom: 1px solid var(--faint); }
.ptable__r:last-child { border-bottom: 0; }
.ptable__r > span { padding: 12px 16px; border-right: 1px solid var(--faint); }
.ptable__r > span:last-child { border-right: 0; }
/* Mirror the app's Preisspiegel: position left, contractor totals right. */
.ptable__r > span:not(:first-child) { text-align: right; }
.ptable__r--h { background: var(--cream); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mute); }
.ptable__r--sum { background: var(--cream); font-weight: 600; }
.ptable__low { background: var(--forest-tint); color: var(--forest); font-weight: 600; }
.ptable__high { background: var(--error-tint); color: var(--error); }
/* Position number under the line-item description (mono, muted — like the app). */
.ptable__pos { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--quiet); margin-top: 3px; font-weight: 400; }
/* "qty unit × unit price" subtext under each cell total. */
.ptable__sub { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; color: var(--quiet); margin-top: 3px; font-weight: 400; }
/* "Günstigstes" pill in the header of the cheapest column. */
.ptable__badge { display: inline-block; margin-left: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); background: var(--forest-tint); border-radius: var(--radius-pill); padding: 2px 7px; vertical-align: middle; }
.result__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }
.result__btns { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.result__legend { margin-top: var(--space-sm); }
.result__gate { font-size: 13px; color: var(--mute); line-height: 1.4; max-width: 54ch; }

/* state 3: gate */
.gate-wrap { position: relative; }
.gate-wrap .ptable { filter: blur(2px); opacity: 0.5; pointer-events: none; }
.gate {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-md);
}
.gate__card {
  background: var(--bone); border: 1px solid var(--rule); border-radius: var(--radius-card);
  padding: var(--space-xl); max-width: 440px; text-align: center;
}
.gate__card .lk { width: 32px; height: 32px; margin: 0 auto var(--space-md); color: var(--ember); }
.gate__card h3 { margin-bottom: var(--space-xs); }
.gate__card p { color: var(--mute); font-size: 15px; margin-bottom: var(--space-lg); }
.gate__card .note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--quiet); margin-top: var(--space-md); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--faint); border-radius: var(--radius-card); padding: var(--space-lg); background: var(--bone); }
.step__top { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.step h3 { font-size: 20px; letter-spacing: -0.02em; }
.step p { color: var(--mute); font-size: 15px; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); }
.feat {
  border: 1px solid var(--faint); border-radius: var(--radius-card); padding: var(--space-lg); background: var(--bone);
  transition: border-color var(--dur) var(--ease-out);
}
.feat:hover { border-color: var(--ember); }
.feat--wide { grid-column: span 2; }
.feat__ico { width: 26px; height: 26px; color: var(--ink); margin-bottom: var(--space-md); }
.feat h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
.feat p { color: var(--mute); font-size: 14px; }
.feat__star { color: var(--ember); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.feat__frame { border: 1px solid var(--faint); border-radius: 8px; aspect-ratio: 16/10; margin-top: var(--space-md); }

/* ---------- trades finder (repository spotlight) ---------- */
.bridge { font-size: var(--text-lead); color: var(--mute); margin: 0 0 var(--space-lg); max-width: 60ch; }
.statement--lead { margin-bottom: var(--space-2xl); }
.finder__bar { gap: var(--space-sm); }
.finder__in { font-family: var(--sans); font-size: 14px; color: var(--ink); background: var(--white); border: 1px solid var(--faint); border-radius: var(--radius-pill); padding: 10px 16px; min-width: 0; flex: 1 1 170px; }
.finder__in--sm { flex: 0 1 120px; }
.finder__in--md { flex: 0 1 165px; }
.finder__in::placeholder { color: var(--quiet); }
.finder-empty { text-align: center; padding: var(--space-lg) 0; color: var(--mute); }
.finder-empty__ico { width: 30px; height: 30px; margin: 0 auto var(--space-sm); color: var(--quiet); }
.import-card { border: 1px solid var(--faint); border-radius: var(--radius-card); background: var(--cream); padding: var(--space-md); }
.import-card__head { margin-bottom: var(--space-sm); }
.import-card__row { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.import-card__url { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.import-card__arrow { color: var(--ember); }
.import-card__chip { font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--bone); border: 1px solid var(--faint); border-radius: var(--radius-btn); padding: 6px 10px; }
.finder-row { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--faint); }
.finder-row:last-of-type { border-bottom: 0; }
.finder-row__ava { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); border: 1px solid var(--faint); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.finder-row__name { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-weight: 500; }
.finder-row__meta { font-weight: 400; font-size: 13px; color: var(--mute); }
.src-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--forest); border: 1px solid var(--forest-tint); border-radius: var(--radius-pill); padding: 4px 9px; white-space: nowrap; }
.finder-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-md); flex-wrap: wrap; }

/* finder results (free search demo) */
.finder-results { padding: var(--space-xl); }
.finder-results__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.finder-results__title { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.finder-results__count { font-family: var(--mono); font-size: 11px; color: var(--quiet); }
.tag { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid var(--faint); color: var(--mute); white-space: nowrap; }
.tag--places, .tag--example { color: var(--quiet); }
.tag--gewerk { color: var(--ember-hover); border-color: var(--ember-border); background: var(--ember-tint); }
.finder-card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); border: 1px solid var(--faint); border-radius: var(--radius-card); background: var(--white); padding: var(--space-md) var(--space-lg); }
.finder-card + .finder-card { margin-top: var(--space-sm); }
.finder-card__main { display: flex; align-items: flex-start; gap: var(--space-md); min-width: 0; flex: 1; }
.finder-card__ico { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--faint); background: var(--cream); display: grid; place-items: center; color: var(--mute); }
.finder-card__ico svg { width: 20px; height: 20px; }
.finder-card__body { min-width: 0; }
.finder-card__top { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: 6px; }
.finder-card__name { font-weight: 600; font-size: 16px; }
.finder-card__rating { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.finder-card__rating svg { width: 14px; height: 14px; color: var(--amber); }
.finder-card__reviews { color: var(--quiet); }
.finder-card__meta { display: flex; flex-wrap: wrap; gap: 4px var(--space-md); color: var(--mute); font-size: 13px; margin-bottom: var(--space-sm); }
.finder-card__meta span, .finder-card__meta a { display: inline-flex; align-items: center; gap: 5px; }
.finder-card__meta svg { width: 13px; height: 13px; color: var(--quiet); flex: none; }
.finder-card__save { flex: none; }

/* ---------- built by architects ---------- */
.statement { text-align: center; max-width: none; margin: 0 auto; }
.statement h2 { font-size: var(--text-h2); font-weight: 300; margin-bottom: var(--space-md); color: var(--ember); }
.statement p { color: var(--mute); font-size: var(--text-lead); max-width: 50ch; margin: 0 auto; }

/* ---------- referenz (dark, Gen-style testimonial) ---------- */
/* #referenz inherits .section--night::before; all dark surfaces unified to var(--ink) per Marko (matches the Final CTA card). */
#referenz .rule-line { background: color-mix(in oklch, var(--bone) 30%, transparent); }  /* muted eyebrow rule on dark (global .kicker rule-line would be too bright here) */
#referenz .shead h2 { color: var(--white); }
.accent { color: var(--ember); }
.quote { margin: var(--space-2xl) 0 0; max-width: 760px; }
.quote__text { margin: 0; font-size: clamp(23px, 2.8vw, 34px); font-weight: 300; line-height: 1.45; letter-spacing: -0.01em; color: var(--white); }
.quote__by { margin-top: var(--space-lg); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: color-mix(in oklch, var(--bone) 55%, transparent); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); align-items: stretch; }
.price {
  display: flex; flex-direction: column; border: 1px solid var(--faint); border-radius: var(--radius-card);
  padding: var(--space-lg); background: var(--bone);
}
.price--pop { position: relative; border-color: var(--ember); box-shadow: var(--shadow-float); }
.price__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.price__name { font-size: 18px; font-weight: 500; }
.price__pop { position: absolute; top: 0; left: var(--space-lg); transform: translateY(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: var(--ember); border-radius: var(--radius-pill); padding: 4px 10px; }
.price__amt { font-size: 42px; font-weight: 300; letter-spacing: -0.03em; }
.price__amt small { font-size: 15px; color: var(--mute); font-weight: 400; letter-spacing: 0; }
.price__aud { color: var(--mute); font-size: 14px; margin: var(--space-xs) 0 var(--space-md); min-height: 2.6em; }
.price__feats { list-style: none; padding: var(--space-md) 0 0; margin: var(--space-md) 0; border-top: 1px solid var(--faint); display: grid; gap: var(--space-sm); flex: 1; }
.price__feats li { display: flex; gap: var(--space-sm); font-size: 14px; color: var(--mute); align-items: flex-start; }
.price__feats .mk { flex: none; color: var(--forest); width: 16px; height: 16px; }
.price__plus { border-top: 1px solid var(--faint); padding-top: var(--space-md); margin: var(--space-md) 0 0; font-size: 13px; color: var(--mute); }
.price__plus + .price__feats { border-top: 0; padding-top: var(--space-sm); margin-top: var(--space-sm); }
.price .btn { width: 100%; justify-content: center; margin-top: var(--space-md); }
.price__note { text-align: center; margin-top: var(--space-lg); font-family: var(--mono); font-size: var(--text-cap); letter-spacing: 0.06em; color: var(--quiet); }

/* ---------- faq ---------- */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--faint); }
.faq__item { border-bottom: 1px solid var(--faint); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); background: none; border: 0; padding: var(--space-lg) 0; text-align: left; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.faq__q .pm { flex: none; width: 20px; height: 20px; color: var(--mute); transition: transform var(--dur) var(--ease-out); }
.faq__item.is-open .faq__q .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease-in-out); }
.faq__a-inner { padding-bottom: var(--space-lg); color: var(--mute); font-size: 15px; max-width: 64ch; }

/* ---------- final cta ---------- */
.final { background: var(--ink); color: var(--bone); border-radius: var(--radius-card); padding: var(--space-2xl) var(--space-xl); text-align: center; }
.final h2 { font-size: var(--text-h2); font-weight: 300; margin-bottom: var(--space-md); max-width: 20ch; margin-left: auto; margin-right: auto; }
.final p { color: var(--quiet); margin-bottom: var(--space-lg); }
.final .hero__actions { justify-content: center; }
.final .btn-link { color: var(--bone); border-color: color-mix(in oklch, var(--bone) 40%, transparent); }
.final .btn-link:hover { color: var(--ember); border-color: var(--ember); }
.final__rr { margin-top: var(--space-md); font-family: var(--mono); font-size: var(--text-cap); letter-spacing: 0.08em; color: var(--quiet); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--bone); padding: var(--space-2xl) 0 var(--space-lg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-lg); }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; letter-spacing: -0.03em; margin-bottom: var(--space-md); }
.footer__tag { color: var(--quiet); font-size: 14px; max-width: 30ch; }
.footer__col h4 { font-family: var(--mono); font-size: var(--text-cap); letter-spacing: 0.12em; color: var(--quiet); margin-bottom: var(--space-md); font-weight: 400; }
.footer__col a { display: block; color: color-mix(in oklch, var(--bone) 80%, transparent); font-size: 14px; padding: 5px 0; transition: color var(--dur) var(--ease-out); }
.footer__col a:hover { color: var(--bone); }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid color-mix(in oklch, var(--bone) 18%, transparent); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--quiet); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__menu { display: none; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-sm);
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0;
    background: var(--bone); border: 1px solid var(--faint); border-radius: 14px;
    box-shadow: var(--shadow-float);
    padding: var(--space-md);
  }
  .nav.is-open .nav__menu .nav__spacer { display: none; }
  .nav.is-open .nav__menu > a:not(.btn) { padding: 8px 4px; font-size: 16px; }
  .nav.is-open .nav__menu .btn { justify-content: center; margin-top: var(--space-2xs); }
  .nav__burger { display: inline-flex; }
}

@media (max-width: 920px) {
  :root { --pad-x: 28px; }
  .cmp-grid, .price-grid, .drops { grid-template-columns: 1fr; }
  .feat--wide { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --pad-x: 20px; }
  .hero h1 { font-size: clamp(28px, 8vw, 46px); }
  .src-badge { display: none; }
  .finder-row { flex-wrap: wrap; }
  .finder-card { flex-direction: column; align-items: stretch; }
  .finder-card__save { justify-content: center; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .ba { aspect-ratio: 16 / 10; }
  .ref { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tender-site * { transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero__eyebrow .dot, .badge .dot { animation: none !important; }
}
