/* ==========================================================================
   MATE · Solutions & Industries Craft Layer (mate-solutions-impeccable.css)
   Dedicated stylesheet for the 4 Leistungsseiten & 6 Branchenseiten:
   - Unifies all 3 Hero shells (erp-pilot .sub-hero, mate-detail section.hero,
     mate-detail section.mx-intro) inside 1440×900 first screen & 1280px frame.
   - Single-window domain app-frame Hero visuals (.sol-hero-frame) strictly in
     MATE Obsidian (#0B1120) + Klein-Ultramarine (#1B2ED6).
   - Architectural Platform Combination Ledgers (.sol-platform-ledger) &
     Subgrid ERP System Comparison (.sol-erp-compare) with real vendor logos.
   - Flattens erp-pilot #auftragsfluss workspace to <= 2 box levels, removes
     hard offset shadows & >1px accent borders, enforces >= 12px UI text floor.
   - Container-queried responsive stacked tables (.sol-table-wrap) & single-row
     scrollable tablist (.map-tabs) with pseudo-element border indicator.
   ========================================================================== */

/* 1. Harmonized Plumb-Line Frame (1280px Outer / 1232px Inner Content) */
body.erp-pilot {
  --max: 1280px;
  --container: 1280px;
  --gutter: 24px;
}

body.erp-pilot .section,
body.erp-pilot .contact-section,
.erp-pilot .section,
.erp-pilot .contact-section {
  padding: 76px 24px !important;
}

body.erp-pilot .section > .container,
body.erp-pilot .contact-section > .container,
.erp-pilot .section > .container,
.erp-pilot .contact-section > .container {
  max-width: 1232px;
  padding-left: 0;
  padding-right: 0;
  padding-inline: 0;
}

/* Breadcrumb pill alignment & header z-index above main (fixes R-35 dropdown/mobile-drawer stacking) */
body:is(.erp-pilot, .mate-detail).has-subpage-cube-world > header,
body.erp-pilot > .site-header,
body.mate-detail > .site-header,
body.mate-detail > .kopf {
  position: sticky !important;
  top: 0 !important;
  z-index: 600 !important;
}

body:is(.erp-pilot, .mate-detail).has-subpage-cube-world > .ctaleiste,
body.erp-pilot > .mobile-cta {
  z-index: 110 !important;
}

body.mate-detail .krumen ol {
  margin: 0 !important;
}

body.erp-pilot > main > .container:has(> .breadcrumbs) {
  max-width: 1280px;
  padding-inline: 24px;
}

body.erp-pilot .breadcrumbs {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 5px 14px;
  border: 1px solid var(--aero-border-hi, rgba(255, 255, 255, 0.88));
  border-bottom-color: var(--aero-border-lo, rgba(70, 88, 132, 0.16));
  border-radius: 999px;
  background-color: rgba(250, 252, 255, 0.88);
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] body.erp-pilot .breadcrumbs {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(12, 20, 38, 0.86);
}

body.erp-pilot .breadcrumbs ol {
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}

/* Neutralize legacy .mx-labor overrides if cached or present */
.mx-labor .mx-intro::before,
.mx-labor .mate-process-section::before,
.mx-labor .mx-band::after {
  content: none !important;
  display: none !important;
}

/* 2. Unified First-Screen 1440×900 Hero Across All 3 Shells */
body.erp-pilot .sub-hero--erp.is-scroll-enhanced {
  min-height: 0;
}

body.mate-detail section.mx-intro,
.mate-detail section.mx-intro,
.mate-detail .mx-intro {
  border: none !important;
  border-bottom: none !important;
  padding: 28px 24px 36px;
}

body.mate-detail section.mx-band,
.mate-detail section.mx-band,
.mate-detail .mx-band {
  padding: 72px 24px !important;
}

body.mate-detail .mx-intro.mate-has-blueprint > .container,
body.erp-pilot .sub-hero .sub-hero-grid {
  width: 100%;
  max-width: 1232px !important;
  margin-inline: auto;
  padding-inline: 0;
}

/* Restore explicit 2-column CSS Grid on section.container.hero (overriding flex) */
body.mate-detail:is(.mx-shop-service, .mx-ai, .mx-cloud) section.container.hero {
  display: grid !important;
  width: 100%;
  max-width: 1280px !important;
  margin-inline: auto;
  padding-inline: 24px !important;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr) !important;
  gap: clamp(28px, 3.8vw, 52px) !important;
  align-items: center !important;
}

@media (min-width: 1081px) {
  body.mate-detail section.mx-intro,
  body.erp-pilot .sub-hero {
    min-height: calc(100svh - 122px) !important;
    padding: 18px 24px 28px !important;
    display: flex !important;
    align-items: center !important;
  }

  body.mate-detail:is(.mx-shop-service, .mx-ai, .mx-cloud) section.container.hero {
    min-height: calc(100svh - 122px) !important;
    padding-block: 18px 28px !important;
    align-content: center;
  }
}

/* Compact Hero Copy Capsule Typography & Spacing so y <= 900px is guaranteed */
body.has-subpage-cube-world .mate-hero-copy,
body.has-subpage-cube-world.erp-pilot .sub-hero-grid > div:first-child,
body.has-subpage-cube-world.mate-detail section.hero > div:first-child {
  padding: clamp(22px, 2.2vw, 28px);
  border: 1px solid var(--aero-border-hi, rgba(255, 255, 255, 0.9));
  border-bottom-color: var(--aero-border-lo, rgba(70, 88, 132, 0.18));
  box-shadow: var(--aero-card-shadow);
}

:root[data-theme="dunkel"] body.has-subpage-cube-world .mate-hero-copy,
:root[data-theme="dunkel"] body.has-subpage-cube-world.erp-pilot .sub-hero-grid > div:first-child,
:root[data-theme="dunkel"] body.has-subpage-cube-world.mate-detail section.hero > div:first-child {
  border-color: rgba(196, 208, 245, 0.20);
}

body.mate-detail .mate-hero-copy h1,
body.mate-detail:is(.mx-shop-service, .mx-ai, .mx-cloud) .hero h1,
body.erp-pilot .sub-hero--erp h1 {
  max-width: 14.5ch;
  margin-block: 0 12px;
  font-size: clamp(1.95rem, 1.3rem + 2.05vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

body.mate-detail .mate-hero-copy .lead,
body.mate-detail section.hero .lead,
body.erp-pilot .sub-hero .lead {
  max-width: 50ch;
  margin: 0;
  font-size: clamp(0.96rem, 0.9rem + 0.28vw, 1.06rem);
  line-height: 1.54;
}

body.mate-detail .mate-hero-copy .knoepfe,
body.mate-detail section.hero .knoepfe,
body.erp-pilot .sub-hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  gap: 12px 16px;
  margin-block: 18px 0 !important;
}

body.mate-detail section.hero .vertrauen,
body.erp-pilot .sub-hero .sub-hero-note {
  margin-block: 16px 0 !important;
  padding-block-start: 12px !important;
  border-block-start: 1px solid var(--aero-border-lo, rgba(70, 88, 132, 0.18));
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--muted);
}

:root[data-theme="dunkel"] body.mate-detail section.hero .vertrauen,
:root[data-theme="dunkel"] body.erp-pilot .sub-hero .sub-hero-note {
  border-block-start-color: rgba(196, 208, 245, 0.18);
}

/* Keep boxed buttons/badges/cards free of text-wrap: balance (per typography guide) */
:where(.btn, .sol-badge, .sol-erp-card, .sz-kachel, .sol-platform-row, .map-tabs button) {
  text-wrap: pretty;
}

/* 3. Single-Frame Domain App-Frame Visual (.sol-hero-frame) */
.erp-cube-hero.erp-system-diagram.platform-hero-teaser.sol-hero-frame {
  --saf-bg: #FFFFFF;
  --saf-surface: #F4F6FB;
  --saf-tint: #EAEFFF;
  --saf-line: #D7DFEE;
  --saf-line-strong: #B6C3DD;
  --saf-ink: #0B1120;
  --saf-muted: #3B475F;
  --saf-accent: #1B2ED6;
  --saf-accent-solid: #1B2ED6;
  --saf-obs-fill: #0B1120;
  padding: 0 !important;
  border: 1px solid rgba(11, 17, 32, 0.15) !important;
  border-radius: 18px !important;
  background-color: var(--saf-bg) !important;
  background-image: none !important;
  box-shadow: var(--aero-card-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: clip !important;
}

:root[data-theme="dunkel"] .erp-cube-hero.erp-system-diagram.platform-hero-teaser.sol-hero-frame {
  --saf-bg: #0D1527;
  --saf-surface: #131F38;
  --saf-tint: #1A2B52;
  --saf-line: #253556;
  --saf-line-strong: #3B507B;
  --saf-ink: #F5F7FC;
  --saf-muted: #C5CFE6;
  --saf-accent: #7D8CFF;
  --saf-accent-solid: #1B2ED6;
  --saf-obs-fill: #182544;
  border-color: rgba(196, 208, 245, 0.24) !important;
}

.sol-hero-frame .erp-cube-topline {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px !important;
  background-color: #0B1120;
  border-block-end: 1px solid rgba(196, 208, 245, 0.16);
  color: #F5F7FC;
}

.sol-hero-frame .sol-frame-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E6ECFA !important;
}

.sol-hero-frame .sol-frame-dots {
  display: inline-flex;
  gap: 5px;
  flex: none;
}

.sol-hero-frame .sol-frame-dots i {
  display: block;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 2px;
  border: 1px solid rgba(196, 208, 245, 0.42);
  background: rgba(196, 208, 245, 0.14);
}

.sol-hero-frame .sol-frame-dots i:first-child {
  border-color: #657CF2;
  background: #1B2ED6;
}

.sol-hero-frame .pui-motion-toggle {
  flex: none;
  min-block-size: 32px;
  padding: 5px 14px;
  border: 1px solid rgba(196, 208, 245, 0.36);
  border-radius: 999px;
  background-color: #1A2540;
  color: #F5F7FC !important;
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.sol-hero-frame .pui-motion-toggle:hover {
  background-color: #1B2ED6;
  border-color: #9EB0FF;
  color: #FFFFFF !important;
}

.sol-hero-frame .erp-simple-layout {
  padding: 0 !important;
  margin: 0 !important;
}

.sol-hero-frame .platform-ui-svg {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: 0 !important;
  font-family: var(--font-body, system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
}

.sol-hero-frame .saf-bg { fill: var(--saf-bg); }
.sol-hero-frame .saf-surface { fill: var(--saf-surface); }
.sol-hero-frame .saf-tint { fill: var(--saf-tint); }
.sol-hero-frame .saf-accent-box { fill: var(--saf-accent-solid); }
.sol-hero-frame .saf-obs-box { fill: var(--saf-obs-fill); }
.sol-hero-frame .saf-line { stroke: var(--saf-line); stroke-width: 1; fill: none; }
.sol-hero-frame .saf-line-strong { stroke: var(--saf-line-strong); stroke-width: 1.2; fill: none; }
.sol-hero-frame .saf-accent-stroke { stroke: var(--saf-accent); stroke-width: 1.5; fill: none; }
.sol-hero-frame .saf-ink { fill: var(--saf-ink); font-size: 0.75rem; font-weight: 600; }
.sol-hero-frame .saf-ink-lg { fill: var(--saf-ink); font-size: 0.875rem; font-weight: 700; letter-spacing: -0.01em; }
.sol-hero-frame .saf-muted { fill: var(--saf-muted); font-size: 0.75rem; font-weight: 500; }
.sol-hero-frame .saf-kicker {
  fill: var(--saf-muted);
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.sol-hero-frame .saf-accent-text { fill: var(--saf-accent); font-size: 0.75rem; font-weight: 700; }
.sol-hero-frame .saf-on-accent { fill: #FFFFFF; font-size: 0.75rem; font-weight: 650; }

@keyframes safTraceFlow {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.98; }
}

.sol-hero-frame .saf-pulse-line {
  fill: none;
  stroke: var(--saf-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 22 18;
}

@media (prefers-reduced-motion: no-preference) {
  .sol-hero-frame:not(.is-paused) .saf-pulse-line {
    animation: safTraceFlow 3.8s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sol-hero-frame .pui-motion-toggle {
    display: none;
  }
}

/* 4. Vendor Logo System (.sz-logo) Available on Both mate-detail & erp-pilot */
.sz-logo {
  display: inline-block;
  position: relative;
  flex: none;
}

.sz-logo img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.sz-logo-odoo { inline-size: 118px; }
.sz-logo-weclapp { inline-size: 124px; }
.sz-logo-shopify { inline-size: 104px; }
.sz-logo-zoho { inline-size: 104px; }
.sz-logo-google { inline-size: 104px; }
.sz-logo-microsoft { inline-size: 132px; }

.sz-logo-dunkel { display: none !important; }
:root[data-theme="dunkel"] .sz-logo-hell { display: none !important; }
:root[data-theme="dunkel"] .sz-logo-dunkel { display: block !important; }

:root[data-theme="dunkel"] .sz-logo.sz-flaeche {
  box-sizing: content-box;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #FFFFFF;
}

/* 5. Architectural Platform Combination Ledger (.sol-platform-ledger) */
.sol-platform-ledger {
  display: grid;
  margin-block-start: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(11, 17, 32, 0.14);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--aero-soft-shadow);
  overflow: clip;
}

:root[data-theme="dunkel"] .sol-platform-ledger {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(14, 23, 43, 0.92);
}

.sol-platform-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.95fr) minmax(180px, 1.05fr) minmax(0, 1.9fr) auto;
  gap: 16px 28px;
  align-items: center;
  padding: clamp(20px, 2.3vw, 26px) clamp(20px, 2.6vw, 30px);
  border-block-end: 1px solid rgba(11, 17, 32, 0.10);
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease, translate 180ms ease;
}

:root[data-theme="dunkel"] .sol-platform-row {
  border-block-end-color: rgba(196, 208, 245, 0.14);
}

.sol-platform-row:last-child {
  border-block-end: 0;
}

a.sol-platform-row:hover {
  background-color: rgba(27, 46, 214, 0.05);
}

:root[data-theme="dunkel"] a.sol-platform-row:hover {
  background-color: rgba(125, 140, 255, 0.09);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.sol-platform-row:hover {
    translate: 0 -2px;
  }
}

.sol-platform-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-inline-size: 0;
}

.sol-partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(27, 46, 214, 0.24);
  border-radius: 999px;
  background-color: #EEF1FD;
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1B2ED6;
}

:root[data-theme="dunkel"] .sol-partner-badge {
  border-color: rgba(125, 140, 255, 0.34);
  background-color: #1A274B;
  color: #B8C4FF;
}

.sol-platform-role {
  min-inline-size: 0;
}

.sol-platform-role h3 {
  margin: 0 0 4px;
  font-size: 1.06rem;
  line-height: 1.25;
}

.sol-platform-role span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.sol-platform-desc {
  margin: 0 !important;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.56;
  color: var(--muted);
}

.sol-platform-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  color: #1B2ED6;
}

:root[data-theme="dunkel"] .sol-platform-cta {
  color: #9EB0FF;
}

/* 6. Subgrid 3-ERP System Comparison on mate-erp-einfuehren.html (#systemvergleich) */
.sol-erp-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-block-start: clamp(26px, 3vw, 38px);
}

.sol-erp-card {
  grid-row: span 4;
  display: grid;
  /* Same-cascade fallback before subgrid (per css-layout guide) */
  grid-template-rows: auto auto 1fr auto;
  grid-template-rows: subgrid;
  gap: 0;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid rgba(11, 17, 32, 0.14);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--aero-soft-shadow);
  transition: border-color 180ms ease, translate 180ms ease;
}

:root[data-theme="dunkel"] .sol-erp-card {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(15, 25, 46, 0.94);
}

.sol-erp-card--primary {
  border-color: rgba(27, 46, 214, 0.42);
}

:root[data-theme="dunkel"] .sol-erp-card--primary {
  border-color: rgba(125, 140, 255, 0.48);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sol-erp-card:hover {
    translate: 0 -2px;
    border-color: #1B2ED6;
  }
}

.sol-erp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block-end: 18px;
  border-block-end: 1px solid rgba(11, 17, 32, 0.10);
}

:root[data-theme="dunkel"] .sol-erp-head {
  border-block-end-color: rgba(196, 208, 245, 0.14);
}

.sol-erp-intro {
  padding-block: 18px;
  border-block-end: 1px solid rgba(11, 17, 32, 0.10);
}

:root[data-theme="dunkel"] .sol-erp-intro {
  border-block-end-color: rgba(196, 208, 245, 0.14);
}

.sol-erp-intro h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.22;
}

.sol-erp-intro p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.54;
  color: var(--muted);
}

.sol-erp-criteria {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-block: 18px;
  align-content: start;
}

.sol-erp-criteria > div {
  display: grid;
  gap: 3px;
}

.sol-erp-criteria dt {
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost-accent, #1B2ED6);
}

:root[data-theme="dunkel"] .sol-erp-criteria dt {
  color: #9EB0FF;
}

.sol-erp-criteria dd {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.5;
  color: var(--frost-text, #0B1120);
}

:root[data-theme="dunkel"] .sol-erp-criteria dd {
  color: #F5F7FC;
}

.sol-erp-foot {
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(11, 17, 32, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

:root[data-theme="dunkel"] .sol-erp-foot {
  border-block-start-color: rgba(196, 208, 245, 0.14);
}

.sol-erp-foot a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1B2ED6;
  text-decoration: none;
}

:root[data-theme="dunkel"] .sol-erp-foot a {
  color: #9EB0FF;
}

.sol-erp-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 7. Asymmetric Bento & Progression Band Enhancements (Eliminate 3-Card Monotony) */
.sz-kachel.ganz,
.sz-kachel.voll {
  grid-column: 1 / -1 !important;
}

section.sz-migration {
  display: block;
}

.mate-detail .sz-migration > div > h2 {
  margin-block: 0 14px;
}

.sol-stage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(11, 17, 32, 0.14);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--aero-soft-shadow);
  overflow: clip;
}

:root[data-theme="dunkel"] .sol-stage-strip {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(14, 23, 43, 0.92);
}

.sol-stage-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.5vw, 30px);
  border-inline-end: 1px solid rgba(11, 17, 32, 0.10);
}

:root[data-theme="dunkel"] .sol-stage-item {
  border-inline-end-color: rgba(196, 208, 245, 0.14);
}

.sol-stage-item:last-child {
  border-inline-end: 0;
}

.sol-stage-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1B2ED6;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dunkel"] .sol-stage-step {
  color: #9EB0FF;
}

.sol-stage-item h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.24;
}

.sol-stage-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.56;
  color: var(--muted);
}

/* 8. Responsive Container-Queried Comparison Tables (.sol-table-wrap) */
.sol-table-wrap {
  container-type: inline-size;
  overflow: auto;
  max-inline-size: 100%;
  border: 1px solid rgba(11, 17, 32, 0.14);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] .sol-table-wrap {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(14, 23, 43, 0.94);
}

.sol-table-wrap .tabelle {
  margin: 0;
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.sol-table-wrap .tabelle thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background-color: #F2F5FC;
}

:root[data-theme="dunkel"] .sol-table-wrap .tabelle thead {
  background-color: #131F38;
}

.sol-table-wrap .tabelle th,
.sol-table-wrap .tabelle td {
  padding: 16px 20px;
  border-block-end: 1px solid rgba(11, 17, 32, 0.10);
  text-align: start;
  vertical-align: top;
}

:root[data-theme="dunkel"] .sol-table-wrap .tabelle th,
:root[data-theme="dunkel"] .sol-table-wrap .tabelle td {
  border-block-end-color: rgba(196, 208, 245, 0.14);
}

.sol-table-wrap .tabelle tbody tr:last-child th,
.sol-table-wrap .tabelle tbody tr:last-child td {
  border-block-end: 0;
}

.sol-table-wrap .tabelle tbody th {
  font-weight: 600;
  color: var(--frost-text, #0B1120);
  background-color: rgba(255, 255, 255, 0.96);
}

:root[data-theme="dunkel"] .sol-table-wrap .tabelle tbody th {
  color: #F5F7FC;
  background-color: rgba(14, 23, 43, 0.96);
}

@container (width < 600px) {
  .sol-table-wrap .tabelle,
  .sol-table-wrap .tabelle thead,
  .sol-table-wrap .tabelle tbody,
  .sol-table-wrap .tabelle tr,
  .sol-table-wrap .tabelle th,
  .sol-table-wrap .tabelle td {
    display: block;
  }

  .sol-table-wrap .tabelle thead {
    /* MANDATORY per responsive-table guide: hide column header from layout & SR */
    display: none;
  }

  .sol-table-wrap .tabelle tbody tr {
    padding: 16px;
    border-block-end: 1px solid rgba(11, 17, 32, 0.14);
  }

  :root[data-theme="dunkel"] .sol-table-wrap .tabelle tbody tr {
    border-block-end-color: rgba(196, 208, 245, 0.18);
  }

  .sol-table-wrap .tabelle tbody tr:last-child {
    border-block-end: 0;
  }

  .sol-table-wrap .tabelle tbody th {
    padding: 0 0 10px;
    border: 0;
    font-size: 1.02rem;
    background: transparent !important;
  }

  .sol-table-wrap .tabelle td {
    padding: 8px 0;
    border: 0;
  }

  .sol-table-wrap .tabelle {
    --label-2: "Vorher";
    --label-3: "Nachher";
  }

  .sol-table-wrap .tabelle td:nth-child(2)::before {
    content: var(--label-2) ": ";
    display: block;
    margin-block-end: 2px;
    font-family: var(--font-meta, var(--font-display));
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .sol-table-wrap .tabelle td:nth-child(3)::before {
    content: var(--label-3) ": ";
    display: block;
    margin-block-end: 2px;
    font-family: var(--font-meta, var(--font-display));
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1B2ED6;
  }

  :root[data-theme="dunkel"] .sol-table-wrap .tabelle td:nth-child(3)::before {
    color: #9EB0FF;
  }
}

/* 9. erp-pilot Craft Polish (#auftragsfluss, #vorgehen, #selbstcheck, #referenz, #kontakt) */
/* Flatten .erp-order-workspace to <= 2 box levels, kill 14px offset shadow, kill Odoo purple */
.erp-pilot .erp-order-workspace {
  border: 1px solid rgba(11, 17, 32, 0.16) !important;
  border-radius: 20px;
  background-color: #FFFFFF !important;
  box-shadow: var(--aero-card-shadow) !important;
  overflow: clip;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dunkel"] .erp-pilot .erp-order-workspace {
  border-color: rgba(196, 208, 245, 0.22) !important;
  background-color: #0E172B !important;
}

.erp-pilot .erp-order-bar,
.erp-pilot .erp-workspace-topbar {
  background-color: #0B1120 !important;
  border-block-end: 1px solid rgba(196, 208, 245, 0.16) !important;
  padding: 12px 18px !important;
}

.erp-pilot .erp-order-bar .meta,
.erp-pilot .erp-workspace-topbar .meta {
  color: #E6ECFA !important;
  font-size: 0.76rem !important;
}

.erp-pilot .erp-order-toolbar,
.erp-pilot .erp-workspace-heading {
  padding: 14px 20px !important;
  background-color: #F4F6FB !important;
  border-block-end: 1px solid rgba(11, 17, 32, 0.10) !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-order-toolbar,
:root[data-theme="dunkel"] .erp-pilot .erp-workspace-heading {
  background-color: #131F38 !important;
  border-block-end-color: rgba(196, 208, 245, 0.14) !important;
}

.erp-pilot .erp-order-badge {
  border: 1px solid rgba(27, 46, 214, 0.32) !important;
  border-radius: 999px;
  background-color: #EDF0FD !important;
  color: #1B2ED6 !important;
  padding: 5px 12px !important;
  font-size: 0.76rem !important;
  font-weight: 600;
}

:root[data-theme="dunkel"] .erp-pilot .erp-order-badge {
  border-color: rgba(125, 140, 255, 0.42) !important;
  background-color: #1A274B !important;
  color: #C7D2FE !important;
}

/* Flatten inner SVG strip so it does not read as a 3rd nested card */
.erp-pilot .erp-story-svg-strip {
  margin: 0 !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-block-end: 1px solid rgba(11, 17, 32, 0.10) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-story-svg-strip {
  border-block-end-color: rgba(196, 208, 245, 0.14) !important;
}

/* Interactive 5-step controls: single-row horizontal scroll on narrow screens, 1px borders, >=12px text */
.erp-pilot .erp-order-controls {
  border-block-end: 1px solid rgba(11, 17, 32, 0.12) !important;
  background: transparent !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-order-controls {
  border-block-end-color: rgba(196, 208, 245, 0.16) !important;
}

.erp-pilot .erp-order-controls button {
  position: relative;
  min-block-size: 54px;
  padding: 12px 14px !important;
  background: transparent !important;
  border-color: rgba(11, 17, 32, 0.10) !important;
  transition: background-color 180ms ease, color 180ms ease;
}

:root[data-theme="dunkel"] .erp-pilot .erp-order-controls button {
  border-color: rgba(196, 208, 245, 0.14) !important;
}

.erp-pilot .erp-order-controls button span {
  font-size: 0.75rem !important;
  color: var(--muted) !important;
}

.erp-pilot .erp-order-controls button strong {
  font-size: 0.88rem !important;
}

.erp-pilot .erp-order-controls button[aria-pressed="true"] {
  background-color: #EEF1FD !important;
  color: #1B2ED6 !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-order-controls button[aria-pressed="true"] {
  background-color: #1A274B !important;
  color: #C7D2FE !important;
}

.erp-pilot .erp-order-controls button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 2.5px solid currentColor;
}

/* Remove nested inner boxes inside .erp-order-sheet & .erp-order-detail; use 1px hairlines */
.erp-pilot .erp-order-sheet,
.erp-pilot .erp-order-detail {
  padding: 20px 22px !important;
  background: transparent !important;
}

.erp-pilot .erp-list-row,
.erp-pilot .erp-order-journal li,
.erp-pilot .erp-story-step,
.erp-pilot .erp-work-list li,
.erp-pilot .erp-conversation-steps li,
.erp-pilot .fit-result,
.erp-pilot .contact-form {
  border-left-width: 1px !important;
  border-top-width: 1px !important;
  box-shadow: none !important;
}

.erp-pilot .erp-list-row {
  padding: 12px 4px !important;
  border: 0 !important;
  border-block: 1px solid rgba(11, 17, 32, 0.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-list-row {
  border-block-color: rgba(196, 208, 245, 0.16) !important;
  background: transparent !important;
  background-color: transparent !important;
}

.erp-pilot .erp-order-rows tr.is-active td {
  background-color: rgba(27, 46, 214, 0.06) !important;
  color: var(--frost-text) !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-order-rows tr.is-active td {
  background-color: rgba(125, 140, 255, 0.14) !important;
}

.erp-pilot .erp-story-step {
  padding: 18px 20px !important;
  border: 1px solid rgba(11, 17, 32, 0.12) !important;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.88) !important;
  transition: border-color 180ms ease, background-color 180ms ease;
}

:root[data-theme="dunkel"] .erp-pilot .erp-story-step {
  border-color: rgba(196, 208, 245, 0.16) !important;
  background-color: rgba(15, 25, 46, 0.88) !important;
}

.erp-pilot .erp-story-step.is-active {
  border-color: #1B2ED6 !important;
  background-color: #FFFFFF !important;
  box-shadow: var(--aero-soft-shadow) !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-story-step.is-active {
  border-color: #7D8CFF !important;
  background-color: #152342 !important;
}

/* Enforce >= 12px (0.75rem) legibility floor & Generous Insets across erp-pilot & mate-detail */
.erp-pilot :is(
  .meta,
  .index,
  .erp-panel-label,
  .erp-view-label,
  .erp-list-row strong,
  .erp-list-row span,
  .erp-list-row b,
  .erp-order-table th,
  .erp-order-table td,
  .erp-order-positions th,
  .erp-order-positions td,
  .erp-order-journal span,
  .erp-chatter-author,
  .erp-order-next dt,
  .erp-order-next dd,
  .erp-order-next span,
  .map-tabs button span,
  .map-deliverable span,
  .contact-facts dt,
  .contact-direct span
),
.mate-detail :is(
  .meta,
  .sz-leiste b,
  .phasen .dauer,
  .sol-partner-badge
) {
  font-size: 0.76rem !important;
  line-height: 1.4;
}

.erp-pilot .map-visual .map-small {
  font-size: 12px !important;
  letter-spacing: 0.02em;
}

/* Fix cramped padding on bordered containers (quick-answer, map-shell, map-detail, faq-list, lists) */
.erp-pilot .quick-answer,
body.erp-pilot .quick-answer {
  margin: 48px 0 !important;
  padding: 28px 30px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] .erp-pilot .quick-answer,
:root[data-theme="dunkel"] body.erp-pilot .quick-answer {
  border-color: rgba(196, 208, 245, 0.20) !important;
  background-color: rgba(14, 23, 43, 0.94);
}

.erp-pilot .erp-work-list li,
.erp-pilot .erp-conversation-steps li {
  padding: 22px 24px !important;
}

.erp-pilot .fit-list li,
.fit-list li {
  padding: 12px 16px !important;
}

.erp-pilot .fit-list label,
.fit-list label {
  padding: 8px 4px !important;
}

.erp-pilot .erp-order-journal li {
  padding: 12px 14px !important;
}

.erp-pilot .fit-result {
  padding: 20px 24px !important;
  border-radius: 16px;
}

/* Accessible Single-Row Scrollable Tablist (.map-shell / .map-tabs) per tabs guide */
.erp-pilot .map-shell {
  padding: 28px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.94) !important;
  color: var(--frost-text, #0B1120) !important;
  box-shadow: var(--aero-soft-shadow) !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-shell {
  border-color: rgba(196, 208, 245, 0.20) !important;
  background-color: rgba(14, 23, 43, 0.94) !important;
  color: #F5F7FC !important;
}

.erp-pilot .map-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  padding-block-end: 16px;
  border-block-end: 1px solid rgba(11, 17, 32, 0.12);
}

.erp-pilot .map-tabs::-webkit-scrollbar {
  display: none;
}

:root[data-theme="dunkel"] .erp-pilot .map-tabs {
  border-block-end-color: rgba(196, 208, 245, 0.16);
}

.erp-pilot .map-tabs > li {
  flex: 0 0 auto;
  min-width: max-content;
}

.erp-pilot .map-tabs button {
  position: relative;
  width: auto;
  flex: 1 0 max-content;
  white-space: nowrap;
  scroll-snap-align: start;
  min-block-size: 56px;
  padding: 10px 18px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-radius: 12px;
  background-color: #F8FAFD !important;
  color: #0B1120 !important;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.erp-pilot .map-tabs button span {
  white-space: nowrap;
}

:root[data-theme="dunkel"] .erp-pilot .map-tabs button {
  border-color: rgba(196, 208, 245, 0.18) !important;
  background-color: #131F38 !important;
  color: #E6ECFA !important;
}

/* Selected tab styled from aria-selected with a border pseudo-element (WCAG 1.4.1 & forced-colors safe) */
.erp-pilot .map-tabs button[aria-selected="true"] {
  border-color: #1B2ED6 !important;
  background-color: #EDF0FD !important;
  color: #0B1120 !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-tabs button[aria-selected="true"] {
  border-color: #7D8CFF !important;
  background-color: #1B2950 !important;
  color: #FFFFFF !important;
}

.erp-pilot .map-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  border-block-end: 3px solid #1B2ED6;
}

:root[data-theme="dunkel"] .erp-pilot .map-tabs button[aria-selected="true"]::after {
  border-block-end-color: #7D8CFF;
}

/* Tabpanel must NOT stay a legacy 2-col grid or keep min-height: 500px; outer padding stays 0 so hidden="until-found" leaves zero empty strip */
.erp-pilot .map-panel,
.map-panel {
  display: block;
  min-height: 0 !important;
  min-block-size: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.erp-pilot .map-panel[hidden]:not([hidden="until-found"]),
.map-panel[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

.erp-pilot .map-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  padding-top: 24px;
  align-items: stretch;
}

/* Crisp Architectural Phase Diagram (.map-visual) flattened inside .map-shell (no nested box) */
.erp-pilot .map-visual,
.map-visual {
  margin: 0 !important;
  padding: 16px 28px 16px 8px !important;
  border: 0 !important;
  border-inline-end: 1px solid rgba(11, 17, 32, 0.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

:root[data-theme="dunkel"] .erp-pilot .map-visual,
:root[data-theme="dunkel"] .map-visual {
  border-inline-end-color: rgba(196, 208, 245, 0.18) !important;
  background: transparent !important;
  background-color: transparent !important;
}

.erp-pilot .map-visual svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.erp-pilot .map-visual .map-line {
  stroke: #94A3C0;
  stroke-width: 1.5;
  fill: none;
}

.erp-pilot .map-visual .map-box {
  fill: #FFFFFF;
  stroke: #B6C3DD;
  stroke-width: 1.4;
}

.erp-pilot .map-visual .map-core {
  fill: #1B2ED6;
  stroke: #1424B7;
  stroke-width: 1.4;
}

.erp-pilot .map-visual text {
  fill: #0B1120;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
}

.erp-pilot .map-visual .map-small,
.map-visual .map-small {
  fill: #3B475F;
  font-family: var(--font-meta, var(--font-display));
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.erp-pilot .map-visual text.map-core-text {
  fill: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
}

.erp-pilot .map-visual text.map-core-sub {
  fill: #DCE4FF !important;
  font-size: 12px !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-visual .map-line {
  stroke: #4D5E82;
}

:root[data-theme="dunkel"] .erp-pilot .map-visual .map-box {
  fill: #131F38;
  stroke: #3B507B;
}

:root[data-theme="dunkel"] .erp-pilot .map-visual text {
  fill: #F5F7FC;
}

:root[data-theme="dunkel"] .erp-pilot .map-visual .map-small {
  fill: #C5CFE6;
}

/* Readable Phase Copy Panel (.map-detail) flattened inside .map-shell (no nested box) */
.erp-pilot .map-detail,
.map-detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 8px 12px 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #0B1120 !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-detail {
  background: transparent !important;
  background-color: transparent !important;
  color: #F5F7FC !important;
}

.erp-pilot .map-detail h3 {
  margin: 0 0 2px !important;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem) !important;
  line-height: 1.2;
  color: #0B1120 !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-detail h3 {
  color: #FFFFFF !important;
}

.erp-pilot .map-detail p {
  margin: 0 !important;
  font-size: 0.96rem;
  line-height: 1.58;
  color: #3B475F !important;
}

.erp-pilot .map-detail p strong {
  color: #0B1120 !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-detail p {
  color: #C5CFE6 !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-detail p strong {
  color: #FFFFFF !important;
}

.erp-pilot .map-deliverable {
  margin: 4px 0 0 !important;
  padding: 16px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(11, 17, 32, 0.14) !important;
  background: transparent !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-deliverable {
  border-top-color: rgba(196, 208, 245, 0.20) !important;
}

.erp-pilot .map-deliverable span {
  display: block;
  font-size: 0.94rem !important;
  line-height: 1.55;
  color: #0B1120 !important;
}

:root[data-theme="dunkel"] .erp-pilot .map-deliverable span {
  color: #F5F7FC !important;
}

.erp-pilot .faq-list,
.faq-list {
  padding: 16px 20px !important;
}

.erp-pilot .faq-list details {
  padding-inline: 16px;
}

/* I-CLIP Editorial Case Card (#referenz on mate-erp-einfuehren.html & online-handel) */
.sol-case-card {
  display: grid;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgba(11, 17, 32, 0.14);
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] .sol-case-card {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(14, 23, 43, 0.94);
}

.sol-case-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-block-end: 1px solid rgba(11, 17, 32, 0.12);
}

.sol-case-columns:has(> .sol-case-quote) {
  gap: 24px;
  border-block-end: 0;
}

:root[data-theme="dunkel"] .sol-case-columns {
  border-block-end-color: rgba(196, 208, 245, 0.16);
}

.sol-case-col {
  padding: 6px 24px 24px 0;
  border: 0;
  border-inline-end: 1px solid rgba(11, 17, 32, 0.12);
  border-radius: 0;
  background: transparent;
}

:root[data-theme="dunkel"] .sol-case-col {
  border-inline-end-color: rgba(196, 208, 245, 0.16);
  background: transparent;
}

.sol-case-col--after {
  padding: 6px 0 24px 24px;
  border-inline-end: 0;
  background: transparent;
}

:root[data-theme="dunkel"] .sol-case-col--after {
  border-inline-end: 0;
  background: transparent;
}

.sol-case-col h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.sol-case-col ul {
  margin: 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 8px;
}

.sol-case-quote {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(11, 17, 32, 0.12);
  background-color: rgba(244, 246, 251, 0.72);
  border-radius: 14px;
}

:root[data-theme="dunkel"] .sol-case-quote {
  border-color: rgba(196, 208, 245, 0.18);
  background-color: rgba(19, 31, 56, 0.72);
}

.sol-case-quote p {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.56;
}

.sol-case-quote footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* 10. Contrast, Service Studio & Inset Fixes Across mate-detail */
body.mate-detail .mx-service > .container {
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(24px, 3vw, 36px) !important;
  align-items: stretch !important;
}

body.mate-detail .mx-service .sol-service-intro-right {
  display: grid;
  gap: 12px;
  justify-items: start;
}

body.mate-detail .mx-reference .sol-ref-head {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.mate-detail .mx-scene.aero-svg-studio a {
  color: #1B2ED6;
}

:root[data-theme="dunkel"] .mate-detail .mx-scene.aero-svg-studio a {
  color: #9EB0FF;
}

@media (hover: hover) {
  .mate-detail .mx-scene.aero-svg-studio summary:hover {
    color: #1B2ED6;
  }

  :root[data-theme="dunkel"] .mate-detail .mx-scene.aero-svg-studio summary:hover {
    color: #9EB0FF;
  }
}

.mate-detail .phasen li {
  padding: 24px 20px !important;
}

.mate-detail .check label {
  padding: 18px 16px !important;
}

.mate-detail .hinweis {
  padding: 12px 18px !important;
  border-left: 1px solid rgba(11, 17, 32, 0.24) !important;
  border-radius: 0 12px 12px 0;
  background-color: rgba(244, 246, 251, 0.65);
}

:root[data-theme="dunkel"] .mate-detail .hinweis {
  border-left-color: rgba(196, 208, 245, 0.28) !important;
  background-color: rgba(19, 31, 56, 0.65);
}

/* High-contrast .mx-band closing CTA aligned to exact 1232px plumb-line */
body.mate-detail .section.dunkel.mx-band {
  inline-size: min(1232px, calc(100% - 48px));
  max-inline-size: 1232px;
  margin-inline: auto !important;
  margin-block-end: clamp(48px, 6vw, 76px);
  border-radius: 24px;
  border: 1px solid rgba(196, 208, 245, 0.20) !important;
  background-color: #0B1120 !important;
  background-image: linear-gradient(160deg, #0E172B 0%, #0B1120 100%) !important;
  color: #F5F7FC !important;
  padding: 48px 40px !important;
}

body.mate-detail .section.dunkel.mx-band > .container.sz-cta-raster {
  max-inline-size: none;
  padding-inline: 0;
}

body.mate-detail .section.dunkel.mx-band h2,
body.mate-detail .section.dunkel.mx-band .lead {
  color: #F5F7FC !important;
}

body.mate-detail .section.dunkel.mx-band .lead {
  opacity: 0.9;
}

body.mate-detail .mx-band .sz-cta-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: center;
}

body.mate-detail .mx-band .sz-cta-raster .knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 14px 20px;
  margin-block-start: 24px;
}

body.mate-detail .mx-band .sz-cta-raster .btn:not(.ghost) {
  background-color: #1B2ED6 !important;
  background-image: linear-gradient(135deg, #2B40DF 0%, #1B2ED6 60%, #1424B7 100%) !important;
  border-color: rgba(199, 210, 254, 0.65) !important;
  color: #FFFFFF !important;
}

body.mate-detail .mx-band .sz-cta-raster .btn:not(.ghost):hover {
  background-color: #243AE0 !important;
  color: #FFFFFF !important;
}

body.mate-detail .mx-band .sz-cta-raster a.link {
  color: #DCE4FF !important;
}

body.mate-detail .mx-band .sz-pixel {
  justify-self: end;
  color: #DCE4FF;
}

body.mate-detail .mx-band .sz-pixel .sz-akzent {
  fill: #5A70F0 !important;
}

/* 11. Responsive Breakpoints (1024 / 768 / 390 Zero Horizontal Overflow) */
@media (max-width: 1080px) {
  .sol-platform-row {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1.6fr);
    gap: 12px 20px;
  }

  .sol-platform-desc {
    grid-column: 1 / -1;
  }

  .sol-platform-cta {
    grid-column: 1 / -1;
  }

  .sol-erp-compare,
  .sol-stage-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .sol-erp-card {
    grid-row: auto;
    grid-template-rows: auto;
  }

  .sol-stage-item {
    border-inline-end: 0;
    border-block-end: 1px solid rgba(11, 17, 32, 0.10);
  }

  :root[data-theme="dunkel"] .sol-stage-item {
    border-block-end-color: rgba(196, 208, 245, 0.14);
  }

  .sol-stage-item:last-child {
    border-block-end: 0;
  }

  .erp-pilot .map-panel-inner,
  .sol-case-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .erp-pilot .map-visual,
  .map-visual {
    padding: 12px 4px 20px !important;
    border-inline-end: 0 !important;
    border-block-end: 1px solid rgba(11, 17, 32, 0.12) !important;
  }

  :root[data-theme="dunkel"] .erp-pilot .map-visual,
  :root[data-theme="dunkel"] .map-visual {
    border-block-end-color: rgba(196, 208, 245, 0.18) !important;
  }

  .erp-pilot .map-detail,
  .map-detail {
    padding: 20px 4px 8px !important;
  }
}

@media (max-width: 768px) {
  body.mate-detail .section,
  body.erp-pilot .section,
  body.erp-pilot .contact-section {
    padding-block: 56px;
    padding-inline: 18px;
  }

  body.mate-detail:is(.mx-shop-service, .mx-ai, .mx-cloud) section.container.hero {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-inline: 18px !important;
  }

  .sol-platform-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.mate-detail .mx-band .sz-cta-raster {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body.mate-detail .mx-band .sz-pixel {
    justify-self: start;
    inline-size: 96px;
  }

  .erp-pilot .erp-order-controls {
    display: flex !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .erp-pilot .erp-order-controls::-webkit-scrollbar {
    display: none;
  }

  .erp-pilot .erp-order-controls button {
    flex: 0 0 auto;
    min-inline-size: 132px;
  }
}

/* 12. Impeccable Craft Floor Hygiene: Contrast, Neutral Shadows, Grid Removal & Insets */
body.mate-detail,
body.erp-pilot {
  --frost-shadow: 0 20px 52px rgba(11, 17, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --frost-shadow-small: 0 10px 26px rgba(11, 17, 32, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.80);
  --aero-soft-shadow: 0 14px 36px rgba(11, 17, 32, 0.07);
  --aero-card-shadow: 0 20px 48px rgba(11, 17, 32, 0.09);
}

:root[data-theme="dunkel"] body.mate-detail,
:root[data-theme="dunkel"] body.erp-pilot {
  --frost-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --frost-shadow-small: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --aero-soft-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  --aero-card-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

/* Fix #8c9eff hover low-contrast in light mode on all mate-detail pages */
body.mate-detail {
  --mx-blue: #1B2ED6 !important;
}

:root[data-theme="dunkel"] body.mate-detail {
  --mx-blue: #A5B4FC !important;
}

/* Neutralize chromatic #2f406e header/panel shadow */
body.mate-detail .kopf,
body.erp-pilot .site-header,
body.mate-detail .kopf .panel,
body.erp-pilot .site-header .panel {
  box-shadow: 0 10px 28px rgba(11, 17, 32, 0.06) !important;
}

:root[data-theme="dunkel"] body.mate-detail .kopf,
:root[data-theme="dunkel"] body.erp-pilot .site-header,
:root[data-theme="dunkel"] body.mate-detail .kopf .panel,
:root[data-theme="dunkel"] body.erp-pilot .site-header .panel {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44) !important;
}

/* Eliminate decorative two-axis grid-line backgrounds (codex-grid-background) */
body.mate-detail .aero-world-grid,
body.erp-pilot .aero-world-grid,
body.mate-detail .erp-system-diagram,
body.erp-pilot .erp-system-diagram,
body.mate-detail .mx-intro > .container > .mate-architecture,
body.mate-detail section.mx-intro,
body.erp-pilot .sub-hero,
body.erp-pilot .process-theatre::before {
  background-image: none !important;
}

/* Pre-JS static .erp-cube-hero.erp-system-diagram hygiene: WCAG AA contrast, >=12px text, flat single frame */
body.erp-pilot .erp-cube-hero.erp-system-diagram,
body.mate-detail .erp-cube-hero.erp-system-diagram {
  min-block-size: 0 !important;
  border: 1px solid rgba(11, 17, 32, 0.15) !important;
  border-radius: 18px !important;
  background-color: #FFFFFF !important;
  color: #0B1120 !important;
  box-shadow: var(--aero-card-shadow) !important;
}

:root[data-theme="dunkel"] body.erp-pilot .erp-cube-hero.erp-system-diagram,
:root[data-theme="dunkel"] body.mate-detail .erp-cube-hero.erp-system-diagram {
  border-color: rgba(196, 208, 245, 0.24) !important;
  background-color: #0D1527 !important;
  color: #F5F7FC !important;
}

body.erp-pilot .erp-cube-hero:not(.sol-hero-frame) .erp-cube-topline,
body.mate-detail .erp-cube-hero:not(.sol-hero-frame) .erp-cube-topline {
  position: relative !important;
  inset: auto !important;
  padding: 12px 18px !important;
  background-color: #0B1120 !important;
  color: #F5F7FC !important;
  border-block-end: 1px solid rgba(196, 208, 245, 0.16);
}

body.erp-pilot .erp-cube-hero .erp-cube-topline .meta,
body.mate-detail .erp-cube-hero .erp-cube-topline .meta {
  font-size: 0.75rem !important;
  color: #E6ECFA !important;
}

body.erp-pilot .erp-simple-layout,
body.mate-detail .erp-simple-layout {
  padding: 16px 18px !important;
}

body.erp-pilot .erp-simple-module,
body.mate-detail .erp-simple-module,
body.erp-pilot .erp-simple-base,
body.mate-detail .erp-simple-base {
  border: 0 !important;
  border-block-end: 1px solid rgba(11, 17, 32, 0.10) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 10px 4px !important;
  color: inherit !important;
}

:root[data-theme="dunkel"] body.erp-pilot .erp-simple-module,
:root[data-theme="dunkel"] body.mate-detail .erp-simple-module,
:root[data-theme="dunkel"] body.erp-pilot .erp-simple-base,
:root[data-theme="dunkel"] body.mate-detail .erp-simple-base {
  border-block-end-color: rgba(196, 208, 245, 0.14) !important;
}

body.erp-pilot .erp-simple-module span,
body.mate-detail .erp-simple-module span,
body.erp-pilot .erp-simple-module small,
body.mate-detail .erp-simple-module small,
body.erp-pilot .erp-simple-base span,
body.mate-detail .erp-simple-base span,
body.erp-pilot .erp-simple-core .meta,
body.mate-detail .erp-simple-core .meta {
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

body.erp-pilot .erp-simple-module span,
body.mate-detail .erp-simple-module span,
body.erp-pilot .erp-simple-module small,
body.mate-detail .erp-simple-module small,
body.erp-pilot .erp-simple-base span,
body.mate-detail .erp-simple-base span {
  color: #3B475F !important;
}

:root[data-theme="dunkel"] body.erp-pilot .erp-simple-module span,
:root[data-theme="dunkel"] body.mate-detail .erp-simple-module span,
:root[data-theme="dunkel"] body.erp-pilot .erp-simple-module small,
:root[data-theme="dunkel"] body.mate-detail .erp-simple-module small,
:root[data-theme="dunkel"] body.erp-pilot .erp-simple-base span,
:root[data-theme="dunkel"] body.mate-detail .erp-simple-base span {
  color: #C5CFE6 !important;
}

body.erp-pilot .erp-simple-core,
body.mate-detail .erp-simple-core {
  padding: 16px 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #1B2ED6 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

body.erp-pilot .erp-simple-core *,
body.mate-detail .erp-simple-core * {
  color: #FFFFFF !important;
}

/* Fix map-visual & map-deliverable >= 12px text floor on erp-pilot */
body.erp-pilot .map-visual .map-small {
  font-size: 12px !important;
  letter-spacing: 0.02em;
}

body.erp-pilot .map-deliverable {
  padding: 16px 0 0 !important;
}

body.erp-pilot .map-deliverable strong {
  font-size: 0.76rem !important;
  color: #1B2ED6 !important;
}

:root[data-theme="dunkel"] body.erp-pilot .map-deliverable strong {
  color: #A5B4FC !important;
}

/* Fix container border/bg insets (eliminate cramped-padding) */
.sz-bento,
.mate-detail .sz-bento,
body.mate-detail .sz-bento {
  border: none !important;
  border-width: 0px !important;
  border-style: none !important;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
}

.sol-platform-ledger {
  padding: 12px 16px;
}

.sol-stage-strip {
  padding: 12px;
}

.sol-table-wrap {
  padding: 0;
  overflow-x: auto;
  overflow-y: clip;
}

.sol-table-wrap .tabelle,
.sol-table-wrap .tabelle thead th,
.sol-table-wrap .tabelle tbody th,
.sol-table-wrap .tabelle td {
  border-top: 0 !important;
}

.od-row,
.mate-detail .od-row,
body.mate-detail .od-row {
  padding: 14px 16px !important;
}

body.mate-detail .mx-orbit {
  padding: 16px 20px !important;
}

body.erp-pilot .faq-list {
  padding: 16px 20px !important;
}

body.erp-pilot .contact-direct,
.contact-direct {
  list-style: none !important;
  padding: 12px 14px !important;
}

body.erp-pilot .contact-direct li,
.contact-direct li {
  padding: 16px 12px !important;
}

/* Interactive affordances (Anti-Slop R-03 & R-39): explicit cursor: pointer + >= 44px mobile hit targets */
body:is(.erp-pilot, .mate-detail) :where(
  a[href],
  button:not(:disabled),
  summary,
  select,
  label:has(input),
  input[type="checkbox"],
  input[type="radio"],
  [role="tab"],
  [role="button"]
) {
  cursor: pointer;
}

body:is(.erp-pilot, .mate-detail) :where(button:disabled, input:disabled, select:disabled, textarea:disabled) {
  cursor: not-allowed;
}

body:is(.erp-pilot, .mate-detail) :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #1B2ED6 !important;
  outline-offset: 3px !important;
}

:root[data-theme="dunkel"] body:is(.erp-pilot, .mate-detail) :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible,
body:is(.erp-pilot, .mate-detail) :is(.contact-section, .dunkel, .site-footer, .fuss, .erp-cube-topline) :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #9EB0FF !important;
  outline-offset: 3px !important;
}

@media (max-width: 1180px) {
  body.erp-pilot .site-nav > ul > li,
  .erp-pilot .site-nav > ul > li {
    padding: 8px 4px !important;
  }

  body:is(.erp-pilot, .mate-detail) .nav-knopf {
    min-height: 44px !important;
    min-width: 44px !important;
  }
}

@media (max-width: 768px) {
  body.erp-pilot .section,
  body.erp-pilot .contact-section,
  .erp-pilot .section,
  .erp-pilot .contact-section {
    padding: 52px 18px !important;
  }

  body.mate-detail section.mx-band,
  .mate-detail section.mx-band,
  body.mate-detail .section.dunkel.mx-band {
    padding: 36px 24px !important;
  }

  body:is(.erp-pilot, .mate-detail) :is(
    .btn,
    .sol-hero-frame .pui-motion-toggle,
    .aero-svg-studio .ass-motion-btn,
    .aero-svg-studio .ass-step-btn,
    .aero-svg-studio .ass-scenario-btn,
    .subpage-stone-back,
    .actions a.text-link,
    .knoepfe a.link,
    .sol-service-intro-right a.link,
    .contact-direct a,
    header .brand,
    .kopf > .container > a,
    .map-tabs button,
    .erp-order-controls button,
    details > summary
  ) {
    min-height: 44px !important;
    min-block-size: 44px !important;
    display: inline-flex;
    align-items: center;
  }

  body:is(.erp-pilot, .mate-detail) details > summary {
    display: block;
    padding-block: 14px;
  }

  body:is(.erp-pilot, .mate-detail) :is(.map-tabs button, .erp-order-controls button) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  body:is(.erp-pilot, .mate-detail) :where(.knoepfe, .actions, .map-tabs, .ass-steps, .ass-scenarios) {
    gap: 10px;
  }
}

/* Ensure erp-pilot dark sections & hero-order-card never collide in light/dark themes */
:root[data-theme="dunkel"] body.erp-pilot .erp-hero-order-card {
  background-color: #131F38 !important;
  color: #F5F7FC !important;
}

/* Editorial display typography: prevent mid-word German hyphenation in headings & row titles */
body:is(.erp-pilot, .mate-detail) :is(h1, h2, h3, h4, th) {
  hyphens: none;
  -webkit-hyphens: none;
}

/* Architectural 4-phase strip on mate-detail (#ablauf ol.phasen — replaces 48px nr column) */
body.mate-detail .mx-steps .phasen {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-radius: 20px;
  background-color: #FFFFFF;
  box-shadow: var(--aero-soft-shadow);
  counter-reset: none;
}

:root[data-theme="dunkel"] body.mate-detail .mx-steps .phasen {
  border-color: rgba(196, 208, 245, 0.20) !important;
  background-color: #0E172B;
}

body.mate-detail .mx-steps .phasen li {
  display: flex !important;
  flex-direction: column;
  gap: 8px !important;
  margin: 0 !important;
  padding: 20px 22px !important;
  border: 0 !important;
  border-inline-end: 1px solid rgba(11, 17, 32, 0.10) !important;
  align-items: flex-start !important;
}

:root[data-theme="dunkel"] body.mate-detail .mx-steps .phasen li {
  border-inline-end-color: rgba(196, 208, 245, 0.14) !important;
}

body.mate-detail .mx-steps .phasen li:last-child {
  border-inline-end: 0 !important;
}

body.mate-detail .mx-steps .phasen h3 {
  margin: 0 !important;
  font-size: 1.2rem;
  line-height: 1.2;
}

body.mate-detail .mx-steps .phasen .dauer {
  grid-column: auto !important;
  margin: 0 !important;
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.76rem !important;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1B2ED6;
}

:root[data-theme="dunkel"] body.mate-detail .mx-steps .phasen .dauer {
  color: #A5B4FC;
}

body.mate-detail .mx-steps .phasen p:last-of-type {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 4px 0 0 !important;
  font-size: 0.94rem;
  line-height: 1.56;
  color: var(--muted);
}

@media (max-width: 960px) {
  body.mate-detail .mx-steps .phasen {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.mate-detail .mx-steps .phasen li:nth-child(2n) {
    border-inline-end: 0 !important;
  }

  body.mate-detail .mx-steps .phasen li:nth-child(-n + 2) {
    border-block-end: 1px solid rgba(11, 17, 32, 0.10) !important;
  }

  :root[data-theme="dunkel"] body.mate-detail .mx-steps .phasen li:nth-child(-n + 2) {
    border-block-end-color: rgba(196, 208, 245, 0.14) !important;
  }
}

@media (max-width: 600px) {
  body.mate-detail .mx-steps .phasen {
    grid-template-columns: 1fr !important;
  }

  body.mate-detail .mx-steps .phasen li {
    border-inline-end: 0 !important;
    border-block-end: 1px solid rgba(11, 17, 32, 0.10) !important;
  }

  :root[data-theme="dunkel"] body.mate-detail .mx-steps .phasen li {
    border-block-end-color: rgba(196, 208, 245, 0.14) !important;
  }

  body.mate-detail .mx-steps .phasen li:last-child {
    border-block-end: 0 !important;
  }
}

/* Strict MATE Obsidian + Klein-Ultramarine palette inside .aero-svg-studio & .erp-pilot (zero purple/green/amber) */
body.mate-detail .aero-svg-studio {
  --ass-accent: #1B2ED6 !important;
}

body.mate-detail .aero-svg-studio .ass-stage {
  padding: clamp(14px, 2vw, 22px) 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-block: 1px solid var(--ass-stroke) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.mate-detail .sz-kachel p,
body.mate-detail .sz-kachel > div > p {
  max-width: 60ch !important;
}

:root[data-theme="dunkel"] body.mate-detail .aero-svg-studio {
  --ass-accent: #657CF2 !important;
}

body.mate-detail .aero-svg-studio .ass-stream--alt,
body.mate-detail .aero-svg-studio .ass-stream--return {
  stroke: var(--ass-accent, #1B2ED6) !important;
}

body.mate-detail .aero-svg-studio .ass-node-accent--ok,
body.mate-detail .aero-svg-studio .ass-node-accent--warn,
body.mate-detail .aero-svg-studio .ass-live-dot {
  fill: var(--ass-accent, #1B2ED6) !important;
}

:root[data-theme="dunkel"] body.mate-detail .aero-svg-studio .ass-live-dot {
  fill: #93A8FF !important;
}

body.mate-detail .aero-svg-studio .ass-return-banner rect {
  stroke: color-mix(in srgb, var(--ass-accent, #1B2ED6) 36%, var(--ass-stroke, rgba(11, 17, 32, 0.16))) !important;
}

.erp-pilot .erp-chatter-avatar {
  background-color: #1B2ED6 !important;
  color: #FFFFFF !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-chatter-avatar {
  background-color: #263CE0 !important;
  color: #FFFFFF !important;
}

.erp-pilot .erp-list-row b,
.erp-pilot .erp-module-nav li.is-current,
.erp-pilot .erp-hero-order-heading span {
  color: #1B2ED6 !important;
}

.erp-pilot .erp-module-nav li.is-current {
  box-shadow: inset 0 -2px #1B2ED6 !important;
}

.erp-pilot .erp-workspace-topbar {
  border-bottom-color: rgba(196, 208, 245, 0.22) !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-list-row b,
:root[data-theme="dunkel"] .erp-pilot .erp-module-nav li.is-current,
:root[data-theme="dunkel"] .erp-pilot .erp-hero-order-heading span {
  color: #9EB0FF !important;
}

:root[data-theme="dunkel"] .erp-pilot .erp-module-nav li.is-current {
  box-shadow: inset 0 -2px #7D8CFF !important;
}

body:is(.erp-pilot, .mate-detail) :is(footer.fuss, footer.site-footer) {
  background-color: #070C17 !important;
}

/* 13. Forced Colors Mode Fallbacks */
@media (forced-colors: active) {
  .sol-hero-frame,
  .sol-platform-ledger,
  .sol-erp-card,
  .sol-stage-strip,
  .sol-table-wrap,
  .sol-case-card,
  .erp-pilot .erp-order-workspace,
  .erp-pilot .map-shell,
  .mate-detail .check,
  .mate-detail .ergebnis,
  .erp-pilot .fit-result,
  .erp-pilot .cost-grid article,
  .erp-pilot .erp-work-list li {
    border: 1px solid CanvasText !important;
    box-shadow: none !important;
  }

  .mate-detail .check input[type="checkbox"]::before {
    background-color: CanvasText !important;
  }

  .erp-pilot .map-tabs button[aria-selected="true"]::after,
  .erp-pilot .erp-order-controls button[aria-pressed="true"]::after {
    border-block-end-color: Highlight !important;
  }
}

/* ============================================================================
   14. Section Formatting Polish: Interactive .check / .ergebnis, .sz-check gap,
       .sz-bento + .hinweis spacing, .sz-kachel.grenze 2-col balance,
       .mx-reference .zitat hairline & .erp-pilot cards (Frost Aero Light/Dark)
   ============================================================================ */

:root {
  --mate-check-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
}

/* 14A. Interactive Checklist Header (.sol-check-head) + List (.check) + Result (.ergebnis) */
.mate-detail .sol-check-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(11, 17, 32, 0.22);
}

:root[data-theme="dunkel"] .mate-detail .sol-check-head {
  border-bottom-color: rgba(196, 208, 245, 0.26);
}

.mate-detail .sol-check-head strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--frost-text, #0B1120);
}

:root[data-theme="dunkel"] .mate-detail .sol-check-head strong {
  color: #F5F7FC;
}

.mate-detail .sol-check-counter {
  font-family: var(--font-meta, var(--font-display));
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #525866);
  font-variant-numeric: tabular-nums;
}

.mate-detail .sol-check-counter.aktiv {
  color: #1B2ED6;
}

:root[data-theme="dunkel"] .mate-detail .sol-check-counter {
  color: #AEB8D4;
}

:root[data-theme="dunkel"] .mate-detail .sol-check-counter.aktiv {
  color: #9EB0FF;
}

.mate-detail ul.check {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(11, 17, 32, 0.14);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--aero-soft-shadow);
  overflow: hidden;
}

:root[data-theme="dunkel"] .mate-detail ul.check {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(16, 26, 48, 0.94);
}

.mate-detail ul.check > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-bottom: 1px solid rgba(11, 17, 32, 0.10);
  transition: background-color 180ms ease;
}

:root[data-theme="dunkel"] .mate-detail ul.check > li {
  border-bottom-color: rgba(196, 208, 245, 0.14);
}

.mate-detail ul.check > li:last-child {
  border-bottom: 0;
}

.mate-detail ul.check > li:has(input:checked) {
  background-color: color-mix(in oklab, #1B2ED6 7%, #FFFFFF);
}

:root[data-theme="dunkel"] .mate-detail ul.check > li:has(input:checked) {
  background-color: color-mix(in oklab, #8194FF 14%, #101A30);
}

.mate-detail ul.check label {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-block-size: 56px;
  padding: 18px 20px !important;
  margin: 0 !important;
  cursor: pointer;
}

@media (hover: hover) {
  .mate-detail ul.check > li:hover {
    background-color: color-mix(in oklab, #1B2ED6 4%, #FFFFFF);
  }

  :root[data-theme="dunkel"] .mate-detail ul.check > li:hover {
    background-color: color-mix(in oklab, #8194FF 9%, #101A30);
  }
}

.mate-detail ul.check label p {
  margin: 0 !important;
  font-size: 0.98rem;
  line-height: 1.52;
  color: var(--frost-text, #0B1120);
  max-width: none;
}

:root[data-theme="dunkel"] .mate-detail ul.check label p {
  color: #EEF2FC;
}

.mate-detail ul.check input[type="checkbox"] {
  --checkbox-size: 1.375rem;
  --checkbox-icon-size: 0.82rem;

  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  inline-size: var(--checkbox-size);
  aspect-ratio: 1;
  margin: 2px 0 0 !important;
  border: 1.5px solid rgba(11, 17, 32, 0.52);
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

:root[data-theme="dunkel"] .mate-detail ul.check input[type="checkbox"] {
  border-color: rgba(196, 208, 245, 0.56);
  background-color: #0D1629;
  color: #0B1120;
}

.mate-detail ul.check input[type="checkbox"]::before {
  content: "";
  inline-size: var(--checkbox-icon-size);
  aspect-ratio: 1;
  background-color: currentColor;
  mask: var(--mate-check-icon) no-repeat center / contain;
  -webkit-mask: var(--mate-check-icon) no-repeat center / contain;
  scale: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .mate-detail ul.check input[type="checkbox"]::before {
    transition: scale 150ms ease;
  }
}

.mate-detail ul.check input[type="checkbox"]:checked {
  background-color: #1B2ED6;
  border-color: #1B2ED6;
  color: #FFFFFF;
}

:root[data-theme="dunkel"] .mate-detail ul.check input[type="checkbox"]:checked {
  background-color: #8194FF;
  border-color: #8194FF;
  color: #0B1120;
}

.mate-detail ul.check input[type="checkbox"]:checked::before {
  scale: 1;
}

.mate-detail .ergebnis {
  margin-top: 20px !important;
  padding: 22px 24px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-left: 3px solid rgba(11, 17, 32, 0.28) !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--aero-soft-shadow) !important;
  display: grid !important;
  gap: 16px;
  justify-items: start;
}

:root[data-theme="dunkel"] .mate-detail .ergebnis {
  border-color: rgba(196, 208, 245, 0.20) !important;
  border-left-color: rgba(196, 208, 245, 0.34) !important;
  background-color: rgba(16, 26, 48, 0.94) !important;
}

.mate-detail .ergebnis.aktiv {
  border-color: rgba(27, 46, 214, 0.42) !important;
  border-left-color: #1B2ED6 !important;
}

:root[data-theme="dunkel"] .mate-detail .ergebnis.aktiv {
  border-color: rgba(129, 148, 255, 0.48) !important;
  border-left-color: #8194FF !important;
}

.mate-detail .ergebnis p {
  margin: 0 !important;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--frost-text, #0B1120);
}

:root[data-theme="dunkel"] .mate-detail .ergebnis p {
  color: #E4EAF7;
}

.mate-detail .ergebnis b {
  font-family: var(--font-display, "MATE Grotesk", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--frost-text, #0B1120);
  margin-inline-end: 4px;
}

:root[data-theme="dunkel"] .mate-detail .ergebnis b {
  color: #FFFFFF;
}

.mate-detail .ergebnis.aktiv b {
  color: #1B2ED6;
}

:root[data-theme="dunkel"] .mate-detail .ergebnis.aktiv b {
  color: #9EB0FF;
}

.mate-detail .ergebnis .sol-check-summary {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  line-height: 1.48;
  color: var(--muted, #4A5468);
}

:root[data-theme="dunkel"] .mate-detail .ergebnis .sol-check-summary {
  color: #C4CFE6;
}

.mate-detail .ergebnis .sol-check-summary li {
  padding-inline-start: 16px;
  position: relative;
}

.mate-detail .ergebnis .sol-check-summary li::before {
  content: "→";
  position: absolute;
  inset-inline-start: 0;
  color: #1B2ED6;
}

:root[data-theme="dunkel"] .mate-detail .ergebnis .sol-check-summary li::before {
  color: #9EB0FF;
}

.mate-detail .ergebnis .btn.ghost {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(11, 17, 32, 0.34);
  background-color: transparent;
  color: #0B1120;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

:root[data-theme="dunkel"] .mate-detail .ergebnis .btn.ghost {
  border-color: rgba(196, 208, 245, 0.42);
  color: #F5F7FC;
}

.mate-detail .ergebnis.aktiv .btn.ghost,
.mate-detail .ergebnis .btn.ghost:hover {
  background-color: #1B2ED6;
  border-color: #1B2ED6;
  color: #FFFFFF;
}

:root[data-theme="dunkel"] .mate-detail .ergebnis.aktiv .btn.ghost,
:root[data-theme="dunkel"] .mate-detail .ergebnis .btn.ghost:hover {
  background-color: #8194FF;
  border-color: #8194FF;
  color: #0B1120;
}

/* 14B. Guarantee 12px vertical gap on .sz-check migration checklists */
.mate-detail .sz-check {
  display: grid !important;
  gap: 12px !important;
}

/* 14C. Clean spacing between .sz-bento and trailing .hinweis note */
.mate-detail .sz-bento + .hinweis,
.mate-detail .section > .container > .hinweis {
  margin-top: 24px !important;
  max-width: 72ch;
}

/* 14D. Straight crisp editorial hairline on .mx-reference .zitat (no curved left hooks) */
.mate-detail .mx-reference .zitat {
  border-radius: 0 !important;
  border-left: 2px solid #1B2ED6 !important;
}

:root[data-theme="dunkel"] .mate-detail .mx-reference .zitat {
  border-left-color: #8194FF !important;
}

.mate-detail .sz-fall .zitat footer b,
.mate-detail .mx-reference .zitat footer b {
  display: block;
  margin-bottom: 2px;
}

/* 14E. Balanced 2-column layout for full-width Systemgrenze cards on desktop */
@media (min-width: 901px) {
  .mate-detail .sz-bento .sz-kachel:is(.ganz, .voll).grenze {
    display: grid !important;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(28px, 3.5vw, 48px);
    row-gap: 12px;
    align-items: start;
  }

  .mate-detail .sz-bento .sz-kachel:is(.ganz, .voll).grenze > div {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .mate-detail .sz-bento .sz-kachel:is(.ganz, .voll).grenze > p {
    grid-column: 2;
    max-width: none !important;
    margin: 0;
  }
}

/* 14F. ERP Pilot (.erp-pilot) .fit-result full card border + .cost-grid / .erp-work-list polish */
.erp-pilot .fit-result {
  margin-top: 24px !important;
  padding: 22px 24px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-left: 3px solid rgba(11, 17, 32, 0.28) !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] .erp-pilot .fit-result {
  border-color: rgba(196, 208, 245, 0.20) !important;
  border-left-color: rgba(196, 208, 245, 0.34) !important;
  background-color: rgba(16, 26, 48, 0.94) !important;
}

.erp-pilot .fit-result.is-active {
  border-color: rgba(27, 46, 214, 0.42) !important;
  border-left-color: #1B2ED6 !important;
}

:root[data-theme="dunkel"] .erp-pilot .fit-result.is-active {
  border-color: rgba(129, 148, 255, 0.48) !important;
  border-left-color: #8194FF !important;
}

.erp-pilot .erp-work-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.erp-pilot .erp-work-list li {
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-radius: 16px !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] .erp-pilot .erp-work-list li {
  border-color: rgba(196, 208, 245, 0.18) !important;
  background-color: rgba(16, 26, 48, 0.92) !important;
}

.erp-pilot .cost-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 16px !important;
  border: 0 !important;
  padding: 0 !important;
}

.erp-pilot .cost-grid article {
  grid-column: span 2;
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  border-radius: 16px !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--aero-soft-shadow);
}

.erp-pilot .cost-grid article:nth-child(4),
.erp-pilot .cost-grid article:nth-child(5) {
  grid-column: span 3;
}

:root[data-theme="dunkel"] .erp-pilot .cost-grid article {
  border-color: rgba(196, 208, 245, 0.18) !important;
  background-color: rgba(16, 26, 48, 0.92) !important;
}

@media (max-width: 980px) {
  .erp-pilot .erp-work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .erp-pilot .cost-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .erp-pilot .cost-grid article,
  .erp-pilot .cost-grid article:nth-child(4),
  .erp-pilot .cost-grid article:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .erp-pilot .erp-work-list,
  .erp-pilot .cost-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
