/* ==========================================================================
   Mecarbo GmbH – style.css
   Farben aus dem Logo: Mecarbo-Blau #4D69AC, Carbon-Schwarz, Porzellan-Weiß
   Schriften: Archivo (breit, Display) · IBM Plex Sans (Text) · IBM Plex Mono (Daten)
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff") format("woff");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-var.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens (helles Theme = Standard) ---------- */
:root {
  /* Marke – in beiden Themes gleich */
  --blue: #4D69AC;          /* exakt aus dem Logo */
  --blue-hover: #5B78BE;
  --blue-bright: #8EA4DC;   /* Logo-Blau, aufgehellt für dunkle Flächen */
  --blue-deep: #34498A;

  /* Carbon-Flächen – Header, Hero, Datenblatt, Footer (immer dunkel) */
  --carbon: #0B0E14;
  --carbon-2: #131823;
  --carbon-line: #262D3C;
  --on-carbon: #EEF1F8;
  --on-carbon-muted: #9AA3B8;

  /* Seitenflächen – wechseln mit dem Theme */
  --bg: #F4F6FA;
  --bg-tint: #E8ECF4;
  --surface: #FFFFFF;
  --ink: #10141F;
  --muted: #566076;
  --line: #D5DBE7;
  --accent: #4D69AC;
  --accent-soft: rgba(77, 105, 172, 0.10);
  --shadow: 0 1px 2px rgba(16, 20, 31, 0.04), 0 12px 32px -12px rgba(16, 20, 31, 0.14);

  /* Typografie */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --t-hero: clamp(2.5rem, 1.1rem + 5.2vw, 5.4rem);

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E121A;
    --bg-tint: #121824;
    --surface: #161C28;
    --ink: #E9EDF6;
    --muted: #9AA3B8;
    --line: #273042;
    --accent: #8EA4DC;
    --accent-soft: rgba(142, 164, 220, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0E121A;
  --bg-tint: #121824;
  --surface: #161C28;
  --ink: #E9EDF6;
  --muted: #9AA3B8;
  --line: #273042;
  --accent: #8EA4DC;
  --accent-soft: rgba(142, 164, 220, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.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-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Eyebrow – gesperrte Versalien wie „C A R B O N  B L A C K“ im Logo */
.eyebrow {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.eyebrow--light { color: var(--blue-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn--primary::after {
  content: "→";
  font-family: var(--f-body);
  transition: transform .25s var(--ease);
}
.btn--primary:hover::after { transform: translateX(3px); }
.btn--ghost { color: var(--on-carbon); border-color: rgba(238, 241, 248, 0.28); }
.btn--ghost:hover { border-color: var(--blue-bright); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--on-carbon);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 14, 20, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--carbon-line);
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { width: 40px; height: auto; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-24deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--blue-bright);
}
.brand-name span { color: var(--on-carbon-muted); font-weight: 500; }
.brand-sub {
  font-family: var(--f-display);
  font-size: 0.56rem;
  letter-spacing: 0.62em;
  color: var(--on-carbon);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  padding: 10px 12px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--on-carbon-muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-current { color: var(--on-carbon); }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.main-nav .nav-cta {
  margin-left: 12px;
  padding: 9px 16px;
  border: 1px solid rgba(142, 164, 220, 0.5);
  border-radius: var(--radius);
  color: var(--on-carbon);
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--blue); border-color: var(--blue); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius);
  padding: 2px;
  background: rgba(19, 24, 35, 0.6);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--on-carbon-muted);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  padding: 6px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch button.is-active { background: var(--blue); color: #fff; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--on-carbon);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-lines { top: 50%; }
.menu-lines::before, .menu-lines::after { content: ""; left: 0; right: 0; }
.menu-lines::before { transform: translateY(-6px); }
.menu-lines::after { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: rotate(45deg); background: var(--on-carbon); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); background: var(--on-carbon); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 42%, rgba(77, 105, 172, 0.22), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(52, 73, 138, 0.18), transparent 70%),
    var(--carbon);
  color: var(--on-carbon);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(48px, 9vh, 110px));
  padding-bottom: 0;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: clamp(56px, 9vh, 104px);
}
.hero-title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: var(--t-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 13ch;
  display: flex;
  flex-direction: column;
}
.hero-title > span { display: block; }
.hero-title-accent {
  color: var(--blue-bright);
  font-weight: 300;
  font-style: normal;
}
.hero-title > span:last-child {
  font-size: 0.5em;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin-top: 0.35em;
  max-width: 20ch;
  color: var(--on-carbon);
}
.hero-lead {
  max-width: 56ch;
  font-size: var(--t-md);
  color: var(--on-carbon-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Einstieg-Animation (startet sichtbar, bewegt nur leicht) */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .9s var(--ease) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .08s; }
  .hero-inner > *:nth-child(3) { animation-delay: .16s; }
  .hero-inner > *:nth-child(4) { animation-delay: .24s; }
  .hero-specs { animation: rise .9s .32s var(--ease) both; }
}
@keyframes rise {
  from { transform: translateY(18px); opacity: .25; }
  to   { transform: none; opacity: 1; }
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--carbon-line);
  margin: 0;
}
.spec {
  padding: 22px 20px 26px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec + .spec { padding-left: 20px; border-left: 1px solid var(--carbon-line); }
.spec dt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-carbon-muted);
}
.spec dd {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--t-lg);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.spec dd small {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: var(--t-xs);
  color: var(--on-carbon-muted);
}
.spec .mono-dd {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  padding-top: 6px;
}

/* ==========================================================================
   Sektionen im „Datenblatt“-Raster: links Kopf, rechts Inhalt
   ========================================================================== */
.section {
  padding-block: clamp(72px, 10vw, 136px);
  background: var(--bg);
  position: relative;
}
.section--tint { background: var(--bg-tint); }
.section--carbon {
  background:
    radial-gradient(50% 60% at 90% 10%, rgba(77, 105, 172, 0.16), transparent 70%),
    var(--carbon);
  color: var(--on-carbon);
  border-block: 1px solid var(--carbon-line);
}

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.sheet-head {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sheet-head h2 {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 650;
  font-size: var(--t-xl);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.sheet-note { color: var(--muted); max-width: 40ch; }
.section--carbon .sheet-note { color: var(--on-carbon-muted); }
.sheet-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.lead { font-size: var(--t-md); line-height: 1.6; max-width: 58ch; }

/* Scroll-Reveal: sichtbar im Ruhezustand, nur leichte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.is-pending { transform: translateY(22px); opacity: .45; }
  .js .reveal { transition: transform .9s var(--ease), opacity .9s var(--ease); }
}

/* ---------- Unternehmen ---------- */

/* Produkt-Bühne: Carbon-Black-Pulver wie auf einem Produktfoto (immer hell) */
.pellet-stage {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--carbon);
  color: var(--on-carbon);
  border: 1px solid var(--carbon-line);
  box-shadow: 0 30px 60px -30px rgba(11, 14, 20, 0.55);
}
.pellet-view {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 340px;
  cursor: pointer;
  touch-action: pan-y;
  color: #10141F;
  background:
    radial-gradient(55% 70% at 64% 48%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F3F5F9 0%, #ECEFF5 62%, #E1E5EE 100%);
  -webkit-user-select: none;
  user-select: none;
}
.pellet-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pellet-copy {
  position: absolute;
  left: clamp(20px, 3.4vw, 36px);
  top: clamp(20px, 3.4vw, 36px);
  max-width: min(46%, 420px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}
.pellet-title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 0.9rem + 2.6vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #0B0E14 0%, #1C2435 55%, #4D69AC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pellet-copy .eyebrow { color: #4D69AC; }
.pellet-sub { color: #566076; font-size: var(--t-sm); max-width: 30ch; }
.pellet-hint {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: #566076;
  padding: 5px 10px;
  border: 1px solid #D5DBE7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.pellet-hint.is-used { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .pellet-hint { display: none; }
  .pellet-view { cursor: default; }
}
.pellet-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--carbon-line);
  margin: 0;
}
.pellet-specs > div {
  padding: 16px clamp(16px, 2.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pellet-specs > div + div { border-left: 1px solid var(--carbon-line); }
.pellet-specs dt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-carbon-muted);
}
.pellet-specs dd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--t-md);
  font-variant-numeric: tabular-nums;
}
.pellet-specs small {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: var(--t-xs);
  color: var(--blue-bright);
}

.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.co-text { display: flex; flex-direction: column; gap: 24px; }
.tick-list { display: flex; flex-direction: column; gap: 12px; }
.tick-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 14px; height: 1.5px;
  background: var(--accent);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

.register {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 24px;
}
.register > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 14px;
}
.register > div + div { border-top: 1px dashed var(--line); }
.register dt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.register dd { font-weight: 500; }

/* ---------- Produkte / Sortenwähler ---------- */
.grade-picker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.grade-chips {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.chip {
  flex: 1 0 auto;
  min-width: 72px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 16px 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chip:last-child { border-right: 0; }
.chip:hover { color: var(--ink); background: var(--accent-soft); }
.chip.is-active { color: var(--accent); background: var(--accent-soft); }
.chip.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.grade-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px 32px;
  padding: clamp(20px, 3vw, 36px);
}
.grade-panel > * { min-width: 0; }
.grade-main { display: flex; flex-direction: column; gap: 8px; }
.grade-series {
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.grade-code {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(3.2rem, 2rem + 4vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.grade-flag {
  align-self: flex-start;
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.grade-flag[hidden] { display: none !important; }
.grade-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 18px;
}
.grade-facts dt {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.grade-facts dd { font-size: var(--t-sm); line-height: 1.5; }
.grade-facts .span-2 { grid-column: 1 / -1; }

/* Verpackungstabelle pro Sorte */
.grade-pack { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll[hidden] { display: none; }
.pack-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
.pack-table th, .pack-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pack-table tbody tr:last-child > * { border-bottom: 0; }
.pack-table thead th {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg);
}
.pack-table tbody th {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  color: var(--accent);
}
.pack-table td { font-family: var(--f-mono); font-weight: 500; }
.pack-table td small {
  display: block;
  font-weight: 400;
  font-size: var(--t-xs);
  color: var(--muted);
  margin-top: 2px;
}
.pack-empty {
  font-size: var(--t-sm);
  color: var(--muted);
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.grade-visual {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 70%);
  min-height: 220px;
}
.grade-visual svg { width: 100%; max-width: 280px; height: auto; color: var(--ink); }
.grade-visual figcaption { font-size: var(--t-xs); color: var(--muted); }
.agg-dot { stroke: var(--surface); stroke-width: 1.2; transition: r .6s var(--ease), cx .6s var(--ease), cy .6s var(--ease); }

.size-scale { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.scale-label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--muted);
}
.scale-track {
  position: relative;
  height: 34px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 5.88%);
  border-bottom: 1px solid var(--line);
}
.scale-seg {
  position: absolute;
  top: 6px; bottom: 6px;
  border-radius: 2px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.scale-seg.is-offered { color: var(--ink); }
.scale-seg.is-active { background: var(--accent); border-color: var(--accent); color: var(--surface); font-weight: 500; }
.scale-ticks { position: relative; height: 16px; }
.scale-ticks span {
  position: absolute;
  left: var(--p);
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--muted);
}
.scale-ticks span:last-child { transform: translateX(-100%); }

.apps {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 32px;
  align-items: baseline;
}
.apps-list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.apps-list li {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--t-lg);
}
.apps-more { grid-column: 2; color: var(--muted); max-width: 60ch; }

/* ---------- Lieferkette (vertikal: 1 oben → 4 unten) ---------- */
.route {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}
.route::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 30% 50%, transparent 20%, var(--surface) 90%);
  pointer-events: none;
}
.route-track {
  --node: 56px;
  --gap: clamp(28px, 4vw, 44px);
  position: relative;
}
.route-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.route-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
/* Verbindung zur nächsten Station: Schiene + nach unten fließende Strichlinie */
.route-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 5px);
  top: calc(var(--node) / 2);
  width: 10px;
  height: calc(100% + var(--gap));
  border-radius: 6px;
  background:
    repeating-linear-gradient(to bottom, var(--accent) 0 10px, transparent 10px 20px) center 0 / 2px 100% repeat-y,
    var(--line);
}
/* Leuchtpunkt, der Station für Station nach unten wandert */
.route-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: calc(var(--node) / 2 - 7px);
  top: calc(var(--node) / 2 - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px 2px rgba(77, 105, 172, 0.6);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .route-step:not(:last-child)::before { animation: flow-down 1.4s linear infinite; }
  .route-step:not(:last-child)::after { animation: hop 6s linear infinite; }
  .route-step:nth-child(2)::after { animation-delay: 2s; }
  .route-step:nth-child(3)::after { animation-delay: 4s; }
}
@keyframes flow-down {
  from { background-position: center 0, 0 0; }
  to   { background-position: center 20px, 0 0; }
}
@keyframes hop {
  0%   { top: calc(var(--node) / 2 - 7px); opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  33%  { top: calc(100% + var(--gap) + var(--node) / 2 - 7px); opacity: 0; }
  100% { top: calc(100% + var(--gap) + var(--node) / 2 - 7px); opacity: 0; }
}

.route-node {
  position: relative;
  z-index: 3;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 0 0 6px var(--surface);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.route-step:hover .route-node { background: var(--accent-soft); }
.route-step--end .route-node,
.route-step--end:hover .route-node {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 12px var(--accent-soft);
}
.route-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 3px;
  min-width: 0;
}
.route-place {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.route-body h3 {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 650;
  font-size: var(--t-lg);
  line-height: 1.2;
}
.route-desc { color: var(--muted); font-size: var(--t-sm); max-width: 52ch; }

/* ---------- Logistik ---------- */
.lg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bag-card, .truck-card, .inco-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.inco-card { grid-column: 1 / -1; }
.lg-grid h3 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.2;
}

.bag-figure { display: flex; align-items: flex-end; gap: 12px; height: 132px; }
.bag {
  position: relative;
  width: 86px;
  height: 118px;
  border-radius: 10px 10px 6px 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, var(--blue-hover), var(--blue-deep));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bag::before, .bag::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 18px; height: 16px;
  border: 3px solid var(--blue-deep);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.bag::before { left: 10px; }
.bag::after { right: 10px; }
.bag span { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; }
.bag small { font-family: var(--f-mono); font-size: var(--t-xs); opacity: .8; margin-top: 4px; }
.bag--sm { width: 80px; height: 108px; opacity: .85; }
.bag--xs { width: 74px; height: 98px; opacity: .7; }
.truck-note { font-size: var(--t-xs); color: var(--muted); }

.dash-list { display: flex; flex-direction: column; gap: 8px; }
.dash-list li { position: relative; padding-left: 20px; color: var(--muted); }
.dash-list li strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.dash-list--small { flex-direction: row; flex-wrap: wrap; gap: 8px 28px; font-size: var(--t-sm); }

.truck-bays {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 4px 14px 14px 4px;
  position: relative;
}
.truck-bays span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--accent);
  opacity: .9;
  transform-origin: bottom;
}
.truck-bays.is-loading span { animation: load .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes load { from { transform: scaleY(0); } to { transform: none; } }

.truck-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 14px 20px;
}
.truck-facts dt, .inco-name {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.truck-facts dd { font-weight: 600; }

.inco-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.inco-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 14px 6px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: var(--t-md);
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.inco-tabs button:last-child { border-right: 0; }
.inco-tabs button:hover { color: var(--ink); background: var(--accent-soft); }
.inco-tabs button.is-active { background: var(--blue); color: #fff; }
.inco-body { min-height: 88px; display: flex; flex-direction: column; gap: 6px; }
.inco-text { max-width: 70ch; }

/* ---------- Qualität & Compliance ---------- */
.q-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.reach-doc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}
.reach-doc::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  box-shadow: 0 0 0 20px var(--accent-soft) inset;
  pointer-events: none;
}
.reach-head { display: flex; flex-direction: column; gap: 6px; }
.reach-head h3 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent);
}
.reach-head p { color: var(--muted); }
.reach-stamp {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  padding: 3px 8px;
  transform: rotate(-3deg);
}
.reach-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-block: 12px;
  border-top: 1px dashed var(--line);
}
.reach-rows dt { color: var(--muted); font-size: var(--t-sm); }
.reach-rows dd { font-weight: 500; font-size: var(--t-sm); text-align: right; }

.q-side { display: flex; flex-direction: column; gap: 28px; }
.doc-list { display: flex; flex-direction: column; }
.doc-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.doc-list li:first-child { border-top: 1px solid var(--line); }
.doc-ic {
  width: 16px; height: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 2px 6px 2px 2px;
  position: relative;
}
.doc-ic::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 6px;
  height: 6px;
  border-top: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
}
.doc-list em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: #2E7D5B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.doc-list em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.doc-list li.is-pending em { color: #B7791F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc-list em { color: #6FCF9F; }
  :root:not([data-theme="light"]) .doc-list li.is-pending em { color: #E5B25D; }
}
:root[data-theme="dark"] .doc-list em { color: #6FCF9F; }
:root[data-theme="dark"] .doc-list li.is-pending em { color: #E5B25D; }

.pillars { display: flex; flex-direction: column; gap: 16px; }
.pillars > div { padding-left: 16px; border-left: 2px solid var(--accent); }
.pillars h4 { font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: var(--t-base); }
.pillars p { color: var(--muted); font-size: var(--t-sm); }

/* ---------- Qualifizierung ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: 22px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--line));
}
.steps > li {
  position: relative;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-n {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-tint);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.steps > li:first-child .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps h3 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--t-md);
  line-height: 1.25;
  margin-top: 6px;
}
.steps ul { display: flex; flex-direction: column; gap: 4px; }
.steps ul li { font-size: var(--t-sm); color: var(--muted); }

/* ---------- Warum Mecarbo ---------- */
.why { overflow: hidden; }
.why-mark {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(62vw, 720px);
  height: auto;
  transform: translateY(-50%) rotate(-12deg);
  opacity: .07;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .why-mark { animation: spin 120s linear infinite; }
}
@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(-360deg); }
}
.why .wrap { position: relative; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.why-head { display: flex; flex-direction: column; gap: 18px; }
.why-title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.why-sub { color: var(--on-carbon-muted); font-size: var(--t-md); }
.why-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--carbon-line);
}
.why-list li {
  padding: 26px 24px 30px 0;
  border-bottom: 1px solid var(--carbon-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.why-list li:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--carbon-line); }
.why-list h3 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--t-md);
  color: var(--on-carbon);
  display: flex;
  align-items: center;
  gap: 10px;
}
.why-list h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(142, 164, 220, 0.18);
  flex-shrink: 0;
}
.why-list p { color: var(--on-carbon-muted); font-size: var(--t-sm); }

/* ---------- Kontakt ---------- */
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 20px;
  align-items: start;
}
.ct-card {
  font-style: normal;
  background: var(--carbon);
  color: var(--on-carbon);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.ct-card::before {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 160px; height: 160px;
  background: url("assets/mecarbo-mark-dark.png") center / contain no-repeat;
  opacity: .14;
}
.ct-company {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: var(--t-lg);
  color: var(--blue-bright);
}
.ct-card p { color: var(--on-carbon-muted); }
.ct-md strong { color: var(--on-carbon); font-weight: 600; }
.ct-links { display: flex; flex-direction: column; gap: 8px; position: relative; }
.ct-links li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; gap: 8px; }
.ct-links span { font-size: var(--t-xs); color: var(--on-carbon-muted); text-transform: uppercase; }
.ct-links a {
  color: var(--on-carbon);
  text-decoration: none;
  border-bottom: 1px solid var(--carbon-line);
  transition: border-color .2s var(--ease), color .2s var(--ease);
  overflow-wrap: break-word;
  white-space: nowrap;
  justify-self: start;
}
.ct-links a:hover { color: var(--blue-bright); border-color: var(--blue-bright); }

.ct-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.is-invalid input { border-color: #C2413B; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-sm); color: var(--muted); max-width: 44ch; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.check.is-invalid span { color: #C2413B; }
.form-status { font-size: var(--t-sm); min-height: 1.4em; }
.form-status.is-error { color: #C2413B; }
.form-status.is-ok { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--carbon);
  color: var(--on-carbon-muted);
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { max-width: 34ch; font-size: var(--t-sm); }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-nav a, .footer-legal button {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--on-carbon);
  text-decoration: none;
  font-size: var(--t-sm);
  cursor: pointer;
}
.footer-nav a:hover, .footer-legal button:hover { color: var(--blue-bright); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--carbon-line);
  font-size: var(--t-xs);
}

/* ==========================================================================
   Modal (Impressum, Datenschutz, AGB)
   ========================================================================== */
.modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 64px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.modal::backdrop { background: rgba(11, 14, 20, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-inner { padding: clamp(24px, 4vw, 40px); position: relative; border-top: 3px solid var(--blue); }
.modal h2 {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 650;
  font-size: var(--t-lg);
  margin-bottom: 18px;
  padding-right: 40px;
}
.modal-body { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: var(--t-sm); }
.modal-body h3 { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-top: 6px; }
.modal-body a { color: var(--accent); }
.modal-body .notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-close:hover { color: var(--ink); border-color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav a { padding-inline: 8px; }
  .main-nav a::after { left: 8px; right: 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
  .ct-company { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(11, 14, 20, 0.97);
    border-bottom: 1px solid var(--carbon-line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--carbon-line); font-size: var(--t-md); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin: 16px 0 0; text-align: center; background: var(--blue); border-color: var(--blue); }
  .header-tools { margin-left: auto; }

  .sheet { grid-template-columns: 1fr; gap: 32px; }
  .sheet-head { position: static; }
  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec:nth-child(n + 3) { border-top: 1px solid var(--carbon-line); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .co-grid, .grade-panel, .lg-grid, .q-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .grade-visual { min-height: 180px; }
  .why-list { grid-template-columns: 1fr; }
  .why-list li, .why-list li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .apps { grid-template-columns: 1fr; }
  .apps-more { grid-column: 1; }

  /* Pellet-Bühne hochkant */
  .pellet-view { aspect-ratio: 4 / 5; min-height: 0; }
  .pellet-copy { max-width: none; right: 20px; }
  .pellet-specs { grid-template-columns: 1fr; }
  .pellet-specs > div + div { border-left: 0; border-top: 1px solid var(--carbon-line); }
  .pellet-specs > div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
  .pellet-specs dd { align-items: flex-end; text-align: right; }

  /* Route kompakter */
  .route-track { --node: 44px; }
  .route-step { gap: 16px; }
  .route-node { font-size: 1.1rem; }
}

@media (max-width: 340px) {
  .hero-specs { grid-template-columns: 1fr; }
  .spec, .spec + .spec { padding-left: 0; border-left: 0; }
  .spec + .spec { border-top: 1px solid var(--carbon-line); }
}

@media (max-width: 520px) {
  .spec { padding-block: 16px 18px; }
  .spec dd { font-size: var(--t-md); }
  .scale-seg { font-size: 0; }
  .grade-facts, .field-row, .truck-facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .inco-tabs button { font-size: var(--t-sm); padding-inline: 2px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 0.95rem; }
  .brand-mark { width: 34px; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .bag { width: 84px; height: 108px; }
  .bag--sm { width: 78px; height: 100px; }
  .bag--xs { width: 72px; height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
