/* ---------- 0. Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ==========================================================================
   JG-Bits — Design System
   Maps 1:1 to Divi 5 Global Variables (Colors / Fonts / Numbers).
   Brand palette: #34303c · #a8a7ac · #a99480 · #aa8255 · #ac702a
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand (Divi 5 Global Colors) */
  --brand-ink:     #34303c;
  --brand-silver:  #a8a7ac;
  --brand-sand:    #a99480;
  --brand-bronze:  #aa8255;
  --brand-copper:  #ac702a;
  /* Copper steps for AA contrast. Brand copper stays for fills, lines and graphics. */
  --copper-btn:       #9a6224;   /* white text 5.1:1 */
  --copper-btn-hover: #8f5a20;   /* white text 5.8:1 */
  --copper-on-light:  #8f5a20;   /* 4.8:1 on paper-2, 5.8:1 on white */
  --copper-on-dark:   #c98a42;   /* >= 5:1 on ink-700..900 */
  --copper-text:      var(--copper-on-light);

  /* Derived tones (tints/shades of brand only) */
  --ink-900: #1c1a21;          /* ink, deepest */
  --ink-800: #24212a;
  --ink-700: #2c2933;
  --ink-600: #34303c;          /* = brand */
  --ink-500: #4a4553;
  --paper:   #f4f4f5;          /* near-neutral off-white, faint ink tint */
  --paper-2: #eaeaec;
  --white:   #ffffff;

  --text-on-dark:  #f2f1f4;
  --muted-on-dark: #a8a7ac;    /* = brand silver */
  --text-on-light: #34303c;    /* = brand ink */
  --muted-on-light:#5f5a68;

  --copper-glow: rgba(172, 112, 42, .55);
  --hair-dark:  rgba(255, 255, 255, .08);
  --hair-light: rgba(52, 48, 60, .10);

  /* Type */
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-sans:  "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale (tracking + leading are size-specific) */
  --fs-display: clamp(2.6rem, 1.5rem + 4.6vw, 5.5rem);
  --fs-h1:      clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --fs-h3:      clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
  --fs-lead:    clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --fs-body:    1rem;
  --fs-small:   .875rem;
  --fs-micro:   .6875rem;

  /* Spacing */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --section-y: clamp(5.5rem, 3rem + 9vw, 10rem);
  --container: 80rem;
  --container-narrow: 52rem;

  /* Radii — concentric (outer − padding = inner) */
  --r-shell: 1rem;
  --r-pad: 0rem;
  --r-core: 1rem;
  --r-sm: .625rem;

  /* Motion */
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-fluid:    cubic-bezier(.32, .72, 0, 1);
  --ease-in-fluid: cubic-bezier(.72, 0, 1, .32);   /* mirrored for reverse paths */
  --dur-press: 120ms;
  --dur-ui: 450ms;
  --dur-slow: 900ms;

  /* Layers */
  --z-nav: 100;
  --z-overlay: 200;
  --z-grain: 300;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-copper); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--copper-btn); color: #fff; }

/* Fixed grain layer — never on scrolling containers */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: var(--z-grain);
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; font-stretch: 112%; color: inherit; text-wrap: balance; }
.t-display { font-family: var(--font-display); font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; font-stretch: 115%; }
h1, .t-h1  { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.03em; font-stretch: 112%; }
h2, .t-h2  { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.025em; font-stretch: 112%; }
h3, .t-h3  { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2;  letter-spacing: -.012em; }
h4         { font-size: 1.05rem; line-height: 1.35; letter-spacing: -.005em; }
/* Long German compounds in the wide display face: hyphenate instead of overflowing */
h1, h2, h3, .t-display, .t-h1, .t-h2 { hyphens: auto; text-wrap: balance; /* .t-* also sit on <p>, which gets "pretty": Firefox then hyphenated "Hoff-nungen" */ -webkit-hyphens: auto; overflow-wrap: break-word;
/* Auto hyphenation only where long German words would not fit (phones); wider screens break at spaces, checked 768-1440px */
@media (min-width: 768px) { h1, h2, h3, .t-display, .t-h1, .t-h2 { hyphens: manual; -webkit-hyphens: manual; } }
  /* at least 4 letters on each side: no lone "gen" line (Fehlentscheidun-gen); -webkit- for Safari */
  hyphenate-limit-chars: 8 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
p { margin: 0 0 1em; text-wrap: pretty; }
.t-lead { font-size: var(--fs-lead); line-height: 1.55; letter-spacing: -.005em; }
.t-small { font-size: var(--fs-small); }
.t-mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .01em; }
.copper { color: var(--copper-text); }
/* Emphasis = same family, brand color. No gradient text, no mixed-family accents. */
.accent, .grad-text { color: var(--copper-text); }
.muted { color: var(--muted-on-light); }
.on-dark .muted, .s-dark .muted, .s-deep .muted, .s-ink .muted, .page-hero .muted, .hero .muted { color: var(--muted-on-dark); }

/* Kicker: used sparingly (hero only), plain text, sentence case */
.eyebrow {
  display: block; font-family: var(--font-sans); font-size: .95rem; font-weight: 500;
  color: var(--copper-text); margin-bottom: 1.25rem;
}

/* ---------- 4. Layout (Divi: Section › Row › Column › Module) ---------- */
/* Section-level paddings use :is(x, .et_pb_section.x) so they beat Divi's late `.et_pb_section { padding }`. */
:is(.section, .et_pb_section.section) { position: relative; padding-block: var(--section-y); isolation: isolate; }
:is(.section--tight, .et_pb_section.section--tight) { padding-block: calc(var(--section-y) * .6); }
:is(.section--flush-top, .et_pb_section.section--flush-top) { padding-top: 0; }
.s-dark  { background: var(--ink-800); color: var(--text-on-dark); }
.s-dark, .s-ink, .s-deep, .hero, .page-hero, .on-dark, .svc--feature, .svc-item__vis, .trust, .nav, .mega, .overlay, .cta-band, .footer { --copper-text: var(--copper-on-dark); }
.s-ink   { background: var(--ink-600); color: var(--text-on-dark); }
.s-deep  { background: var(--ink-900); color: var(--text-on-dark); }
.s-paper { background: var(--paper); }
.s-white { background: var(--white); }
.s-sand  { background: var(--paper-2); }
/* Visible seam between consecutive light sections */
.s-white + .s-paper, .s-paper + .s-white, .s-white + .s-sand, .s-sand + .s-white, .s-paper + .s-sand, .s-sand + .s-paper { border-top: 1px solid var(--hair-light); }

.row { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; position: relative; }
.row--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }
.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: 1.4fr 1fr; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 1.25rem; }
.stack > * + * { margin-top: 1rem; }

@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------- 5. Buttons — pill + nested icon island ---------- */
.btn {
  --btn-bg: var(--copper-btn); --btn-fg: #fff; --btn-ico-bg: rgba(255,255,255,.18);
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1.35rem; min-height: 3rem;
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform var(--dur-press) ease-out, background-color var(--dur-ui) var(--ease-fluid), box-shadow var(--dur-ui) var(--ease-fluid);
  box-shadow: none;
}
.btn:hover { background: var(--copper-btn-hover); }
.btn:active { transform: scale(.97); }
.btn__ico {
  display: grid; place-items: center; width: auto; height: auto; border-radius: 50%;
  background: none;
  transition: transform var(--dur-ui) var(--ease-fluid);
}
.btn__ico svg { width: 1.05rem; height: 1.05rem; }
.btn:hover .btn__ico { transform: translateX(3px); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-ico-bg: rgba(52,48,60,.08);
  box-shadow: inset 0 0 0 1px rgba(52,48,60,.22);
}
.btn--ghost:hover { background: rgba(52,48,60,.04); box-shadow: inset 0 0 0 1px rgba(52,48,60,.22); }
.s-dark .btn--ghost, .s-ink .btn--ghost, .s-deep .btn--ghost, .on-dark .btn--ghost {
  --btn-ico-bg: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.hero .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.s-dark .btn--ghost:hover, .s-ink .btn--ghost:hover, .s-deep .btn--ghost:hover, .on-dark .btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-ink); --btn-ico-bg: rgba(52,48,60,.08); box-shadow: none; }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 2.5rem; padding: .3rem 1.05rem; font-size: .875rem; }
.btn--sm .btn__ico { width: 2rem; height: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 550; font-size: .925rem;
  color: var(--copper-text);
}
.link-arrow svg { width: .95rem; height: .95rem; transition: transform var(--dur-ui) var(--ease-fluid); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Cards: one surface, one hairline, 16px radius ---------- */
.bezel { position: relative; padding: 0; border-radius: var(--r-core); }
.bezel__core {
  position: relative; height: 100%; border-radius: var(--r-core); overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--hair-light);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}
.s-sand .bezel__core { background: #fbfafc; }
.s-dark .bezel__core, .s-ink .bezel__core, .s-deep .bezel__core, .page-hero .bezel__core, .hero .bezel__core, .on-dark .bezel__core {
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}
.bezel.on-dark > .bezel__core { background: var(--ink-800); }
.bezel--flush .bezel__core { padding: 0; }

/* Card interactions: hairline turns copper on hover, press feedback on pointer-down */
.card-link { display: block; height: 100%; transition: transform var(--dur-ui) var(--ease-fluid); }
.card-link:active { transform: translateY(-2px) scale(.99); transition-duration: var(--dur-press); }
.card-link .bezel__core { transition: box-shadow .25s var(--ease-out-expo); }
.card-link:hover .bezel__core { box-shadow: inset 0 0 0 1px rgba(172,112,42,.55); }
.svc--feature.card-link:hover .bezel__core { box-shadow: inset 0 0 0 1px rgba(172,112,42,.7); }


/* Icon chip */
.ico {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem;
  background: linear-gradient(145deg, rgba(172,112,42,.16), rgba(172,112,42,.04));
  box-shadow: inset 0 0 0 1px rgba(172,112,42,.22);
  color: var(--copper-text); margin-bottom: 1.25rem;
}
.ico svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.25; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: rgba(172,112,42,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ac702a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 767px) { .checks--2 { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-family: var(--font-mono); font-size: .75rem; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(52,48,60,.05); box-shadow: inset 0 0 0 1px var(--hair-light);
}
.s-dark .tags li, .s-ink .tags li, .s-deep .tags li, .on-dark .tags li { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-dark); color: var(--muted-on-dark); }
.tags .tags__more { background: none; box-shadow: none; font-style: italic; color: var(--muted-on-light); }

/* ---------- 7. Navigation — floating glass island ---------- */
.nav {
  position: fixed; z-index: var(--z-nav); top: 1rem; left: 50%; transform: translateX(-50%);
  width: min(100% - 2rem, 76rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .45rem .45rem .45rem 1.25rem; border-radius: 999px;
  background: rgba(36, 33, 42, .86); /* .62 turned mid-grey over light sections: logo and links lost contrast */
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.07), 0 18px 50px -20px rgba(0,0,0,.55);
  color: var(--text-on-dark);
  transition: transform var(--dur-ui) var(--ease-fluid), background-color var(--dur-ui) var(--ease-fluid);
}
.nav__logo img { height: 1.6rem; width: auto; }
.nav__menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .9rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: rgba(243,241,238,.82);
  transition: color .25s ease-out, background-color .25s ease-out;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.07); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-copper); margin-left: .1rem; }
.nav__link svg { width: .7rem; height: .7rem; transition: transform var(--dur-ui) var(--ease-fluid); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { margin-left: .4rem; }

/* Mega menu — originates from its trigger */
.mega {
  position: absolute; top: calc(100% + .9rem); left: 50%;
  width: min(46rem, 92vw); transform-origin: top center;
  translate: -50% 0; scale: .96; opacity: 0; filter: blur(6px); pointer-events: none;
  visibility: hidden; /* closed menu: out of the Tab order and the accessibility tree */
  transition: scale var(--dur-ui) var(--ease-fluid), opacity .3s ease-out, filter var(--dur-ui) var(--ease-fluid), visibility 0s var(--dur-ui);
  padding: var(--r-pad); border-radius: 1rem;
  /* Solid surface: a nested backdrop-filter does not blur inside the glass nav */
  background: var(--ink-800);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.6);
}
.mega.is-open { scale: 1; opacity: 1; filter: blur(0); pointer-events: auto; visibility: visible; transition-delay: 0s; }
/* Narrow desktop (1101-1300px, e.g. iPad landscape): centred under "Leistungen" the panel ran past the left edge */
@media (max-width: 1300px) { .mega { left: 0; translate: 0 0; transform-origin: top left; } }
.mega__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: .375rem; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .5rem; }
.mega__item { display: flex; align-items: center; gap: .85rem; padding: .85rem; border-radius: 1rem; transition: background-color .25s ease-out; }
.mega__item:hover { background: rgba(255,255,255,.06); }
.mega__item .ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .8rem; margin: 0; flex: none; }
.mega__item .ico svg { display: block; width: 1.15rem; height: 1.15rem; }
.mega__item strong { display: block; font-size: .9rem; font-weight: 550; color: #fff; }
.mega__item span { display: block; font-size: .78rem; line-height: 1.4; color: var(--muted-on-dark); }
.mega__feature {
  position: relative; border-radius: 1rem; overflow: hidden; padding: 1.4rem; min-height: 15rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink-700);
}
.mega__feature .eyebrow { margin-bottom: .8rem; }
.mega__feature strong { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; color: #fff; }
.mega__feature p { font-size: .82rem; color: var(--muted-on-dark); margin: .5rem 0 0; }

/* Burger morph */
.burger { display: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: rgba(255,255,255,.08); position: relative; }
.burger span { position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1.5px; background: #fff; border-radius: 2px; transition: transform var(--dur-ui) var(--ease-fluid); }
.burger span:nth-child(1) { transform: translate(-50%, -4px); }
.burger span:nth-child(2) { transform: translate(-50%, 4px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

/* Mobile overlay */
.overlay {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: rgba(28, 26, 33, .9);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  color: #fff; padding: 6.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto;
  /* iOS Safari shows the page below its floating toolbar too; inset:0 stops above it and the page peeked through */
  bottom: auto; height: 100lvh;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-fluid), visibility 0s .4s;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-fluid), visibility 0s; }
.overlay__group { margin-bottom: 1.75rem; }
.overlay__label { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-text); margin-bottom: .6rem; }
.overlay a.big { display: block; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 550; letter-spacing: -.03em; line-height: 1.35; }
.overlay a.small { display: block; padding: .35rem 0; color: var(--muted-on-dark); font-size: 1.05rem; }
.overlay .reveal-item { opacity: 0; transform: translateY(2.2rem); transition: transform .7s var(--ease-out-expo), opacity .5s ease-out; }
.overlay.is-open .reveal-item { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav__menu, .nav__cta { display: none; }
  .burger { display: block; }
  .nav { padding-left: 1.1rem; }
}

/* ---------- 8. Hero ---------- */
:is(.hero, .et_pb_section.hero) {
  position: relative; min-height: 100dvh; display: flex; align-items: center;
  padding-block: 9rem 6rem; overflow: hidden; isolation: isolate;
  background: var(--ink-900); color: var(--text-on-dark);
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; z-index: -2; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(172,112,42,.38), rgba(172,112,42,.08) 55%, transparent 72%);
  filter: blur(10px); opacity: .55;
}
.hero__glow--2 { inset: auto auto -35% -20%; width: 55vw; height: 55vw; background: radial-gradient(closest-side, rgba(169,148,128,.18), transparent 70%); }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--ink-900)); pointer-events: none; }
.hero__inner { position: relative; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.hero h1 { max-width: 15ch; }
.hero .t-lead { max-width: 38rem; margin-top: 1.75rem; color: rgba(243,241,238,.74); }
.hero .btn-row { margin-top: 2.5rem; }
.hero__meta {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem); display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark);
}
.hero__meta strong { display: block; font-family: var(--font-sans); font-size: 1.9rem; letter-spacing: -.03em; text-transform: none; color: #fff; font-weight: 550; margin-bottom: .2rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.75rem; translate: -50% 0;
  width: 1.5rem; height: 2.4rem; border-radius: 1rem; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25);
}
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: .5rem; width: 3px; height: .5rem; translate: -50% 0; border-radius: 2px; background: var(--brand-copper); animation: scrollcue 2.2s var(--ease-fluid) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(.8rem); opacity: 0; } 100% { opacity: 0; } }

/* Sub-page hero */
:is(.page-hero, .et_pb_section.page-hero) {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(9rem, 7rem + 6vw, 12rem) 0 clamp(4.5rem, 3rem + 5vw, 8rem);
  background: var(--ink-900); color: var(--text-on-dark);
}
.page-hero .hero__glow { width: 55vw; height: 55vw; inset: -40% -12% auto auto; }
.page-hero h1 { max-width: 18ch; }
.page-hero .t-lead { max-width: 40rem; margin-top: 1.5rem; color: rgba(243,241,238,.74); }
.page-hero .btn-row { margin-top: 2.25rem; }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (max-width: 1024px) { .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-900) 25%, rgba(28,26,33,.6) 70%, rgba(28,26,33,.85)), linear-gradient(transparent 60%, var(--ink-900)); }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: .75rem; color: var(--muted-on-dark); margin-bottom: 1.75rem; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .4; }


/* ---------- 9. Marquee (logos / stack) ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; color: var(--muted-on-dark); white-space: nowrap; }
.marquee__item i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--brand-copper); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
:is(.trust, .et_pb_section.trust) { padding-block: 2.5rem; border-block: 1px solid var(--hair-dark); background: var(--ink-900); }
.trust__label { text-align: center; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 1.5rem; }

/* ---------- 10. Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.9rem, .5rem + 1vw, 1.5rem); }
.bento > * { grid-column: span 4; }
.bento .b-8 { grid-column: span 8; }
.bento .b-7 { grid-column: span 7; }
.bento .b-5 { grid-column: span 5; }
.bento .b-6 { grid-column: span 6; }
.bento .b-r2 { grid-row: span 2; }
@media (max-width: 1024px) { .bento > *, .bento .b-8, .bento .b-7, .bento .b-5 { grid-column: span 6; } .bento .b-wide-t { grid-column: span 12; } }
@media (max-width: 767px)  { .bento > *, .bento > [class*="b-"] { grid-column: 1 / -1; grid-row: auto; } }

.svc { display: flex; flex-direction: column; height: 100%; }
.svc h3 { margin-bottom: .75rem; }
.svc p { color: var(--muted-on-light); }
.s-dark .svc p, .s-deep .svc p, .s-ink .svc p, .page-hero .svc p { color: var(--muted-on-dark); }
.svc .link-arrow { margin-top: auto; padding-top: 1.25rem; }
.svc > p + .tags { margin-top: auto; padding-top: 1.5rem; } /* tags sit on the card bottom so rows line up */
.svc > .tags + .link-arrow { margin-top: 0; }
.svc__num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--font-mono); font-size: .75rem; color: var(--brand-sand); opacity: .8; }
.svc__visual { margin: -.5rem -.5rem 1.5rem; border-radius: calc(var(--r-core) - .5rem); overflow: hidden; position: relative; }
/* Plain feature lists instead of identical card grids */
.feature-list { row-gap: 0; }
.feature-list .bezel__core { background: none !important; box-shadow: none !important; border-radius: 0; padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--hair-light); }
.feature-list h3, .feature-list h4 { margin-bottom: .5rem; }

.svc--feature .bezel__core {
  background: var(--ink-800); box-shadow: none;
  color: var(--text-on-dark);
}
.svc--feature .svc p { color: rgba(243,241,238,.7); }
.svc--feature .tags li { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair-dark); color: var(--muted-on-dark); }
.badge-focus { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; background: var(--copper-btn); color: #fff; }

/* ---------- 11. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 1.75rem clamp(1rem, .5rem + 1.5vw, 2rem); border-left: 1px solid var(--hair-light); }
.s-dark .stat, .s-deep .stat, .s-ink .stat { border-color: var(--hair-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.5rem); font-weight: 550; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: .45em; top: -.9em; letter-spacing: 0; color: var(--copper-text); margin-left: .1em; }
.stat__pre { margin-right: .3em; font-family: var(--font-sans); font-stretch: normal; font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted-on-light); }
.s-dark .stat__pre, .s-deep .stat__pre, .s-ink .stat__pre { color: var(--muted-on-dark); }
.stat__label { margin-top: .85rem; font-size: .9rem; color: var(--muted-on-light); max-width: 16rem; }
.s-dark .stat__label, .s-deep .stat__label, .s-ink .stat__label { color: var(--muted-on-dark); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- 12. Process — pinned horizontal ---------- */
.process { overflow: hidden; }
.process__track { display: flex; gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); width: max-content; padding-right: var(--gutter); }
.process__card { width: min(26rem, 80vw); flex: none; }
.process__step { font-family: var(--font-mono); font-size: .8rem; color: var(--copper-text); margin-bottom: 2.5rem; display: flex; justify-content: space-between; }
.process__card h3 { margin-bottom: .8rem; }
.process__bar { height: 2px; background: var(--hair-dark); margin-top: 2.5rem; border-radius: 2px; overflow: hidden; }
.process__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand-copper), var(--brand-sand)); transform-origin: left; transform: scaleX(0); }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .process__track { width: auto; flex-direction: column; padding-right: var(--gutter); }
  .process__card { width: 100%; }
}

/* ---------- 12b. Steps — scroll-driven sequence (data-steps) ---------- */
.steps-wrap { --steps-gap: clamp(1.5rem, 1rem + 2vw, 3rem); --node: 2.75rem; position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--steps-gap); }
/* line runs from the first to the last node centre */
.steps__line { position: absolute; top: calc(var(--node) / 2 - 1px); left: calc(var(--node) / 2); width: calc(75% + .75 * var(--steps-gap)); height: 2px; background: var(--hair-light); border-radius: 2px; overflow: hidden; }
.steps__line i { display: block; width: 100%; height: 100%; background: var(--brand-copper); transform-origin: left; }
.step__num { position: relative; display: grid; place-items: center; width: var(--node); height: var(--node); margin-bottom: 1.5rem; border-radius: 50%; background: var(--brand-ink); color: #fff; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--brand-copper); font-family: var(--font-mono); font-size: .8rem; transition: background-color .5s, color .5s, box-shadow .5s; }
.step h3 { margin-bottom: .6rem; }
.step p { margin: 0; color: var(--muted-on-light); }
.step > :not(.step__num) { transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.steps.is-anim .step:not(.is-on) > :not(.step__num) { opacity: 0; transform: translateY(1.25rem); }
.steps.is-anim .step:not(.is-on) .step__num { background: var(--white); color: var(--muted-on-light); box-shadow: inset 0 0 0 1px rgba(52, 48, 60, .25); }
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .step { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 1.25rem; }
  .step__num { grid-row: 1 / span 2; margin-bottom: 0; }
  .step h3 { margin-top: .55rem; }
  .steps__line { top: calc(var(--node) / 2); bottom: 0; left: calc(var(--node) / 2 - 1px); width: 2px; height: auto; }
  .steps__line i { transform-origin: top; }
}

/* ---------- 13. Feature rows / media ---------- */
.media { position: relative; border-radius: var(--r-core); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-700); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--duo img { filter: grayscale(1) contrast(1.05) brightness(.9); }
.media--duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(172,112,42,.55), rgba(52,48,60,.75)); mix-blend-mode: multiply; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 9; }
.media__chip {
  position: absolute; z-index: 2; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem .55rem .6rem; border-radius: 999px;
  background: rgba(28,26,33,.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #fff; font-size: .8rem; font-weight: 500;
}
.media__chip i { width: .55rem; height: .55rem; border-radius: 50%; background: #5bd18b; box-shadow: 0 0 0 4px rgba(91,209,139,.2); }

/* ---------- 14. Motion graphics: terminal / code / PII ---------- */
.term {
  border-radius: var(--r-core); overflow: hidden; background: #17151b; color: #e8e4de;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.75;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.term__bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.05); }
.term__bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #4a4553; }
.term__bar i:first-child { background: var(--brand-copper); }
.term__bar span { margin-left: auto; font-size: .7rem; color: var(--muted-on-dark); }
.term__body { padding: 1.25rem 1.25rem 1.5rem; min-height: 18rem; white-space: pre-wrap; word-break: break-word; }
.term .c-cop { color: #d9a465; } .term .c-ok { color: #8fd6a6; } .term .c-dim { color: #7d7885; } .term .c-warn { color: #e8b26a; } .term .c-bad { color: #ef8f7d; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--brand-copper); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.pii { display: grid; gap: .75rem; }
.pii__panel { border-radius: 1.25rem; padding: 1.25rem 1.35rem; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-dark); }
.pii__label { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: .75rem; }
.pii__text { font-size: .98rem; line-height: 1.7; color: #f3f1ee; min-height: 5.1em; }
.pii mark { background: transparent; color: inherit; border-radius: .35rem; padding: 0 .15rem; transition: background-color .5s var(--ease-fluid), color .5s var(--ease-fluid); }
.pii.is-scanning mark { background: rgba(239,143,125,.18); color: #ffc3b7; }
.pii.is-masked mark { background: rgba(172,112,42,.22); color: #e9b77d; }
.pii__flow { display: flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--copper-text); }
.pii__flow svg { width: 1.1rem; height: 1.1rem; }
.pii__meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .25rem; }
.pii__meter div { padding: .75rem .9rem; border-radius: 1rem; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair-dark); }
.pii__meter b { display: block; font-size: 1.25rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pii__meter span { font-size: .72rem; color: var(--muted-on-dark); }
.status-dot { display: inline-flex; align-items: center; gap: .4rem; }
.status-dot::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }

/* KI tasks (home): rotating examples; the PII demo is the last scene */
.ai-tasks { display: grid; gap: .9rem; }
.ai-tasks__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 480px) { .ai-tasks__chips { display: grid; grid-template-columns: 1fr 1fr; } }
.ai-tasks__chips button { flex: none; font: inherit; font-size: .82rem; padding: .5rem .95rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-dark); color: var(--muted-on-dark); cursor: pointer; transition: background-color .25s var(--ease-fluid), color .25s var(--ease-fluid); }
.ai-tasks__chips button:active { transform: scale(.96); }
.ai-tasks__chips button[aria-pressed="true"] { background: var(--copper-btn); color: #fff; box-shadow: none; }
.ai-tasks__chips button:focus-visible { outline: 2px solid var(--brand-copper); outline-offset: 2px; }
.ai-tasks__stage { display: grid; }
.ai-scene { grid-area: 1 / 1; display: grid; gap: .75rem; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s var(--ease-fluid), transform .5s var(--ease-fluid), visibility 0s .5s; }
.ai-scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.no-motion .ai-scene { transition: none; }
.ai-scene__task { font-size: 1.05rem; line-height: 1.5; color: #f3f1ee; margin: 0 0 1.1rem; }
.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; color: var(--muted-on-dark); }
.ai-steps li { display: flex; gap: .7rem; align-items: center; opacity: .4; transition: opacity .4s var(--ease-fluid), color .4s var(--ease-fluid); }
.ai-steps li::before { content: ""; flex: none; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-dark); font-size: .7rem; font-weight: 600; }
.ai-steps li[data-state] { opacity: 1; }
.ai-steps li[data-state="run"]::before { box-shadow: inset 0 0 0 2px var(--brand-copper); animation: ai-pulse 1s ease-in-out infinite; }
.ai-steps li[data-state="done"] { color: #f3f1ee; }
.ai-steps li[data-state="done"]::before { content: "✓"; background: rgba(143,214,166,.15); color: #8fd6a6; box-shadow: none; }
.ai-steps li[data-state="warn"] { color: #ffc3b7; }
.ai-steps li[data-state="warn"]::before { content: "!"; background: rgba(239,143,125,.18); color: #ef8f7d; box-shadow: none; }
@keyframes ai-pulse { 50% { opacity: .35; } }
.ai-meter { opacity: .3; transition: opacity .6s var(--ease-fluid); }
.ai-meter.is-on { opacity: 1; }
.ai-tasks__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted-on-dark); }
.ai-tasks__foot span:first-child { display: inline-flex; align-items: center; gap: .5rem; color: var(--copper-text); }
.ai-tasks__foot svg { width: 1rem; height: 1rem; }
/* Phones: the stage is as tall as the tallest scene (Datenschutz, 571px) and the card was 752px, taller than an
   iPhone viewport. Tighter spacing and type bring it to ~610px, same content. */
@media (max-width: 480px) {
  [data-ai-tasks] { gap: .7rem; }
  .ai-tasks__chips button { padding: .42rem .7rem; font-size: .8rem; }
  [data-ai-tasks] .pii__panel { padding: .95rem 1rem; }
  [data-ai-tasks] .pii__label { margin-bottom: .5rem; }
  [data-ai-tasks] :is(.pii, .ai-scene) { gap: .5rem; }
  [data-ai-tasks] .pii__text { font-size: .9rem; line-height: 1.55; min-height: 0; }
  [data-ai-tasks] .ai-scene__task { font-size: .95rem; margin-bottom: .75rem; }
  [data-ai-tasks] .ai-steps { gap: .45rem; font-size: .88rem; }
  [data-ai-tasks] .pii__meter { margin-top: 0; }
  [data-ai-tasks] .pii__meter span { display: block; line-height: 1.35; }
}

/* Architecture diagram */
.arch { width: 100%; height: auto; overflow: visible; }
.arch .node rect { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.14); }
.arch .node text { fill: #f3f1ee; font-family: var(--font-mono); font-size: 11px; }
.arch .node .sub { fill: #a8a7ac; font-size: 9px; }
.arch .wire { fill: none; stroke: rgba(169,148,128,.35); stroke-width: 1.2; stroke-dasharray: 3 5; }
.arch .packet { fill: var(--brand-copper); filter: drop-shadow(0 0 6px rgba(172,112,42,.9)); }
.arch .zone { fill: none; stroke: rgba(172,112,42,.35); stroke-dasharray: 2 6; }
.arch .zone-label { fill: var(--copper-text); font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em; }

/* Services list: one topic animation per service (cloud.html #leistungen) */
.svc-list { display: flex; flex-direction: column; }
.svc-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; padding-block: clamp(2.5rem, 1.5rem + 2.5vw, 4rem); border-top: 1px solid var(--hair-light); }
.svc-item:first-child { border-top: 0; padding-top: 0; }
.svc-item__vis { margin: 0; background: var(--ink-800); border-radius: var(--r-core); padding: clamp(1rem, .6rem + 1vw, 1.5rem); }
/* Phones: thinner frame so the diagram (and its 9px labels) renders closer to 1:1 */
@media (max-width: 640px) { .svc-item__vis { padding: .375rem; } }
.svc-item__vis svg { display: block; width: 100%; height: auto; }
.svc-item__lead { margin: .9rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--brand-ink); max-width: 62ch; text-wrap: pretty; }
.svc-item__body { margin: .75rem 0 0; color: var(--muted-on-light); max-width: 62ch; text-wrap: pretty; }
.svc-item .tags { margin-top: 1.25rem; }
.svc-item .tags li { font-size: .7rem; padding: .3rem .6rem; }
.svc-item__toggle { display: none; }
.svc-item__vis .svc-lock circle { fill: var(--ink-800); stroke: var(--brand-copper); }
.svc-item__vis .svc-lock path { fill: none; stroke: var(--brand-copper); stroke-width: 1.2; }
.svc-item__vis .svc-pill rect { fill: rgba(172,112,42,.16); stroke: rgba(172,112,42,.6); }
.svc-item__vis .svc-pill text { fill: #e9b77d; font-family: var(--font-mono); font-size: 9px; }
.svc-item__vis .svc-wire-hot { stroke: rgba(172,112,42,.7); }
.svc-item__vis .svc-wire-bad { stroke: rgba(239,143,125,.45); }
.svc-item__vis .packet--bad { fill: #ef8f7d; filter: drop-shadow(0 0 6px rgba(239,143,125,.8)); }
.svc-item__vis .svc-bad-label { fill: #ef8f7d; }
.svc-item__vis .svc-bar { fill: rgba(169,148,128,.3); }
.svc-item__vis .svc-bar--hot { fill: rgba(172,112,42,.85); }
.svc-item__vis .svc-axis { stroke: rgba(255,255,255,.18); }
.svc-item__vis .svc-mark { stroke: rgba(172,112,42,.6); stroke-dasharray: 3 4; }
.svc-item__vis .svc-code { fill: rgba(255,255,255,.16); }
.svc-item__vis .svc-block { fill: rgba(172,112,42,.14); stroke: rgba(172,112,42,.55); }
.svc-item__vis .svc-threshold { stroke: rgba(239,143,125,.6); stroke-dasharray: 4 4; }
.svc-item__vis .svc-spark { fill: none; stroke: var(--brand-sand); stroke-width: 1.6; stroke-linejoin: round; }
.svc-item__vis .svc-alert { fill: #ef8f7d; }
.svc-item__vis .svc-alert-text { fill: #ef8f7d; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; }
.svc-item__vis .svc-check { fill: #8fd6a6; font-size: 13px; }
.svc-item__vis .svc-sub { fill: #a8a7ac; font-family: var(--font-mono); font-size: 9px; }
.svc-item__vis .svc-path { fill: none; stroke: none; }
.svc-item__vis .svc-track { fill: rgba(255,255,255,.08); }
.svc-item__vis .svc-fill { fill: #6e6259; }
.svc-item__vis .svc-dark { fill: #24212a; font-family: var(--font-mono); font-size: 9px; }
.svc-item__vis .svc-scan { fill: var(--brand-copper); }
.svc-item__vis .svc-sep { stroke: rgba(255,255,255,.14); stroke-dasharray: 3 5; }
.svc-item__vis .svc-key circle, .svc-item__vis .svc-key path { fill: none; stroke: var(--brand-copper); stroke-width: 1.4; }
.svc-item__vis .svc-ok { fill: #8fd6a6; }
.svc-item__vis .svc-hot { fill: #e9b77d; }
.svc-item__vis .svc-dot { fill: #6e6259; }
.svc-item__vis .svc-dot--new { fill: var(--brand-copper); }
.svc-item__vis .svc-node-t { fill: #f3f1ee; font-family: var(--font-mono); font-size: 11px; }
.svc-item__vis .svc-ghost { fill: rgba(255,255,255,.03); stroke: rgba(172,112,42,.55); }
.svc-item__vis .svc-warn { fill: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
@media (max-width: 1023px) {
  .svc-item { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-item__vis { max-width: 34rem; }
}
@media (max-width: 767px) {
  .js-collapse .svc-item__more { display: none; }
  .js-collapse .svc-item__more.is-open { display: block; }
  .js-collapse .svc-item__toggle { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding: .6rem 0; min-height: 44px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--copper-text); cursor: pointer; }
}

/* Gauge (performance) */
.gauge { position: relative; width: 11rem; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 8; }
.gauge .track { stroke: rgba(52,48,60,.08); }
.s-dark .gauge .track, .on-dark .gauge .track { stroke: rgba(255,255,255,.08); }
.gauge .bar { stroke: var(--brand-copper); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.gauge b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.gauge-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.gauge-cap { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-top: .6rem; color: var(--muted-on-light); }

/* SERP mock */
.serp { display: grid; gap: .6rem; }
.serp__row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 1rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair-light); }
.serp__pos { width: 2rem; height: 2rem; flex: none; border-radius: .65rem; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; background: rgba(52,48,60,.06); }
.serp__row.is-you { box-shadow: inset 0 0 0 1.5px var(--brand-copper), 0 20px 40px -24px var(--copper-glow); }
.serp__row.is-you .serp__pos { background: var(--copper-btn); color: #fff; }
.serp__lines { flex: 1; display: grid; gap: .35rem; }
.serp__lines i { display: block; height: .5rem; border-radius: 1rem; background: rgba(52,48,60,.1); }
.serp__lines i:first-child { width: 70%; background: rgba(52,48,60,.22); }
.serp__lines i:last-child { width: 45%; }
.serp__row.is-you .serp__lines i:first-child { background: var(--brand-copper); }
.serp__name { font-size: .8rem; font-weight: 600; }

/* ---------- 15. Reasons / numbered list ---------- */
.reasons { display: grid; gap: 0; counter-reset: r; }
.reason { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--hair-light); align-items: start; }
.s-dark .reason, .s-deep .reason, .s-ink .reason { border-color: var(--hair-dark); }
.reason__n { font-family: var(--font-mono); font-size: .8rem; color: var(--copper-text); padding-top: .4rem; }
.reason h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -.025em; }
.reason p { margin: 0; color: var(--muted-on-light); }
.s-dark .reason p, .s-deep .reason p, .s-ink .reason p { color: var(--muted-on-dark); }
.reason--num { grid-template-columns: 5rem 1fr 1.4fr; }
/* Focus list (data-focus): items dim until reached, then light up while their hairline draws in copper */
.reasons.is-anim .reason { position: relative; }
.reasons.is-anim .reason::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--brand-copper); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out-expo); }
.reasons.is-anim .reason.is-on::before { transform: scaleX(1); }
.reasons.is-anim .reason > * { transition: opacity .7s var(--ease-out-expo), transform .9s var(--ease-out-expo); }
.reasons.is-anim .reason:not(.is-on) > * { opacity: .3; transform: translateY(.75rem); }
@media (max-width: 900px) { .reason { grid-template-columns: 1fr; gap: .75rem 1rem; } .reason--num { grid-template-columns: 3rem 1fr; } .reason--num p { grid-column: 2; } }

/* ---------- 16. Accordion (FAQ) ---------- */
.acc { display: grid; gap: .6rem; }
.acc__item { border-radius: var(--r-core); background: var(--white); box-shadow: inset 0 0 0 1px var(--hair-light); overflow: hidden; transition: box-shadow .3s ease-out; }
.acc__item[open] { box-shadow: inset 0 0 0 1px rgba(172,112,42,.35), 0 24px 50px -36px rgba(52,48,60,.4); }
.acc__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; font-weight: 550; font-size: 1.05rem; letter-spacing: -.01em; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary i { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(52,48,60,.06); position: relative; transition: transform var(--dur-ui) var(--ease-fluid), background-color .3s; }
.acc__item summary i::before, .acc__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: .75rem; height: 1.5px; background: currentColor; translate: -50% -50%; border-radius: 2px; }
.acc__item summary i::after { rotate: 90deg; transition: rotate var(--dur-ui) var(--ease-fluid); }
.acc__item[open] summary i { background: var(--brand-copper); color: #fff; }
.acc__item[open] summary i::after { rotate: 0deg; }
.acc__body { padding: 0 1.5rem 1.5rem; color: var(--muted-on-light); }
.acc__body p:last-child { margin-bottom: 0; }

/* ---------- 17. Pricing ---------- */
.price { display: flex; flex-direction: column; height: 100%; }
.price__name { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-text); }
.price__amount { margin: 1.25rem 0 .25rem; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 550; letter-spacing: -.035em; line-height: 1; }
.price__amount small { font-size: .9rem; letter-spacing: 0; font-weight: 450; color: var(--muted-on-light); margin-right: .3rem; }
.price__note { font-size: .85rem; color: var(--muted-on-light); margin-bottom: 1.5rem; }
.price .checks { margin-bottom: 2rem; font-size: .92rem; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price--hl .bezel__core { background: linear-gradient(170deg, #3a3542, #24212a); color: var(--text-on-dark); box-shadow: inset 0 0 0 1.5px var(--brand-copper); }
.price--hl .price__amount small, .price--hl .price__note { color: var(--muted-on-dark); }

/* ---------- 18. Forms ---------- */
.form { display: grid; gap: 1rem; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.field { position: relative; display: grid; gap: .4rem; }
.field label { font-size: .8rem; font-weight: 550; letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: inherit;
  padding: .95rem 1.1rem; border-radius: 1rem; border: 0;
  background: rgba(52,48,60,.04); box-shadow: inset 0 0 0 1px var(--hair-light);
  transition: box-shadow .25s ease-out, background-color .25s ease-out;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field ::placeholder { color: var(--muted-on-light); opacity: 1; } /* browser default #757575 on the field = 4.3:1 */
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--brand-copper), 0 0 0 4px rgba(172,112,42,.12); }
.field .hint { font-size: .78rem; color: var(--muted-on-light); min-height: 1.1em; transition: color .2s; }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #c0563f; }
.field.is-invalid .hint { color: #c0563f; }
.field.is-valid input { box-shadow: inset 0 0 0 1.5px #4f9b6c; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
:is(.chip, .chips .wpcf7-list-item) input { position: absolute; opacity: 0; pointer-events: none; }
:is(.chip span, .chips .wpcf7-list-item-label) { display: inline-flex; padding: .55rem .95rem; border-radius: 999px; font-size: .88rem; background: rgba(52,48,60,.04); box-shadow: inset 0 0 0 1px var(--hair-light); cursor: pointer; transition: all .25s var(--ease-fluid); user-select: none; }
:is(.chip span, .chips .wpcf7-list-item-label):active { transform: scale(.96); }
:is(.chip, .chips .wpcf7-list-item) input:checked + span { background: var(--brand-ink); color: #fff; box-shadow: none; }
:is(.chip, .chips .wpcf7-list-item) input:focus-visible + span { outline: 2px solid var(--brand-copper); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--muted-on-light); }
.consent input { margin-top: .25rem; accent-color: var(--brand-copper); }
.form-success { display: none; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-radius: 1rem; background: rgba(79,155,108,.1); color: #2f6e48; font-weight: 500; }
.form.is-sent .form-success { display: flex; }
.form-success svg { width: 1.25rem; height: 1.25rem; flex: none; }
/* Contact Form 7 (WordPress) inside .form: map its wrappers onto the components above. */
.form .wpcf7-form-control-wrap, .form .wpcf7-form-control-wrap > textarea { display: block; } /* no baseline gap under the textarea */
.form .chips .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: .5rem; }
.form .wpcf7-list-item { margin: 0; }
.consent label { display: flex; gap: .7rem; align-items: flex-start; }
.field .wpcf7-not-valid-tip { display: none; } /* main.js puts the message into .hint */
.consent .wpcf7-not-valid-tip { display: block; margin-top: .3rem; font-size: .78rem; color: #c0563f; }
.wpcf7 form.form .wpcf7-response-output { margin: 0; padding: 1rem 1.2rem; border: 0; border-radius: 1rem; background: rgba(192,86,63,.08); color: #9a3f2c; font-size: .9rem; }
.wpcf7 form.form.sent .wpcf7-response-output { display: none; } /* .form-success shows instead */
.wpcf7 form.form.submitting button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- 19. Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .media { aspect-ratio: 16 / 10; margin-bottom: 1.5rem; border-radius: calc(var(--r-core) - .6rem); }
.post-card .bezel__core { padding: .6rem .6rem 1.6rem; }
.post-card__body { padding: 0 1rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: .8rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-light); margin-bottom: .8rem; }
.post-meta b { color: var(--copper-text); font-weight: 500; }
.post-card :is(h2, h3) { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.012em; margin-bottom: .6rem; }
.post-card p { color: var(--muted-on-light); font-size: .95rem; }
.post-card .link-arrow { margin-top: auto; }
.filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.prose { font-size: 1.075rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 3rem 0 1rem; }
.prose h3 { margin: 2.25rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--copper-text); }
.prose blockquote { margin: 2rem 0; padding: 1.5rem 1.75rem; border-radius: 1.25rem; background: rgba(172,112,42,.07); box-shadow: inset 3px 0 0 var(--brand-copper); font-size: 1.15rem; }
.prose pre { background: #17151b; color: #e8e4de; padding: 1.25rem 1.5rem; border-radius: 1.1rem; overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; line-height: 1.7; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: rgba(52,48,60,.07); padding: .1em .35em; border-radius: .35em; }
.prose pre code { background: none; padding: 0; }
.prose a:not(.btn) { color: var(--copper-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.toc { position: sticky; top: 6.5rem; font-size: .9rem; }
.toc a { display: block; padding: .4rem 0 .4rem 1rem; color: var(--muted-on-light); box-shadow: inset 1px 0 0 var(--hair-light); transition: color .2s, box-shadow .2s; }
.toc a:hover, .toc a.is-active { color: var(--brand-ink); box-shadow: inset 2px 0 0 var(--brand-copper); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: calc(var(--z-nav) + 1); background: linear-gradient(90deg, var(--brand-copper), var(--brand-sand)); transform-origin: left; transform: scaleX(0); }

/* ---------- 20. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 1.25rem; padding: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(1.5rem, 1rem + 4vw, 5rem); background: var(--ink-800); color: var(--text-on-dark); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(172,112,42,.5), transparent 70%); opacity: .45; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 36rem; margin-top: 1.25rem; color: rgba(243,241,238,.72); }
.cta-band .btn-row { margin-top: 2.25rem; }

/* ---------- 21. Footer ---------- */
.footer { background: var(--ink-900); color: var(--text-on-dark); padding: clamp(4rem, 3rem + 4vw, 7rem) 0 2rem; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.footer__brand img { height: 2rem; width: auto; margin-bottom: 1.5rem; }
.footer__brand p { color: var(--muted-on-dark); max-width: 22rem; font-size: .95rem; }
.footer h2 { font-family: var(--font-mono); font-size: var(--fs-micro); line-height: 1.35; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-text); font-weight: 500; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer ul a { color: rgba(243,241,238,.75); font-size: .93rem; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--hair-dark); font-size: .82rem; color: var(--muted-on-dark); }
.footer__bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- 22. Reveal (JS adds .js; GSAP drives) ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal-stagger] > *, .js [data-cascade] > * { opacity: 0; }
.no-motion [data-reveal], .no-motion [data-reveal-stagger] > *, .no-motion [data-cascade] > * { opacity: 1 !important; transform: none !important; filter: none !important; }

/* Split-line headline reveal */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; }

/* ---------- 23. Misc ---------- */
.divider { height: 1px; background: var(--hair-light); border: 0; margin: 0; }
.s-dark .divider, .s-deep .divider { background: var(--hair-dark); }
.kicker-num { font-family: var(--font-mono); font-size: .75rem; color: var(--copper-text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0 !important; }
.maxw-sm { max-width: 34rem; }
.ref-mask { display: inline-flex; gap: .25rem; align-items: center; }
.ref-mask i { display: inline-block; width: 1.7rem; height: .7rem; border-radius: .2rem; background: currentColor; opacity: .18; }

.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.legal h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: #4d4856; }
.legal a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal dl { display: grid; grid-template-columns: 14rem 1fr; gap: .6rem 1.5rem; margin: 0; }
.legal dt { font-weight: 600; } .legal dd { margin: 0; color: #4d4856; }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }

/* 404 */
:is(.e404, .et_pb_section.e404) { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 8rem var(--gutter) 4rem; }
.e404__num { font-family: var(--font-display); font-size: clamp(8rem, 4rem + 22vw, 22rem); font-weight: 600; letter-spacing: -.035em; line-height: .8; }
.e404__num span { display: inline-block; }

/* ---------- 24. Accessibility & user preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal-stagger] > *, .js [data-cascade] > * { opacity: 1; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .mega, .overlay, .media__chip { background: var(--ink-800); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .bezel { box-shadow: inset 0 0 0 1.5px var(--brand-ink); }
  .muted, .svc p, .stat__label { color: inherit !important; }
}

/* ---------- 25. JS helpers: split words, spotlight, scan ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }


.scan { margin-top: 2rem; }
.scan__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.scan__score { font-family: var(--font-display); font-size: 3.5rem; font-weight: 550; letter-spacing: -.035em; line-height: 1; }
.scan__score small { font-size: 1rem; color: var(--muted-on-light); letter-spacing: 0; }
.scan__bar { height: 3px; border-radius: 3px; background: var(--hair-light); overflow: hidden; margin-bottom: 1.5rem; }
.scan__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-copper), var(--brand-sand)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out-expo); }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.scan-item { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 1rem; background: rgba(52,48,60,.03); box-shadow: inset 0 0 0 1px var(--hair-light); }
.scan-item strong { display: block; font-size: .95rem; font-weight: 550; }
.scan-item small { color: var(--muted-on-light); font-size: .83rem; }
.scan-dot { flex: none; width: .7rem; height: .7rem; margin-top: .35rem; border-radius: 50%; background: var(--brand-silver); animation: pulse 1s ease-in-out infinite; }
.scan-item.is-ok .scan-dot, .scan-item.is-warn .scan-dot, .scan-item.is-bad .scan-dot { animation: none; }
.scan-item.is-ok .scan-dot { background: #4f9b6c; } .scan-item.is-warn .scan-dot { background: var(--brand-copper); } .scan-item.is-bad .scan-dot { background: #c0563f; }
@keyframes pulse { 50% { opacity: .35; } }

/* Feature tiles with photo */
.tile-photo { position: relative; min-height: 22rem; color: #fff; display: flex; align-items: flex-end; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.tile-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(36,33,42,.15), rgba(36,33,42,.92)), linear-gradient(140deg, rgba(172,112,42,.45), transparent 60%); }
.tile-photo > div { position: relative; z-index: 2; }
.tile-photo p { color: rgba(243,241,238,.75); }

/* Ref cards */
.ref { display: flex; flex-direction: column; height: 100%; }
.ref__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; }
.ref__cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); }
.ref h3 { margin-bottom: .6rem; }
.ref .checks { font-size: .92rem; margin-top: 1rem; }
.ref__kpi { display: flex; gap: 1.5rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--hair-light); }
.ref__kpi b { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.ref__kpi span { font-size: .78rem; color: var(--muted-on-light); }
.s-dark .ref__kpi, .s-deep .ref__kpi { border-color: var(--hair-dark); }
.s-dark .ref__kpi span, .s-deep .ref__kpi span { color: var(--muted-on-dark); }

/* Team */
.person { display: flex; gap: 1.25rem; align-items: center; }
.avatar { flex: none; width: 4.5rem; height: 4.5rem; border-radius: .875rem; display: grid; place-items: center; font-weight: 600; font-size: 1.3rem; letter-spacing: -.03em; color: #fff; background: linear-gradient(140deg, var(--brand-copper), var(--brand-ink)); box-shadow: 0 0 0 4px rgba(172,112,42,.12); }
.person small { display: block; color: var(--muted-on-light); font-size: .85rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.team-card small { display: block; margin-top: .25rem; color: var(--muted-on-light); font-size: .85rem; }
.team-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: .625rem; margin-bottom: 1.5rem; }
.team-card__img--net { display: grid; place-items: center; color: #fff; font-size: 5rem; font-weight: 300; background: linear-gradient(140deg, var(--brand-copper), var(--brand-ink)); }
@media (max-width: 767px) { .team-card__img--net { aspect-ratio: auto; height: 8rem; font-size: 3.5rem; } }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.compare th, .compare td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--hair-light); }
.compare thead th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-light); font-weight: 500; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .y { color: var(--copper-text); font-weight: 600; }
.compare .n { color: #b9b4be; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) { .compare { font-size: .82rem; } .compare th, .compare td { padding: .75rem .4rem; } .compare thead th { letter-spacing: .06em; } }
.checks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 1024px) { .checks--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .checks--3 { grid-template-columns: 1fr; } }
.split--aside-l { grid-template-columns: 1fr 1.6fr; }
.split--aside-r { grid-template-columns: 1.6fr 1fr; }
.split--faq { grid-template-columns: 1fr 2fr; }
@media (min-width: 1025px) { .sticky-lg { position: sticky; top: 7rem; } }
@media (max-width: 1024px) { .split--aside-l, .split--aside-r, .split--faq { grid-template-columns: 1fr; } }
.contact-pull { position: relative; z-index: 2; top: clamp(-7rem, -5rem - 3vw, -4rem); margin-bottom: clamp(-7rem, -5rem - 3vw, -4rem); }
.split--post { grid-template-columns: 14rem 1fr; }
@media (max-width: 1024px) { .split--post { grid-template-columns: 1fr; } .split--post .toc { display: none; } }
/* Grid children may shrink below content width (pre, wide media) */
.split > *, .grid > *, .bento > *, .page-hero__grid > * { min-width: 0; }
@media (max-width: 480px) { .pii__meter b { font-size: 1rem; white-space: nowrap; } .pii__meter div { padding: .65rem .7rem; } }

/* ---------- Page components (moved from the mockup pages' own <style> blocks) ---------- */

/* KI-Beratung: "Was Sie vermeiden sollten" list */
.dont { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.dont__x { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(192,86,63,.1); color: #c0563f; font-weight: 600; }

/* WordPress-Themes hero: device mockup [jg_grafik name="geraete"] */
.devices { position: relative; aspect-ratio: 5 / 4; }
.dev { position: absolute; border-radius: 1.1rem; background: #17151b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.8); overflow: hidden; }
.dev--laptop { inset: 6% 4% 18% 0; }
.dev--phone { width: 26%; aspect-ratio: 9 / 19; right: 0; bottom: 2%; border-radius: 1.6rem; padding: .35rem; }
.dev__screen { position: absolute; inset: .5rem; border-radius: .7rem; overflow: hidden; background: var(--paper); }
.dev--phone .dev__screen { inset: .35rem; border-radius: 1.3rem; }
.skel { position: absolute; inset: 0; padding: 8%; display: grid; gap: 6%; align-content: start; }
.skel i { display: block; height: .55rem; border-radius: 1rem; background: rgba(52,48,60,.12); }
.skel .hd { height: 30%; min-height: 3rem; border-radius: .6rem; background: linear-gradient(135deg, var(--brand-ink), var(--ink-500)); position: relative; }
.skel .hd::after { content: ""; position: absolute; left: 10%; bottom: 25%; width: 40%; height: .5rem; border-radius: 1rem; background: var(--brand-copper); }
.skel .w60 { width: 60%; } .skel .w80 { width: 80%; }
.skel .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.skel .cards b { display: block; aspect-ratio: 1; border-radius: .5rem; background: rgba(172,112,42,.18); }
.dev--phone .skel .cards { grid-template-columns: 1fr; }
.dev--phone .skel .cards b { aspect-ratio: 2 / 1; }

/* Webseitencheck: scan form + results (plugin shortcode) */
.scan-form { display: flex; gap: .5rem; padding: .45rem; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.scan-form .field { flex: 1; }
.scan-form input { background: transparent !important; box-shadow: none !important; color: #fff; border-radius: 999px; padding-left: 1.25rem; }
.scan-form input::placeholder { color: rgba(243,241,238,.62); }
.scan-form .hint { position: absolute; top: calc(100% + 1rem); left: 1.25rem; color: var(--muted-on-dark); }
.scan-form .field.is-invalid .hint { color: #ef8f7d; }
@media (max-width: 640px) { .scan-form { flex-direction: column; border-radius: 1.5rem; } .scan-form .btn { justify-content: space-between; } .scan-form .hint { position: static; padding: .25rem 0 0 1.25rem; } }

/* ---------- Blog templates (inc/posts.php shortcodes in the Theme Builder layouts) ---------- */

/* Single post: hero, featured image overlapping it, TOC + article */
:is(.post-hero, .et_pb_section.post-hero) { padding-bottom: 5rem; }
.post-hero .post-meta, .post-hero .person small { color: var(--muted-on-dark); }
.post-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); max-width: none; }
.post-hero .avatar { width: 3rem; height: 3rem; font-size: .95rem; }
:is(.post-body, .et_pb_section.post-body) { padding-top: 0; }
.post-hero-img { margin-top: -2.5rem; }
.post-hero-img .bezel__core { padding: 0; }
.post-hero-img .media { aspect-ratio: 21 / 9; }
.post-hero-img img { scale: 1.1; }
.split--post > :last-child > * { max-width: 44rem; }
.split--post .toc p { margin-bottom: .75rem; }
/* Short posts without a TOC: one reading column under the (narrow) title */
.split--post:not(:has(.toc)) { grid-template-columns: 1fr; }
.et_pb_row.split--post:not(:has(.toc)) { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }
.split--post:not(:has(.toc)) > :first-child { display: none; }
@media (max-width: 1024px) { .split--post > :has(.toc) { display: none; } }
.post-foot { justify-content: space-between; }

/* Password-protected posts (WordPress' own form inside the post content) */
.post-password-form { display: grid; gap: 1rem; max-width: 32rem; }
.post-password-form p:last-child { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; }
.post-password-form label { flex: 1; display: grid; gap: .4rem; font-size: .8rem; font-weight: 550; }
.post-password-form input[type="password"] { width: 100%; height: 3rem; font: inherit; font-size: 1rem; padding: 0 1.1rem; border-radius: 1rem; border: 0; background: rgba(52,48,60,.04); box-shadow: inset 0 0 0 1px var(--hair-light); }
.post-password-form input[type="password"]:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--brand-copper), 0 0 0 4px rgba(172,112,42,.12); }
.post-password-form input[type="submit"] { min-height: 3rem; padding: .5rem 1.35rem; border: 0; border-radius: 999px; background: var(--copper-btn); color: #fff; font: 600 .95rem var(--font-sans); cursor: pointer; }
.post-password-form input[type="submit"]:hover { background: var(--copper-btn-hover); }

/* Archives + search */
:is(.archive-hero, .et_pb_section.archive-hero) { padding-bottom: 4rem; }
.archive-hero .scan-form { max-width: 40rem; }
.post-featured-wrap { margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.post-featured .bezel__core { padding: .6rem; }
.post-featured .split { gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.post-featured .media { border-radius: calc(var(--r-core) - .6rem); }
.post-featured .post-card__body { padding: 1.5rem 1.5rem 1.5rem 0; }
.post-featured h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
@media (max-width: 1024px) { .post-featured .split { grid-template-columns: 1fr; } .post-featured .post-card__body { padding: 0 1rem 1rem; } }
/* Featured post without image (most older posts): text across the card instead of an empty half */
.post-featured--text .split { grid-template-columns: 1fr; }
.post-featured--text .post-card__body { padding: clamp(1rem, .5rem + 2vw, 2.5rem); }
.post-featured--text p { max-width: 65ch; }
a.chip span:hover { background: rgba(52,48,60,.08); }
a.chip[aria-current] span { background: var(--brand-ink); color: #fff; box-shadow: none; }
a.chip:focus-visible { outline: none; }
a.chip:focus-visible span { outline: 2px solid var(--brand-copper); outline-offset: 2px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pager .page-numbers { display: inline-flex; align-items: center; min-height: 2.5rem; min-width: 2.5rem; justify-content: center; padding: .3rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(52,48,60,.22); transition: background-color var(--dur-ui) var(--ease-fluid); }
.pager a.page-numbers:hover { background: rgba(52,48,60,.04); }
.pager .page-numbers.current { background: var(--brand-ink); color: #fff; box-shadow: none; }
.pager .page-numbers.dots { box-shadow: none; padding-inline: .25rem; min-width: 0; }
.empty { max-width: 36rem; margin-inline: auto; padding: 2rem 0; text-align: center; }
.empty .tags { justify-content: center; }

/* 404 */
.e404 .tags { justify-content: center; }
