/* ==========================================================================
   MATE · Impeccable + Taste Skill Craft Layer (mate-impeccable.css)
   Enforces:
   1. Browser UI Theming (color-scheme, ::selection, accent-color, accessible
      auto-width scrollbars, :user-invalid/:user-valid, forced-colors).
   2. Taste Skill First-Screen 1440×900 Hero Fit & Equal Plumb-Line Edges
      (zero top-stagger, single-frame app visuals without card-in-card or
      grid-paper, zero captions under visuals).
   3. Impeccable Craft Floor (no decorative .eyebrow kickers above headings,
      no 01/02/03 stamps on non-sequential Bento cards, no >1px side/top
      accent borders, flat hairline readouts instead of nested cards,
      >= 4.5:1 contrast, >= 11px functional UI text floor, neutral shadows,
      generous container insets, tabular-nums, balanced unboxed headings).
   4. Subpage 3×3×3 Cube Stage Scroll Modulation (--subpage-stage-opacity).
   ========================================================================== */

/* 1. Browser Surfaces, Neutral Architectural Elevation & Accessibility */
:root {
  color-scheme: light;
  accent-color: #1B2ED6;
  --scrollbar-thumb: rgba(52, 66, 102, 0.56);
  --scrollbar-track: rgba(226, 232, 244, 0.82);
  scrollbar-width: auto;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  --frost-shadow: 0 22px 56px rgba(11, 17, 32, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --frost-shadow-small: 0 10px 28px rgba(11, 17, 32, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --aero-card-shadow:
    0 24px 64px rgba(11, 17, 32, 0.11),
    0 6px 18px rgba(11, 17, 32, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --aero-soft-shadow:
    0 12px 34px rgba(11, 17, 32, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

:root[data-theme="dunkel"] {
  color-scheme: dark;
  accent-color: #7D8CFF;
  --scrollbar-thumb: rgba(148, 165, 214, 0.58);
  --scrollbar-track: rgba(11, 18, 34, 0.88);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  --frost-shadow: 0 26px 68px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --frost-shadow-small: 0 12px 32px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --aero-card-shadow:
    0 28px 72px rgba(0, 0, 0, 0.46),
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --aero-soft-shadow:
    0 16px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

@supports not (scrollbar-color: auto) {
  :root {
    scrollbar-width: auto;
  }

  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
  }

  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

::selection {
  background: rgba(27, 46, 214, 0.20);
  color: #0B1120;
}

:root[data-theme="dunkel"] ::selection {
  background: rgba(125, 140, 255, 0.34);
  color: #FFFFFF;
}

textarea {
  resize: vertical;
}

input:not([type="range"]):user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: #C5221F !important;
  outline: 1px solid rgba(197, 34, 31, 0.28);
}

input:not([type="range"]):user-valid,
textarea:user-valid,
select:user-valid {
  border-color: rgba(27, 46, 214, 0.52);
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--frost-accent, #1B2ED6);
  outline-offset: 3px;
}

/* Solid background-color + >= 7.5:1 button contrast across Light & Dark */
body .btn:not(.btn--ghost):not(.ghost) {
  background-color: #1B2ED6;
  background-image: linear-gradient(135deg, #243AE0 0%, #1B2ED6 55%, #1424B7 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(11, 17, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body .btn:not(.btn--ghost):not(.ghost):hover,
body .dunkel .btn:not(.btn--ghost):not(.ghost):hover {
  background-color: #1424B7;
  background-image: linear-gradient(135deg, #1B2ED6 0%, #1424B7 60%, #0F1C96 100%);
  border-color: rgba(199, 210, 254, 0.72);
  color: #FFFFFF;
  box-shadow: 0 14px 28px rgba(11, 17, 32, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

/* Calm decorative beacon pulse in static inspector chrome */
.frost-inspector-pulse {
  animation: none !important;
}

/* Tinted high-contrast secondary text (>= 4.5:1 on frosted light & dark surfaces) */
body.mate-detail,
body.erp-pilot {
  --muted: #3B475F;
  --mx-muted: #3B475F;
  --frost-muted: #3B475F;
  --max: 1280px;
  --container: 1280px;
}

:root[data-theme="dunkel"] body.mate-detail,
:root[data-theme="dunkel"] body.erp-pilot {
  --muted: #C5CFE6;
  --mx-muted: #C5CFE6;
  --frost-muted: #C5CFE6;
}

/* Enforce >= 12px (0.75rem) legibility floor on functional UI labels & pills */
.subpage-stone-meta small,
.subpage-stone-meta strong,
.subpage-stone-back,
.pui-motion-toggle,
.aero-svg-studio .ass-motion-btn,
.aero-svg-studio .ass-step-btn small,
.aero-svg-studio .ass-card-label,
.erp-cube-topline .meta,
.erp-simple-module > span,
.erp-simple-core > .meta,
.erp-simple-base span,
.sz-live-badge,
.aero-partner-tag,
.aero-partner-card .aero-partner-focus,
.contact-direct span {
  font-size: 0.75rem !important;
  line-height: 1.35;
}

/* 2. Typography Discipline: Balance Unboxed Headings, Pretty Prose, Tabular Nums */
.home-pilot :where(h1, h2, h3),
body.mate-detail :where(h1, h2, h3),
body.erp-pilot :where(h1, h2, h3) {
  text-wrap: balance;
}

.home-pilot :where(p, li, blockquote, dd),
body.mate-detail :where(p, li, blockquote, dd),
body.erp-pilot :where(p, li, blockquote, dd) {
  text-wrap: pretty;
}

body.mate-detail main p,
body.erp-pilot main p {
  max-width: 62ch;
}

body.mate-detail main p.lead,
body.erp-pilot main p.lead {
  max-width: 50ch;
}

:where(
  .zahlen,
  .sz-leiste,
  .sz-modul-tabelle,
  .sz-check-status,
  .sz-eignung-zaehler,
  .sz-matrix-status,
  .subpage-stone-meta,
  .tabelle td,
  .ass-step-btn small
) {
  font-variant-numeric: tabular-nums;
}

/* 3. Subpage 3×3×3 Cube World Stage & 100% Opaque Reading Chapters Below Hero */
.aero-world-stage--subpage {
  opacity: 1;
  transition: none;
}

.aero-world-stage--subpage.is-occluded {
  visibility: hidden;
}

/* Remove decorative two-axis grid-line backgrounds on sections */
body.mate-detail section.mx-intro,
body.erp-pilot .sub-hero {
  background-image: none !important;
}

body.has-subpage-cube-world.mate-detail .section:not(.mx-intro):not(.hero):not(.dunkel),
body.has-subpage-cube-world.erp-pilot .section:not(.contact-section) {
  background-color: #F4F7FC !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: layout style;
}

body.has-subpage-cube-world.mate-detail .section.weiss:not(.mate-process-section),
body.has-subpage-cube-world.erp-pilot .section--white {
  background-color: #FFFFFF !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: layout style;
}

:root[data-theme="dunkel"] body.has-subpage-cube-world.mate-detail .section:not(.mx-intro):not(.hero):not(.dunkel),
:root[data-theme="dunkel"] body.has-subpage-cube-world.erp-pilot .section:not(.contact-section) {
  background-color: #090F1D !important;
  background-image: none !important;
}

:root[data-theme="dunkel"] body.has-subpage-cube-world.mate-detail .section.weiss:not(.mate-process-section),
:root[data-theme="dunkel"] body.has-subpage-cube-world.erp-pilot .section--white {
  background-color: #0D1526 !important;
  background-image: none !important;
}

body.mate-detail .section.dunkel,
body.has-subpage-cube-world.mate-detail .section.dunkel,
body.has-subpage-cube-world.erp-pilot .contact-section {
  background-color: #090F1D !important;
  background-image: none !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* 4. Generous Container Insets & Plumb-Line Alignment (1280px Frame) */
body > .site-header,
body.home-pilot > .site-header,
body.erp-pilot > .site-header,
body.mate-detail > .site-header,
body.has-subpage-cube-world > header,
body.mate-detail > .kopf {
  position: sticky !important;
  top: 0 !important;
  z-index: 600 !important;
}

.skip:focus,
.skip:focus-visible {
  z-index: 1100 !important;
}

.site-header,
.mate-detail .kopf {
  box-shadow: 0 8px 28px rgba(11, 17, 32, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

:root[data-theme="dunkel"] .site-header,
:root[data-theme="dunkel"] .mate-detail .kopf {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .panel,
.mate-detail .kopf .panel {
  padding: 16px 24px;
}

.site-header .panel .panel-raster,
.mate-detail .kopf .panel .panel-raster {
  padding: 14px 0 18px;
}

.site-header .panel .panel-link,
.mate-detail .kopf .panel .panel-link {
  padding: 14px 12px 12px;
}

body.mate-detail .container,
body.erp-pilot .container,
body.mate-detail .kopf-innen {
  max-width: 1280px;
}

/* Put 24px horizontal gutter directly on .section so bordered/tinted sections always inset children */
body.mate-detail .section {
  padding: 76px 24px;
}

body.mate-detail .section > .container {
  max-width: 1232px;
  padding-left: 0;
  padding-right: 0;
}

body.mate-detail .mx-band {
  margin-left: 24px;
  margin-right: 24px;
  padding: 56px 40px;
}

body.has-subpage-cube-world .krumen {
  margin-top: 10px;
  padding: 5px 14px !important;
}

body.mate-detail section.mx-intro,
body.erp-pilot .sub-hero {
  padding: 22px 24px 36px !important;
}

@media (min-width: 1081px) {
  body.mate-detail:is(.mx-people, .mx-market, .mx-news) section.mx-intro {
    min-height: calc(100svh - 118px);
    display: flex;
    align-items: center;
  }

  body.mate-detail:is(.mx-people, .mx-market, .mx-news) section.mx-intro > .container {
    width: 100%;
  }
}

body.mate-detail:is(.mx-shop-service, .mx-ai, .mx-cloud) .container.hero {
  max-width: 1280px;
  min-height: 0;
  padding-block: clamp(18px, 2.4vh, 30px) clamp(28px, 3.6vh, 44px) !important;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(28px, 3.8vw, 56px);
  align-items: center;
}

body.mate-detail .mx-intro.mate-has-blueprint > .container,
body.erp-pilot .sub-hero-grid {
  max-width: calc(1280px - 2 * var(--gutter, 24px));
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr) !important;
  gap: clamp(28px, 3.8vw, 56px) !important;
  align-items: center !important;
}

body.erp-pilot .sub-hero .sub-hero-grid {
  max-width: 1280px;
}

body.mate-detail .mx-intro::after {
  display: none;
}

/* Eliminate top-stagger (margin-top: 170px) across all viewports */
body.has-subpage-cube-world :is(
  .mx-intro.mate-has-blueprint > .container > .erp-cube-hero.platform-hero-teaser,
  .sub-hero-grid > .erp-cube-hero.platform-hero-teaser,
  section.hero > .erp-cube-hero.platform-hero-teaser,
  section.hero > .container > .erp-cube-hero.platform-hero-teaser
),
.mate-detail .mx-intro.mate-has-blueprint > .container > .erp-cube-hero.platform-hero-teaser {
  margin-top: 0 !important;
  align-self: center !important;
  justify-self: stretch !important;
  max-width: none !important;
}

/* Compact Hero Copy Capsule so Hero + App Frame fit cleanly inside 1440×900 */
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.3vw, 30px);
  border-radius: 24px;
  background-color: rgba(250, 252, 255, 0.92);
}

: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 {
  background-color: rgba(11, 18, 35, 0.91);
}

.subpage-stone-origin {
  margin-bottom: 14px;
  padding: 6px 12px 6px 8px;
}

.mate-detail .sz-hero-logo {
  margin-bottom: 14px;
}

.mate-detail .mate-hero-copy h1,
.mate-detail:is(.mx-shop-service, .mx-ai, .mx-cloud) .hero h1,
.erp-pilot .sub-hero--erp h1 {
  max-width: 14ch;
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 1.35rem + 2.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.mate-detail .mate-hero-copy .lead,
.mate-detail section.mx-intro .lead,
.mate-detail section.hero .lead,
.erp-pilot .sub-hero .lead {
  max-width: 48ch;
  margin-bottom: 0;
  font-size: clamp(0.98rem, 0.9rem + 0.35vw, 1.1rem);
  line-height: 1.55;
}

.mate-detail .mate-hero-copy .knoepfe,
.mate-detail section.hero .knoepfe,
.erp-pilot .sub-hero .hero-actions {
  margin-block: 20px 0;
}

.mate-detail .sz-hero-vertrauen {
  max-width: none;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--aero-border-lo);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

:root[data-theme="dunkel"] .mate-detail .sz-hero-vertrauen {
  background-color: rgba(17, 27, 48, 0.68);
  border-color: rgba(196, 208, 245, 0.18);
}

/* Single-Frame App Stage: Unnest .platform-hero-teaser & Ban Visual Captions */
.erp-cube-hero.erp-system-diagram.platform-hero-teaser {
  min-height: 0 !important;
  padding: 12px 14px 14px;
  border: 1px solid var(--aero-border-hi) !important;
  border-bottom-color: var(--aero-border-lo) !important;
  border-radius: 24px;
  background-color: rgba(248, 250, 255, 0.91) !important;
  background-image: none !important;
  box-shadow: var(--aero-card-shadow);
  overflow: visible;
}

:root[data-theme="dunkel"] .erp-cube-hero.erp-system-diagram.platform-hero-teaser {
  border-color: rgba(196, 208, 245, 0.22) !important;
  background-color: rgba(12, 20, 38, 0.91) !important;
}

.erp-cube-hero.platform-hero-teaser .erp-cube-topline {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 10px;
}

.erp-cube-hero.platform-hero-teaser .erp-simple-layout {
  position: relative;
  inset: auto;
  display: block;
}

.erp-cube-hero.platform-hero-teaser .platform-ui-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Taste Skill House Rule 1: Never show a caption or description under visuals */
.platform-hero-teaser > figcaption,
.erp-system-diagram > figcaption {
  display: none !important;
}

/* 5. Impeccable Craft Floor: Ban Kickers/Eyebrows Above Headings */
body.mate-detail main :is(
  .kopfzeile,
  .mx-longform > .container,
  .mx-service > .container > div,
  .mx-band > .container,
  .mx-band .sz-cta-raster > div,
  .sz-kontakt-links,
  .sz-arch-spalte,
  .sz-kachel.grenze,
  .sz-kundenstimme-karte,
  .mate-process-heading > div,
  .mx-intro .mate-hero-copy,
  section.hero > div:first-child
) > .eyebrow,
body.mate-detail main .sz-hero-logo > .eyebrow,
body.mate-detail main .aero-partners-header > div > .eyebrow,
body.erp-pilot main :is(
  .section-header,
  .contact-copy,
  .erp-order-copy
) > .eyebrow {
  display: none !important;
}

body.mate-detail .kopfzeile {
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

body.mate-detail .kopfzeile h2,
body.mate-detail .mx-longform > .container > h2,
body.mate-detail .mx-service h2 {
  max-width: 18ch;
  font-size: clamp(1.95rem, 1.35rem + 2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* 6. Impeccable Craft Floor: Ban 01/02/03 Counter Stamps & Thick (>1px) Borders */
.sz-kachel:not(.grenze)::after,
.mate-detail .mx-longform .liste b::before {
  content: none !important;
  display: none !important;
}

.mate-detail .mx-longform .liste + h2 {
  margin-top: 56px;
}

.sz-kachel,
.sz-architekt-karte,
.sz-arch-spalte.sz-arch-nachher,
.sz-eignung-ergebnis,
.mate-detail .mx-sheet,
.mate-detail .mx-journal .karte:first-child,
.mate-detail .mx-band,
.erp-cube-hero.erp-system-diagram {
  border-top-width: 1px !important;
  border-left-width: 1px !important;
}

/* Generous padding inside .sz-leiste items and .mx-reference quote cards */
.mate-detail .sz-leiste {
  padding: 16px 20px;
  gap: 0;
}

.mate-detail .sz-leiste > li {
  margin: 0;
  padding: 10px 20px;
  border-radius: 0;
}

.mate-detail .sz-leiste > li:first-child {
  padding-left: 8px;
}

.mate-detail .sz-leiste > li:last-child {
  padding-right: 8px;
  border-right: 0;
}

.mate-detail .mx-reference .zitat {
  padding: 26px 32px;
  border-radius: 22px;
}

.sz-eignung-ergebnis {
  border-radius: 16px;
}

.sz-eignung-ergebnis.aktiv {
  border-color: color-mix(in oklab, var(--frost-accent, #1B2ED6) 45%, var(--border));
  background: color-mix(in oklab, var(--frost-accent, #1B2ED6) 6%, var(--surface));
}

.sz-eignung-hinweis,
.sz-architekt-zitat,
.hinweis {
  border-left-width: 1px !important;
}

.sz-arch-spalte {
  border-radius: 20px;
}

.sz-arch-spalte.sz-arch-nachher {
  border-color: rgba(143, 162, 255, 0.55) !important;
  background-color: rgba(27, 46, 214, 0.16);
}

.sz-architekt-karte,
.sz-kundenstimme-karte {
  border-radius: 24px;
}

.sz-architekt-kopf img {
  border-radius: 16px;
}

/* Bento Grid: Clean 16px architectural spacing with subtle 1px frosted tiles */
.mate-detail .sz-bento {
  gap: 16px;
  background: transparent;
  border: 0;
}

.mate-detail .sz-bento .karte.sz-kachel {
  border: 1px solid var(--aero-border-hi);
  border-bottom-color: var(--aero-border-lo);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.88);
  padding: clamp(22px, 2.4vw, 28px);
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] .mate-detail .sz-bento .karte.sz-kachel {
  border-color: rgba(196, 208, 245, 0.18);
  background-color: rgba(16, 26, 48, 0.88);
}

.mate-detail .sz-bento .karte.sz-kachel.grenze {
  border-style: dashed;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

/* 7. Full-Width Architectural Process Studio (.aero-svg-studio) Without Nesting */
.mate-detail .mx-service > .container {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}

.mate-detail .mx-service > .container > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: end;
}

.mate-detail .mx-service > .container > div:first-child h2 {
  margin: 0;
  max-width: 18ch;
}

.mate-detail .mx-service > .container > div:first-child p {
  margin: 0;
  color: var(--muted);
}

.mate-detail .mate-process-heading {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  border-top: 0;
  padding-top: 0;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.mate-detail .mx-scene.aero-svg-studio {
  box-shadow: var(--aero-card-shadow);
}

/* Remove grid-paper inside .ass-stage (Taste Skill cards.md rule) */
.aero-svg-studio .ass-stage {
  background-color: var(--ass-stage-bg) !important;
  background-image: none !important;
  border-radius: 18px;
}

/* Flatten .ass-readout-grid from 3 nested cards into a 1px hairline ledger */
.aero-svg-studio .ass-readout-grid {
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid var(--ass-stroke);
}

.aero-svg-studio .ass-card,
.aero-svg-studio .ass-card--highlight {
  padding: 8px 22px 8px 0;
  border: 0;
  border-right: 1px solid var(--ass-stroke);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aero-svg-studio .ass-card:not(:first-child) {
  padding-left: 22px;
}

.aero-svg-studio .ass-card:last-child {
  padding-right: 0;
  border-right: 0;
}

/* 8. Fix .mx-band + .sz-cta-raster Button & Pixel Emblem 2-Column Alignment */
.mate-detail .mx-band > .container.sz-cta-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.mate-detail .mx-band .sz-cta-raster .knoepfe {
  grid-column: auto;
  grid-row: auto;
  justify-content: flex-start;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .mate-detail .mx-band > .container.sz-cta-raster {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* 9. Partner Specialization Label & Quiet Micro-Interactions */
.aero-partner-card .aero-partner-focus {
  margin: -2px 0 4px;
  font-family: var(--font-meta, var(--font-display));
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost-accent, #1B2ED6);
}

.mate-detail .mx-journal > .container > h2:first-child {
  margin: 0 0 12px;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(1.95rem, 1.35rem + 2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: none;
  color: var(--fg);
}

.mate-detail .mx-journal .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-block: 28px 28px;
}

.mate-detail .mx-journal .karte,
.mate-detail .mx-journal .karte:first-child {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--aero-border-hi);
  border-bottom-color: var(--aero-border-lo);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.90);
  box-shadow: var(--aero-soft-shadow);
}

:root[data-theme="dunkel"] .mate-detail .mx-journal .karte,
:root[data-theme="dunkel"] .mate-detail .mx-journal .karte:first-child {
  border-color: rgba(196, 208, 245, 0.20);
  background-color: rgba(15, 24, 44, 0.90);
}

.mate-detail .mx-journal .karte:first-child h3 {
  font-size: clamp(1.22rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.24;
}

@media (max-width: 920px) {
  .mate-detail .mx-journal .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .leistung:hover,
  .aero-partner-card:hover {
    translate: 0 -2px;
  }

  .btn:active,
  .ass-scenario-btn:active,
  .ass-step-btn:active,
  .sz-filter-btn:active {
    translate: 0 1px;
  }
}

/* 10. Responsive Adjustments */
@media (max-width: 1080px) {
  body.mate-detail .mx-intro.mate-has-blueprint > .container,
  body.erp-pilot .sub-hero-grid,
  body.mate-detail:is(.mx-shop-service, .mx-ai, .mx-cloud) .container.hero,
  .mate-detail .mx-service > .container > div:first-child,
  .mate-detail .mate-process-heading {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .aero-svg-studio .ass-card,
  .aero-svg-studio .ass-card:not(:first-child) {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ass-stroke);
  }

  .aero-svg-studio .ass-card:first-child {
    padding-top: 4px;
  }

  .aero-svg-studio .ass-card:last-child {
    padding-bottom: 4px;
    border-bottom: 0;
  }
}

@media (max-width: 920px) {
  .mate-detail .sz-leiste > li,
  .mate-detail .sz-leiste > li:first-child,
  .mate-detail .sz-leiste > li:last-child {
    padding: 14px 12px;
  }
}

/* 11. Windows High Contrast / Forced Colors Mode Support */
@media (forced-colors: active) {
  .mate-hero-copy,
  .erp-cube-hero.platform-hero-teaser,
  .aero-svg-studio,
  .sz-kachel,
  .sz-architekt-karte,
  .sz-kundenstimme-karte,
  .aero-partner-card,
  .aero-glass-card,
  .btn {
    border: 1px solid CanvasText !important;
    box-shadow: none !important;
  }

  .ass-scenario-btn[aria-selected="true"],
  .ass-step-btn[aria-selected="true"],
  .sz-filter-btn[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* ==========================================================================
   12. UNIFIED FROSTED-AERO CHROME, SHEETS, COMPASS & CONTACT (ALL 20 PAGES)
   ========================================================================== */

/* 12.1 Einheitlicher .site-header & .site-nav auf Startseite, ERP & allen 18 .mate-detail-Seiten */
body.mate-detail {
  --container: 1280px;
  --max: 1280px;
}

.site-header {
  --header: 76px;
  position: sticky;
  top: 0;
  z-index: 600;
  height: var(--header);
  background: rgba(246, 249, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 8px 28px rgba(11, 17, 32, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

:root[data-theme="dunkel"] .site-header {
  background: rgba(9, 15, 29, 0.84);
  border-bottom-color: rgba(196, 208, 245, 0.16);
  box-shadow: 0 12px 32px rgba(2, 6, 16, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.site-header > .container,
.site-footer > .container,
.contact-section > .container {
  max-width: 1280px;
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter, 24px);
}

.site-header > .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .brand-link {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.site-header .brand-logo {
  width: 170px;
  height: auto;
  display: block;
}

:root[data-theme="dunkel"] .site-header .brand-logo,
:root[data-theme="dunkel"] .brand-logo,
:root[data-theme="dunkel"] .platform-logo {
  content: normal !important;
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.site-nav > ul {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.55vw, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav > ul > li {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
}

.site-nav a:not(.btn),
.site-nav .nav-ausloeser,
.site-nav .sprache-knopf {
  font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 540;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--frost-text, #0B1120);
  text-decoration: none;
}

.site-nav > ul > li > a:not(.btn),
.site-nav .nav-ausloeser {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-nav > ul > li > a:not(.btn):hover,
.site-nav .nav-ausloeser:hover,
.site-nav .hat-panel.offen > .nav-ausloeser {
  color: var(--frost-accent, #1B2ED6);
}

.site-nav .nav-ausloeser::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: 0 0 2px 7px;
  transition: transform 180ms ease;
}

.site-nav .hat-panel.offen > .nav-ausloeser::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}

/* Aktive Seite / Kategorie nicht nur über Farbe kennzeichnen (WCAG 1.4.1, Kontrast >= 3:1) */
.site-nav > ul > li > a[aria-current="page"],
.site-nav .nav-ausloeser.is-current-group {
  font-weight: 660;
  color: var(--frost-text, #0B1120);
}

.site-nav > ul > li > a[aria-current="page"]::before,
.site-nav .nav-ausloeser.is-current-group::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--frost-accent, #1B2ED6);
}

/* Mega-Panels im Header (überschreibt mate.css vollbreite .panel-Regel sauber) */
.site-nav .hat-panel {
  position: relative;
}

.site-header .site-nav .panel {
  position: absolute;
  top: calc(100% + 6px);
  left: -20px;
  right: auto;
  z-index: 610;
  width: 400px;
  max-width: calc(100vw - 32px);
  margin-top: 0 !important;
  padding: 12px;
  overflow: visible !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background: rgba(252, 253, 255, 0.98);
  box-shadow: 0 24px 60px rgba(11, 17, 32, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}

@media (min-width: 1181px) {
  /* Unsichtbare Hover-Brücke über den Abstand zwischen Trigger und Untermenü */
  .site-header .site-nav .panel::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: 14px;
  }
}

:root[data-theme="dunkel"] .site-header .site-nav .panel {
  border-color: rgba(196, 208, 245, 0.22);
  background: rgba(13, 21, 39, 0.98);
  box-shadow: 0 28px 64px rgba(2, 6, 16, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .site-nav .hat-panel:nth-child(2) .panel {
  width: 620px;
  left: -150px;
}

.site-header .site-nav .hat-panel:nth-child(3) .panel {
  width: 620px;
  left: -230px;
}

.site-header .site-nav #panel-news {
  width: 380px;
  left: auto;
  right: -24px;
}

.mate-study-figure {
  margin: 28px 0 32px;
}

.mate-study-figure .mate-study-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--frost-edge, rgba(70, 88, 132, 0.18));
  border-radius: 18px;
  background: var(--frost-glass-strong, rgba(255, 255, 255, 0.84));
  box-shadow: var(--frost-shadow-small, 0 12px 34px rgba(11, 17, 32, 0.08));
}

.mate-study-figure figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--frost-muted, #525866);
}

.site-header .site-nav .hat-panel.offen .panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header .panel-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 0;
}

.site-header .panel-raster.drei {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-header .panel-link {
  position: relative;
  display: block;
  padding: 13px 15px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.site-header .panel-link:hover {
  background: rgba(27, 46, 214, 0.07);
}

:root[data-theme="dunkel"] .site-header .panel-link:hover {
  background: rgba(125, 140, 255, 0.13);
}

.site-header .panel-link[aria-current="page"] {
  background: rgba(27, 46, 214, 0.09);
  outline: 1.5px solid var(--frost-accent, #1B2ED6);
  outline-offset: -1.5px;
}

:root[data-theme="dunkel"] .site-header .panel-link[aria-current="page"] {
  background: rgba(125, 140, 255, 0.16);
}

.site-header .panel-link b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--frost-text, #0B1120);
}

.site-header .panel-link b::after {
  content: none;
  display: none;
}

.site-header .panel-link span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.44;
  color: var(--frost-muted, #525866);
}

/* Extras: Sprachumschalter (<button> statt <details>) + Theme-Knopf + Header-CTA */
.site-header .extras {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header .sprache {
  position: relative;
}

.site-header .sprache-knopf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

:root[data-theme="dunkel"] .site-header .sprache-knopf {
  border-color: rgba(196, 208, 245, 0.22);
  background: rgba(20, 31, 56, 0.68);
}

.site-header .sprache-knopf:hover,
.site-header .sprache.offen .sprache-knopf {
  border-color: var(--frost-accent, #1B2ED6);
  color: var(--frost-accent, #1B2ED6);
}

.site-header .sprache-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 176px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.97);
  box-shadow: 0 20px 44px rgba(11, 17, 32, 0.14);
  z-index: 620;
}

:root[data-theme="dunkel"] .site-header .sprache-menu {
  border-color: rgba(196, 208, 245, 0.22);
  background: rgba(13, 21, 39, 0.97);
  box-shadow: 0 22px 48px rgba(2, 6, 16, 0.52);
}

.site-header .sprache-menu[hidden] {
  display: none !important;
}

.site-header .sprache-menu a,
.site-header .sprache-menu span {
  display: block;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.82rem;
  text-decoration: none;
}

.site-header .sprache-menu a[aria-current="page"] {
  font-weight: 650;
  color: var(--frost-accent, #1B2ED6);
  background: rgba(27, 46, 214, 0.08);
}

:root[data-theme="dunkel"] .site-header .sprache-menu a[aria-current="page"] {
  background: rgba(125, 140, 255, 0.16);
}

.site-header .sprache-menu .bald {
  color: var(--frost-muted, #525866);
}

.site-header .theme-knopf {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--frost-text, #0B1120);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

:root[data-theme="dunkel"] .site-header .theme-knopf {
  border-color: rgba(196, 208, 245, 0.22);
  background: rgba(20, 31, 56, 0.68);
}

.site-header .theme-knopf:hover {
  border-color: var(--frost-accent, #1B2ED6);
  color: var(--frost-accent, #1B2ED6);
}

.site-header .theme-knopf svg {
  width: 17px;
  height: 17px;
}

.site-header .theme-knopf .sonne {
  fill: none;
  stroke: currentColor;
}

.site-header .theme-knopf .mond {
  display: none;
  fill: currentColor;
}

:root[data-theme="dunkel"] .site-header .theme-knopf .sonne {
  display: none;
}

:root[data-theme="dunkel"] .site-header .theme-knopf .mond {
  display: block;
}

/* Header-CTA & Mobile-CTA: gemischte Schreibweise auch auf .mate-detail-Seiten */
:root body .site-header .site-nav .btn,
:root body > .mobile-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #1B2ED6 !important;
  border-radius: 999px;
  background-color: #1B2ED6 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  font-size: 0.88rem !important;
  font-weight: 600;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(27, 46, 214, 0.22) !important;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

:root body .site-header .site-nav .btn:hover,
:root body > .mobile-cta .btn:hover {
  background-color: #1524B0 !important;
  background-image: none !important;
  border-color: #1524B0 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.site-header .site-nav .btn::after,
body > .mobile-cta .btn::after {
  display: none !important;
}

.site-header .nav-knopf {
  display: none;
}

@media (max-width: 1180px) {
  .site-header {
    --header: 68px;
  }

  :root body .site-header .nav-knopf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--frost-text, #0B1120);
    font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
    font-size: 0.88rem !important;
    font-weight: 600;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    cursor: pointer;
  }

  :root[data-theme="dunkel"] body .site-header .nav-knopf {
    border-color: rgba(196, 208, 245, 0.24);
    background: rgba(20, 31, 56, 0.72);
    color: #F5F7FC;
  }

  .site-header .nav-knopf .balken,
  .site-header .nav-knopf .balken::before {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    content: "";
  }

  .site-header .nav-knopf .balken::before {
    transform: translateY(5px);
  }

  .site-header .site-nav {
    height: auto;
  }

  .site-header .site-nav > ul {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header);
    z-index: 615;
    height: calc(100svh - var(--header));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter, 24px) 96px;
    background: rgba(248, 250, 255, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }

  :root[data-theme="dunkel"] .site-header .site-nav > ul {
    background: rgba(9, 15, 29, 0.98);
    border-bottom-color: rgba(196, 208, 245, 0.18);
  }

  .site-header .site-nav.offen > ul {
    display: flex;
  }

  .site-header .site-nav > ul > li {
    height: auto;
    display: block;
    border-bottom: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.1));
    padding: 4px 0;
  }

  .site-header .site-nav > ul > li:last-child {
    border-bottom: 0;
    padding-top: 16px;
  }

  .site-header .site-nav > ul > li > a:not(.btn),
  .site-header .site-nav .nav-ausloeser {
    width: 100%;
    justify-content: space-between;
    min-height: 50px;
    font-size: 1rem;
  }

  .site-header .site-nav > ul > li > a[aria-current="page"]::before,
  .site-header .site-nav .nav-ausloeser.is-current-group::before {
    bottom: 2px;
    right: auto;
    width: 36px;
  }

  .site-header .site-nav .panel,
  .site-header .site-nav .hat-panel:nth-child(2) .panel,
  .site-header .site-nav .hat-panel:nth-child(3) .panel,
  .site-header .site-nav #panel-news {
    position: static;
    width: 100%;
    left: auto;
    right: auto;
    margin: 0 0 10px;
    padding: 8px;
    border-radius: 16px;
    box-shadow: none;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header .site-nav .hat-panel.offen .panel {
    display: block;
  }

  .site-header .panel-raster.drei {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header .extras {
    justify-content: space-between;
    padding: 10px 0;
  }

  .site-header .sprache-menu {
    left: 0;
    right: auto;
  }

  .site-header .site-nav .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* 12.2 Einheitlicher 5-Spalten-.site-footer & .mobile-cta auf allen 20 Seiten */
.site-footer {
  position: relative;
  z-index: 4;
  background: #070C17;
  color: #C7D1E6;
  padding: clamp(56px, 7vw, 84px) 0 34px;
  border-top: 1px solid rgba(196, 208, 245, 0.16);
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3.2vw, 44px);
  padding-bottom: 44px;
}

.site-footer .footer-brand img {
  width: 164px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.site-footer .footer-brand p {
  max-width: 34ch;
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.56;
  color: #B9C4DC;
}

.site-footer .footer-locations {
  margin: 0;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #93A3C4;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5F7FC;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.site-footer li {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.42;
}

.site-footer a {
  color: #C7D1E6;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a[aria-current="page"] {
  color: #FFFFFF;
  font-weight: 640;
  text-decoration: underline;
  text-decoration-color: #7D8CFF;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer .footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(196, 208, 245, 0.14);
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9FB0D6;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(196, 208, 245, 0.14);
  font-size: 0.8rem;
  color: #93A3C4;
}

.site-footer .footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

body > .mobile-cta {
  display: none;
}

@media (max-width: 1080px) {
  .site-footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 68px;
  }

  .site-header .brand-logo {
    width: 146px;
  }

  body > .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(248, 250, 255, 0.92);
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    transition: transform 240ms ease, opacity 240ms ease;
  }

  :root[data-theme="dunkel"] body > .mobile-cta {
    background: rgba(9, 15, 29, 0.92);
    border-top-color: rgba(196, 208, 245, 0.18);
  }

  body > .mobile-cta .btn {
    width: 100%;
    min-height: 46px;
  }

  body > .mobile-cta[data-hidden="true"] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(110%);
  }
}

/* 12.3 Einheitliches Hero-Würfel-Leitsystem & Nachbar-Kompass auf allen 19 Unterseiten (flache 1px-Haarlinie statt Box-in-Box) */
:root body .subpage-stone-origin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 0 13px;
  border: 0 !important;
  border-bottom: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12)) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dunkel"] body .subpage-stone-origin {
  border-bottom-color: rgba(196, 208, 245, 0.20) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.subpage-stone-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.subpage-stone-meta small {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.subpage-stone-meta strong {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.subpage-stone-back {
  padding: 7px 13px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.subpage-stone-compass {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
  padding-top: 10px;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.1));
}

.subpage-compass-label {
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost-muted, #525866);
  margin-right: 2px;
}

.subpage-compass-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subpage-compass-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--frost-text, #0B1120);
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

:root[data-theme="dunkel"] .subpage-compass-chip {
  border-color: rgba(196, 208, 245, 0.22);
  background: rgba(20, 31, 56, 0.65);
}

.subpage-compass-chip span {
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  color: var(--frost-accent, #1B2ED6);
}

.subpage-compass-chip strong {
  font-weight: 560;
}

.subpage-compass-chip:hover {
  border-color: var(--frost-accent, #1B2ED6);
  background: rgba(27, 46, 214, 0.08);
  color: var(--frost-accent, #1B2ED6);
}

:root[data-theme="dunkel"] .subpage-compass-chip:hover {
  background: rgba(125, 140, 255, 0.16);
}

/* 12.4 Startseite (.home-pilot): Scroll-Film ohne Box-in-Box + Zusammenhängende Frosted-Aero-Module (.aero-section-sheet) */
.home-pilot main :is(
  .section-heading > div,
  #faq .faq-grid > div:first-child,
  .contact-copy
) > .eyebrow {
  display: none !important;
}

.home-pilot .aero-hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--frost-edge);
}

.home-pilot .aero-hero-ledger > div {
  padding: 2px 14px 2px 0;
  border-right: 1px solid var(--frost-edge);
}

.home-pilot .aero-hero-ledger > div + div {
  padding-left: 14px;
}

.home-pilot .aero-hero-ledger > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.home-pilot .aero-hero-ledger strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--frost-text);
  margin-bottom: 2px;
}

.home-pilot .aero-hero-ledger span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.38;
  color: var(--frost-muted);
}

/* Kapitel 02 & 03 im Scroll-Film: feine 1px-Haarlinien statt Box-in-Box */
.home-pilot .frost-layer-stack {
  gap: 0;
  border-bottom: 1px solid var(--frost-edge);
}

.home-pilot .frost-layer-row {
  padding: 13px 12px;
  border: 0;
  border-top: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-pilot .frost-layer-row:first-child {
  border-top: 0;
}

.home-pilot .frost-layer-row:hover {
  background: rgba(27, 46, 214, 0.05);
}

:root[data-theme="dunkel"] .home-pilot .frost-layer-row:hover {
  background: rgba(125, 140, 255, 0.08);
}

.home-pilot .frost-layer-row[aria-selected="true"] {
  background: rgba(27, 46, 214, 0.08);
  box-shadow: none;
}

:root[data-theme="dunkel"] .home-pilot .frost-layer-row[aria-selected="true"] {
  background: rgba(125, 140, 255, 0.14);
}

.home-pilot .frost-layer-glyph {
  border: 0;
  background: transparent;
  padding: 2px 0;
  width: 20px;
}

.home-pilot .frost-layer-count {
  border: 0;
  background: transparent;
  padding: 0;
}

.home-pilot .frost-inspector-hint {
  margin-top: 12px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-pilot .frost-blueprint-points {
  gap: 0;
  border-top: 1px solid var(--frost-edge);
  border-bottom: 1px solid var(--frost-edge);
}

.home-pilot .frost-blueprint-points li {
  padding: 13px 0 13px 22px;
  border: 0;
  border-top: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-pilot .frost-blueprint-points li:first-child {
  border-top: 0;
}

.home-pilot .frost-blueprint-points li::before {
  left: 2px;
  top: 18px;
}

/* #vorgehen: ohne Box-in-Box & ohne Kicker-Pill */
.home-pilot .aero-process-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.home-pilot .aero-process-subrow .aero-process-intro {
  margin: 0;
}

.home-pilot .aero-phase-card {
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Ein zusammenhängendes Frosted-Aero-Architekturmodul je Sektion (#leistungen, #plattformen, #branchen, #referenz, #faq) */
.home-pilot .aero-section-sheet {
  padding: clamp(28px, 3.8vw, 48px);
  border: 1px solid var(--aero-border-hi, rgba(255, 255, 255, 0.92));
  border-bottom-color: var(--aero-border-lo, rgba(15, 23, 42, 0.12));
  border-radius: 30px;
  background: linear-gradient(
    142deg,
    rgba(253, 254, 255, 0.985) 0%,
    rgba(246, 249, 255, 0.975) 54%,
    rgba(239, 245, 255, 0.98) 100%
  );
  box-shadow: var(--aero-card-shadow, 0 24px 64px rgba(11, 17, 32, 0.08));
  contain: layout style paint;
}

:root[data-theme="dunkel"] .home-pilot .aero-section-sheet {
  border-color: rgba(196, 208, 245, 0.22);
  background: linear-gradient(
    142deg,
    rgba(15, 25, 46, 0.98) 0%,
    rgba(11, 19, 36, 0.97) 56%,
    rgba(17, 28, 54, 0.98) 100%
  );
  box-shadow: 0 28px 72px rgba(2, 6, 16, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.home-pilot .aero-section-sheet > .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin: 0;
  padding: 0 0 clamp(22px, 2.8vw, 34px);
  border: 0;
  border-bottom: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-pilot .aero-section-sheet > .section-heading h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(1.95rem, 3.2vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.home-pilot .aero-section-sheet > .section-heading p {
  margin: 0;
  max-width: 44ch;
  color: var(--frost-muted);
}

/* #leistungen in einem Modul (ohne künstliche 01–04-Zähler) */
.home-pilot .aero-section-sheet .service-index {
  display: block;
  margin: 0;
  padding: 0;
  border: 0 !important;
}

.home-pilot .aero-section-sheet .service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(200px, 0.62fr) 32px;
  gap: clamp(18px, 2.8vw, 40px);
  align-items: start;
  margin: 0;
  padding: clamp(22px, 2.6vw, 30px) 12px;
  border: 0 !important;
  border-bottom: 1px solid var(--frost-edge) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color 180ms ease;
}

.home-pilot .aero-section-sheet .service-row:last-child {
  border-bottom: 0 !important;
  padding-bottom: 4px;
}

.home-pilot .aero-section-sheet .service-row:hover {
  background: rgba(27, 46, 214, 0.05) !important;
  transform: none;
}

:root[data-theme="dunkel"] .home-pilot .aero-section-sheet .service-row:hover {
  background: rgba(125, 140, 255, 0.09) !important;
}

.home-pilot .aero-section-sheet .service-row h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

/* #plattformen in einem Modul — alle 6 Plattform-Karten vollflächig klickbar (Stretched-Link) */
.home-pilot .aero-section-sheet .platform-layout {
  --plat-pad-outer: clamp(14px, 1.8vw, 20px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 0;
  margin: 0 calc(-1 * var(--plat-pad-outer));
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-pilot .aero-section-sheet .platform-primary {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(24px, 2.8vw, 34px) clamp(22px, 2.8vw, 34px) clamp(24px, 2.8vw, 30px) var(--plat-pad-outer);
  border: 0;
  border-right: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent !important;
  color: var(--frost-text) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-pilot .aero-section-sheet .platform-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.home-pilot .aero-section-sheet .platform-card-badge {
  font-family: var(--font-meta);
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost-muted);
}

.home-pilot .aero-section-sheet .platform-primary :is(h3, .text-link) {
  color: var(--frost-text);
}

.home-pilot .aero-section-sheet .platform-primary :is(p, .meta) {
  color: var(--frost-muted);
}

.home-pilot .aero-section-sheet .platform-primary .platform-logo {
  margin: 0;
  height: 42px;
  filter: none !important;
  content: normal !important;
}

/* Odoo-Vorschaufenster im selben klaren Frosted-Aero-Glasstil wie der rechte Stack */
.home-pilot .aero-section-sheet .platform-primary .platform-card-preview {
  margin: 18px 0 20px;
  padding: 12px;
  border: 1px solid var(--frost-edge);
  background: var(--frost-glass-strong);
}

.home-pilot .aero-section-sheet .platform-primary .platform-mini-svg .pm-window {
  fill: var(--frost-glass-strong);
  stroke: var(--frost-edge);
}

.home-pilot .aero-section-sheet .platform-primary .platform-mini-svg .pm-card {
  fill: color-mix(in srgb, var(--frost-text) 4%, var(--frost-glass-strong));
  stroke: var(--frost-edge);
}

.home-pilot .aero-section-sheet .platform-primary .platform-mini-svg .pm-ink {
  fill: var(--frost-text);
}

.home-pilot .aero-section-sheet .platform-primary .platform-mini-svg .pm-muted {
  fill: var(--frost-muted);
}

.home-pilot .aero-section-sheet .platform-primary .platform-mini-svg .pm-divider {
  stroke: var(--frost-edge);
}

.home-pilot .aero-section-sheet .platform-scope-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--frost-edge);
  display: grid;
  gap: 9px;
}

.home-pilot .aero-section-sheet .platform-scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--frost-text);
}

.home-pilot .aero-section-sheet .platform-scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: var(--frost-accent);
}

.home-pilot .aero-section-sheet .platform-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--frost-accent);
}

.home-pilot .aero-section-sheet .platform-stack {
  display: grid;
  gap: 0;
  background: transparent;
}

.home-pilot .aero-section-sheet .platform-stack > article {
  padding: 20px var(--plat-pad-outer) 20px clamp(22px, 2.8vw, 32px);
  border: 0 !important;
  border-bottom: 1px solid var(--frost-edge) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-pilot .aero-section-sheet .platform-card-copy {
  min-width: 0;
}

.home-pilot .aero-section-sheet .platform-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-pilot .aero-section-sheet .platform-card-head h3 {
  margin-bottom: 8px;
}

.home-pilot .aero-section-sheet .platform-stack .meta {
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.home-pilot .aero-section-sheet .platform-inline-cta {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--frost-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Zweigeteilte Workplace-Zeile: Google Workspace & Microsoft 365 einzeln vollflächig klickbar */
.home-pilot .aero-section-sheet .platform-workplace-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-pilot .aero-section-sheet .platform-workplace-card {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 6px;
  padding: 20px clamp(14px, 1.8vw, 20px) 16px clamp(22px, 2.8vw, 32px);
  border: 0 !important;
  border-right: 1px solid var(--frost-edge) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-pilot .aero-section-sheet .platform-workplace-card + .platform-workplace-card {
  padding-left: clamp(16px, 2vw, 22px);
  padding-right: var(--plat-pad-outer);
  border-right: 0 !important;
}

.home-pilot .aero-section-sheet .platform-workplace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.home-pilot .aero-section-sheet .platform-workplace-card .platform-logo {
  grid-row: auto;
  height: 25px;
  max-width: 118px;
  margin: 0;
}

.home-pilot .aero-section-sheet .platform-workplace-card h3 {
  font-size: 1.18rem;
  margin: 0;
}

.home-pilot .aero-section-sheet .platform-workplace-card p {
  font-size: 0.88rem;
  line-height: 1.48;
}

.home-pilot .aero-section-sheet .platform-workplace-card .platform-card-preview {
  margin: 10px 0 4px;
}

.home-pilot .aero-section-sheet .platform-workplace-card .meta {
  margin-top: auto;
  padding-top: 4px;
}

/* Stretched-Link & klare Hover-, Press- und Fokus-Zustände auf jeder Plattform-Karte */
.home-pilot #plattformen article:has(a.card-link) {
  position: relative;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.home-pilot #plattformen article a.card-link {
  color: inherit;
  text-decoration: none;
}

.home-pilot #plattformen article a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-pilot #plattformen article a.card-link:focus-visible {
  outline: none;
}

.home-pilot #plattformen .platform-arrow {
  display: inline-block;
  flex: none;
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1;
  color: var(--frost-muted);
  transition: transform 180ms ease, color 180ms ease;
}

.home-pilot #plattformen article:has(a.card-link:hover) {
  background-color: rgba(27, 46, 214, 0.05) !important;
  transform: none !important;
}

:root[data-theme="dunkel"] .home-pilot #plattformen article:has(a.card-link:hover) {
  background-color: rgba(125, 140, 255, 0.09) !important;
}

.home-pilot #plattformen article:has(a.card-link:active) {
  background-color: rgba(27, 46, 214, 0.10) !important;
  transform: none !important;
}

:root[data-theme="dunkel"] .home-pilot #plattformen article:has(a.card-link:active) {
  background-color: rgba(125, 140, 255, 0.16) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .home-pilot #plattformen .platform-card-preview {
    transition: scale 150ms ease-out;
  }

  .home-pilot #plattformen article:has(a.card-link:active) .platform-card-preview {
    scale: 0.99;
  }
}

.home-pilot #plattformen article:has(a.card-link:focus-visible) {
  outline: 2px solid var(--frost-accent, #1B2ED6);
  outline-offset: -2px;
  border-radius: 12px;
}

:root[data-theme="dunkel"] .home-pilot #plattformen article:has(a.card-link:focus-visible) {
  outline-color: #93A8FF;
}

.home-pilot #plattformen article:is(:has(a.card-link:hover), :has(a.card-link:focus-visible)) h3 {
  color: var(--frost-accent);
}

.home-pilot #plattformen article:is(:has(a.card-link:hover), :has(a.card-link:focus-visible)) .platform-inline-cta,
.home-pilot #plattformen article:is(:has(a.card-link:hover), :has(a.card-link:focus-visible)) .platform-cta span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.home-pilot #plattformen article:is(:has(a.card-link:hover), :has(a.card-link:focus-visible)) .platform-arrow {
  color: var(--frost-accent);
  transform: translate(3px, -3px);
}

.home-pilot .aero-section-sheet .platform-footnote {
  display: block;
  margin: 16px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent;
  color: var(--frost-muted);
}

/* #branchen in einem 3x2-Haarlinien-Modul (ohne 01–06-Zähler) */
.home-pilot .aero-section-sheet .frost-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.home-pilot .aero-section-sheet .frost-industry-card {
  padding: clamp(22px, 2.6vw, 30px);
  border: 0;
  border-right: 1px solid var(--frost-edge);
  border-bottom: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 180ms ease;
}

.home-pilot .aero-section-sheet .frost-industry-card:nth-child(3n) {
  border-right: 0;
}

.home-pilot .aero-section-sheet .frost-industry-card:nth-child(n+4) {
  border-bottom: 0;
}

.home-pilot .aero-section-sheet .frost-industry-card:hover {
  background: rgba(27, 46, 214, 0.05);
  transform: none;
  box-shadow: none;
}

:root[data-theme="dunkel"] .home-pilot .aero-section-sheet .frost-industry-card:hover {
  background: rgba(125, 140, 255, 0.09);
}

.home-pilot .industry-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-pilot .industry-card-head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.75vw, 1.55rem);
  letter-spacing: -0.025em;
}

.home-pilot .stone-coord {
  flex: none;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--frost-accent);
}

/* #referenz in einem Modul */
.home-pilot .aero-section-sheet .frost-case-card {
  padding: clamp(22px, 2.8vw, 32px) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-pilot .aero-section-sheet .frost-case-col {
  padding: 4px 28px 8px 0;
}

.home-pilot .aero-section-sheet .frost-case-col--after {
  padding: 4px 0 8px 28px;
}

/* #faq in einem Modul (Intro links + Haarlinien-Akkordeon rechts) */
.home-pilot #faq .aero-section-sheet .faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 0;
  align-items: start;
}

.home-pilot #faq .aero-section-sheet .faq-grid > div:first-child {
  padding: 4px clamp(24px, 3.2vw, 40px) 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-pilot #faq .aero-section-sheet .faq-grid > div:first-child h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0 0 14px;
}

.home-pilot #faq .aero-section-sheet .faq-list {
  display: block;
  padding: 0 0 0 clamp(24px, 3.2vw, 40px);
  border: 0 !important;
  border-left: 1px solid var(--frost-edge) !important;
}

.home-pilot #faq .aero-section-sheet .faq-list details,
.home-pilot #faq .aero-section-sheet .faq-list details[open] {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--frost-edge);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-pilot #faq .aero-section-sheet .faq-list details:last-child {
  border-bottom: 0;
}

.home-pilot #faq .aero-section-sheet .faq-list summary {
  padding: 18px 4px;
}

.home-pilot #faq .aero-section-sheet .faq-list details p {
  padding: 0 8px 20px calc(4px + 1.05em + 0.75ch);
}

@media (max-width: 900px) {
  .home-pilot .aero-section-sheet > .section-heading,
  .home-pilot .aero-section-sheet .platform-layout,
  .home-pilot #faq .aero-section-sheet .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-pilot .aero-section-sheet .service-row {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .home-pilot .aero-section-sheet .service-tags {
    grid-column: 1 / 2;
  }

  .home-pilot .aero-section-sheet .service-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .home-pilot .aero-section-sheet .platform-primary {
    padding: 24px var(--plat-pad-outer);
    border-right: 0;
    border-bottom: 1px solid var(--frost-edge);
  }

  .home-pilot .aero-section-sheet .platform-stack > article {
    padding: 20px var(--plat-pad-outer);
  }

  .home-pilot .aero-section-sheet .platform-workplace-card {
    padding-left: var(--plat-pad-outer);
  }

  .home-pilot .aero-section-sheet .frost-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-pilot .aero-section-sheet .frost-industry-card {
    border-right: 1px solid var(--frost-edge);
    border-bottom: 1px solid var(--frost-edge);
  }

  .home-pilot .aero-section-sheet .frost-industry-card:nth-child(2n) {
    border-right: 0;
  }

  .home-pilot .aero-section-sheet .frost-industry-card:nth-child(n+5) {
    border-bottom: 0;
  }

  .home-pilot #faq .aero-section-sheet .faq-grid > div:first-child {
    padding: 0 0 22px;
    border-bottom: 1px solid var(--frost-edge);
  }

  .home-pilot #faq .aero-section-sheet .faq-list {
    padding: 8px 0 0;
    border-left: 0 !important;
  }
}

@media (max-width: 640px) {
  .home-pilot .aero-hero-ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-pilot .aero-hero-ledger > div,
  .home-pilot .aero-hero-ledger > div + div {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--frost-edge);
  }

  .home-pilot .aero-hero-ledger > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .home-pilot .aero-section-sheet {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .home-pilot .aero-section-sheet .platform-workplace-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-pilot .aero-section-sheet .platform-workplace-card {
    padding: 20px var(--plat-pad-outer);
    border-right: 0 !important;
    border-bottom: 1px solid var(--frost-edge) !important;
  }

  .home-pilot .aero-section-sheet .platform-workplace-card + .platform-workplace-card {
    padding: 20px var(--plat-pad-outer) 10px;
    border-bottom: 0 !important;
  }

  .home-pilot .aero-section-sheet .frost-industry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-pilot .aero-section-sheet .frost-industry-card,
  .home-pilot .aero-section-sheet .frost-industry-card:nth-child(2n) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--frost-edge);
  }

  .home-pilot .aero-section-sheet .frost-industry-card:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .home-pilot .aero-section-sheet .frost-case-col,
  .home-pilot .aero-section-sheet .frost-case-col--after {
    padding: 12px 0;
  }
}

/* 12.5 Einheitlicher Frosted-Obsidian #kontakt-Abschluss (inkl. Pixel-Quadrat & Formular) auf allen 20 Seiten */
.contact-section {
  position: relative;
  z-index: 3;
  padding-block: clamp(64px, 8vw, 108px);
  background: linear-gradient(180deg, rgba(9, 15, 29, 0.86) 0%, rgba(7, 12, 23, 0.96) 100%);
  border-top: 1px solid rgba(196, 208, 245, 0.16);
  box-shadow: none !important;
}

.aero-contact-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 0;
  padding: clamp(36px, 4.4vw, 56px) clamp(28px, 4vw, 52px);
  border: 1px solid rgba(196, 208, 245, 0.24);
  border-top-color: rgba(235, 242, 255, 0.36);
  border-radius: 30px;
  background: linear-gradient(142deg, rgba(11, 19, 38, 0.95) 0%, rgba(14, 24, 48, 0.93) 62%, rgba(20, 34, 82, 0.90) 100%);
  box-shadow: 0 28px 72px rgba(4, 8, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  contain: layout style paint;
}

.aero-contact-sheet .contact-copy {
  padding: 0 clamp(24px, 3.6vw, 48px) 0 0;
  border: 0;
  border-right: 1px solid rgba(196, 208, 245, 0.18);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.contact-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.aero-contact-sheet .contact-copy h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: #FFFFFF;
}

.aero-contact-sheet .aero-pixel-quadrat {
  width: clamp(54px, 5vw, 64px);
  flex: none;
  color: #EEF2FF;
}

.aero-contact-sheet:hover .aero-pixel-quadrat rect {
  animation: aeroPixelHover 0.9s ease-out calc(var(--welle, 0) * 38ms) 1 both;
}

.aero-contact-sheet .contact-copy .lead {
  max-width: 44ch;
  margin: 0 0 24px;
  font-size: clamp(0.98rem, 1.12vw, 1.05rem);
  line-height: 1.58;
  color: #CFD8EC;
}

.aero-contact-sheet .contact-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(196, 208, 245, 0.16);
  border-bottom: 1px solid rgba(196, 208, 245, 0.16);
}

.aero-contact-sheet .contact-partner-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.aero-contact-sheet .contact-partner-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.aero-contact-sheet .contact-partner-card span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.42;
  color: #B6C3DE;
}

.aero-contact-sheet .contact-direct {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border: 0;
  max-width: none;
}

.aero-contact-sheet .contact-direct li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(196, 208, 245, 0.14);
  font-size: 0.9rem;
  color: #E8EEF9;
}

.aero-contact-sheet .contact-direct li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aero-contact-sheet .contact-direct span {
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9FB0D6;
}

.aero-contact-sheet .contact-direct a {
  color: #FFFFFF;
  text-decoration: none;
}

.aero-contact-sheet .contact-direct a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Rechte Spalte: Formular mit Validierung nach Interaktion */
.aero-contact-sheet .contact-form {
  padding: 0 0 0 clamp(24px, 3.6vw, 48px);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.aero-contact-sheet .form-intro {
  margin: 0 0 20px;
  font-size: 0.88rem;
  line-height: 1.54;
  color: #C7D2EA;
}

.aero-contact-sheet .field {
  margin-bottom: 18px;
}

.aero-contact-sheet .field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D5E0F5;
}

.aero-contact-sheet .field label span {
  font-family: var(--font-body, "Instrument Sans", sans-serif);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 450;
  color: #9FB0D6;
}

.aero-contact-sheet .field input,
.aero-contact-sheet .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(196, 208, 245, 0.26);
  border-radius: 12px;
  background: rgba(7, 13, 26, 0.58);
  color: #FFFFFF;
  font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.aero-contact-sheet .field textarea {
  min-height: 98px;
  resize: vertical;
}

.aero-contact-sheet .field input::placeholder,
.aero-contact-sheet .field textarea::placeholder {
  color: #90A0C2;
}

.aero-contact-sheet .field input:focus-visible,
.aero-contact-sheet .field textarea:focus-visible {
  outline: 2px solid #8DA0FF;
  outline-offset: 1px;
  border-color: #8DA0FF;
  background: rgba(10, 18, 36, 0.82);
}

.aero-contact-sheet .field :is(input, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #FCA5A5;
  background: rgba(127, 29, 29, 0.22);
}

.aero-contact-sheet .field-error {
  min-height: 18px;
  margin: 5px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #FECACA;
}

.aero-contact-sheet .field-error:empty {
  display: none;
}

.aero-contact-sheet .form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

:root body .aero-contact-sheet .form-actions-row .btn:not(.btn--ghost):not(.btn-booking) {
  flex: 1 1 210px;
  min-height: 46px;
  margin: 0;
  padding: 11px 20px;
  border: 1px solid #4158FF !important;
  border-radius: 999px;
  background-color: #273DF0 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  font-size: 0.92rem !important;
  font-weight: 620;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  box-shadow: 0 10px 24px rgba(2, 6, 16, 0.38) !important;
  cursor: pointer;
}

:root body .aero-contact-sheet .form-actions-row .btn:not(.btn--ghost):not(.btn-booking):hover {
  background-color: #354BFF !important;
  background-image: none !important;
  border-color: #5C72FF !important;
  color: #FFFFFF !important;
}

.aero-contact-sheet .form-actions-row .btn::after {
  display: none !important;
}

.aero-contact-sheet .form-actions-row .btn-booking:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 220px;
  min-height: 46px;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid rgba(196, 208, 245, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #F5F7FC;
  font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.aero-contact-sheet .form-actions-row .btn-booking:not([hidden]):hover {
  border-color: rgba(224, 232, 255, 0.78);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

:root body .aero-contact-sheet .btn-copy-draft {
  flex: 1 1 180px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(196, 208, 245, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #F5F7FC !important;
  font-family: var(--font-body, "Instrument Sans", system-ui, sans-serif);
  font-size: 0.88rem !important;
  font-weight: 560;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

:root body .aero-contact-sheet .btn-copy-draft:hover {
  border-color: rgba(224, 232, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
}

.aero-contact-sheet .form-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #DDE4FF;
}

.aero-contact-sheet .form-status:empty {
  display: none;
}

.aero-contact-sheet .form-privacy {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.48;
  color: #9FB0D6;
}

.aero-contact-sheet .form-privacy a {
  color: #DDE4FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 960px) {
  .aero-contact-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .aero-contact-sheet .contact-copy {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(196, 208, 245, 0.18);
  }

  .aero-contact-sheet .contact-form {
    padding: 28px 0 0;
  }
}

@media (max-width: 640px) {
  .aero-contact-sheet {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .aero-contact-sheet .contact-partners {
    grid-template-columns: minmax(0, 1fr);
  }

  .aero-contact-sheet .aero-pixel-quadrat {
    width: 68px;
  }
}

/* 12.6 Component-specific dark mode for opaque dark subtrees (re-specifies inherited colors) */
.contact-section,
.aero-contact-sheet,
.aero-pixel-cta-card,
.mate-detail .section.dunkel,
.mate-detail .mx-band,
.site-footer,
.fuss {
  color-scheme: dark;
  color: #F5F7FC;
  accent-color: #7D8CFF;
  caret-color: #7D8CFF;
}

/* Ensure inline chromatic SVG labels maintain >= 4.5:1 contrast on dark surfaces */
:root[data-theme="dunkel"] :is(.platform-ui-svg, .platform-mini-svg) text[fill="#1B2ED6"] {
  fill: #93A8FF;
}

:root[data-theme="dunkel"] :is(.platform-ui-svg, .platform-mini-svg) text:is([fill="#0284C7"], [fill="#0369A1"]) {
  fill: #7DD3FC;
}

:root[data-theme="dunkel"] :is(.platform-ui-svg, .platform-mini-svg) text:is([fill="#059669"], [fill="#047857"], [fill="#006B5C"], [fill="#006A4E"]) {
  fill: #6EE7B7;
}

:root[data-theme="dunkel"] :is(.platform-ui-svg, .platform-mini-svg) text:is([fill="#B45309"], [fill="#D97706"], [fill="#92400E"]) {
  fill: #FCD34D;
}

.krumen ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 2px;
}

/* Vermeidet unnötigen VRAM-Verbrauch durch dauerhaftes will-change im Ruhezustand */
.etikett,
.pixel-canvas .demo-cursor,
.signet-flug:not([style*="visible"]) {
  will-change: auto !important;
}

/* 12.7 Subpage Scroll-Fluidity, Crisp Zero-Overdraw Aero Surfaces & Compositor Motion */
body.has-subpage-cube-world > .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

:root[data-theme="dunkel"] body.has-subpage-cube-world > .site-header {
  background: rgba(11, 17, 32, 0.96) !important;
}

/* Eliminiert mehrfaches Fullscreen-Backdrop-Blur-Overdraw auf allen 19 Unterseiten bei vollem Frosted-Aero-Glanz */
body.has-subpage-cube-world :is(
  .krumen,
  .mate-hero-copy,
  .sub-hero-grid > div:first-child,
  section.hero > div:first-child,
  .erp-cube-hero,
  .erp-system-diagram,
  .sol-hero-frame,
  .mate-architecture,
  .erp-simple-module,
  .erp-order-workspace,
  .living-batch-frame,
  .living-equation,
  .living-batch-card,
  .living-batch-tag
) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.has-subpage-cube-world .krumen {
  background: rgba(252, 253, 255, 0.96);
}

:root[data-theme="dunkel"] body.has-subpage-cube-world .krumen {
  background: rgba(13, 21, 39, 0.95);
}

body.has-subpage-cube-world :is(
  .mate-hero-copy,
  .sub-hero-grid > div:first-child,
  section.hero > div:first-child
) {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 249, 255, 0.95) 100%);
  box-shadow: 0 20px 48px rgba(11, 17, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root[data-theme="dunkel"] body.has-subpage-cube-world :is(
  .mate-hero-copy,
  .sub-hero-grid > div:first-child,
  section.hero > div:first-child
) {
  background: linear-gradient(165deg, rgba(16, 26, 48, 0.96) 0%, rgba(11, 18, 35, 0.94) 100%);
  box-shadow: 0 24px 54px rgba(2, 6, 16, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

body.has-subpage-cube-world .erp-cube-hero:not(.sol-hero-frame):not(.pui-ready) {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 248, 255, 0.95) 100%);
}

:root[data-theme="dunkel"] body.has-subpage-cube-world .erp-cube-hero:not(.sol-hero-frame):not(.pui-ready) {
  background: linear-gradient(165deg, rgba(16, 26, 48, 0.96) 0%, rgba(11, 18, 35, 0.94) 100%);
}

body.erp-pilot .erp-order-workspace {
  background: #FFFFFF !important;
  contain: layout style paint;
}

:root[data-theme="dunkel"] body.erp-pilot .erp-order-workspace {
  background: #0F192E !important;
}

/* Pausiert dekorative SVG-/Pfad-Animationen außerhalb des Viewports (0 Main-Thread-Repaints) */
.is-offscreen,
.is-offscreen * {
  animation-play-state: paused !important;
}

/* Startseite (.home-pilot): Crisp Frosted-Aero Karten über dem Live-WebGL-Würfel ohne mehrfaches Gaussian-Backdrop-Overdraw */
.home-pilot main :is(
  .aero-glass-card,
  .aero-process-workbench,
  .section-heading,
  .service-row,
  .platform-stack > article,
  .frost-industry-card,
  .frost-case-card,
  #faq .faq-grid > div:first-child,
  .faq-list details,
  .aero-pixel-cta-card,
  .contact-copy,
  .contact-form
) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-pilot main :is(
  .aero-glass-card,
  .aero-process-workbench
) {
  background: linear-gradient(
    162deg,
    rgba(253, 254, 255, 0.96) 0%,
    rgba(244, 248, 255, 0.94) 100%
  );
  box-shadow:
    0 20px 48px rgba(11, 17, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root[data-theme="dunkel"] .home-pilot main :is(
  .aero-glass-card,
  .aero-process-workbench
) {
  background: linear-gradient(
    162deg,
    rgba(16, 26, 48, 0.95) 0%,
    rgba(11, 18, 35, 0.93) 100%
  );
  box-shadow:
    0 24px 56px rgba(2, 6, 16, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Ruhigeres Kapitel-Pacing im Startseiten-Scroll-Film für entspannte 3D-Übergänge */
@media (min-width: 901px) {
  .home-pilot .film-step {
    min-height: clamp(640px, 86svh, 860px);
    padding-block: clamp(36px, 5vh, 64px);
  }

  .home-pilot .film-step:first-child {
    min-height: clamp(620px, 88svh, 860px);
    padding-top: clamp(24px, 3.8vh, 48px);
  }

  .home-pilot .film-flight-space {
    height: clamp(380px, 62svh, 580px);
  }
}

.living-stage-shadow,
.sz-architekt-kopf img,
.band-bild__foto {
  filter: none !important;
}

/* Deferred Rendering für garantiert unterhalb des Folds liegende Abschluss-Sektionen */
body.has-subpage-cube-world main > :is(section#faq, .contact-section, section#kontakt) {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 42rem;
}

/* Native Compositor Scroll-Driven Animations statt Main-Thread JS-Scrubbing */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes mateBandParallax {
      from {
        transform: translate3d(0, -6%, 0) scale(1.14);
      }
      to {
        transform: translate3d(0, 6%, 0) scale(1.14);
      }
    }

    @keyframes mateSpurGrowX {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }

    @keyframes mateSpurGrowY {
      from {
        transform: scaleY(0);
      }
      to {
        transform: scaleY(1);
      }
    }

    .band-bild {
      view-timeline: --mate-band-tl block;
    }

    .band-bild__foto {
      animation: mateBandParallax linear both;
      animation-timeline: --mate-band-tl;
      animation-range: entry 0% exit 100%;
    }

    .sz-phasen {
      view-timeline: --mate-phasen-tl block;
    }

    .sz-phasen .sz-spur span {
      animation: mateSpurGrowX linear both;
      animation-timeline: --mate-phasen-tl;
      animation-range: entry 15% cover 62%;
    }

    @media (max-width: 920px) {
      .sz-phasen .sz-spur span {
        animation-name: mateSpurGrowY;
      }
    }
  }
}

/* ==========================================================================
   SEO & GEO Relaunch Layer: Semantic H1 Kicker, FAQ Disclosure & Reading Strip
   ========================================================================== */
h1 .hero-kicker {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-meta, var(--font-body, "Instrument Sans", system-ui, sans-serif));
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ultra, var(--accent, #1B2ED6));
  text-wrap: pretty;
}

:root[data-theme="dunkel"] h1 .hero-kicker {
  color: #8EA0FF;
}

.film-step h1:has(> .hero-kicker) {
  max-width: 12ch;
}

/* Progressive-enhancement disclosure transitions without hiding from find-in-page */
:is(.faq, .faq-list) details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

:is(.faq, .faq-list) details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.faq, .faq-list) details::details-content {
    transition: block-size 0.24s ease-out, content-visibility 0.24s ease-out, display 0.24s ease-out;
    transition-behavior: allow-discrete;
  }
}

/* Flat hairline reading strip for verified deep-dive blog & case study links */
.mate-reading-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--frost-edge, var(--line, var(--border, rgba(15, 23, 42, 0.14))));
  font-size: 0.92rem;
  line-height: 1.5;
}

.mate-reading-strip__label {
  font-family: var(--font-meta, var(--font-body, "Instrument Sans", system-ui, sans-serif));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #475569);
}

:root[data-theme="dunkel"] .mate-reading-strip__label {
  color: #B5BBD0;
}

.mate-reading-strip a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   14. EDITORIAL BLOG ARTICLES (.mx-article), LEGAL PAGES (.mx-legal) & TABLES
   ========================================================================== */

body.mate-detail:is(.mx-article, .mx-legal) .mate-doc-hero {
  padding: clamp(36px, 4.6vw, 60px) 24px clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
}

.mate-doc-hero__inner {
  max-width: 860px;
}

.mate-doc-hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display, "MATE Grotesk", sans-serif);
  font-size: clamp(1.95rem, 3.8vw, 3.15rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.025em;
  text-transform: none;
  text-wrap: balance;
  color: var(--frost-text, #0B1120);
}

.mate-doc-lead {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(1.02rem, 1.28vw, 1.16rem);
  line-height: 1.62;
  color: var(--frost-muted, #3B475F);
}

:root[data-theme="dunkel"] .mate-doc-lead {
  color: #C7D1E6;
}

/* Flat 1px hairline document ledger (replaces nested KPI cards & pill badges) */
.mate-doc-ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 24px;
  margin: 26px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.14));
  font-variant-numeric: tabular-nums;
}

.mate-doc-ledger > div {
  min-width: 0;
}

.mate-doc-ledger dt {
  margin: 0 0 3px;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--frost-muted, #3B475F);
}

.mate-doc-ledger dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--frost-text, #0B1120);
}

:root[data-theme="dunkel"] .mate-doc-ledger dt {
  color: #B8C4DE;
}

:root[data-theme="dunkel"] .mate-doc-ledger dd {
  color: #F1F5FF;
}

/* 2-Column Document Layout (Sticky TOC + Readable 74ch Sheet) */
body.mate-detail:is(.mx-article, .mx-legal) .mate-doc-section {
  padding: clamp(40px, 5vw, 72px) 24px;
}

.mate-doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.mate-doc-grid--single {
  max-width: 860px;
}

@media (min-width: 1024px) {
  .mate-doc-grid:not(.mate-doc-grid--single) {
    grid-template-columns: minmax(220px, 268px) minmax(0, 1fr);
    gap: clamp(36px, 4.5vw, 64px);
  }
}

.mate-doc-toc {
  display: none;
}

@media (min-width: 1024px) {
  .mate-doc-toc {
    display: block;
    position: sticky;
    top: 98px;
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    padding: 4px 18px 4px 0;
    border-right: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
  }
}

.mate-doc-toc__title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost-muted, #3B475F);
}

.mate-doc-toc ol,
.mate-doc-toc-mobile ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mate-doc-toc li,
.mate-doc-toc-mobile li {
  margin: 0;
}

.mate-doc-toc a,
.mate-doc-toc-mobile a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.42;
  font-variant-numeric: tabular-nums;
  color: var(--frost-muted, #3B475F);
  text-decoration: none;
  transition: color 150ms ease;
}

:root[data-theme="dunkel"] .mate-doc-toc a,
:root[data-theme="dunkel"] .mate-doc-toc-mobile a {
  color: #C7D1E6;
}

.mate-doc-toc a:hover,
.mate-doc-toc-mobile a:hover {
  color: var(--frost-accent, #1B2ED6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:root[data-theme="dunkel"] .mate-doc-toc a:hover,
:root[data-theme="dunkel"] .mate-doc-toc-mobile a:hover {
  color: #93A4FF;
}

.mate-doc-toc__group {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.1));
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--frost-text, #0B1120);
}

.mate-doc-toc__group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

:root[data-theme="dunkel"] .mate-doc-toc__group {
  color: #F1F5FF;
}

.mate-doc-toc-mobile {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.14));
  background: rgba(255, 255, 255, 0.84);
}

:root[data-theme="dunkel"] .mate-doc-toc-mobile {
  background: rgba(17, 26, 44, 0.84);
  border-color: rgba(196, 208, 245, 0.2);
}

.mate-doc-toc-mobile summary {
  cursor: pointer;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.82rem;
  font-weight: 640;
  color: var(--frost-text, #0B1120);
}

.mate-doc-toc-mobile ol {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
}

@media (min-width: 1024px) {
  .mate-doc-toc-mobile {
    display: none;
  }
}

/* Document Sheet & Editorial Prose */
.mate-doc-sheet {
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 22px;
  border: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(11, 17, 32, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

:root[data-theme="dunkel"] .mate-doc-sheet {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(196, 208, 245, 0.18);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mate-doc-prose {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--frost-text, #0B1120);
}

/* Scope text-wrap: pretty strictly to editorial articles, keeping fast default wrap on legal clauses */
body.mx-article .mate-doc-prose :is(p, li) {
  text-wrap: pretty;
}

body.mx-legal .mate-doc-prose :is(p, li) {
  text-wrap: wrap;
}

.mate-doc-prose > *:first-child {
  margin-top: 0 !important;
}

.mate-doc-prose :is(h2, h3, h4, section[id], div[id]) {
  scroll-margin-top: 98px;
}

.mate-doc-prose h2 {
  margin: 44px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
  font-family: var(--font-display, "MATE Grotesk", sans-serif);
  font-size: clamp(1.34rem, 2.05vw, 1.72rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  text-transform: none;
  color: var(--frost-text, #0B1120);
}

.mate-doc-prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mate-doc-prose h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display, "MATE Grotesk", sans-serif);
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  font-weight: 660;
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-transform: none;
  text-wrap: balance;
  color: var(--frost-text, #0B1120);
}

.mate-doc-prose p {
  margin: 0 0 16px;
}

.mate-doc-prose ul,
.mate-doc-prose ol {
  margin: 14px 0 20px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mate-doc-prose li {
  line-height: 1.66;
}

.mate-doc-prose a {
  color: var(--frost-accent, #1B2ED6);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 540;
}

:root[data-theme="dunkel"] .mate-doc-prose a {
  color: #93A4FF;
}

/* 1px hairline quote & legal chapter dividers (zero >1px accent bars or callout boxes) */
.mate-doc-prose blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 18px;
  border-left: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.24));
  color: var(--frost-muted, #3B475F);
}

:root[data-theme="dunkel"] .mate-doc-prose blockquote {
  border-left-color: rgba(196, 208, 245, 0.3);
  color: #C7D1E6;
}

.mate-legal-part {
  margin: 52px 0 24px;
  padding: 32px 0 14px;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.18));
  border-bottom: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.1));
}

.mate-legal-part:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mate-legal-part__code {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost-muted, #3B475F);
}

:root[data-theme="dunkel"] .mate-legal-part__code {
  color: #B8C4DE;
}

.mate-legal-part h2 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: clamp(1.35rem, 2.05vw, 1.68rem);
  text-wrap: balance;
}

.mate-legal-part p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--frost-muted, #3B475F);
}

:root[data-theme="dunkel"] .mate-legal-part p {
  color: #C7D1E6;
}

.mate-clause {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 13px;
  align-items: baseline;
}

.mate-clause__num {
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.86rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  color: var(--frost-muted, #3B475F);
}

:root[data-theme="dunkel"] .mate-clause__num {
  color: #B8C4DE;
}

.mate-clause__body > p:last-child,
.mate-clause__body > ul:last-child,
.mate-clause__body > ol:last-child {
  margin-bottom: 0;
}

.mate-doc-prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.065);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

:root[data-theme="dunkel"] .mate-doc-prose code {
  background: rgba(196, 208, 245, 0.14);
}

/* Accessible Responsive Tables (modern-web-guidance: container-type, sticky thead, role="region" + tabindex="0") */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  margin: 26px 0;
  border-radius: 14px;
  border: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.14));
  background: #FFFFFF;
}

:root[data-theme="dunkel"] .table-wrapper {
  background: #0F172A;
  border-color: rgba(196, 208, 245, 0.2);
}

.table-wrapper:focus-visible {
  outline: 2px solid var(--frost-accent, #1B2ED6);
  outline-offset: 3px;
}

.table-wrapper table {
  width: 100%;
  min-width: 500px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.52;
  font-variant-numeric: tabular-nums;
}

.table-wrapper thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: #F4F6FB;
}

:root[data-theme="dunkel"] .table-wrapper thead {
  background: #17223B;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.1));
}

.table-wrapper th {
  font-family: var(--font-display, "MATE Grotesk", sans-serif);
  font-size: 0.82rem;
  font-weight: 680;
  letter-spacing: 0.01em;
  color: var(--frost-text, #0B1120);
}

.table-wrapper tbody tr:last-child td {
  border-bottom: 0;
}

/* Article FAQ & Related Cluster Cards */
.mate-doc-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.14));
}

.mate-doc-faq h2 {
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
}

.mate-doc-faq details {
  border-bottom: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
  padding: 14px 0;
}

.mate-doc-faq details:first-of-type {
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
}

.mate-doc-faq summary {
  cursor: pointer;
  font-weight: 620;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--frost-text, #0B1120);
}

.mate-doc-faq details p {
  margin: 10px 0 4px;
  color: var(--frost-muted, #3B475F);
  font-size: 0.96rem;
  line-height: 1.65;
}

:root[data-theme="dunkel"] .mate-doc-faq details p {
  color: #C7D1E6;
}

.mate-related-section {
  padding: clamp(44px, 5vw, 68px) 24px;
  border-top: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.12));
}

/* Blog Overview Cards & Full-Width Editorial Note (.mx-news) */
.mate-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mate-blog-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 10px;
  font-family: var(--font-meta, "MATE Grotesk", sans-serif);
  font-size: 0.78rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  color: var(--frost-muted, #3B475F);
}

:root[data-theme="dunkel"] .mate-blog-card__top {
  color: #B8C4DE;
}

.mate-blog-card h3 {
  margin-top: 0;
  text-wrap: balance;
}

.mate-blog-card .meta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
}

.mate-editorial-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 40px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--frost-edge, rgba(15, 23, 42, 0.14));
  background: rgba(255, 255, 255, 0.88);
}

:root[data-theme="dunkel"] .mate-editorial-note {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(196, 208, 245, 0.18);
}

@media (min-width: 860px) {
  .mate-editorial-note {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    align-items: baseline;
  }
}

.mate-editorial-note h3 {
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 1.7vw, 1.48rem);
  line-height: 1.24;
  text-wrap: balance;
}

.mate-editorial-note p {
  margin: 0 0 12px;
  color: var(--frost-muted, #3B475F);
}

:root[data-theme="dunkel"] .mate-editorial-note p {
  color: #C7D1E6;
}

@media print {
  .site-header,
  .site-footer,
  .contact-section,
  .mobile-cta,
  .mate-doc-toc,
  .mate-doc-toc-mobile,
  .mate-related-section,
  .skip {
    display: none !important;
  }

  .mate-doc-sheet {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .mate-doc-prose {
    max-width: 100% !important;
    color: #000 !important;
  }
}



