/* Self-hosted Google Fonts — Latin + Latin-ext only */
/* Inter 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat 600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/montserrat-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat 700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/montserrat-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat 800 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/montserrat-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════
       RESET & BASE
    ═══════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
    body {
      font-family: 'Inter', sans-serif;
      background: #ffffff;
      color: #0D1B3E;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    /* ═══════════════════════════════════════
       TYPOGRAPHY TOKENS
    ═══════════════════════════════════════ */
    h1, h2, h3, h4, h5 {
      font-family: 'Montserrat', sans-serif;
      letter-spacing: -0.03em;
      line-height: 1.13;
    }
    p, li, span, a, label, input, button, select, textarea, small {
      font-family: 'Inter', sans-serif;
      line-height: 1.7;
    }

    /* ═══════════════════════════════════════
       GRAIN TEXTURE (SVG noise filter)
    ═══════════════════════════════════════ */
    .grain {
      position: relative;
    }
    .grain::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 2;
    }

    /* ═══════════════════════════════════════
       HERO BACKGROUND (3 layered radials)
    ═══════════════════════════════════════ */
    .hero-bg { background: linear-gradient(175deg, #04091a 0%, #0D1B3E 100%);
    }

    /* ═══════════════════════════════════════
       SECTION BACKGROUNDS
    ═══════════════════════════════════════ */
    .bg-tinted { background: #f5f8fe; }

    /* ═══════════════════════════════════════
       NAV
    ═══════════════════════════════════════ */
    .nav-blur {
      backdrop-filter: blur(20px) saturate(160%);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
    }
    .nav-link {
      font-family: 'Inter', sans-serif;
      font-size: 0.875rem;
      font-weight: 500;
      color: rgba(255,255,255,0.70);
      text-decoration: none;
      padding: 0.4rem 0.8rem;
      border-radius: 8px;
      transition: background 0.14s ease, color 0.14s ease;
    }
    .nav-link:hover       { color: #fff; background: rgba(255,255,255,0.09); }
    .nav-link:active      { background: rgba(255,255,255,0.15); }
    .nav-link:focus-visible { outline: 2px solid #4DAEE5; outline-offset: 2px; }

    /* ═══════════════════════════════════════
       BUTTONS
    ═══════════════════════════════════════ */
    .btn-primary { background: #1E56B5;
      color: #fff;
      font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.005em;
      border-radius: 10px; border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
      box-shadow: 0 4px 14px rgba(30,86,181,0.38), 0 1px 3px rgba(0,0,0,0.22);
      transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, opacity 0.15s ease;
    }
    .btn-primary:hover       { transform: translateY(-2px) scale(1.025); box-shadow: 0 8px 24px rgba(30,86,181,0.48), 0 2px 6px rgba(0,0,0,0.28); }
    .btn-primary:active      { transform: translateY(0) scale(0.98); opacity: 0.92; }
    .btn-primary:focus-visible { outline: 2px solid #4DAEE5; outline-offset: 3px; }
    @media(max-width:639px){header .btn-primary,header .lang-toggle,header #dark-toggle{display:none!important}}

    .btn-outline {
      display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
      padding: 0.875rem 1.875rem;
      background: transparent;
      color: #fff;
      font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem;
      border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.22); cursor: pointer; text-decoration: none; white-space: nowrap;
      transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.14s ease, border-color 0.14s ease;
    }
    .btn-outline:hover       { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.40); transform: translateY(-1px); }
    .btn-outline:active      { transform: translateY(0); background: rgba(255,255,255,0.05); }
    .btn-outline:focus-visible { outline: 2px solid #4DAEE5; outline-offset: 3px; }

    .btn-light {
      display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
      padding: 0.875rem 2rem;
      background: #ffffff;
      color: #0D1B3E;
      font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem;
      border-radius: 10px; border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
      box-shadow: 0 2px 8px rgba(13,27,62,0.12), 0 1px 2px rgba(13,27,62,0.08);
      transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
    }
    .btn-light:hover       { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,27,62,0.18), 0 2px 4px rgba(13,27,62,0.10); }
    .btn-light:active      { transform: translateY(0) scale(0.98); }
    .btn-light:focus-visible { outline: 2px solid #1E56B5; outline-offset: 3px; }

    /* ═══════════════════════════════════════
       LAYERED CARD SHADOWS
    ═══════════════════════════════════════ */
    .card-z1 { box-shadow: 0 1px 3px rgba(13,27,62,0.08), 0 4px 16px rgba(13,27,62,0.06); }
    .card-z2 { box-shadow: 0 1px 3px rgba(13,27,62,0.08), 0 4px 16px rgba(13,27,62,0.06); }
    .card-z3 { box-shadow: 0 1px 3px rgba(13,27,62,0.08), 0 4px 16px rgba(13,27,62,0.06); }
    /* Accent stripe on info cards (not on calculator) */
    #hero-calc .card-z3::after { display: none !important; }
    .card-z1::after, .card-z2::after, .card-z3::after {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 4px; border-radius: 14px 14px 0 0;
      background: linear-gradient(90deg, #1E56B5, #4DAEE5, #7ECEF5);
      opacity: 0.45;
      transition: opacity 0.22s ease;
    }
    .card-z1:hover::after, .card-z2:hover::after, .card-z3:hover::after {
      opacity: 1;
    }

    /* ═══════════════════════════════════════
       WAVE DIVIDERS — seamless section transitions
    ═══════════════════════════════════════ */
    .wave-divider {
      display: block; width: 100%; height: auto;
      margin: -1px 0; padding: 0; line-height: 0;
      position: relative; z-index: 1;
    }

    /* Wave dark mode */
    html.dark .wave-divider rect[fill="#ffffff"] { fill: var(--bg-base) !important; }
    html.dark .wave-divider path[fill="#ffffff"] { fill: var(--bg-base) !important; }
    html.dark .wave-divider rect[fill="#f5f8fe"] { fill: var(--bg-raised) !important; }
    html.dark .wave-divider path[fill="#f5f8fe"] { fill: var(--bg-raised) !important; }
    .card-hover {
      transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s ease;
    }
    .card-hover:hover {
      transform: translateY(-5px);
      box-shadow:
        0 4px 8px rgba(13,27,62,0.10),
        0 16px 32px rgba(30,86,181,0.12),
        0 32px 56px rgba(13,27,62,0.09),
        0 0 0 1px rgba(30,86,181,0.15) inset;
    }

    /* ═══════════════════════════════════════
       SECTION BADGE
    ═══════════════════════════════════════ */
    .badge {
      display: inline-block;
      padding: 0.2rem 0.7rem;
      border-radius: 4px;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 0.68rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #1E56B5;
      background: rgba(30,86,181,0.06);
      border: none;
    }
    .badge-dark {
      background: none;
      border: none;
      color: rgba(195,215,245,0.6);
      font-size: 0.65rem;
      padding: 0;
    }

    /* ═══════════════════════════════════════
       STAT GRADIENT TEXT
    ═══════════════════════════════════════ */
    .stat-gradient {
      font-family: 'Montserrat', sans-serif; font-weight: 900; letter-spacing: -0.04em;
      background: linear-gradient(135deg, #1E56B5 20%, #4DAEE5 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }

    /* ═══════════════════════════════════════
       FORM ELEMENTS
    ═══════════════════════════════════════ */
    .cal-event-card:hover  { transform: translateY(-2px); background: rgba(30,86,181,0.22) !important; border-color: rgba(77,174,229,0.4) !important; }
    .cal-event-card:active { transform: translateY(0) scale(0.98); opacity: 0.9; }
    .cal-event-card:focus-visible { outline: 2px solid #4DAEE5; outline-offset: 2px; }

    .field-label {
      display: block; font-family: 'Montserrat', sans-serif; font-weight: 600;
      font-size: 0.775rem; letter-spacing: 0.025em; color: rgba(200,218,248,0.75);
      margin-bottom: 0.4rem;
    }
    .field-input {
      width: 100%;
      background: rgba(255,255,255,0.06);
      border: 1.5px solid rgba(255,255,255,0.12);
      border-radius: 9px;
      padding: 0.8rem 1rem;
      font-family: 'Inter', sans-serif; font-size: 0.9rem;
      color: #e8eef8;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .field-input::placeholder { color: rgba(255,255,255,0.45); }
    .field-input:focus {
      border-color: #4DAEE5;
      box-shadow: 0 0 0 3px rgba(77,174,229,0.18);
    }
    .field-input:focus-visible { outline: none; }
    select.field-input option { background: #0D1B3E; color: #e8eef8; }

    /* ═══════════════════════════════════════
       PROCESS FLOWCHART
    ═══════════════════════════════════════ */
    .step-wrap {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
    }
    .step-wrap.step-visible { opacity: 1; transform: translateY(0); }

    /* Phase cards */
    .pz-phase-card {
      background: #fff;
      border-radius: 18px;
      padding: 1.75rem 1.75rem 1.75rem 4.2rem;
      position: relative;
      box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
      min-height: 100px;
      display: flex;
      align-items: center;
      transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
    }
    .pz-phase-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    }
    .pz-phase-num {
      position: absolute;
      left: -0.7rem;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #0D1B3E;
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 14px rgba(13,27,62,0.35);
      transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    }
    .pz-phase-card:hover .pz-phase-num { transform: translateY(-50%) scale(1.12); }
    .pz-phase-title {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: 0.95rem;
      color: #0D1B3E;
      line-height: 1.45;
      letter-spacing: -0.015em;
    }

    /* ── Flowchart animations (keyframes) ── */
    @keyframes pzFadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes pzPopIn {
      0%   { opacity: 0; transform: scale(0); }
      60%  { opacity: 1; transform: scale(1.15); }
      100% { opacity: 1; transform: scale(1); }
    }
    @keyframes pzSlideLeft {
      from { opacity: 0; transform: translateX(-30px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes pzSlideRight {
      from { opacity: 0; transform: translateX(30px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes pzDrawLine {
      from { stroke-dashoffset: 600; }
      to   { stroke-dashoffset: 0; }
    }

    /* Hide elements before animation */
    .pz-flowchart-wrap .pz-flow-label,
    .pz-flowchart-wrap .pz-bsfz-logo,
    .pz-flowchart-wrap .pz-flow-icon-circle,
    .pz-boxes-stagger .pz-box { opacity: 0; }
    .pz-arrow-path { stroke-dasharray: 600; stroke-dashoffset: 600; }

    /* Phase 1: labels + icon */
    .step-visible .pz-col-1 > .pz-flow-label          { animation: pzFadeUp 0.5s ease forwards 0.1s; }
    .step-visible .pz-col-1 > .pz-flow-icon-circle     { animation: pzPopIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards 0.25s; }
    /* Phase 1: boxes */
    .step-visible .pz-col-1 .pz-box-sm                 { animation: pzSlideLeft 0.5s ease forwards 0.5s; }
    .step-visible .pz-col-1 .pz-box-lg                 { animation: pzSlideRight 0.5s ease forwards 0.65s; }
    /* Phase 1: BSFZ logo */
    .step-visible .pz-bsfz-logo                        { animation: pzFadeUp 0.5s ease forwards 0.9s; }
    /* Phase 1: arrows */
    .step-visible .pa1 { animation: pzDrawLine 0.7s ease forwards 0.35s; }
    .step-visible .pa2 { animation: pzDrawLine 0.7s ease forwards 0.45s; }
    .step-visible .pa3 { animation: pzDrawLine 0.9s ease forwards 0.95s; }

    /* Bewilligung */
    .step-visible .pz-bewilligung .pz-flow-icon-circle { animation: pzPopIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards 1.2s; }
    .step-visible .pz-bewilligung .pz-flow-label       { animation: pzFadeUp 0.5s ease forwards 1.3s; }
    /* Cross-phase arrows */
    .step-visible .pa4 { animation: pzDrawLine 0.8s ease forwards 1.4s; }
    .step-visible .pa5 { animation: pzDrawLine 0.8s ease forwards 1.5s; }

    /* Phase 2: labels + icon */
    .step-visible .pz-col-2 > .pz-flow-label           { animation: pzFadeUp 0.5s ease forwards 1.5s; }
    .step-visible .pz-col-2 > .pz-flow-icon-circle     { animation: pzPopIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards 1.6s; }
    /* Phase 2: boxes */
    .step-visible .pz-col-2 .pz-box-sm                 { animation: pzSlideLeft 0.5s ease forwards 1.8s; }
    .step-visible .pz-col-2 .pz-box-lg                 { animation: pzSlideRight 0.5s ease forwards 1.95s; }
    /* Phase 2: arrows */
    .step-visible .pa6 { animation: pzDrawLine 0.7s ease forwards 1.7s; }
    .step-visible .pa7 { animation: pzDrawLine 0.7s ease forwards 1.8s; }

    /* Flowchart grid */
    .pz-flowchart-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      position: relative;
    }
    @media (min-width: 1024px) {
      .pz-flowchart-wrap {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: 1fr auto;
        gap: 0 1rem;
        align-items: start;
      }
      .pz-col-1 { grid-column: 1; grid-row: 1; }
      .pz-col-2 { grid-column: 3; grid-row: 1; }
      .pz-bewilligung { grid-column: 1 / -1; grid-row: 2; }
    }

    /* Flow columns */
    .pz-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      position: relative;
    }
    /* Icon sits at the bend point of the L-arrows — between the two boxes */
    .pz-col .pz-flow-icon-circle {
      position: relative;
    }
    .pz-flow-label {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: 1rem;
      color: #0D1B3E;
      margin-bottom: 0.6rem;
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-color: rgba(13,27,62,0.3);
    }
    .pz-flow-icon-circle {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #bcc8d9;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #5a8abf;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      flex-shrink: 0;
    }
    /* Boxes */
    .pz-box {
      border-radius: 12px;
      padding: 1rem;
      text-align: center;
    }
    .pz-box-light {
      background: #fff;
      border: 1px solid #dde3ed;
      box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }
    .pz-box-accent {
      background: #1E56B5;
      border: 1px solid rgba(30,86,181,0.6);
      box-shadow: 0 4px 16px rgba(30,86,181,0.25);
    }
    .pz-box-title {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 0.82rem;
      color: #0D1B3E;
      line-height: 1.4;
    }
    .pz-box-entity {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      margin-top: 0.5rem;
      padding: 0.4rem 0.75rem;
      border-radius: 8px;
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      font-size: 0.75rem;
    }
    .pz-box-dark-entity {
      background: #0D1B3E;
      color: #fff;
    }

    /* SVG arrow overlay */
    .pz-arrows-svg {
      display: none;
    }
    @media (min-width: 1024px) {
      .pz-arrows-svg {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
      }
    }
    .pz-arrow-path { stroke: #9ab0c8; stroke-width: 2.5; fill: none; stroke-linejoin: round; }
    .pz-arrow-fill { fill: #9ab0c8; stroke: #f0f2f5; stroke-width: 1; }
    html.dark .pz-arrow-path { stroke: rgba(77,174,229,0.45); }
    html.dark .pz-arrow-fill { fill: rgba(77,174,229,0.45); stroke: var(--bg-raised); stroke-width: 1; }

    /* Staggered boxes (reference style) */
    .pz-boxes-stagger {
      display: flex;
      gap: 0.75rem;
      width: 100%;
      align-items: flex-start;
    }
    .pz-box-sm {
      flex: 0 1 42%;
      margin-top: 1.5rem;
    }
    .pz-box-lg {
      flex: 0 1 58%;
      margin-top: 0;
    }
    /* Mobile: hide the flowchart graphic entirely */
    @media (max-width: 639px) {
      .pz-flowchart-wrap {
        display: none !important;
      }
    }

    /* BSFZ Logo — framed, shifted far right to clear arrow path */
    .pz-bsfz-logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 0.5rem;
      gap: 0.2rem;
      margin-left: auto;
      margin-right: -1rem;
      padding: 0.7rem 1rem;
      background: #fff;
      border: 1.5px solid #dde3ed;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      position: relative;
      z-index: 2;
    }
    .pz-bsfz-logo-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .pz-bsfz-dots {
      display: grid;
      grid-template-columns: repeat(4, 7px);
      gap: 3.5px;
    }
    .pz-bsfz-dots span {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #1E56B5;
      opacity: 0.5;
    }
    .pz-bsfz-dots span:nth-child(1),
    .pz-bsfz-dots span:nth-child(6),
    .pz-bsfz-dots span:nth-child(11) { opacity: 0.8; }
    .pz-bsfz-text {
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: 1.15rem;
      color: #1E56B5;
      letter-spacing: 0.06em;
    }
    .pz-bsfz-sub {
      font-size: 0.6rem;
      color: #5a6e8c;
      line-height: 1.3;
      text-align: center;
    }

    /* Bewilligung centered */
    .pz-bewilligung {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 3.5rem;
      position: relative;
    }

    /* Mobile fallback arrows between flow elements */
    .pz-mobile-arrow {
      display: flex;
      justify-content: center;
      padding: 0.3rem 0;
    }
    .pz-mobile-arrow::after {
      content: '';
      display: block;
      width: 2px;
      height: 24px;
      background: #bcc8d9;
      position: relative;
    }
    .pz-mobile-arrow::before {
      content: '';
      position: absolute;
      bottom: 0.3rem;
      width: 0; height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 6px solid #bcc8d9;
    }
    @media (min-width: 1024px) {
      .pz-mobile-arrow { display: none; }
    }
    html.dark .pz-mobile-arrow::after { background: rgba(77,174,229,0.25); }
    html.dark .pz-mobile-arrow::before { border-top-color: rgba(77,174,229,0.25); }



    /* Dark mode: flowchart */
    html.dark #prozess { background: var(--bg-raised) !important; }
    html.dark #prozess [style*="color:#0D1B3E"] { color: #e8f0fa !important; }
    html.dark #prozess [style*="color:#5a6e8c"] { color: #8aaac8 !important; }
    html.dark .pz-phase-card { background: var(--bg-card); box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
    html.dark .pz-phase-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
    html.dark .pz-phase-num { background: #4DAEE5; color: #0a1428; }
    html.dark .pz-phase-title { color: #e8f0fa; }
    html.dark .pz-flow-label { color: #e8f0fa; text-decoration-color: rgba(232,240,250,0.25); }
    html.dark .pz-flow-icon-circle { background: var(--bg-card); border-color: rgba(77,174,229,0.3); color: #4DAEE5; }
    html.dark .pz-box-light { background: var(--bg-card); border-color: var(--bdr); }
    html.dark .pz-box-title { color: #e8f0fa; }
    html.dark .pz-box-accent { background: #1a4a8f; border-color: rgba(77,174,229,0.3); }
    html.dark .pz-box-dark-entity { background: rgba(77,174,229,0.18); }
    html.dark .pz-bsfz-logo { background: var(--bg-card); border-color: var(--bdr); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    html.dark .pz-bsfz-dots span { background: #4DAEE5; }
    html.dark .pz-bsfz-text { color: #4DAEE5; }
    html.dark .pz-bsfz-sub { color: #8aaac8; }

    /* ═══════════════════════════════════════
       CHECK BULLET
    ═══════════════════════════════════════ */
    .check-dot {
      width: 20px; height: 20px; border-radius: 999px; flex-shrink: 0;
      background: linear-gradient(135deg, #1E56B5, #4DAEE5);
      display: flex; align-items: center; justify-content: center;
      margin-top: 3px;
    }

    /* ═══════════════════════════════════════
       COMPETITIVE EDGE CARDS
    ═══════════════════════════════════════ */
    @property --border-angle {
      syntax: '<angle>';
      initial-value: 0deg;
      inherits: false;
    }
    @keyframes edgeReveal {
      from { opacity: 0; transform: translateY(40px) scale(0.92) rotateX(8deg); }
      to   { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
    }
    @keyframes edgePulse {
      0%, 100% { opacity: 0.5; }
      50%      { opacity: 1; }
    }
    @keyframes edgeCountUp {
      from { opacity: 0; transform: scale(0.7); }
      to   { opacity: 1; transform: scale(1); }
    }
    @keyframes borderRotate {
      0%   { --border-angle: 0deg; }
      100% { --border-angle: 360deg; }
    }
    @keyframes edge-shimmer {
      0%   { background-position: -200% center; }
      100% { background-position: 200% center; }
    }
    @keyframes floatOrb {
      0%, 100% { transform: translate(0, 0) scale(1); }
      25%  { transform: translate(30px, -20px) scale(1.1); }
      50%  { transform: translate(-10px, -40px) scale(0.95); }
      75%  { transform: translate(-25px, -10px) scale(1.05); }
    }
    @keyframes featuredPulse {
      0%, 100% { box-shadow: 0 0 20px rgba(77,174,229,0.15), 0 0 60px rgba(30,86,181,0.10); }
      50%      { box-shadow: 0 0 30px rgba(77,174,229,0.30), 0 0 80px rgba(30,86,181,0.20); }
    }
    /* Floating orbs */
    .edge-orb {
      position: absolute; border-radius: 50%; pointer-events: none;
      filter: blur(40px); opacity: 0.5;
      animation: floatOrb 12s ease-in-out infinite;
    }
    .edge-card {
      position: relative; border-radius: 18px; overflow: visible;
      background: #0D1B3E;
      border: 1px solid rgba(77,174,229,0.20);
      box-shadow: 0 4px 16px rgba(13,27,62,0.12);
      transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
      opacity: 0;
      perspective: 600px;
    }
    .edge-card.revealed {
      animation: edgeReveal 0.8s cubic-bezier(0.16,1,0.3,1) both;
    }
    .edge-card::before { display: none; }
    .edge-card:hover {
      transform: translateY(-5px);
      border-color: rgba(77,174,229,0.30);
      box-shadow: 0 8px 28px rgba(30,86,181,0.22), 0 0 0 1px rgba(77,174,229,0.10) inset;
    }
    .edge-card:focus-visible { outline: 2px solid #4DAEE5; outline-offset: 3px; }
    .edge-card:active { transform: translateY(-2px) scale(0.99); }
    .edge-card-glow {
      position: absolute; inset: 0; pointer-events: none; opacity: 0;
      transition: opacity 0.4s ease; border-radius: 18px;
    }
    /* glow removed */
    .edge-card-inner {
      position: relative; z-index: 1; padding: 2rem 1.5rem 1.75rem;
    }
    .edge-icon {
      width: 48px; height: 48px; border-radius: 14px; display: flex;
      align-items: center; justify-content: center; margin-bottom: 1.25rem;
      box-shadow: 0 4px 14px rgba(30,86,181,0.35), 0 0 20px rgba(30,86,181,0.15);
    }
    .edge-stat {
      font-family: 'Montserrat', sans-serif; font-weight: 900;
      font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1.1;
      color: #fff; margin-bottom: 0.2rem;
    }
    .edge-stat-shimmer { /* shimmer removed — solid white */ }
    .edge-stat-highlight {
      font-size: 2.8rem;
      color: #4DAEE5;
    }
    .edge-stat.revealed-num { animation: edgeCountUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
    .edge-stat-label {
      font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
      color: rgba(195,215,245,0.80); text-transform: uppercase; letter-spacing: 0.08em;
      margin-bottom: 1rem;
    }
    .edge-title {
      font-family: 'Montserrat', sans-serif; font-weight: 700;
      font-size: 0.95rem; color: #fff; margin-bottom: 0.5rem;
      letter-spacing: -0.01em;
    }
    .edge-desc {
      font-size: 0.82rem; color: rgba(195,215,245,0.80); line-height: 1.65;
    }
    /* Featured card (100%) */
    .edge-card.edge-featured {
      border-color: rgba(77,174,229,0.30);
      background: linear-gradient(160deg, #0D1B3E, #1A3462);
      animation-name: edgeReveal;
    }
    .edge-card.edge-featured.revealed { animation: edgeReveal 0.8s cubic-bezier(0.16,1,0.3,1) both; }
    .edge-card.edge-featured::after {
      content: ''; position: absolute; inset: 0; border-radius: 18px;
      background: radial-gradient(ellipse at 50% 0%, rgba(77,174,229,0.12), transparent 60%);
      pointer-events: none;
    }

    /* ═══════════════════════════════════════
       FAQ ACCORDION
    ═══════════════════════════════════════ */
    .faq-wrap {
      border: 1.5px solid var(--bdr);
      border-radius: 12px; overflow: hidden;
      transition: box-shadow 0.2s ease;
    }
    .faq-wrap:hover { box-shadow: 0 4px 16px rgba(30,86,181,0.09); }
    .faq-btn {
      width: 100%; text-align: left; background: var(--bg-faq-btn); border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1.25rem 1.5rem;
      font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.93rem;
      color: var(--clr-h, #0D1B3E); letter-spacing: -0.015em;
      transition: background 0.14s ease, color 0.14s ease;
    }
    .faq-btn:hover       { background: var(--bg-faq-hov); }
    .faq-btn:focus-visible { outline: 2px solid #1E56B5; outline-offset: -2px; }
    .faq-icon {
      width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
      background: #edf2fb; color: #1E56B5;
      display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700;
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.15s ease, color 0.15s ease;
    }
    .faq-wrap.open .faq-icon { transform: rotate(45deg); background: #1E56B5; color: #fff; }
    .faq-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; }
    .faq-wrap.open .faq-body { max-height: 500px; opacity: 1; }
    .faq-content {
      padding: 0 1.5rem 1.25rem; border-top: 1px solid var(--bdr-faq); padding-top: 1rem;
      font-size: 0.875rem; color: #4a5870; line-height: 1.75;
      transition: color 0.2s ease, border-top-color 0.2s ease;
    }

    /* ═══════════════════════════════════════
       CALCULATOR WIDGET
    ═══════════════════════════════════════ */
    .calc-track {
      height: 6px; border-radius: 999px;
      background: rgba(255,255,255,0.15);
      position: relative; cursor: pointer;
    }
    .calc-fill {
      height: 100%; border-radius: 999px;
      background: linear-gradient(90deg, #1E56B5, #4DAEE5);
      transition: width 0.2s ease;
    }
    input[type=range] {
      -webkit-appearance: none; appearance: none;
      width: 100%; height: 6px; border-radius: 999px; outline: none; cursor: pointer;
      background: transparent; position: relative;
    }
    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none; appearance: none;
      width: 22px; height: 22px; border-radius: 999px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(30,86,181,0.5), 0 0 0 3px rgba(77,174,229,0.25);
      cursor: pointer;
      transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    }
    input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
    input[type=range]:focus-visible { outline: 2px solid #4DAEE5; outline-offset: 4px; }

    /* ═══════════════════════════════════════
       HERO CALCULATOR — show on xl+ screens
    ═══════════════════════════════════════ */
    @media (min-width: 1280px) {
      #hero-calc { display: block !important; }
    }

    /* Calculator animations */
    @keyframes calc-pulse {
      0%   { box-shadow: 0 0 0 rgba(77,174,229,0); }
      40%  { box-shadow: 0 0 28px rgba(77,174,229,0.55), 0 4px 24px rgba(0,0,0,0.4); }
      100% { box-shadow: 0 0 0 rgba(77,174,229,0); }
    }
    @keyframes result-pop {
      0%   { transform: scale(1); }
      50%  { transform: scale(1.06); }
      100% { transform: scale(1); }
    }
    .calc-pulsing { animation: calc-pulse 0.5s ease forwards; }
    .result-popping { animation: result-pop 0.25s cubic-bezier(0.34,1.56,0.64,1) forwards; }

    /* ═══════════════════════════════════════
       MOBILE MENU
    ═══════════════════════════════════════ */
    #mob-menu { max-height: 0; overflow: hidden; opacity: 0;
      transition: max-height 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.22s ease; }
    #mob-menu.open { max-height: 380px; opacity: 1; }

    /* ═══════════════════════════════════════
       ENTRANCE ANIMATIONS
    ═══════════════════════════════════════ */
    @keyframes fadeUp  { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
    @keyframes fadeIn  { from { opacity:0; }                             to { opacity:1; } }
    @keyframes slideRight { from { opacity:0; transform:translateX(-16px); } to { opacity:1; transform:translateX(0); } }
    .au  { animation: fadeUp    0.6s cubic-bezier(0.16,1,0.3,1) both; }
    .ai  { animation: fadeIn    0.55s ease both; }
    .asr { animation: slideRight 0.6s cubic-bezier(0.16,1,0.3,1) both; }
    .d1 { animation-delay: 0.03s; } .d2 { animation-delay: 0.06s; }
    .d3 { animation-delay: 0.09s; } .d4 { animation-delay: 0.12s; }
    .d5 { animation-delay: 0.15s; } .d6 { animation-delay: 0.18s; }

    /* ═══════════════════════════════════════
       SCROLLBAR
    ═══════════════════════════════════════ */
    html { overflow-y: scroll; }
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(77,174,229,0.38); border-radius: 999px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(77,174,229,0.55); }
    html { scrollbar-width: thin; scrollbar-color: rgba(77,174,229,0.38) transparent; }
    html.dark ::-webkit-scrollbar-thumb { background: rgba(77,174,229,0.30); }
    html.dark ::-webkit-scrollbar-thumb:hover { background: rgba(77,174,229,0.48); }
    html.dark { scrollbar-color: rgba(77,174,229,0.30) transparent; }

    /* ═══════════════════════════════════════
       THEME TOKENS (light ↔ dark)
    ═══════════════════════════════════════ */
    :root {
      --bg-base:    #ffffff;
      --bg-raised:  #f5f8fe;
      --bg-card:    #ffffff;
      --bg-faq-btn: #ffffff;
      --bg-faq-hov: #f5f8fe;
      --clr-h:      #0D1B3E;
      --bdr:        #dde5f4;
      --bdr-faq:    #edf2fb;
    }
    html.dark {
      --bg-base:    #0a1428;
      --bg-raised:  #0D1B3E;
      --bg-card:    #122244;
      --bg-faq-btn: #0D1B3E;
      --bg-faq-hov: #122244;
      --clr-h:      #e8f0fa;
      --bdr:        rgba(77,174,229,0.18);
      --bdr-faq:    rgba(77,174,229,0.10);
    }
    html.dark body { background: var(--bg-base) !important; color: var(--clr-h) !important; }
    html.dark ::-webkit-scrollbar-track { background: #0a1428; }
    /* Section backgrounds */
    html.dark section.bg-white  { background: var(--bg-base) !important; }
    html.dark .bg-tinted        { background: var(--bg-raised) !important; }
    html.dark #kunden           { border-top-color: var(--bdr) !important; }
    /* Cards & chips — div.bg-white inside light sections */
    html.dark section.bg-white .bg-white,
    html.dark .bg-tinted .bg-white { background: var(--bg-card) !important; }
    html.dark .card-z2          { background: var(--bg-card) !important; }
    html.dark .logo-chip        { background: var(--bg-card) !important; border-color: var(--bdr) !important; }
    /* Logo dark/light mode toggle */
    .logo-light { display: none; }
    html.dark .logo-dark  { display: none !important; }
    html.dark .logo-light { display: inline !important; }
    /* Cards with inline background:#fff in any section */
    html.dark section.bg-white [style*="background:#fff"] { background: var(--bg-card) !important; border-color: var(--bdr) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important; }
    /* Versprechen card: inline background:#fff, depth layers, inner rows */
    html.dark .bg-tinted [style*="background:#fff"]    { background: var(--bg-card) !important; }
    html.dark .bg-tinted [style*="background:#f5f8fe"] { background: rgba(77,174,229,0.07) !important; border-color: var(--bdr) !important; }
    html.dark .bg-tinted [style*="background:#dde5f4"] { background: rgba(30,86,181,0.25) !important; }
    html.dark .bg-tinted [style*="background:#c5d3ec"] { background: rgba(30,86,181,0.18) !important; }
    /* Badges in light sections */
    html.dark section.bg-white .badge:not(.badge-dark),
    html.dark .bg-tinted .badge:not(.badge-dark) { background: rgba(30,86,181,0.20) !important; }
    /* FAQ answer text */
    html.dark .faq-content { color: #8aaac8; border-top-color: var(--bdr-faq); }
    /* Text overrides — inline color:#0D1B3E (headings in light sections) */
    html.dark section.bg-white [style*="color:#0D1B3E"],
    html.dark .bg-tinted [style*="color:#0D1B3E"]  { color: #e8f0fa !important; }
    /* Body text color:#5a6e8c */
    html.dark section.bg-white [style*="color:#5a6e8c"],
    html.dark .bg-tinted [style*="color:#5a6e8c"]  { color: #8aaac8 !important; }
    /* Muted labels color:#94a3b8 */
    html.dark section.bg-white [style*="color:#94a3b8"],
    html.dark .bg-tinted [style*="color:#94a3b8"]  { color: #506a88 !important; }
    /* List items color:#374151 */
    html.dark section.bg-white [style*="color:#374151"],
    html.dark .bg-tinted [style*="color:#374151"]  { color: #a8c0d8 !important; }
    /* Dark toggle button */
    #dark-toggle:hover { background: rgba(255,255,255,0.14) !important; color: #fff !important; }

    /* ═══════════════════════════════════════
       BRANCHEN SECTION
    ═══════════════════════════════════════ */
    @keyframes spin-slow    { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
    @keyframes pulse-beat   { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
    @keyframes float-y      { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
    @keyframes glow-flash   { 0%,100%{opacity:0.5;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }
    @keyframes bounce-side  { 0%,100%{transform:translateX(0)} 40%{transform:translateX(5px)} 60%{transform:translateX(-2px)} }
    @keyframes sway-leaf    { 0%,100%{transform:rotate(0deg)} 33%{transform:rotate(-8deg)} 66%{transform:rotate(8deg)} }
    @keyframes heartbeat    { 0%,100%{transform:scale(1)} 14%{transform:scale(1.22)} 28%{transform:scale(1)} 42%{transform:scale(1.14)} 56%{transform:scale(1)} }
    .anim-spin      { animation: spin-slow   4s linear infinite; }
    .anim-pulse     { animation: pulse-beat  1.8s ease-in-out infinite; }
    .anim-float     { animation: float-y     2.2s ease-in-out infinite; }
    .anim-glow      { animation: glow-flash  1.6s ease-in-out infinite; }
    .anim-bounce    { animation: bounce-side 2.2s ease-in-out infinite; }
    .anim-sway      { animation: sway-leaf   3s ease-in-out infinite; transform-origin: bottom center; }
    .anim-heartbeat { animation: heartbeat   1.4s ease-in-out infinite; }

    .branche-wrap {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
    }
    .branche-wrap.branche-visible { opacity: 1; transform: translateY(0); }

    .branche-card {
      background: var(--bg-card);
      border-radius: 18px;
      border: 1px solid rgba(30,86,181,0.09);
      box-shadow: 0 4px 22px rgba(30,86,181,0.07), 0 1px 4px rgba(0,0,0,0.04);
      text-align: center;
      transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
      overflow: hidden;
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .branche-card::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse 80% 60% at 50% 0, rgba(30,86,181,0.04), transparent 65%);
      pointer-events: none;
      z-index: 1;
    }
    .branche-wrap:hover .branche-card {
      transform: translateY(-6px);
      box-shadow: 0 14px 36px rgba(30,86,181,0.14), 0 2px 8px rgba(0,0,0,0.06);
    }
    .branche-card .branche-img {
      position: relative;
      height: 120px;
      overflow: hidden;
      flex-shrink: 0;
    }
    @media(min-width:640px) {
      .branche-card .branche-img { height: 140px; }
    }
    .branche-card .branche-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    }
    .branche-wrap:hover .branche-img img {
      transform: scale(1.08);
    }
    .branche-card .branche-img::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(13,27,62,0.55), rgba(13,27,62,0.05) 70%);
      pointer-events: none;
    }
    /* ═══════════════════════════════════════
       LOGO TICKER
    ═══════════════════════════════════════ */
    @keyframes ticker-scroll {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .ticker-wrap {
      overflow: hidden;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    }
    .ticker-track {
      display: flex;
      animation: ticker-scroll 32s linear infinite;
      width: max-content;
    }
    .ticker-track:hover { animation-play-state: paused; }
    .logo-chip {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      width: 152px; height: 74px; margin: 0 14px; flex-shrink: 0;
      border-radius: 13px; background: var(--bg-card); border: 1px solid var(--bdr);
      font-family: 'Montserrat', sans-serif;
      transition: box-shadow 0.2s ease, transform 0.2s ease; cursor: default;
    }
    .logo-chip:hover { box-shadow: 0 4px 16px rgba(30,86,181,0.12); transform: translateY(-2px); }
    .logo-chip-abbr { font-weight: 900; font-size: 1.15rem; color: #1E56B5; letter-spacing: -0.03em; }
    .logo-chip-name { font-size: 0.59rem; font-weight: 600; color: #94a3b8; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 3px; }

    /* ═══════════════════════════════════════
       NAV DROPDOWN
    ═══════════════════════════════════════ */
    .nav-dropdown-wrap { position: relative; display: flex; align-items: center; }
    .nav-dropdown-wrap::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
    .nav-dropdown-trigger { display: flex; align-items: center; gap: 2px; }
    .dd-caret { transition: transform 0.22s cubic-bezier(0.16,1,0.3,1); opacity: 0.5; flex-shrink: 0; }
    .nav-dropdown-wrap:hover .dd-caret { transform: rotate(180deg); }
    .nav-dropdown {
      position: absolute; top: calc(100% + 10px); left: 50%;
      transform: translateX(-50%) translateY(-8px);
      min-width: 220px;
      background: rgba(6,13,40,0.98);
      backdrop-filter: blur(24px) saturate(160%);
      -webkit-backdrop-filter: blur(24px) saturate(160%);
      border: 1px solid rgba(255,255,255,0.09); border-radius: 14px;
      padding: 0.45rem;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0.18s;
      z-index: 200;
      box-shadow: 0 24px 56px rgba(0,0,0,0.65), 0 4px 14px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
    }
    .nav-dropdown::before {
      content: ''; position: absolute; top: -5px; left: 50%;
      transform: translateX(-50%) rotate(45deg);
      width: 10px; height: 10px; background: rgba(6,13,40,0.98);
      border-left: 1px solid rgba(255,255,255,0.09);
      border-top: 1px solid rgba(255,255,255,0.09);
      border-radius: 2px 0 0 0;
    }
    .nav-dropdown-wrap:hover .nav-dropdown,
    .nav-dropdown-wrap:focus-within .nav-dropdown {
      opacity: 1; visibility: visible; pointer-events: auto;
      transform: translateX(-50%) translateY(0);
      transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1), visibility 0s;
    }
    .nav-dd-item {
      display: flex; align-items: center; gap: 0.65rem;
      padding: 0.55rem 0.85rem; border-radius: 9px;
      font-size: 0.82rem; color: rgba(195,215,245,0.72);
      text-decoration: none; font-family: 'Inter', sans-serif; font-weight: 500;
      transition: background 0.12s ease, color 0.12s ease; white-space: nowrap;
    }
    .nav-dd-item:hover { background: rgba(255,255,255,0.09); color: #fff; }
    .nav-dd-item:focus-visible { outline: 2px solid #4DAEE5; outline-offset: -2px; border-radius: 9px; }
    .nav-dd-icon {
      width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
      background: linear-gradient(135deg, rgba(30,86,181,0.32), rgba(77,174,229,0.20));
      display: flex; align-items: center; justify-content: center;
    }

    /* ═══════════════════════════════════════
       LANG TOGGLE
    ═══════════════════════════════════════ */
    .lang-toggle {
      display: flex; align-items: center;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 8px; overflow: hidden; flex-shrink: 0;
    }
    .lang-btn {
      padding: 0.28rem 0.62rem; border: none; background: transparent; cursor: pointer;
      font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.71rem;
      color: rgba(255,255,255,0.48); letter-spacing: 0.06em;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .lang-btn.active { background: rgba(255,255,255,0.16); color: #fff; }
    .lang-btn:hover  { color: rgba(255,255,255,0.85); }
    .lang-btn:focus-visible { outline: 2px solid #4DAEE5; outline-offset: -2px; }
    .lang-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

    /* SEO block — dark mode aware */
    .seo-block { background: #f5f8fe; padding: 3rem 0; border-top: none; }
    .seo-block-heading { font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.1rem; color:#0D1B3E; letter-spacing:-0.02em; margin-bottom:0.75rem; }
    .seo-block-text { font-size:0.82rem; color:#5a6e8c; line-height:1.78; margin-bottom:0.75rem; }
    html.dark .seo-block { background: var(--bg-raised) !important; border-top-color: var(--bdr) !important; }
    html.dark .seo-block-heading { color: var(--clr-h) !important; }
    html.dark .seo-block-text { color: #8aaac8 !important; }
    html.dark .seo-block-text strong { color: #c0d8f0 !important; }

.footer-grid{display:grid;grid-template-columns:1fr;gap:2rem;margin-bottom:2.5rem}@media(min-width:640px){.footer-grid{grid-template-columns:repeat(2,1fr)}}@media(min-width:1024px){.footer-grid{grid-template-columns:1fr 1fr 1.8fr 1fr}}