/* ============================================
   HAINAN SALZBURG CONSULTING — Design System
   ============================================ */

/* ============================================
   DESIGN TOKENS — Trust & Authority pattern
   Source: ui-ux-pro-max skill (B2B consulting)
   ============================================ */

:root {
  /* Brand: Navy + Trust-Blue (Enterprise Gateway palette) */
  --color-primary:        #0F172A;  /* Navy 950 — headlines, nav */
  --color-primary-dark:   #020617;  /* Navy 990 — emphasis */
  --color-primary-light:  #1E293B;  /* Slate 800 */
  --color-secondary:      #334155;  /* Slate 700 — secondary surfaces */
  --color-accent:         #0369A1;  /* Trust Blue — CTA only */
  --color-accent-dark:    #075985;  /* CTA hover */
  --color-accent-light:   #38BDF8;  /* Accent highlight */

  /* Heritage gold kept as secondary trust accent (badges, certificates) */
  --color-gold:           #B88A55;
  --color-gold-dark:      #8C6840;

  /* Neutrals */
  --color-text:           #020617;  /* Foreground */
  --color-text-muted:     #475569;  /* Slate 600 */
  --color-text-subtle:    #64748B;  /* Slate 500 */
  --color-bg:             #F8FAFC;  /* Slate 50 — page bg */
  --color-bg-alt:         #F1F5F9;  /* Slate 100 — alt section */
  --color-surface:        #FFFFFF;  /* Cards */
  --color-white:          #FFFFFF;
  --color-muted:          #E8ECF1;
  --color-border:         #E2E8F0;  /* Slate 200 */
  --color-border-strong:  #CBD5E1;  /* Slate 300 */

  /* Semantic states */
  --color-success:        #059669;  /* Emerald 600 */
  --color-warning:        #D97706;  /* Amber 600 */
  --color-danger:         #DC2626;  /* Red 600 */
  --color-info:           #0369A1;  /* Trust Blue */

  /* Focus ring */
  --color-ring:           #0F172A;

  /* Typography — single multilingual family (Noto Sans + Noto Sans SC for ZH) */
  /* Noto Sans loaded via fonts.bunny.net (GDPR-safe, no Google tracking, GFW-friendly).
     Falls back to native CJK system fonts (PingFang SC / Microsoft YaHei / Source Han Sans)
     if the WOFF2 doesn't reach the user — keeps the brand metrics identical and
     prevents layout shifts. */
  --font-sans:  'Noto Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans CN', system-ui, sans-serif;
  --font-serif: ui-serif, 'Iowan Old Style', 'Apple Garamond', 'Baskerville', 'Times New Roman', 'Songti SC', 'Source Han Serif CN', 'Noto Serif CJK SC', serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;

  /* Radius (subtle, enterprise-feel — not rounded-pill) */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  /* Shadows (clean, layered, no warm tint) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-3d: 0 24px 60px rgba(15, 23, 42, 0.15);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale (Material Design tier system) */
  --z-base: 0;
  --z-raised: 10;
  --z-overlay: 40;
  --z-modal: 100;
  --z-toast: 1000;
}

/* ============================================
   DARK MODE (token overrides)
   Auto via prefers-color-scheme, manual via [data-theme="dark"]
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary:        #F1F5F9;
    --color-primary-dark:   #FFFFFF;
    --color-primary-light:  #CBD5E1;
    --color-secondary:      #94A3B8;
    --color-accent:         #38BDF8;  /* Lighter Trust Blue in dark */
    --color-accent-dark:    #0EA5E9;
    --color-accent-light:   #7DD3FC;

    --color-text:           #F1F5F9;
    --color-text-muted:     #CBD5E1;
    --color-text-subtle:    #94A3B8;
    --color-bg:             #020617;
    --color-bg-alt:         #0F172A;
    --color-surface:        #1E293B;
    --color-white:          #1E293B;
    --color-muted:          #334155;
    --color-border:         #334155;
    --color-border-strong:  #475569;

    --color-ring:           #38BDF8;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-3d: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

[data-theme="dark"] {
  --color-primary:        #F1F5F9;
  --color-primary-dark:   #FFFFFF;
  --color-primary-light:  #CBD5E1;
  --color-secondary:      #94A3B8;
  --color-accent:         #38BDF8;
  --color-accent-dark:    #0EA5E9;
  --color-accent-light:   #7DD3FC;

  --color-text:           #F1F5F9;
  --color-text-muted:     #CBD5E1;
  --color-text-subtle:    #94A3B8;
  --color-bg:             #020617;
  --color-bg-alt:         #0F172A;
  --color-surface:        #1E293B;
  --color-white:          #1E293B;
  --color-muted:          #334155;
  --color-border:         #334155;
  --color-border-strong:  #475569;

  --color-ring:           #38BDF8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-3d: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Respect reduced-motion globally (Trust & Authority quality gate) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;          /* readable base, no iOS auto-zoom */
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-accent-dark); }

ul { list-style: none; }

/* Typography hierarchy — Trust & Authority, no decorative serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;            /* bold headings (MD weight hierarchy) */
  line-height: 1.2;
  letter-spacing: -0.02em;     /* tight tracking for headlines */
  color: var(--color-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; }
h4 { font-size: clamp(1.05rem, 1.3vw, 1.25rem); font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--color-text-muted); }

/* Focus states (accessibility critical) */
*:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

p { margin-bottom: 1em; }

/* ============================================
   Layout helpers
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--color-white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-dark .eyebrow { color: var(--color-gold); }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 720px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 44px;                /* Touch target minimum (a11y critical) */
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Primary = Trust Blue CTA (only one per page per Trust & Authority pattern) */
.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.20);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(3, 105, 161, 0.30);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary = Navy outline (less attention than primary) */
.btn-secondary {
  background: var(--color-primary);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background: var(--color-primary-light);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Gold = Trust badge / certificate (use sparingly).
   Use --color-gold-dark (#8C6840) for the background so white text passes WCAG AA (4.6:1).
   Light gold #B88A55 with white only gives 3.08:1 — that fails AA. */
.btn-gold {
  background: var(--color-gold-dark);
  color: #FFFFFF;
  font-weight: 600;
}
.btn-gold:hover {
  background: #6F5333;       /* one more notch darker for hover state */
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Outline = tertiary action, no shadow */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 12px 16px;
}
.btn-ghost:hover {
  color: var(--color-accent);
  background: var(--color-bg-alt);
}

/* Small variant */
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Form input styling */
input[type="email"],
input[type="text"],
textarea {
  font-family: var(--font-sans);
  transition: var(--transition);
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 95, 79, 0.1);
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

.brand:hover { color: var(--color-accent); }
[data-theme="dark"] .brand,
.brand { color: var(--color-text); }

/* Logo crop: zeige nur den oberen Bildbereich (Adler), schneide Marketing-Tagline ab.
   Das Bild ist quadratisch — der Adler nimmt die obere ~55% ein.
   Mit aspect-ratio 9/5 und object-fit cover wird die Bildbreite so skaliert,
   dass die Höhe automatisch passt und der untere Text-Bereich abgeschnitten ist. */
.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border-radius: 6px;
}

.footer-brand .brand-mark {
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
}

/* Brand text — stacked 2-line layout (full legal name fits compactly) */
.brand > span:not(.brand-mark),
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;       /* main name never wraps */
  font-size: 1.25rem;
  font-weight: 700;
}

/* "Consulting Co., Ltd." appears as small subtitle BELOW main brand */
.brand-suffix {
  display: block;
  font-size: 0.62em;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.78;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* Brand-name wrapper — ensures legal name + suffix block doesn't wrap */
.brand-name {
  display: block;
  white-space: nowrap;
}

/* Brand tagline — Austrian USP line under company name */
.brand-tagline {
  display: block;
  font-size: 0.68em;
  font-weight: 700;
  font-style: italic;
  color: #0F172A;           /* explicit dark navy, no token, no opacity */
  letter-spacing: 0.005em;
  text-transform: none;
  margin-top: 2px;
  white-space: nowrap;
}

/* Dark mode: cream tagline on dark navy header */
[data-theme="dark"] .brand-tagline {
  color: #FAF7F0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-tagline {
    color: #FAF7F0;
  }
}

/* Footer — same stacked layout but white-tone on dark bg */
.footer-brand .brand-suffix {
  color: rgba(255, 255, 255, 0.65);
}

.footer-brand .brand-tagline {
  color: rgba(212, 165, 116, 0.95); /* gold accent on dark */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 1 auto;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
}

/* Language switcher — now direct child of .nav, sits between brand and mode-toggle */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  order: 30;
  flex-shrink: 0;
}

.language-switcher button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
  min-width: 28px;
  text-align: center;
}

.language-switcher button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.language-switcher button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  transition: var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  margin: 4px 0;
  transition: var(--transition);
}

/* ============================================
   HERO — 3D Scene
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 11vw, 140px);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.18), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(45, 95, 79, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, #EFECE3 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,95,79,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,95,79,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  margin-bottom: 24px;
}

.hero-text .lead {
  margin-bottom: 36px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--color-text);
}

.hero-text-highlight {
  color: var(--color-primary);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero-meta span::before {
  content: '✓';
  color: var(--color-primary);
  margin-right: 8px;
  font-weight: 700;
}

/* The 3D scene */
.hero-3d {
  position: relative;
  height: 520px;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.hero-3d-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================
   3D Hero: Silk-Road Bridge (replaces container box)
   ============================================ */

/* SVG bridge: tilted in 3D space, sits center stage */
.hero-bridge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotateX(18deg) translateZ(0);
  transform-origin: center 60%;
  filter: drop-shadow(0 40px 60px rgba(45, 95, 79, 0.18));
  animation: bridgeFloat 8s ease-in-out infinite;
}

@keyframes bridgeFloat {
  0%, 100% { transform: rotateX(18deg) translateY(0); }
  50%      { transform: rotateX(18deg) translateY(-12px); }
}

/* Audit stamp: floats in 3D in front of the bridge */
.hero-audit-badge {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #F2D9B6 0%, var(--color-gold) 55%, var(--color-gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  transform: translateZ(180px) rotate(-12deg);
  box-shadow:
    0 30px 60px rgba(45, 95, 79, 0.35),
    inset 0 0 30px rgba(184, 138, 85, 0.25);
  animation: stampPulse 4.5s ease-in-out infinite;
  z-index: 3;
}

.hero-audit-badge .badge-ring {
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 50%;
  border: 2px solid rgba(45, 68, 56, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

@keyframes stampPulse {
  0%, 100% { transform: translateZ(180px) rotate(-12deg) scale(1); }
  50%      { transform: translateZ(190px) rotate(-9deg) scale(1.04); }
}

.badge-check {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.badge-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.badge-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  opacity: 0.68;
  margin-top: 3px;
}

/* Floating depth decoration */
.float-decor {
  position: absolute;
  pointer-events: none;
}

.decor-glow-1 {
  width: 320px;
  height: 320px;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.22), transparent 65%);
  transform: translateZ(-120px);
  border-radius: 50%;
}

.decor-glow-2 {
  width: 220px;
  height: 220px;
  bottom: -5%;
  right: -5%;
  background: radial-gradient(circle, rgba(45, 95, 79, 0.16), transparent 65%);
  transform: translateZ(-80px);
  border-radius: 50%;
}

.decor-spark {
  width: 14px;
  height: 14px;
  top: 22%;
  left: 14%;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.6;
  transform: translateZ(120px);
  box-shadow: 0 0 24px var(--color-gold);
  animation: sparkFloat 6s ease-in-out infinite;
}

@keyframes sparkFloat {
  0%, 100% { transform: translateZ(120px) translate(0, 0); opacity: 0.6; }
  50%      { transform: translateZ(140px) translate(8px, -16px); opacity: 0.9; }
}

.decor-ring {
  width: 86px;
  height: 86px;
  bottom: 18%;
  left: 18%;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0.3;
  transform: translateZ(60px);
  animation: ringPulse 5s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: translateZ(60px) scale(1); opacity: 0.3; }
  50%      { transform: translateZ(60px) scale(1.15); opacity: 0.15; }
}

/* ============================================
   Problem Section
   ============================================ */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 60px;
}

.problem-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-danger);
  box-shadow: var(--shadow-sm);
}

.problem-card h4 {
  margin-bottom: 12px;
  color: var(--color-danger);
}

.problem-quote {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--color-text);
  margin: 30px 0;
  padding-left: 28px;
  border-left: 3px solid var(--color-gold);
}

.problem-conclusion {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ============================================
   Solution Section
   ============================================ */

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solution-list {
  margin-top: 30px;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 1.05rem;
}

.solution-list li:last-child { border-bottom: none; }

.solution-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.solution-tagline {
  margin-top: 36px;
  padding: 24px 28px;
  background: rgba(212, 165, 116, 0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.4;
}

/* Map illustration */
.map-illustration {
  position: relative;
  padding: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-svg {
  width: 100%;
  height: auto;
  max-width: 480px;
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

/* When only 2 services — keep them centered, don't stretch full-width */
.services-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 480px));
  justify-content: center;
}

/* Bullet list inside service cards */
.service-card .service-bullets {
  margin-top: 12px;
}
.service-card .service-bullets li {
  margin-bottom: 6px;
}
.service-card .service-bullets li::marker {
  color: var(--color-accent);
}

.service-card {
  background: var(--color-white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-white);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-meta {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.service-price {
  color: var(--color-primary);
  font-weight: 600;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin-bottom: 22px;
  flex: 1;
}

.service-best-for {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  padding: 12px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-gold);
}

.service-card .btn-ghost {
  align-self: flex-start;
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   Why Us Section
   ============================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.why-card {
  padding: 36px 28px;
  border-top: 3px solid var(--color-gold);
  background: var(--color-white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-card-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--color-gold);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}

.why-card h4 {
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-band {
  background:
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(50px, 6vw, 80px) clamp(30px, 5vw, 70px);
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.25), transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.cta-band p {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 36px;
  opacity: 0.9;
}

.cta-band .btn-gold { z-index: 1; position: relative; }

/* CTA-Band with background photo */
.cta-band-photo {
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
}
.cta-band-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 68, 56, 0.88) 0%, rgba(45, 95, 79, 0.78) 60%, rgba(212, 165, 116, 0.55) 100%);
  border-radius: inherit;
  z-index: -1;
}
.cta-band-photo::before {
  /* override the original gold radial — we have full image now */
  display: none;
}

/* ============================================
   Page header (subpages)
   ============================================ */

.page-header {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.2), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 { margin-bottom: 18px; }
.page-header .lead { margin: 0 auto; }

/* ============================================
   Detailed service blocks (Leistungen)
   ============================================ */

.service-block {
  margin-bottom: 100px;
  scroll-margin-top: 100px;
}

.service-block-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-end;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 48px;
}

.service-block-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.service-block h2 {
  margin-bottom: 14px;
}

.service-block-meta {
  text-align: right;
  font-family: var(--font-sans);
}

.service-block-meta .price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-serif);
  display: block;
  line-height: 1;
}

.service-block-meta .timeline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.service-block-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.service-block-content h3 {
  margin: 32px 0 14px;
  color: var(--color-primary-dark);
}

.service-block-content h3:first-child { margin-top: 0; }

.checklist {
  margin: 16px 0 24px;
}

.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='5 12 10 17 19 8'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.checklist-nested li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 4px 0 4px 16px;
  border: none;
}
.checklist-nested li::before {
  content: '–';
  background: none;
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--color-gold-dark);
  width: auto;
  height: auto;
}

.service-sidebar {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: sticky;
  top: 100px;
  align-self: start;
  height: fit-content;
}

.service-sidebar h4 {
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.service-sidebar ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.service-sidebar ul li:last-child { border-bottom: none; }
.service-sidebar ul li::before {
  content: '→ ';
  color: var(--color-gold-dark);
  font-weight: 700;
}

.service-sidebar .btn { width: 100%; justify-content: center; margin-top: 20px; }

.result-box {
  margin-top: 30px;
  padding: 24px 26px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  border-radius: var(--radius-md);
}
.result-box h4 {
  color: var(--color-gold);
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
}
.result-box p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.45;
  font-style: italic;
}

/* Service nav (Leistungen page) */
.service-nav {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.service-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  color: var(--color-text);
}
.service-nav a:hover {
  color: var(--color-primary);
}
.service-nav a strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.service-nav a span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   About page
   ============================================ */

.about-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--color-text);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  position: relative;
  background-size: cover;
  background-position: center;
}

.team-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0;
  letter-spacing: 0.2em;
  opacity: 0;
  font-weight: 500;
}

.team-info {
  padding: 24px 26px;
}

.team-info h4 {
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.88rem;
  color: var(--color-gold-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.team-bio {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.value-card {
  padding: 32px 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.value-card h4 { color: var(--color-text); }
.value-card p { color: var(--color-text-muted); line-height: 1.7; }

.section-dark .value-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-dark .value-card p { color: rgba(255, 255, 255, 0.85); }
.section-dark .value-card h4 { color: #FFFFFF; }

[data-theme="dark"] .value-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .value-card h4 { color: var(--color-text); }
[data-theme="dark"] .value-card p { color: var(--color-text-muted); }

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-gold);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.value-card h4 {
  margin-bottom: 12px;
}

/* ============================================
   Contact page
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-field label .required { color: var(--color-danger); }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-bg);
  transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(45, 95, 79, 0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.contact-info-card {
  background: var(--color-bg-alt);
  padding: 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.contact-info-card h3 {
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.contact-info-card .info-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-info-card address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 14px;
}

.contact-info-card .hours {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-quick-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-quick-list li:last-child { border-bottom: none; }
.contact-quick-list strong {
  min-width: 110px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h5 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li { padding: 6px 0; }

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--color-gold); }

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}
.footer-brand .brand { color: var(--color-white); margin-bottom: 0; }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--color-gold); }

/* Draft warning box (top of legal pages) */
.draft-notice {
  background: #FFF4DD;
  border-left: 4px solid #C9A24A;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin-bottom: 50px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.draft-notice strong { color: #8B6914; display: block; margin-bottom: 6px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Legal page content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.97rem;
  line-height: 1.7;
}
.legal-content h2 {
  margin-top: 50px;
  margin-bottom: 16px;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 600;
}
.legal-content p, .legal-content li { color: var(--color-text); }
.legal-content ul, .legal-content ol { padding-left: 24px; margin: 12px 0; }
.legal-content li { margin-bottom: 8px; }
.legal-content .toc {
  background: var(--color-bg-alt);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  margin-bottom: 50px;
}
.legal-content .toc h3 { margin-top: 0; font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-primary-dark); }
.legal-content .toc ol { padding-left: 22px; columns: 2; column-gap: 30px; margin: 8px 0 0; }
.legal-content .toc ol li { margin-bottom: 4px; font-size: 0.92rem; break-inside: avoid; }
.legal-content .toc a { color: var(--color-primary); }
.legal-content .updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 30px;
}

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.sitemap-col h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gold);
}
.sitemap-col ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
}
.sitemap-col ul li:last-child { border-bottom: none; }
.sitemap-col ul li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text);
  font-size: 0.95rem;
}
.sitemap-col ul li a:hover { color: var(--color-primary); }
.sitemap-col ul li a span.note {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-style: italic;
  text-align: right;
}

@media (max-width: 700px) {
  .legal-content .toc ol { columns: 1; }
}

/* Impressum block (only on contact) */
.impressum {
  background: var(--color-bg-alt);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-top: 60px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.impressum h3 {
  color: var(--color-text);
  margin-bottom: 20px;
}

.impressum strong { color: var(--color-text); }

.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

/* ============================================
   Image placeholder
   ============================================ */

.img-placeholder {
  background:
    repeating-linear-gradient(45deg, var(--color-bg-alt), var(--color-bg-alt) 10px, transparent 10px, transparent 20px),
    var(--color-bg);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* ============================================
   Photo layouts (added with content images)
   ============================================ */

.media-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
  object-fit: cover;
}

figure.media-figure {
  margin: 0;
}

.media-figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* Two-column split layout (text + image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

/* Images inside .split keep their natural aspect ratio
   (was being stretched because no .media-image class on the img) */
.split figure,
.split picture {
  margin: 0;
  position: relative;
}
.split figure > img,
.split picture > img,
.split > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  /* Use intrinsic dimensions if width/height attrs are present */
}

.split.split-reverse > *:first-child { order: 2; }

.split-text h3 {
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.split-text p { font-size: 1.05rem; line-height: 1.7; color: var(--color-text-muted); }

.split-image {
  position: relative;
}
.split-image::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  background: linear-gradient(135deg, var(--color-gold), transparent 60%);
  border-radius: var(--radius-lg);
  opacity: 0.25;
  z-index: 0;
}
.split-image .media-image { position: relative; z-index: 1; }

/* Page-header with background photo */
.page-header-photo {
  position: relative;
  padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 10vw, 130px);
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.page-header-photo .page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-photo .page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* Lift the photo a touch — was washing into the overlay */
  filter: brightness(1.08) saturate(1.05);
}

.page-header-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Softer Navy-Trust-Blue overlay (was 0.65→0.85 green) — keeps text legible,
     lets the photo breathe. ~35% opacity instead of 65-85%. */
  background:
    linear-gradient(180deg,
      rgba(15, 23, 42, 0.30) 0%,
      rgba(15, 23, 42, 0.45) 60%,
      rgba(3, 105, 161, 0.40) 100%);
  z-index: 1;
}

/* Subtle text-shadow keeps headlines crisp even with the lighter overlay */
.page-header-photo h1,
.page-header-photo .lead {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.page-header-photo > .container { position: relative; z-index: 2; }

.page-header-photo h1 { color: var(--color-white); margin-bottom: 18px; }
.page-header-photo .lead { color: rgba(255, 255, 255, 0.9); margin: 0 auto; }
.page-header-photo .eyebrow { color: var(--color-gold); }

/* Service card with cover photo */
.service-card.has-cover {
  padding: 0;
  overflow: hidden;
}

.service-card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--color-border);
}

.service-card.has-cover .service-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card.has-cover .service-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  backdrop-filter: blur(6px);
  width: 44px;
  height: 44px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* Service-block detailed page: cover photo */
.service-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

/* Team card with real photo */
.team-card .team-photo.has-photo {
  background: none;
  padding: 0;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.team-card .team-photo.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card .team-photo.has-photo::after { display: none; }

/* Inline image inside about-text */
.about-text .inline-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-text .inline-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.about-text .inline-photo figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* Photo grid layout */
.about-text > div[style*="grid"] {
  margin: 50px 0;
}

/* Video frame */
.video-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-dark);
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

/* Atmosphere banner (full-width photo strip) */
.atmosphere-banner {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 24px;
}

.atmosphere-banner img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.split-reverse > *:first-child { order: 0; }
  .service-card-cover { aspect-ratio: 16/10; }
  .service-cover { aspect-ratio: 16/9; }
}

/* ============================================
   Responsive
   ============================================ */

/* Hamburger menu — always active (clean header on any width) */
.nav-links {
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-md);
  z-index: var(--z-overlay);
}
.nav-links.open { transform: translateY(0); }
.nav-toggle { display: block; }

@media (max-width: 1150px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-3d { height: 420px; }
  .hero-audit-badge { width: 120px; height: 120px; right: 4%; top: 6%; }
  .badge-check { font-size: 1.7rem; }
  .badge-label { font-size: 0.65rem; }
  .badge-sub { font-size: 0.5rem; }

  .problem-grid,
  .solution-grid,
  .service-block-content,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .service-sidebar { position: static; }

  .service-block-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .service-block-meta { text-align: left; }

  .impressum-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero-3d { height: 340px; }
  .hero-audit-badge { width: 100px; height: 100px; }
  .badge-check { font-size: 1.4rem; }
  .badge-label { font-size: 0.58rem; }
  .badge-sub { display: none; }

  .btn { padding: 14px 22px; font-size: 0.95rem; }

  .problem-card,
  .contact-form,
  .impressum { padding: 28px 24px; }

  .cta-band { padding: 48px 24px; }
}

/* ============================================
   Service Detail Page
   ============================================ */

.service-detail {
  margin-bottom: 80px;
}

.service-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.service-cover {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.service-intro h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.service-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.service-duration {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.service-content {
  max-width: 880px;
}

.service-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--color-primary);
}

.service-content h3:first-child {
  margin-top: 0;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.65;
}

.service-features li strong {
  color: var(--color-primary);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 10px;
  color: var(--color-primary-dark);
}

@media (max-width: 900px) {
  .service-header {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-intro h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   Portfolio Page
   ============================================ */

.portfolio-intro {
  font-size: 1.18rem;
  color: var(--color-text);
  max-width: 700px;
  margin-bottom: 60px;
  line-height: 1.7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card-header {
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.portfolio-card-icon.icon-crew {
  background: #E8F4F1;
  color: var(--color-primary);
}

.portfolio-card-icon.icon-staff {
  background: #FDF3E7;
  color: #B07830;
}

.portfolio-card-icon.icon-bau {
  background: #F0F5FB;
  color: #2E5F8E;
}

.portfolio-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.portfolio-card-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.portfolio-card-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.portfolio-card-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.portfolio-card-body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-card-desc {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.65;
  flex: 1;
}

.portfolio-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.portfolio-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.portfolio-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.portfolio-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

.portfolio-status.status-beta::before {
  background: var(--color-gold);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
  padding: 10px 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.portfolio-link:hover {
  color: var(--color-primary-dark);
  gap: 10px;
}

.portfolio-note {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-left: 4px solid var(--color-gold);
  margin-bottom: 60px;
}

.portfolio-note strong {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bridge-svg, .hero-audit-badge, .float-decor { animation: none; }
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   MODE TOGGLE (Import ↔ Export)
   ============================================ */

.mode-toggle {
  display: flex;
  align-items: center;
  margin-left: 12px;
  padding-left: 0;
  border-left: none;
  flex-shrink: 0;
  order: 50;
}

.mode-toggle-container {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border-radius: var(--radius-lg);
  padding: 6px;
  gap: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.mode-btn .flag {
  font-size: 1rem;
  display: inline-block;
}

.mode-btn .label {
  letter-spacing: 0.05em;
}

.mode-btn:hover {
  color: var(--color-primary);
  background: rgba(45, 95, 79, 0.08);
}

.mode-btn.active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(45, 95, 79, 0.1);
}

.mode-divider {
  width: 1px;
  height: 18px;
  background: var(--color-border);
  margin: 0 3px;
}

/* Mode-specific content */
.hidden-mode {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .language-switcher {
    display: flex;
    order: 10;
    width: 100%;
    justify-content: flex-start;
    margin: 0;
  }

  .nav-cta {
    display: none;
  }

  .mode-toggle {
    order: 11;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
  }

  .mode-toggle-container {
    width: 100%;
    justify-content: flex-start;
  }

  .mode-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .mode-btn .flag {
    font-size: 0.9rem;
  }

  .mode-divider {
    height: 15px;
    margin: 0 2px;
  }
}

@media (max-width: 600px) {
  .mode-toggle {
    margin-left: 8px;
    padding-left: 8px;
    border-left-width: 0;
  }

  .mode-toggle-container {
    padding: 4px;
    gap: 0;
  }

  .mode-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .mode-btn .flag {
    font-size: 0.85rem;
  }

  .mode-btn .label {
    display: none;
  }

  .mode-divider {
    display: none;
  }
}

/* ============================================
   COMPARISON TABLE & FAQ
   ============================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: var(--color-primary-dark);
  color: white;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.comparison-table .feature-name {
  font-weight: 600;
  color: var(--color-primary-dark);
  width: 30%;
}

.comparison-table .hainan {
  color: var(--color-gold);
  font-weight: 500;
  background: rgba(212, 165, 116, 0.1);
}

.comparison-table .check {
  color: var(--color-success);
  font-weight: bold;
}

.comparison-table .cross {
  color: var(--color-danger);
}

.faq-section {
  margin: 60px 0;
}

.faq-item {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  padding: 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
}

.faq-item p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.comparison-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.comparison-card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

.comparison-card.hainan {
  border: 2px solid var(--color-gold);
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.05), rgba(212, 165, 116, 0.1));
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15);
}

.comparison-card .badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================
   FLOATING ACTION BUTTON (FAB)
   ============================================ */

.fab-button {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-modal);
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.30);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: #FFFFFF;
}

.fab-button:hover {
  background: var(--color-accent-dark);
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(3, 105, 161, 0.40);
}

.fab-button:active {
  transform: scale(0.95);
}

.fab-icon {
  display: inline-block;
  font-size: 28px;
}

/* FAB auf Mobile etwas kleiner */
@media (max-width: 768px) {
  .fab-button {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }

  .fab-icon {
    font-size: 24px;
  }
}

/* FAB auf sehr kleinen Screens verstecken, wenn Footer sichtbar */
@media (max-width: 480px) {
  .fab-button {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
    font-size: 22px;
  }

  .fab-icon {
    font-size: 22px;
  }
}

/* ============================================
   FAB-STACK — Telegram Bot + Mail
   Two FABs stacked vertically, with hover labels
   ============================================ */

.fab-stack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fab-stack .fab-button {
  position: relative;     /* override the .fab-button position:fixed when inside .fab-stack */
  bottom: auto; right: auto;
}

/* Telegram brand colour: #229ED9 */
.fab-telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35);
}
.fab-telegram:hover {
  background: linear-gradient(135deg, #229ED9 0%, #1B8AC2 100%);
  box-shadow: 0 12px 32px rgba(34, 158, 217, 0.45);
}

/* WhatsApp brand colour: #25D366 */
.fab-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.fab-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

/* ============================================
   Audience Paths cards (homepage 2-col list)
   FIX: Light beige background must stay readable in BOTH modes
   ============================================ */
.path-card {
  padding: 20px;
  background: #F8F7F5;
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
}
.path-card p {
  margin: 0;
  font-weight: 600;
  color: #0F172A;   /* explicit dark navy — does NOT use --color-primary-dark token,
                       so it stays dark in dark mode where the bg is still light beige */
}

/* If the section around the cards goes dark, give them a slightly darker bg
   so they don't blast white at the user. Text still stays readable. */
[data-theme="dark"] .path-card,
.section-dark .path-card {
  background: #FAF7F0;          /* warm, slightly tinted */
  border-left-color: var(--color-gold);
}
[data-theme="dark"] .path-card p,
.section-dark .path-card p {
  color: #0F172A;               /* explicit dark text on light card */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .path-card {
    background: #FAF7F0;
  }
  :root:not([data-theme="light"]) .path-card p {
    color: #0F172A;
  }
}

/* WeChat brand colour: #07C160 (slightly lighter green to differentiate from WhatsApp) */
.fab-wechat {
  background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35);
}
.fab-wechat:hover {
  background: linear-gradient(135deg, #06AD56 0%, #058A45 100%);
  box-shadow: 0 12px 32px rgba(7, 193, 96, 0.45);
}


@media (max-width: 480px) {
  .fab-stack { bottom: 16px; right: 16px; gap: 10px; }
  
}

/* ============================================
   MOBILE HEADER FIX — Prevent overlap of
   brand, hamburger, mode-toggle and language switcher
   Triggered at same breakpoint as hamburger (≤1150px)
   ============================================ */

@media (max-width: 1150px) {
  .nav {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    font-size: 1.1rem;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-position: center top;
  }

  .brand > span:not(.brand-mark) {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  /* Hide "Consulting Co., Ltd." subtitle only on actual mobile — header now has space because menu is in hamburger */

  /* On mid/mobile viewports hide the tagline entirely to keep header compact */
  .brand-tagline {
    display: none !important;
  }

  /* Hamburger always on the very right of the bar */
  .nav-toggle {
    order: 100;
    margin-left: 6px;
    flex-shrink: 0;
  }

  /* On mobile mode-toggle sits between language-switcher and hamburger */
  .mode-toggle {
    order: 50;
    margin-left: 6px;
    padding-left: 0;
    border-left: none;
    width: auto;
    flex-shrink: 0;
  }

  .mode-toggle-container {
    width: auto;
    padding: 3px;
    background: linear-gradient(135deg, #f0f0ec 0%, #fafafa 100%);
  }

  /* Language switcher stays inline in header on mobile too — compact */
  .language-switcher {
    margin-left: auto;
    padding: 3px;
  }
  .language-switcher button {
    padding: 4px 7px;
    font-size: 0.7rem;
    min-width: 24px;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 6px;
  }

  .brand {
    font-size: 1rem;
    gap: 6px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    object-position: center top;
  }

  /* On tiny screens, brand text shrinks but remains visible */
  .brand > span:not(.brand-mark) {
    font-size: 0.95rem;
  }

  /* Mobile (≤600px): hide subtitle to keep header clean */
  .brand-suffix {
    display: none !important;
  }

  .mode-toggle {
    margin-left: auto;
  }

  .mode-toggle-container {
    padding: 2px;
  }

  .mode-btn {
    padding: 4px 6px;
    font-size: 0.65rem;
    gap: 0;
  }

  .mode-btn .flag {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  /* iPhone SE & smallest screens: hide brand text, keep logo only */
  .brand > span:not(.brand-mark) {
    display: none;
  }

  .brand-mark {
    height: 32px;
  }

  .mode-btn {
    padding: 4px 5px;
  }
}

/* ============================================
   SEARCH WIDGET — Mobile cleanup
   ============================================ */

@media (max-width: 600px) {
  #search-widget {
    margin-top: 20px !important;
  }

  #search-widget input {
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
  }
}

/* ============================================
   FAB BUTTON — Avoid overlap with footer/CTA on mobile
   ============================================ */

@media (max-width: 600px) {
  .fab-button {
    bottom: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* ============================================
   HERO PADDING — Mobile breathing room
   ============================================ */

@media (max-width: 600px) {
  .page-header-photo {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .page-header-photo h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.2;
  }

  .page-header-photo .lead {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* ============================================
   SECTION PADDING — Mobile tighter spacing
   ============================================ */

@media (max-width: 600px) {
  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================
   ICONS (SVG system — replaces emojis)
   Heroicons-outline geometry, 24×24 viewBox
   ============================================ */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke-width: 1.75;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; stroke-width: 1.5; }
.icon-2xl { width: 64px; height: 64px; stroke-width: 1.5; }
.icon-sm { width: 18px; height: 18px; }

/* Icon containers (replacing the colored boxes around emoji) */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  color: var(--color-accent);
  margin-bottom: 16px;
  transition: var(--transition);
}

.icon-box-primary {
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-primary);
}

.icon-box-accent {
  background: rgba(3, 105, 161, 0.10);
  color: var(--color-accent);
}

.icon-box-gold {
  background: rgba(184, 138, 85, 0.12);
  color: var(--color-gold);
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.icon-box-circle {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: #FFFFFF;
}

/* Subtle hover on icon containers */
.icon-card:hover .icon-box {
  background: var(--color-accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="dark"] .icon-box {
  background: rgba(56, 189, 248, 0.10);
  color: var(--color-accent);
}

/* ============================================
   HERO — Modern Trust & Authority pattern
   ============================================ */

.hero-modern {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(60px, 10vw, 100px);
  /* Lightened overlay — was 0.55→0.45 navy. Now 0.35→0.25→0.25 — lets the
     hero photo breathe. Text-shadow below keeps headlines AA-legible. */
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.25) 50%, rgba(3, 105, 161, 0.25) 100%),
    var(--color-primary);
  color: #FFFFFF;
  overflow: hidden;
}

/* override the legacy page-header-photo dark green tint */
.hero-modern::before {
  display: none !important;
}

.hero-modern .page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Was 0.55 — now 0.75 so the photo is actually visible */
  opacity: 0.75;
}

.hero-modern .page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Was saturate(1.1) brightness(1.05) — bumped for the lighter overlay */
  filter: saturate(1.15) brightness(1.15) contrast(1.05);
}

/* Text-shadow on hero text keeps WCAG AA contrast over the lighter overlay */
.hero-modern h1,
.hero-modern .lead,
.hero-modern .eyebrow {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-modern .container,
.hero-modern .container-narrow {
  position: relative;
  z-index: 1;
}

.hero-modern .eyebrow {
  display: inline-block;
  color: var(--color-accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.30);
}

.hero-modern h1 {
  color: #FFFFFF;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 16ch;
}

.hero-modern .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto 40px;          /* center the block */
  text-align: center;            /* center the text inside */
}

.hero-modern .eyebrow,
.hero-modern h1 {
  text-align: center;
}

.hero-modern h1 {
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA Row — centered for symmetry with headline */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 56px;
  justify-content: center;
}

.hero-modern .btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(3, 105, 161, 0.40);
  padding: 16px 28px;
  font-size: 1rem;
}

.hero-modern .btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.55);
  transform: translateY(-1px);
}

.hero-modern .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.30);
  padding: 16px 28px;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.hero-modern .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.50);
  color: #FFFFFF;
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stat-value {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.1;
}

.hero-stat-value:has(:lang(zh)),
:lang(zh) .hero-stat-value {
  letter-spacing: 0;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 40px;
  }

  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stat-value {
    font-size: 1.25rem;
  }

  .hero-stat-label {
    font-size: 0.72rem;
  }
}

/* ============================================
   THEME TOGGLE (Dark/Light switcher)
   ============================================ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 6px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

.theme-toggle[data-theme="dark"] .icon-sun { display: none; }
.theme-toggle[data-theme="dark"] .icon-moon { display: block; }

/* ============================================
   SECTION POLISH — Trust & Authority
   Refined backgrounds, borders, spacing for the new palette
   ============================================ */

.section {
  background: var(--color-bg);
  transition: background-color 0.3s ease;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ============================================
   PRÜFPUNKT detail pages
   ============================================ */

.pruefpunkt-hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb a:hover { color: var(--color-accent-dark); }
.breadcrumb span { color: var(--color-text); font-weight: 600; }

.pruefpunkt-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 5px 12px;
  background: rgba(3, 105, 161, 0.10);
  border-radius: 999px;
  margin-bottom: 16px;
}

.pruefpunkt h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.pruefpunkt-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.pruefpunkt-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  font-weight: 500;
}

.pruefpunkt-body {
  padding: 50px 0 80px;
  font-size: 1rem;
  line-height: 1.7;
}

.pruefpunkt-figure {
  margin: 0 auto 48px;
  max-width: 560px;
  text-align: center;
}

.pruefpunkt-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (max-width: 640px) {
  .pruefpunkt-figure {
    max-width: 420px;
  }
}

.pruefpunkt-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.pruefpunkt-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.pruefpunkt-body p {
  margin-bottom: 1.1em;
  color: var(--color-text);
}

.pruefpunkt-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.pruefpunkt-body a:hover {
  color: var(--color-accent-dark);
  text-decoration-thickness: 2px;
}

.pruefpunkt-body ul {
  margin: 0 0 1.4em;
  padding-left: 1.2em;
}
.pruefpunkt-body ul li {
  list-style: disc;
  margin-bottom: 0.6em;
  line-height: 1.6;
  color: var(--color-text);
}

.pruefpunkt-cta {
  margin-top: 56px;
  padding: 32px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, rgba(3, 105, 161, 0.06) 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
}

.pruefpunkt-cta h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.pruefpunkt-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .pruefpunkt-figure { max-width: 240px; }
  .pruefpunkt-cta { padding: 24px; }
  .pruefpunkt-cta-row .btn { width: 100%; }
}

/* ============================================
   CHECK CARDS (What we check) — small illustration + icon-box + text
   ============================================ */

a.check-card { text-decoration: none; color: inherit; }

.check-card {
  padding: 24px 24px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.check-card-read {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
}

.check-card:hover .check-card-read {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  /* On touch devices show "Read more" always */
  .check-card-read { opacity: 1; transform: none; }
}

.check-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.check-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  background: var(--color-bg-alt);
  transition: var(--transition);
}

.check-card:hover .check-thumb {
  transform: scale(1.04);
}

.check-card .icon-box {
  margin-bottom: 12px;
  width: 36px;
  height: 36px;
}

.check-card .icon-box .icon-lg {
  width: 20px;
  height: 20px;
}

.check-card-text {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.45;
  font-size: 0.98rem;
}

[data-theme="dark"] .check-thumb {
  background: var(--color-muted);
  opacity: 0.92;
}

/* ============================================
   CASE STUDIES — 3 anonymized Problem/Solution/Result
   ============================================ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
}

.case-industry {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  white-space: nowrap;
}

.case-metric {
  text-align: right;
  flex-shrink: 0;
}

.case-metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent-light);
  margin-bottom: 4px;
}

.case-metric-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.case-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.case-block-label, span.case-block-label, h4.case-block-label {
  display: block;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin: 0 0 8px;
  padding: 2px 0;
  border-bottom: none;
}

.case-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.case-block-result {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.case-block-result .case-block-label, span.case-block-label, h4.case-block-label {
  display: block;
  color: var(--color-accent);
}

.case-block-result p {
  font-weight: 600;
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 720px;
  }
}

@media (max-width: 480px) {
  .case-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .case-metric { text-align: left; }
}

/* ============================================
   RISK QUIZ MODAL
   ============================================ */

.rq-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rq-modal[hidden] { display: none; }

.rq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rq-fade-in 0.2s ease-out;
}

.rq-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: rq-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rq-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rq-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rq-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
  z-index: 2;
}
.rq-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.rq-progress {
  width: 100%;
  height: 4px;
  background: var(--color-muted);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}
.rq-progress-bar {
  height: 100%;
  background: var(--color-accent);
  width: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rq-body {
  padding: 48px 48px 40px;
}

/* Intro screen */
.rq-intro { text-align: center; }
.rq-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--color-primary);
}
.rq-intro-text {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 420px;
}

/* Question screen */
.rq-question {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.rq-q-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 12px;
  text-align: center;
}
.rq-q-text {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 auto 28px;
  line-height: 1.35;
  max-width: 480px;
  text-align: center;
}

.rq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rq-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  font-family: var(--font-sans);
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.rq-option:hover {
  border-color: var(--color-accent);
  background: rgba(3, 105, 161, 0.04);
  transform: translateX(2px);
}
.rq-option:active { transform: translateX(0) scale(0.99); }

.rq-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.rq-option:hover .rq-option-letter {
  background: var(--color-accent);
  color: #FFF;
}
.rq-option-label { flex: 1; padding-top: 3px; }

.rq-nav {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

/* Generic buttons inside modal */
.rq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.rq-btn-primary {
  background: var(--color-accent);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.20);
}
.rq-btn-primary:hover {
  background: var(--color-accent-dark);
  color: #FFF;
  transform: translateY(-1px);
}
.rq-btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.rq-btn-ghost:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Result screen */
.rq-result { text-align: center; }
.rq-result-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
.rq-result-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rq-result-subtitle {
  margin: 0 0 32px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.rq-result-low      .rq-result-title { color: #059669; }
.rq-result-medium   .rq-result-title { color: #D97706; }
.rq-result-high     .rq-result-title { color: #DC2626; }
.rq-result-critical .rq-result-title { color: #991B1B; }

.rq-score-bar {
  position: relative;
  height: 10px;
  background: var(--color-muted);
  border-radius: 999px;
  margin: 0 auto 28px;
  max-width: 360px;
  overflow: visible;
}
.rq-score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669 0%, #D97706 60%, #DC2626 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.rq-score-markers span {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 16px;
  background: var(--color-border-strong);
}

.rq-result-desc {
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 480px;
  text-align: center;
}

.rq-action {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 28px;
  text-align: center;
}
.rq-action-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.rq-action-text {
  margin: 0;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.55;
}

.rq-result-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .rq-body { padding: 36px 24px 28px; }
  .rq-close { top: 8px; right: 8px; }
  .rq-result-cta { flex-direction: column; }
  .rq-result-cta .rq-btn { width: 100%; }
}

[data-theme="dark"] .rq-option {
  background: var(--color-bg-alt);
}
[data-theme="dark"] .rq-option:hover {
  background: rgba(56, 189, 248, 0.10);
}

/* Disclaimer below case studies: makes illustrative nature explicit */
.case-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-text-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.case-disclaimer p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.case-disclaimer .icon {
  color: var(--color-text-subtle);
}

/* ============================================
   PROOF BAR — Trusted by (right after hero)
   ============================================ */

.proof-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.proof-bar-eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

.proof-bar-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.proof-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.proof-logo strong {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proof-logo span {
  color: var(--color-text-subtle);
  font-size: 0.8rem;
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .proof-divider { display: none; }
  .proof-bar-grid { gap: 20px; }
}

/* Update legacy service-card to use new tokens */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

.service-card-body {
  padding: 28px;
}

.service-badge {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Language switcher — active state */
.language-switcher button.active {
  background: var(--color-primary);
  color: var(--color-surface);
}

/* Update mode-toggle to new palette */
.mode-toggle-container {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.mode-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

/* Heading semantics fix — footer h3 was h5 before. Keep it small but ensure
   AA contrast against the dark footer background (#020617). White at 0.95
   opacity gives ~16:1 against the dark navy. */
.footer-heading {
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
