/* =========================================================
   PRINTARIS — Extrusion
   FDM-Schichten als Designmotiv, Werkstatt-Schwarz, Amber
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #f8f4ee;
  --bg-alt: #f0ebe2;
  --bg-warm: #ede6da;
  --surface: #ffffff;
  --ink: #1a1410;
  --ink-soft: #2e2720;
  --ink-inv: #f8f4ee;
  --muted: #7a7068;
  --muted-2: #a09890;
  --border: rgba(26, 20, 16, 0.12);
  --border-soft: rgba(26, 20, 16, 0.07);
  --accent: #d49000;
  --accent-soft: rgba(212, 144, 0, 0.10);
  --accent-deep: #a87000;

  --header-bg: rgba(248, 244, 238, 0.88);
  --chip-bg: rgba(255, 255, 255, 0.90);
  --chip-ink: #2e2720;

  --stage-1: rgba(212, 144, 0, 0.10);
  --stage-2: rgba(180, 120, 0, 0.06);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0c;
  --bg-alt: #141414;
  --bg-warm: #111008;
  --surface: #1c1c1c;
  --ink: #f0ede6;
  --ink-soft: #c8c4bc;
  --ink-inv: #0c0c0c;
  --muted: #7a7672;
  --muted-2: #524e4a;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.04);
  --accent: #ffb300;
  --accent-soft: rgba(255, 179, 0, 0.10);
  --accent-deep: #cc8f00;

  --header-bg: rgba(12, 12, 12, 0.88);
  --chip-bg: rgba(28, 28, 28, 0.92);
  --chip-ink: #f0ede6;

  --stage-1: rgba(255, 179, 0, 0.08);
  --stage-2: rgba(200, 140, 0, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 11px,
    rgba(255, 179, 0, 0.028) 11px,
    rgba(255, 179, 0, 0.028) 12px
  );
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Layer lines visible only in dark mode */
[data-theme="light"] body {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 11px,
    rgba(26, 20, 16, 0.04) 11px,
    rgba(26, 20, 16, 0.04) 12px
  );
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

/* ===== Layout ============================================ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border);
}
.section--warm { background: var(--bg-warm); }

/* ===== Header ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  position: relative;
}
.wm-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* ===== Wordmark Print Animation ========================= */
.wm-label {
  position: relative;
  display: inline-block;
  line-height: inherit;
}
/* Characters are ALWAYS visible by default — animation hides/shows via JS */
.wm-char { display: inline-block; }

/* HTML nozzle-dot span — unused, SVG circle used instead */
.wm-nozzle-dot { display: none; }
.nav {
  display: none;
  align-items: center;
  gap: 6px;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
}
.nav a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.nav .nav-cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: var(--ink);
  color: var(--ink-inv);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.mobile-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-inv);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.mobile-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Theme Toggle ====================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  margin-right: 4px;
  transition: background 200ms ease, border-color 200ms ease,
    color 200ms ease, transform 200ms ease;
}
.theme-toggle:hover {
  background: var(--bg-alt);
  transform: translateY(-1px);
}
.theme-toggle:active { transform: translateY(0); }
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .ico-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

@media (min-width: 880px) {
  .nav { display: inline-flex; }
  .mobile-row { display: none; }
}
@media (max-width: 879px) {
  .nav .theme-toggle { display: none; }
}

/* ===== Buttons ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 220ms ease, color 220ms ease,
    border-color 220ms ease, transform 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-fill {
  background: var(--ink);
  color: var(--ink-inv);
}
.btn-fill:hover {
  background: var(--accent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--ink-inv);
}
.btn-light {
  background: #ffffff;
  color: #1d1d1f;
}
.btn-light:hover {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 6px;
}
.btn-ghost:hover { color: var(--accent); }

/* ===== Eyebrow / labels =================================== */
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: block;
  height: 1px;
  width: 28px;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}
/* Section-head eyebrows are centered — extend both sides */
.section-head .eyebrow {
  justify-content: center;
}

/* ===== Hero ============================================== */
.hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }

/* Printhead scan — animierte Druckkopf-Linie */
.printhead {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 30%,
    var(--accent) 70%,
    transparent 100%
  );
  box-shadow: 0 0 12px 2px var(--accent);
  animation: printheadScan 2.8s cubic-bezier(0.4, 0, 0.6, 1) 0.3s forwards;
  opacity: 0;
}
@keyframes printheadScan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 0.85; }
  90%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .printhead { display: none; }
}
.hero-h {
  margin: 14px auto 0;
  max-width: 18ch;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-h .accent { color: var(--accent); }
.hero-sub {
  margin: 22px auto 0;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}
.hero-cta {
  margin-top: 36px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.hero-chips {
  margin: clamp(36px, 4vw, 48px) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .chip {
  box-shadow: none;
}
.chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ===== Feature row (alternating image / text) ============ */
.feature {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 880px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }
  .feature.is-rev .feature-copy { order: 2; }
  .feature.is-rev .feature-visual { order: 1; }
}
.feature-copy { max-width: 56ch; }
.feature-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.feature-copy h2 .accent { color: var(--accent); }
.feature-copy p {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.feature-copy .btn { margin-top: 28px; }

/* ===== Stat Tile (Präzision — abstract precision visual) ===== */
.stat-tile {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(32px, 4.5vw, 56px) clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 44px);
  overflow: hidden;
  min-height: 380px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.stat-rings {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.32;
}
[data-theme="dark"] .stat-rings { opacity: 0.45; }
.stat-rings circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 2 6;
}
.stat-rings line {
  stroke: currentColor;
  stroke-width: 1;
}
.stat-main { position: relative; z-index: 1; }
.stat-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-big {
  margin: 8px 0 10px;
  font-size: clamp(72px, 12vw, 132px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}
.stat-big .stat-pm {
  font-size: 0.5em;
  font-weight: 700;
  margin: 0.16em 0.04em 0 0;
  color: var(--accent);
  letter-spacing: 0;
}
.stat-big .stat-unit {
  font-size: 0.3em;
  font-weight: 600;
  margin: 0.6em 0 0 0.18em;
  color: var(--muted);
  letter-spacing: 0;
}
.stat-note {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28ch;
}
.stat-grid {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(20px, 2.5vw, 28px) 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
}
.stat-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.stat-value {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
@media (max-width: 559px) {
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stat-rings { width: 240px; height: 240px; top: -40px; right: -40px; }
}

/* ===== Materials (filament dots) ========================= */
.materials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}
@media (min-width: 720px) {
  .materials { grid-template-columns: repeat(4, 1fr); }
}
.mat-card {
  text-align: center;
  padding: clamp(20px, 3vw, 32px) 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1),
    box-shadow 240ms ease, border-color 220ms ease;
}
.mat-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--accent);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.18);
}
[data-theme="dark"] .mat-card:hover {
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6), 0 0 20px -8px rgba(255, 179, 0, 0.12);
  border-bottom-color: var(--accent);
}
.mat-dot {
  width: clamp(70px, 9vw, 96px);
  height: clamp(70px, 9vw, 96px);
  border-radius: 999px;
  margin: 0 auto 18px;
  background: var(--mat-color, #ff5a1f);
  box-shadow:
    inset -6px -10px 24px rgba(0, 0, 0, 0.22),
    inset 6px 8px 20px rgba(255, 255, 255, 0.22),
    0 8px 24px -8px rgba(0, 0, 0, 0.18);
}
.mat-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.mat-card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ===== Service cards ===================================== */
.services {
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}
.svc-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1),
    box-shadow 240ms ease, border-color 220ms ease;
  min-height: 320px;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--accent);
  box-shadow: 0 20px 48px -20px rgba(0, 0, 0, 0.22);
}
[data-theme="dark"] .svc-card:hover {
  box-shadow: 0 20px 48px -20px rgba(0, 0, 0, 0.7), 0 0 24px -8px rgba(255, 179, 0, 0.12);
  border-left-color: var(--accent);
}
.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.svc-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.svc-card .svc-foot {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.svc-card:hover .svc-foot {
  color: var(--accent);
}

/* ===== Workflow row ====================================== */
.workflow {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .workflow { grid-template-columns: repeat(4, 1fr); }
}
.wf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r-md);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 220ms ease, border-color 220ms ease;
}
.wf-card:hover {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
[data-theme="dark"] .wf-card:hover {
  background: rgba(255, 179, 0, 0.05);
}
.wf-step-no {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-inv);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wf-card:hover .wf-step-no {
  background: var(--accent);
  color: #fff;
}
.wf-card h3 {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wf-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ===== Section heading (centered, calm) ================== */
.section-head {
  text-align: center;
  margin: 0 auto clamp(40px, 5vw, 72px);
  max-width: 60ch;
}
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.section-head h2 .accent { color: var(--accent); }
.section-head p {
  margin: 18px auto 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

/* ===== Machine showcase (big alternating cards) ========== */
.machine-card {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 56px);
  margin-bottom: 24px;
}
@media (min-width: 880px) {
  .machine-card {
    grid-template-columns: 1.1fr 1fr;
  }
  .machine-card.is-rev .mc-copy { order: 2; }
  .machine-card.is-rev .mc-visual { order: 1; }
}
.mc-visual {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(255, 179, 0, 0.14) 0%, transparent 60%),
    #f5f0e8;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255, 179, 0, 0.15);
}
.machine-card.is-rev .mc-visual {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(200, 140, 0, 0.10) 0%, transparent 60%),
    #f0ece4;
}
/* Keep stages light in dark mode so mix-blend-mode: multiply still works */
[data-theme="dark"] .mc-visual {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(255, 179, 0, 0.18) 0%, transparent 60%),
    #e8e0d0;
  border-color: rgba(255, 179, 0, 0.20);
}
[data-theme="dark"] .machine-card.is-rev .mc-visual {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(200, 140, 0, 0.14) 0%, transparent 60%),
    #dfd8c8;
}
.mc-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mc-copy h3 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.mc-copy p {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 50ch;
}
.mc-specs {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mc-specs > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.mc-specs span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.mc-specs strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ===== Filament Accordion ================================ */
.mc-filaments {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.mc-filaments-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 4px 0;
  transition: color 180ms ease;
}
.mc-filaments-summary::-webkit-details-marker { display: none; }
.mc-filaments-summary:hover { color: var(--accent); }

.mf-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 250ms cubic-bezier(.2,.7,.2,1);
  color: var(--accent);
}
.mc-filaments[open] .mf-chevron { transform: rotate(90deg); }

.mf-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 179, 0, 0.2);
}
[data-theme="light"] .mf-badge {
  border-color: rgba(212, 144, 0, 0.2);
}

.mc-filaments-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 24px;
}

.fil-group { display: flex; flex-direction: column; gap: 10px; }

.fil-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.fil-label--limited { color: var(--muted); }

.fil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fil-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.4;
  transition: border-color 160ms ease, color 160ms ease;
}
.fil-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.fil-chip--limited {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

/* ===== Final CTA ========================================= */
.cta {
  text-align: center;
  padding: clamp(80px, 12vw, 180px) 0;
  background:
    radial-gradient(55% 55% at 50% 50%, var(--stage-1) 0%, transparent 65%),
    var(--bg);
  border-top: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 var(--border);
}
.cta h2 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.cta h2 .accent { color: var(--accent); }
.cta p {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--muted);
}
.cta-actions {
  margin-top: 36px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.cta-fineprint {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ===== Footer =========================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 36px;
}
.footer-inner {
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    gap: 32px;
  }
}
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
}
.foot-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
}
.foot-links a:hover { color: var(--ink); }
.foot-meta {
  font-size: 13px;
  color: var(--muted-2);
  text-align: right;
}
@media (max-width: 759px) {
  .foot-meta { text-align: left; }
}

/* ===== Scroll Progress Bar ============================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 200;
  pointer-events: none;
  transition: width 80ms linear;
}

/* ===== Staggered Card Reveals =========================== */
.services  .svc-card.reveal:nth-child(2) { transition-delay: 100ms; }
.services  .svc-card.reveal:nth-child(3) { transition-delay: 200ms; }
.materials .mat-card.reveal:nth-child(2) { transition-delay: 80ms;  }
.materials .mat-card.reveal:nth-child(3) { transition-delay: 160ms; }
.materials .mat-card.reveal:nth-child(4) { transition-delay: 240ms; }
.workflow  .wf-card.reveal:nth-child(2)  { transition-delay: 80ms;  }
.workflow  .wf-card.reveal:nth-child(3)  { transition-delay: 160ms; }
.workflow  .wf-card.reveal:nth-child(4)  { transition-delay: 240ms; }

/* ===== Nav Link Underline Slide ========================= */
.nav a:not(.nav-cta) {
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--accent);
  transition: left 200ms ease, right 200ms ease;
}
.nav a:not(.nav-cta):hover::after {
  left: 14px;
  right: 14px;
}

/* ===== SVG Rings slow rotation ========================== */
.stat-rings {
  animation: ringsRotate 24s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ringsRotate {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-rings { animation: none; }
}

/* ===== Filament Dot Pulse =============================== */
.mat-dot {
  animation: matPulse 3.2s ease-in-out infinite;
}
.mat-card:nth-child(2) .mat-dot { animation-delay: 0.8s; }
.mat-card:nth-child(3) .mat-dot { animation-delay: 1.6s; }
.mat-card:nth-child(4) .mat-dot { animation-delay: 2.4s; }
@keyframes matPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06);
              box-shadow:
                inset -6px -10px 24px rgba(0,0,0,0.22),
                inset 6px 8px 20px rgba(255,255,255,0.22),
                0 12px 32px -6px rgba(0,0,0,0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .mat-dot { animation: none; }
}

/* ===== Kalkulator Ergebnis Transition =================== */
.calc-result {
  transition: background 300ms ease;
}
.calc-price {
  display: inline-block;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1),
              opacity 200ms ease;
}
.calc-result.is-updating .calc-price {
  opacity: 0;
  transform: translateY(6px);
}

/* ===== Reveal ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1),
    transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Social Proof Bar ================================= */
.proof-bar {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border);
}
.proof-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 18px clamp(16px, 3vw, 36px);
  position: relative;
}
.proof-stat + .proof-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-soft);
}
.proof-num {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--accent);
  line-height: 1;
}
.proof-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Price Calculator ================================= */
.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.calc-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-opts label { cursor: pointer; }
.calc-opts input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.calc-opts span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  gap: 2px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  user-select: none;
}
.calc-opts span small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.calc-opts input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.calc-opts label:hover span {
  border-color: var(--accent);
  color: var(--ink);
}
.calc-result {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-height: 88px;
  justify-content: center;
  transition: background 300ms ease;
}
.calc-price {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.calc-note {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Printer Comparison =============================== */
.printer-compare {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 var(--border);
}
.pc-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.pc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.pc-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.pc-table thead th:first-child { width: 38%; }
.pc-table thead th.is-highlight {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: var(--accent-soft);
}
.pc-table tbody td {
  padding: 13px 20px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.pc-table tbody td:first-child {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-2);
}
.pc-table tbody td.is-highlight {
  color: var(--ink-soft);
  font-weight: 600;
}
.pc-table tbody tr:last-child td { border-bottom: none; }
.pc-table tbody tr:hover td { background: var(--bg-alt); }
.pc-check  { color: var(--accent); font-weight: 700; }
.pc-partial { color: var(--muted); }
.pc-no     { color: var(--muted-2); }

/* ===== Floating Action Button =========================== */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7) translateY(8px);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(.2,.7,.2,1),
    box-shadow 200ms ease;
}
.fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.fab:hover {
  transform: scale(1.08) translateY(0);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 0 4px var(--accent-soft);
}
.fab:active { transform: scale(0.96) translateY(0); }
.fab svg { width: 22px; height: 22px; }
@media (max-width: 879px) {
  .fab { bottom: 20px; right: 16px; }
}

/* ===== Contact Modal ==================================== */
.cmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.cmodal[hidden] { display: none; }

.cmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 280ms ease;
}
.cmodal.is-open .cmodal-backdrop { opacity: 1; }

.cmodal-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), opacity 300ms ease;
}
.cmodal.is-open .cmodal-card {
  transform: translateY(0);
  opacity: 1;
}

.cmodal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease;
}
.cmodal-close:hover { background: var(--bg-alt); color: var(--ink); }
.cmodal-close svg { width: 16px; height: 16px; }

.cmodal-title {
  margin: 4px 0 0;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
.cmodal-sub {
  margin: 10px 0 28px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.cmodal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clink {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
  background: var(--bg-alt);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
  text-decoration: none;
  color: inherit;
}
.clink:hover {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(3px);
}
.clink-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.clink-icon svg { width: 22px; height: 22px; }
.clink-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.clink-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.clink-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.clink-arrow {
  font-size: 16px;
  color: var(--muted-2);
  transition: transform 200ms ease, color 200ms ease;
  flex-shrink: 0;
}
.clink:hover .clink-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ===== Burger / Mobile Nav ============================== */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease;
}
.burger:hover { background: var(--bg-alt); }
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
  transform-origin: center;
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  padding: 8px var(--gutter) 16px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-soft);
  transition: color 180ms ease;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .mobile-nav-cta {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  border-bottom: none;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 4px;
  text-align: left;
  width: 100%;
}
@media (min-width: 880px) {
  .burger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ===== Focus ============================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
