/* ============================================================================
 * Pavik — site stylesheet (PHP port).
 * Full CI navy palette across both modes:
 *   DARK = Pavik navy backgrounds + steel-blue accents + warm white text
 *   LIGHT = white paper + Pavik navy text/accents/headlines
 * No bronze. Single brand colour family from logo (#00354E).
 * ========================================================================= */

/* Fonts hosted locally via fonts.css — HARD RULE per CLAUDE.md: NEVER CDN. */

:root {
  /* === DARK MODE — Pavik navy is the dominant brand surface === */
  --ink-deep:     #00171F;   /* deepest section, near-black with navy tint */
  --ink:          #002233;   /* primary dark — Pavik navy deep */
  --ink-mid:      #00354E;   /* surface / card — Pavik CI primary */
  --ink-elevated: #0F4D6E;   /* hover / elevated surface */

  --pavik-navy:        #00354E;
  --pavik-navy-deep:   #002233;
  --pavik-navy-bright: #0F4D6E;
  --pavik-navy-soft:   #1A5A7C;

  /* Steel — used as accent within the same navy family */
  --steel:       #6BA0BB;
  --steel-light: #8FBED5;
  --steel-pale:  #B8D2DD;

  /* Bronze tokens are kept as ALIAS NAMES so existing templates keep rendering,
     but visually they're now navy/steel — single brand colour family. */
  --bronze:       #8FBED5;
  --bronze-light: #B8D2DD;
  --bronze-deep:  #6BA0BB;

  --white:     #F0F4F7;
  --off-white: #D8E1E8;
  --gray-mid:  #7C8896;
  --gray-soft: #5A6473;
  --gray-light:#1A3140;

  --grain-opacity: 0.03;
}

[data-theme="light"] {
  /* === LIGHT MODE — pale cool-blue paper, Pavik navy text/accents === */
  --ink-deep:     #E5ECF3;   /* primary pale-blue background (matches client swatch) */
  --ink:          #DCE4EC;   /* slightly deeper alt sections */
  --ink-mid:      #CFD9E3;   /* card surface */
  --ink-elevated: #BCC9D5;   /* hover surface */

  --pavik-navy:        #00354E;
  --pavik-navy-deep:   #002233;
  --pavik-navy-bright: #0F4D6E;
  --pavik-navy-soft:   #1A5A7C;

  /* Text + foregrounds in navy */
  --white:     #00354E;
  --off-white: #1A3D54;
  --gray-mid:  #5A7080;
  --gray-soft: #7C8FA0;
  --gray-light:#C5D2DB;

  /* Steel kept as supportive secondary tone */
  --steel:      #00354E;
  --steel-light:#0F4D6E;
  --steel-pale: #1A5A7C;

  /* Bronze alias → navy accent in light mode */
  --bronze:       #00354E;
  --bronze-light: #0F4D6E;
  --bronze-deep:  #002233;
}

/* === Resets === */
* { box-sizing: border-box; }
html, body {
  overflow-x: hidden; max-width: 100%;
  background-color: var(--ink-deep);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
img, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, p, span, li, a {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3 { hyphens: auto; -webkit-hyphens: auto; }

::selection { background-color: var(--pavik-navy); color: #fff; }
[data-theme="light"] ::selection { background-color: var(--pavik-navy); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb { background: var(--pavik-navy-bright); border-radius: 3px; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--pavik-navy); }

/* === Typography utilities ===
 * Space Grotesk Medium = display headlines. Modern geometric sans, distinct
 * character (double-story a/g, tech-feel numerals) without screaming. Mixed
 * case throughout so "Power. Precision. Performance." reads naturally.
 * Montserrat Regular = accent word inside the wordmark — clean lighter sans
 * for contrast on words like "Precision."
 */
.font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-transform: none;
  font-size: clamp(48px, 8.5vw, 128px) !important;
}
.heading-1 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-transform: none;
  font-size: clamp(36px, 5vw, 84px) !important;
}
.heading-2 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-transform: none;
  font-size: clamp(26px, 3.4vw, 48px) !important;
}
/* Accent word ("Precision.") — Montserrat Regular for a lighter,
   elegant counterpoint inside the headline block. */
.heading-italic {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--steel-light);
}
[data-theme="light"] .heading-italic { color: var(--pavik-navy-bright); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-light);
}
[data-theme="light"] .eyebrow { color: var(--pavik-navy); font-weight: 600; }

/* === Buttons === */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--ink-deep);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.4s cubic-bezier(.16,1,.3,1), color 0.3s ease, transform 0.4s cubic-bezier(.16,1,.3,1);
  text-decoration: none;
  overflow: hidden;
  border-radius: 0;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pavik-navy-bright);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(.65,.05,.36,1);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { color: #fff; }

[data-theme="light"] .btn-primary {
  background: var(--pavik-navy);
  color: #fff;
}
[data-theme="light"] .btn-primary::before { background: var(--pavik-navy-bright); }
[data-theme="light"] .btn-primary:hover { color: #fff; }

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(143, 190, 213, 0.35);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  text-decoration: none;
  border-radius: 0;
}
.btn-secondary:hover {
  border-color: var(--steel-light);
  color: var(--steel-light);
}
[data-theme="light"] .btn-secondary {
  color: var(--pavik-navy);
  border-color: rgba(0, 53, 78, 0.3);
}
[data-theme="light"] .btn-secondary:hover {
  border-color: var(--pavik-navy);
  color: var(--pavik-navy-bright);
}

/* === Product card === */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ink);
  border: 1px solid rgba(143, 190, 213, 0.10);
  overflow: hidden;
  transition: border-color 0.5s ease, transform 0.5s cubic-bezier(.16,1,.3,1), background 0.5s ease;
  text-decoration: none;
}
.product-card:hover {
  border-color: rgba(143, 190, 213, 0.45);
  transform: translateY(-3px);
  background: var(--ink-mid);
}
.product-card .card-arrow { transition: transform 0.4s cubic-bezier(.16,1,.3,1); color: var(--steel-light); }
.product-card:hover .card-arrow { transform: translateX(4px); }
.product-card .card-image-frame {
  background:
    radial-gradient(ellipse 70% 90% at 50% 30%, rgba(143, 190, 213, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(15, 77, 110, 0.18) 0%, transparent 50%, rgba(143, 190, 213, 0.06) 100%);
}
.product-card .card-image { transition: transform 0.7s cubic-bezier(.16,1,.3,1); }
.product-card:hover .card-image { transform: scale(1.04); }

[data-theme="light"] .product-card {
  background: #F1F5F9;
  border-color: rgba(0, 53, 78, 0.10);
}
[data-theme="light"] .product-card:hover {
  border-color: var(--pavik-navy);
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 53, 78, 0.12);
}
[data-theme="light"] .product-card .card-image-frame {
  background:
    radial-gradient(ellipse 70% 90% at 50% 30%, rgba(0, 53, 78, 0.06), transparent 60%),
    linear-gradient(135deg, rgba(0, 53, 78, 0.04) 0%, transparent 50%, rgba(15, 77, 110, 0.06) 100%);
}

/* === Stat block === */
.stat-block { position: relative; padding: 28px 28px 24px 28px; }
.stat-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px; width: 100%;
  background: linear-gradient(to right, var(--steel-light) 0%, rgba(143,190,213,0.2) 70%, transparent 100%);
}
[data-theme="light"] .stat-block::before {
  background: linear-gradient(to right, var(--pavik-navy) 0%, rgba(0,53,78,0.2) 70%, transparent 100%);
}

/* === Inline link with sliding underline === */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  color: var(--steel-light);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  text-decoration: none;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--steel-light);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.link-underline:hover::after { transform: scaleX(1); }
[data-theme="light"] .link-underline { color: var(--pavik-navy); }
[data-theme="light"] .link-underline::after { background: var(--pavik-navy); }

/* === Word-mask reveal helper === */
.word-mask { overflow: hidden; display: block; }
.word-mask > .word { display: inline-block; will-change: transform; }

/* === Section container helpers === */
.section-container { width: 100%; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px)  { .section-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding-left: 2rem;   padding-right: 2rem; } }
.section-inner { max-width: 80rem; margin-left: auto; margin-right: auto; }

/* === Reveal-on-scroll === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Cookie banner — dark navy glass === */
.consent-banner {
  position: fixed !important;
  left: 1.25rem !important;
  bottom: 1.25rem !important;
  right: auto !important;
  top: auto !important;
  max-width: 360px !important;
  padding: 1rem 1.1rem 1.05rem !important;
  background: rgba(0, 34, 51, 0.88) !important;
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(143, 190, 213, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.42), 0 2px 6px rgba(0,0,0,0.18) !important;
  z-index: 9000 !important;
  color: #F0F4F7 !important;
  font-family: 'Inter', sans-serif;
  display: flex !important; flex-direction: column !important; gap: 0.75rem !important;
}
@media (max-width: 480px) {
  .consent-banner { left: 0.85rem !important; right: 0.85rem !important; max-width: none !important; }
}
.consent-banner__text { color: rgba(240,244,247,0.82) !important; font-size: 0.82rem !important; line-height: 1.5 !important; }
.consent-banner__link {
  color: #B8D2DD !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.consent-banner__link:hover { color: #fff !important; }
.consent-banner__actions { display: flex; gap: 0.5rem; }
.consent-banner__btn {
  flex: 1 1 0;
  border-radius: 999px !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 0;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}
.consent-banner__btn--primary {
  background: var(--pavik-navy-bright) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
}
.consent-banner__btn--primary:hover { background: var(--pavik-navy-soft) !important; }
.consent-banner__btn--ghost {
  background: transparent !important;
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
}
.consent-banner__btn--ghost:hover { border-color: rgba(255,255,255,0.45) !important; color: #fff !important; }

/* === A11y widget — navy === */
.a11y-widget__toggle, [class*="a11y"] [class*="toggle"], button[class*="a11y"] {
  background: var(--pavik-navy) !important;
  color: #fff !important;
}
[data-theme="light"] .a11y-widget__toggle,
[data-theme="light"] [class*="a11y"] [class*="toggle"],
[data-theme="light"] button[class*="a11y"] {
  background: var(--pavik-navy) !important;
  color: #fff !important;
}

/* === Hero word-stroke override (Precision in steel-light, not bronze) === */
[data-theme="light"] .pavik-hero .word-mask span[style*="text-fill-color:transparent"] {
  -webkit-text-stroke: 1px var(--pavik-navy) !important;
  color: var(--pavik-navy) !important;
}

/* === Header — theme-aware glass === */
.pavik-header {
  background: rgba(0, 23, 31, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(143, 190, 213, 0.08);
}
[data-theme="light"] .pavik-header {
  background: rgba(229, 236, 243, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(0, 53, 78, 0.08);
}

/* Hero overlay — needs light-mode variant since inline styles use rgba(7,9,12,...) */
[data-theme="light"] .pavik-hero > div[style*="rgba(7, 9, 12"],
[data-theme="light"] .pavik-hero > div[style*="rgba(7,9,12"] {
  background: linear-gradient(to right, rgba(229, 236, 243, 0.45) 0%, rgba(229, 236, 243, 0.15) 60%, transparent 100%) !important;
}
[data-theme="light"] .pavik-hero img[style*="opacity:0.18"] {
  opacity: 0.55 !important;
  filter: saturate(0.85) contrast(1.0) brightness(1.05) !important;
}

/* Industrial strip overlay — also dark by default */
[data-theme="light"] section[style*="height:clamp(280px,38vw,480px)"] > div[style*="rgba(7, 9, 12"],
[data-theme="light"] section[style*="height:clamp(280px,38vw,480px)"] > div[style*="rgba(7,9,12"] {
  background: linear-gradient(to right, rgba(229, 236, 243, 0.35) 0%, rgba(229, 236, 243, 0.1) 50%, rgba(229, 236, 243, 0.35) 100%) !important;
}

/* Section borders — subtle navy in light mode */
[data-theme="light"] section[style*="border-top:1px solid rgba(245,242,236"] {
  border-top-color: rgba(0, 53, 78, 0.08) !important;
}
[data-theme="light"] section[style*="border-top: 1px solid rgba(245,242,236"] {
  border-top-color: rgba(0, 53, 78, 0.08) !important;
}

/* "PRECISION." stroke text — recolour for light mode (was bronze stroke) */
[data-theme="light"] .pavik-hero span[style*="-webkit-text-stroke"],
[data-theme="light"] span[style*="-webkit-text-fill-color: transparent"],
[data-theme="light"] span[style*="-webkit-text-fill-color:transparent"] {
  -webkit-text-stroke: 1px var(--pavik-navy) !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* === Hero meta strip — keep clear of the burger on mobile === */
@media (max-width: 1023px) {
  /* Push meta strip below the burger / give it room to breathe */
  .pavik-hero > div[style*="top:8"][class*="absolute"][class*="top-"],
  .pavik-hero .absolute.top-8 {
    top: 5.5rem !important;
    left: 1rem !important;
    right: 1rem !important;
  }
  /* Stack vertically so coords + location don't fight for a tight row */
  .pavik-hero .absolute.top-8 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }
}

/* On very narrow phones (iPhone SE 1st-gen ≤ 320px, mini ≤ 375px) hide
   the meta strip entirely — there's no room and the hero typography is
   the priority on a 4.7" screen. */
@media (max-width: 480px) {
  .pavik-hero .absolute.top-8 {
    display: none !important;
  }
}

/* === Hero typography + padding on small screens === */
@media (max-width: 480px) {
  .pavik-hero {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-bottom: 2.5rem !important;
    padding-top: 5rem !important;
    min-height: 100svh !important;
  }
  .pavik-hero .font-display {
    font-size: clamp(48px, 14vw, 72px) !important;
    line-height: 0.92 !important;
  }
  .pavik-hero p[class*="mt-12"] {
    margin-top: 1.5rem !important;
    font-size: 14px !important;
  }
  .pavik-hero div[class*="mt-12"][class*="flex-wrap"] {
    margin-top: 1.5rem !important;
    gap: 0.6rem !important;
  }
  .pavik-hero .btn-primary,
  .pavik-hero .btn-secondary {
    padding: 12px 22px !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
  }
  .pavik-hero .eyebrow {
    margin-bottom: 1rem !important;
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
  }
}

/* iPhone SE first-gen viewport (≤375 × 667) — tightest spacing */
@media (max-width: 375px) {
  .pavik-hero {
    padding-top: 4.5rem !important;
    padding-bottom: 2rem !important;
  }
  .pavik-hero .font-display {
    font-size: clamp(40px, 13vw, 60px) !important;
  }
  .pavik-hero .btn-primary,
  .pavik-hero .btn-secondary {
    padding: 11px 18px !important;
    font-size: 10px !important;
    width: 100%;
    justify-content: center;
  }
  .pavik-hero div[class*="mt-12"][class*="flex-wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* Section padding tightening across the board on mobile */
@media (max-width: 480px) {
  main section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  /* But keep the industrial strip + hero full-bleed */
  main > section:first-child,
  main section[style*="height:clamp(280px"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  main section[style*="height:clamp(280px"] > div.relative {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  /* Bento grid: stack everything single-column on phone */
  .product-card { min-height: auto !important; }
  /* Heading sizes step down so wide compound words don't overflow */
  main section h2[class*="heading-2"] {
    font-size: clamp(28px, 8vw, 40px) !important;
  }
  main section h3[class*="heading-2"] {
    font-size: clamp(20px, 6vw, 26px) !important;
  }
  /* Stat numbers don't need to be display-massive on a phone */
  .stat-block p.font-display {
    font-size: clamp(36px, 10vw, 52px) !important;
  }
  .stat-block { padding: 18px 18px 16px 18px !important; }
}

/* ============================================================================
 * LIGHT-MODE HERO + STRIP — flatten all hardcoded dark overlays.
 * The inline styles use rgba(7,9,12,…) which is dark ink regardless of theme;
 * these rules force light gradients in light mode so nothing dark bleeds in.
 * ========================================================================= */

/* Image — brighten + neutralize the saturate filter in light mode */
[data-theme="light"] .pavik-hero > img,
[data-theme="light"] section[style*="height:clamp(280px,38vw,480px)"] > img {
  opacity: 0.45 !important;
  filter: saturate(0.85) contrast(1.0) brightness(1.1) !important;
}

/* All absolute-positioned overlay divs inside the hero — flatten in light */
[data-theme="light"] .pavik-hero > div.absolute.inset-0 {
  background:
    radial-gradient(ellipse 70% 90% at 30% 60%, rgba(0, 53, 78, 0.05) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 20%, var(--ink-deep) 100%) !important;
}

/* Specific inline-style overlay (the dark gradient that the user flagged) */
[data-theme="light"] .pavik-hero > div[style*="rgba(7"] {
  background: linear-gradient(to right, rgba(229, 236, 243, 0.55) 0%, rgba(229, 236, 243, 0.2) 55%, transparent 100%) !important;
}

/* Industrial strip — same flattening so the photo reads naturally on light */
[data-theme="light"] section[style*="height:clamp(280px,38vw,480px)"] > div.absolute.inset-0,
[data-theme="light"] section[style*="height:clamp(280px,38vw,480px)"] > div[style*="rgba(7"] {
  background: linear-gradient(to right, rgba(229, 236, 243, 0.5) 0%, rgba(229, 236, 243, 0.15) 50%, rgba(229, 236, 243, 0.5) 100%) !important;
}

/* Diptych cards (Strategy + Andreas) — light mode overlay */
[data-theme="light"] section[style*="background:var(--ink-deep)"] div[style*="aspect-ratio:4/3"] > div.absolute.inset-0,
[data-theme="light"] div[style*="aspect-ratio:4/3"] > div[style*="rgba(7"] {
  background: linear-gradient(to top, rgba(0, 53, 78, 0.78) 0%, rgba(0, 53, 78, 0.05) 55%, transparent 75%) !important;
}
[data-theme="light"] div[style*="aspect-ratio:4/3"] > img {
  filter: saturate(0.95) contrast(1.05) brightness(1.0) !important;
}

/* Section vertical bronze edge marker on left — in light becomes navy */
[data-theme="light"] div[aria-hidden][style*="rgba(201"] {
  background: linear-gradient(to bottom, transparent, rgba(0, 53, 78, 0.25) 30%, rgba(0, 53, 78, 0.25) 70%, transparent) !important;
}

/* Hero "Scroll" indicator + bronze divider — navy in light */
[data-theme="light"] .pavik-hero div[style*="background:linear-gradient(to bottom, var(--bronze)"] {
  background: linear-gradient(to bottom, var(--pavik-navy), transparent) !important;
}
[data-theme="light"] .pavik-hero span[style*="writingMode"],
[data-theme="light"] .pavik-hero span[style*="writing-mode"] {
  color: var(--pavik-navy) !important;
}

/* Bronze 12px hairline on industrial strip → navy in light */
[data-theme="light"] section[style*="height:clamp(280px,38vw,480px)"] {
  background: var(--ink-deep) !important;
}

/* Top thin animated line in hero (was bronze→transparent gradient) */
[data-theme="light"] .pavik-hero > div[style*="background: linear-gradient(to right, var(--bronze)"],
[data-theme="light"] .pavik-hero > div[style*="background:linear-gradient(to right, var(--bronze)"] {
  background: linear-gradient(to right, var(--pavik-navy), rgba(0,53,78,0.05) 70%, transparent) !important;
}

/* Hero subtitle + body copy — navy text on light */
[data-theme="light"] .pavik-hero p[style*="color:var(--off-white)"],
[data-theme="light"] .pavik-hero p[style*="color: var(--off-white)"] {
  color: var(--pavik-navy-bright) !important;
  opacity: 0.85 !important;
}

/* Coords/location strip text — navy on light */
[data-theme="light"] .pavik-hero p[style*="color:var(--gray-mid)"],
[data-theme="light"] .pavik-hero p[style*="color: var(--gray-mid)"] {
  color: var(--pavik-navy) !important;
  opacity: 0.6 !important;
}

/* "Precision." word stroke text — navy outline */
[data-theme="light"] .pavik-hero span.heading-italic[style*="text-fill"],
[data-theme="light"] .pavik-hero span[style*="-webkit-text-stroke"] {
  -webkit-text-stroke: 1px var(--pavik-navy) !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Diptych text overlays (eyebrow + name) keep white on dark photo overlay */
[data-theme="light"] div[style*="aspect-ratio:4/3"] .eyebrow {
  color: rgba(255, 255, 255, 0.9) !important;
}
[data-theme="light"] div[style*="aspect-ratio:4/3"] p[class*="heading-2"] {
  color: #fff !important;
}

/* ============================================================================
 * LEFT SIDEBAR — Pavik signature navigation (per Andreas onboarding).
 * Replaces the legacy ECOTECH top-menu. 280px fixed left on desktop, slides
 * in from left on mobile via hamburger.
 * ========================================================================= */

:root { --pavik-nav-width: 280px; }

main, main#main {
  margin-left: var(--pavik-nav-width);
  min-height: 100vh;
}
@media (max-width: 1024px) {
  main, main#main { margin-left: 0; }
}

.pavik-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--pavik-nav-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink-deep);
  border-right: 1px solid rgba(143, 190, 213, 0.06);
  z-index: 60;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
[data-theme="light"] .pavik-sidebar {
  background: var(--ink-deep);
  border-right-color: rgba(0, 53, 78, 0.10);
}

/* Bronze/navy ambient stripe down the right edge of the sidebar */
.pavik-sidebar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--steel-light) 30%, var(--steel-light) 70%, transparent);
  opacity: 0.18;
  pointer-events: none;
}
[data-theme="light"] .pavik-sidebar::after {
  background: linear-gradient(to bottom, transparent, var(--pavik-navy) 30%, var(--pavik-navy) 70%, transparent);
  opacity: 0.18;
}

/* Brand */
.pavik-sidebar__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 1.75rem 1.5rem;
  text-decoration: none;
  position: relative;
}
.pavik-sidebar__logo { height: 32px; width: auto; transition: transform 0.5s ease; }
.pavik-sidebar__brand:hover .pavik-sidebar__logo { transform: scale(1.03); }
.pavik-sidebar__brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel-light);
  opacity: 0.85;
}
[data-theme="light"] .pavik-sidebar__brand-sub { color: var(--pavik-navy); }

.pavik-sidebar__divider {
  margin: 0 1.75rem;
  height: 1px;
  background: rgba(143, 190, 213, 0.10);
}
[data-theme="light"] .pavik-sidebar__divider { background: rgba(0, 53, 78, 0.10); }

/* Nav */
.pavik-sidebar__nav {
  flex: 1;
  padding: 1.25rem 1rem 1rem;
  overflow-y: auto;
}
.pavik-nav-group { margin-bottom: 1.5rem; }
.pavik-nav-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0.75rem 0.6rem;
}
.pavik-nav-group__label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-soft);
  transition: color 0.3s ease;
}
.pavik-nav-group:hover .pavik-nav-group__label { color: var(--steel-light); }
[data-theme="light"] .pavik-nav-group:hover .pavik-nav-group__label { color: var(--pavik-navy); }
.pavik-nav-group__idx {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-feature-settings: "tnum";
  color: var(--gray-soft);
  opacity: 0.6;
}
.pavik-nav-group__items { list-style: none; padding: 0; margin: 0; }

/* Item */
.pavik-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 14px;
  color: var(--gray-mid);
  font-size: 12.5px;
  line-height: 1.35;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.4s cubic-bezier(.16,1,.3,1), padding-left 0.4s cubic-bezier(.16,1,.3,1);
}
.pavik-nav-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translate(-100%, -50%);
  width: 3px; height: 16px;
  background: var(--steel-light);
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}
[data-theme="light"] .pavik-nav-item::before { background: var(--pavik-navy); }

.pavik-nav-dot {
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(124, 134, 147, 0.45);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.pavik-nav-label { flex: 1; }
.pavik-nav-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: var(--steel-light);
}
[data-theme="light"] .pavik-nav-arrow { color: var(--pavik-navy); }

.pavik-nav-item:hover {
  color: var(--white);
  padding-left: 20px;
}
.pavik-nav-item:hover .pavik-nav-dot { background: var(--steel-light); }
.pavik-nav-item:hover .pavik-nav-arrow { opacity: 0.65; transform: translateX(0); }
[data-theme="light"] .pavik-nav-item:hover .pavik-nav-dot { background: var(--pavik-navy); }

.pavik-nav-item.is-active {
  color: var(--white);
  padding-left: 20px;
}
.pavik-nav-item.is-active::before { transform: translate(0, -50%); }
.pavik-nav-item.is-active .pavik-nav-dot {
  background: var(--steel-light);
  box-shadow: 0 0 0 3px rgba(143,190,213,0.18), 0 0 12px rgba(143,190,213,0.45);
}
[data-theme="light"] .pavik-nav-item.is-active .pavik-nav-dot {
  background: var(--pavik-navy);
  box-shadow: 0 0 0 3px rgba(0,53,78,0.18), 0 0 12px rgba(0,53,78,0.45);
}
.pavik-nav-item.is-active .pavik-nav-arrow { opacity: 1; transform: translateX(0); }

/* Foot block */
.pavik-sidebar__foot {
  padding: 1.25rem 1.75rem 1.5rem;
  border-top: 1px solid rgba(143, 190, 213, 0.08);
}
[data-theme="light"] .pavik-sidebar__foot { border-top-color: rgba(0, 53, 78, 0.10); }
.pavik-sidebar__foot-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.pavik-sidebar__foot-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-light);
  opacity: 0.85;
}
[data-theme="light"] .pavik-sidebar__foot-label { color: var(--pavik-navy); }
.pavik-sidebar__foot-actions { display: flex; align-items: center; gap: 0.4rem; }
.pavik-lang-pill {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 6px;
  color: rgba(143, 190, 213, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}
.pavik-lang-pill:hover { color: var(--white); }
.pavik-lang-pill.is-active { color: var(--steel-light); font-weight: 600; }
[data-theme="light"] .pavik-lang-pill { color: rgba(0, 53, 78, 0.5); }
[data-theme="light"] .pavik-lang-pill:hover { color: var(--pavik-navy-bright); }
[data-theme="light"] .pavik-lang-pill.is-active { color: var(--pavik-navy); }
.pavik-lang-sep { color: rgba(143, 190, 213, 0.25); font-size: 11px; }

.pavik-theme-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(143, 190, 213, 0.18);
  background: transparent;
  color: var(--steel-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s ease;
  margin-left: 0.4rem;
}
.pavik-theme-toggle:hover {
  border-color: var(--steel-light);
  background: rgba(143, 190, 213, 0.08);
  transform: rotate(20deg);
}
[data-theme="light"] .pavik-theme-toggle {
  color: var(--pavik-navy);
  border-color: rgba(0,53,78,0.25);
}
[data-theme="light"] .pavik-theme-toggle:hover {
  border-color: var(--pavik-navy);
  background: rgba(0,53,78,0.06);
}
.pavik-theme-toggle__sun  { display: none; }
.pavik-theme-toggle__moon { display: inline-block; }
[data-theme="light"] .pavik-theme-toggle__sun  { display: inline-block; }
[data-theme="light"] .pavik-theme-toggle__moon { display: none; }

.pavik-sidebar__contact-line {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--gray-mid);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.3s ease;
}
.pavik-sidebar__contact-line:hover { color: var(--white); }
[data-theme="light"] .pavik-sidebar__contact-line:hover { color: var(--pavik-navy); }
.pavik-sidebar__contact-addr {
  margin-top: 0.75rem;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--gray-soft);
  white-space: pre-line;
}

/* Mobile */
.pavik-burger {
  display: none;
  position: fixed;
  top: 1.1rem; left: 1.1rem;
  z-index: 80;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: rgba(0, 23, 31, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(143, 190, 213, 0.12);
  border-radius: 10px;
  cursor: pointer;
}
.pavik-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--steel-light);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
[data-theme="light"] .pavik-burger {
  background: rgba(255,255,255,0.65);
  border-color: rgba(0,53,78,0.15);
}
[data-theme="light"] .pavik-burger span { background: var(--pavik-navy); }
.pavik-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.pavik-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pavik-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.pavik-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 23, 31, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 55;
}

@media (max-width: 1024px) {
  .pavik-burger { display: flex; }
  .pavik-sidebar { transform: translateX(-100%); }
  .pavik-sidebar.is-open { transform: translateX(0); }
  .pavik-sidebar-overlay { display: block; }
  .pavik-sidebar-overlay[hidden] { display: none; }
}

/* Light/dark logo swap */
.brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-dark  { display: none; }
[data-theme="light"] .brand-logo-light { display: inline-block; }

/* Cookie banner — clear the left sidebar on desktop (sidebar is 280px) */
@media (min-width: 1025px) {
  .consent-banner {
    left: calc(var(--pavik-nav-width, 280px) + 1.25rem) !important;
  }
}

/* A11y widget — same offset so it doesn't hide behind the sidebar */
@media (min-width: 1025px) {
  .a11y-widget__toggle, [class*="a11y"] [class*="toggle"], button[class*="a11y"] {
    left: calc(var(--pavik-nav-width, 280px) + 1rem) !important;
  }
}

/* Cookie banner — centered on the available main-content area (right of sidebar) */
@media (min-width: 1025px) {
  .consent-banner {
    left: calc(var(--pavik-nav-width, 280px) + (100vw - var(--pavik-nav-width, 280px)) / 2) !important;
    right: auto !important;
    transform: translateX(-50%);
    max-width: 460px !important;
  }
}
@media (max-width: 1024px) {
  /* Mobile: banner centered horizontally inside the viewport */
  .consent-banner {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    max-width: min(420px, calc(100vw - 1.5rem)) !important;
  }
}

/* ============================================================================
 * FOOTER — sits to the right of the 280px sidebar; light + dark themed.
 * ========================================================================= */
.pavik-footer {
  margin-left: var(--pavik-nav-width, 280px);
  background: var(--ink);
  color: var(--off-white);
  border-top: 1px solid rgba(143, 190, 213, 0.08);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .pavik-footer { margin-left: 0; }
}
[data-theme="light"] .pavik-footer {
  background: var(--ink);          /* pale cool-blue paper alt tone */
  color: var(--pavik-navy-bright);
  border-top-color: rgba(0, 53, 78, 0.10);
}

.pavik-footer__inner {
  max-width: 1280px;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px);
}

.pavik-footer__top .pavik-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
}
@media (max-width: 1024px) {
  .pavik-footer__top .pavik-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .pavik-footer__top .pavik-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.pavik-footer__logo-link { display: inline-block; margin-bottom: 1rem; }
.pavik-footer__logo { height: 28px; width: auto; }
.pavik-footer__tagline {
  color: var(--gray-mid);
  font-size: 13px;
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 0.75rem;
}
.pavik-footer__legal-name {
  font-size: 12px;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
}
[data-theme="light"] .pavik-footer__tagline,
[data-theme="light"] .pavik-footer__legal-name {
  color: var(--gray-mid);
}

.pavik-footer__heading {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 1rem;
}
[data-theme="light"] .pavik-footer__heading { color: var(--pavik-navy); }

.pavik-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pavik-footer__list a {
  color: var(--gray-mid);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}
.pavik-footer__list a:hover { color: var(--white); }
[data-theme="light"] .pavik-footer__list a:hover { color: var(--pavik-navy); }

.pavik-footer__addr {
  color: var(--gray-mid);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

.pavik-footer__bottom {
  border-top: 1px solid rgba(143, 190, 213, 0.08);
}
[data-theme="light"] .pavik-footer__bottom { border-top-color: rgba(0, 53, 78, 0.10); }
.pavik-footer__bottom .pavik-footer__inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.pavik-footer__bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 720px) {
  .pavik-footer__bottom-row { flex-direction: column; align-items: flex-start; }
}
.pavik-footer__copy {
  font-size: 11.5px;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}
.pavik-footer__tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--steel-light);
  letter-spacing: -0.01em;
}
[data-theme="light"] .pavik-footer__tag { color: var(--pavik-navy); }

/* ============================================================================
 * MOBILE + iPAD HERO + GENERAL OVERFLOW HARDENING (audit 2026-05-02)
 * Sidebar hides at <1024px → main reflows to full width.
 * ========================================================================= */

/* Hero photo — recrop on mobile + iPad so portrait subjects don't dominate */
@media (max-width: 1024px) {
  .pavik-hero > img {
    object-position: 70% center !important;
  }
  /* Hero — sane height, breathing room left/right */
  .pavik-hero {
    min-height: 92svh !important;
    padding-left: clamp(20px, 5vw, 40px) !important;
    padding-right: clamp(20px, 5vw, 40px) !important;
    padding-top: clamp(80px, 14vw, 110px) !important;
    padding-bottom: clamp(40px, 8vw, 80px) !important;
  }
  /* Hero meta strip (EST. + coords) — stack, give breathing room from burger */
  .pavik-hero .absolute.top-8 {
    top: 5.5rem !important;
    left: 1rem !important;
    right: 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }
}

/* Below 480px hide meta strip (no room) + tighter hero typography */
@media (max-width: 480px) {
  .pavik-hero .absolute.top-8 { display: none !important; }
  .pavik-hero .font-display {
    font-size: clamp(44px, 13vw, 64px) !important;
    line-height: 0.95 !important;
  }
  .pavik-hero .eyebrow {
    margin-bottom: 0.85rem !important;
    font-size: 10px !important;
  }
  .pavik-hero p[class*="mt-12"] {
    margin-top: 1.25rem !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }
  .pavik-hero div[class*="mt-12"][class*="flex-wrap"] {
    margin-top: 1.5rem !important;
    gap: 0.6rem !important;
  }
  .pavik-hero .btn-primary,
  .pavik-hero .btn-secondary {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 18px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    justify-content: center;
  }
}

/* iPhone SE (≤375px) — tightest */
@media (max-width: 375px) {
  .pavik-hero { padding-left: 18px !important; padding-right: 18px !important; }
  .pavik-hero .font-display { font-size: clamp(40px, 12vw, 56px) !important; }
  .pavik-hero div[class*="mt-12"][class*="flex-wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
  }
  .pavik-hero .btn-primary,
  .pavik-hero .btn-secondary { width: 100%; }
}

/* iPad portrait (744px–1023px) — sidebar hidden, generous padding */
@media (min-width: 744px) and (max-width: 1023px) {
  main, main#main { padding-left: 0 !important; padding-right: 0 !important; }
  .pavik-hero {
    padding-left: clamp(40px, 6vw, 80px) !important;
    padding-right: clamp(40px, 6vw, 80px) !important;
    min-height: 88svh !important;
  }
  .pavik-hero .font-display {
    font-size: clamp(64px, 9vw, 110px) !important;
  }
  .pavik-hero p[class*="mt-12"] {
    font-size: clamp(15px, 1.6vw, 18px) !important;
    max-width: 540px !important;
  }
}

/* General mobile section padding — every section gets breathing room */
@media (max-width: 1023px) {
  main > section {
    padding-left: clamp(20px, 5vw, 40px) !important;
    padding-right: clamp(20px, 5vw, 40px) !important;
  }
  /* But keep full-bleed on the hero + industrial strip + global gradient blocks */
  .pavik-hero,
  .pavik-industrial-strip,
  main > section[style*="height:clamp(280px"] {
    padding-left: clamp(20px, 5vw, 40px) !important;
    padding-right: clamp(20px, 5vw, 40px) !important;
  }
  /* Heading sizes step down so DACH compound words don't overflow */
  main section h2[class*="heading-2"] {
    font-size: clamp(28px, 7vw, 48px) !important;
  }
  main section h3[class*="heading-2"] {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  /* Stat numbers smaller on phone */
  .stat-block p.font-display {
    font-size: clamp(36px, 9vw, 56px) !important;
  }
  .stat-block { padding: 18px 18px 16px 0 !important; }
  /* Bento grid: collapse to single column < 720px */
  .pavik-hero .max-w-\[1280px\],
  main section .max-w-\[1280px\] { max-width: 100%; }
}

/* Cookie banner — DON'T cover CTAs on mobile. Slide to TOP-center on small phones,
   keep bottom-center on tablet/desktop. */
@media (max-width: 600px) {
  .consent-banner {
    bottom: auto !important;
    top: 0.85rem !important;
    left: 0.85rem !important;
    right: 0.85rem !important;
    max-width: none !important;
    transform: none !important;
  }
}

/* Footer — tighter padding on mobile */
@media (max-width: 600px) {
  .pavik-footer__top .pavik-footer__inner,
  .pavik-footer__bottom .pavik-footer__inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* Universal overflow guard — body never scrolls horizontally */
html, body { overflow-x: hidden !important; }

/* Hero padding override (final): more breathing room on phones + iPad portrait. */
@media (max-width: 1023px) {
  .pavik-hero,
  .pavik-hero[style] {
    padding-left: clamp(28px, 7vw, 56px) !important;
    padding-right: clamp(28px, 7vw, 56px) !important;
  }
}
@media (min-width: 744px) and (max-width: 1023px) {
  .pavik-hero,
  .pavik-hero[style] {
    padding-left: clamp(48px, 7vw, 80px) !important;
    padding-right: clamp(48px, 7vw, 80px) !important;
  }
}

/* Stat numbers — keep them sensible, suffix beside the value, single line. */
.stat-block .font-display,
.stat-block p.font-display {
  font-size: clamp(36px, 4vw, 64px) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.05 !important;
  font-weight: 600 !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

/* About-section pillar labels (Effizient / Flexibel / Zukunftssicher) — small,
   not display-sized. Don't inherit .font-display. */
.pavik-pillar-label {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.3 !important;
  color: var(--white) !important;
  text-transform: none !important;
}

/* Audit override: keep big decorative watermark numbers/letters intact even
   though they share .font-display. Anything matching a literal large inline
   font-size (>= 100px) wins over the class-level cap. */
.font-display[style*="clamp(200px"],
.font-display[style*="clamp(140px"],
.font-display[style*="font-size:clamp(2"][style*="vw,4"] {
  font-size: revert !important;
}

/* Product-card titles — keep "Eindüsungssysteme" / "Armaturstationen" on one
   line. Smaller cap than the global .heading-2 + no auto-hyphenation. */
.product-card .heading-2 {
  font-size: clamp(20px, 2.4vw, 30px) !important;
  line-height: 1.1 !important;
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
  word-break: keep-all !important;
}

/* The featured (large) Industriebrenner card may use a slightly bigger title —
   it has more horizontal room. Tailwind compiles 'lg:col-span-7' to the literal
   class name so we escape the colon in the CSS selector. */
.product-card.lg\:col-span-7 .heading-2 {
  font-size: clamp(26px, 3vw, 44px) !important;
}

/* Section-heading + product-card-heading FINAL audit (2026-05-02 evening).
   Goal: 3-tier scale that doesn't break compound German words.
   Tier 1 — section headings (h2.heading-2 outside product cards): max 42px
   Tier 2 — featured big-bento card title (Industriebrenner): max 32px
   Tier 3 — small bento + burner-series cards: max 22px (single line) */
.heading-2 {
  font-size: clamp(24px, 2.8vw, 42px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.018em !important;
}
.product-card .heading-2 {
  font-size: clamp(16px, 1.5vw, 22px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
  word-break: normal !important;
}
.product-card.lg\:col-span-7 .heading-2 {
  font-size: clamp(22px, 2.3vw, 32px) !important;
}

/* HARD RULE — German compound-word card titles MUST hyphenate cleanly.
   1. Cap card title font small enough that no card breaks awkwardly
   2. Allow auto-hyphenation in German (lang attribute on <html> required)
   3. Long compound words need a soft hyphen `&shy;` (`­`) inserted in
      the JSON content at the natural morpheme boundary, e.g.
      "Druckgeräte­optimiert", "Verbrennungs­technik".
   Apply this rule to EVERY new client site card grid. */
.product-card .heading-2 {
  font-size: clamp(15px, 1.3vw, 20px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.005em !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-wrap: balance;
}
.product-card.lg\:col-span-7 .heading-2 {
  font-size: clamp(20px, 2vw, 28px) !important;
}

/* Burner-series card grid (4-column) — every image frame must share the
   exact same height so the headlines below sit on one horizontal baseline.
   PDB/PDD (wide cylinders) vs HVT/SAB (round axials) have different
   bounding boxes; without this, the dividers + titles drift vertically. */
.grid.grid-cols-2.lg\:grid-cols-4 > .product-card,
.grid.grid-cols-2.lg\:grid-cols-4 .product-card {
  display: flex;
  flex-direction: column;
}
.grid.grid-cols-2.lg\:grid-cols-4 .product-card .card-image-frame {
  flex: 0 0 auto;
  height: 320px !important;
  min-height: 320px !important;
  max-height: 320px !important;
  padding: 20px !important;
}
.grid.grid-cols-2.lg\:grid-cols-4 .product-card .card-image-frame img {
  max-height: 240px !important;
  width: auto !important;
  object-fit: contain !important;
}
.grid.grid-cols-2.lg\:grid-cols-4 .product-card > div:last-child {
  flex: 1 1 auto;        /* text block fills the remaining card height */
  display: flex;
  flex-direction: column;
}

/* Custom-Solutions card grid (3-column) — same uniform alignment rule as the
   burner series. Title/label sit on one horizontal baseline across all 3. */
.grid.grid-cols-1.md\:grid-cols-3 > .product-card,
.grid.grid-cols-1.md\:grid-cols-3 .product-card {
  display: flex;
  flex-direction: column;
}
.grid.grid-cols-1.md\:grid-cols-3 .product-card .card-image-frame {
  flex: 0 0 auto;
  height: 320px !important;
  min-height: 320px !important;
  max-height: 320px !important;
  padding: 24px !important;
}
.grid.grid-cols-1.md\:grid-cols-3 .product-card .card-image-frame img {
  max-height: 240px !important;
  width: auto !important;
  object-fit: contain !important;
}
.grid.grid-cols-1.md\:grid-cols-3 .product-card > div:last-child {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
