/* Einheitlicher Brandvisory-Header (aus index.html übernommen) für Seiten mit strenger CSP (Blog, Tools). Neu erzeugen statt von Hand ändern. */
/* === css/variables.css === */

    
    /* ============================================================
       DESIGN TOKENS – Brandvisory Brand Guide Edition 01 / 2026
    ============================================================ */

    :root {
      --navy:   #0C1B3F;
      --navy2:  #152650;
      --ice:    #CFE7F1;
      --lemon:  #D8F94B;
      --paper:  #FCF9FB;
      --paper2: #F0EDF2;
      --muted:  #6B7A9F;

      --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
      --font-body:    'Hanken Grotesk', system-ui, sans-serif;

      --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
      --space-4: 16px; --space-5: 20px; --space-6: 24px;
      --space-8: 32px; --space-10: 40px; --space-12: 48px;
      --space-16: 64px; --space-20: 80px; --space-24: 96px;
      --space-32: 128px;

      --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
      --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
    }

    

/* === css/nav.css === */
/* ============================================================
   NAVIGATION — Premium hover interactions
============================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}
.nav.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}
.nav__inner {
  pointer-events: auto;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--space-10);
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  transition: background 0.4s cubic-bezier(0.22,1,0.36,1),
              border-radius 0.45s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.45s ease,
              margin 0.45s cubic-bezier(0.22,1,0.36,1),
              height 0.4s ease,
              border-color 0.4s ease,
              width 0.45s cubic-bezier(0.22,1,0.36,1),
              max-width 0.45s cubic-bezier(0.22,1,0.36,1),
              padding 0.4s ease;
}
.nav.scrolled .nav__inner {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin-top: 14px;
  height: 64px;
  padding: 0 12px 0 22px;
  border-radius: 999px;
  background: rgba(236, 236, 240, 0.62);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 16px 40px rgba(12,27,63,0.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}
.nav.scrolled .nav__logo-name,
.nav.scrolled .nav__link,
.nav.scrolled .nav__link:hover,
.nav.scrolled .nav__link--active { color: var(--navy); }
.nav.scrolled .nav__link::after { background: var(--navy); }
.nav.scrolled .nav__social {
  color: var(--navy);
  border-color: rgba(12,27,63,0.22);
}
.nav.scrolled .nav__cta {
  background: var(--navy);
  color: var(--paper);
  border-radius: 999px;
}
.nav.scrolled .nav__burger span { background: var(--navy); }
@media (max-width: 768px) {
  .nav__inner { padding: 0 var(--space-6); height: 68px; }
  .nav.scrolled .nav__inner {
    width: calc(100% - 28px);
    margin-top: 10px;
    height: 56px;
    padding: 0 10px 0 14px;
  }
}

/* ── Logo ─────────────────────────────────────────────────── */
.nav__logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none;
}
.nav__logo-icon {
  position: relative; width: 36px; height: 36px; flex-shrink: 0;
  background: var(--navy);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.32s cubic-bezier(0.22,1,0.36,1);
}
.nav__logo:hover .nav__logo-icon { border-color: var(--lemon); }
.nav__logo-b {
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  color: var(--paper); line-height: 1; position: relative; z-index: 1;
}
.nav__logo-corner { position: absolute; top: -2px; left: -2px; }
.nav__logo-name {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--paper); letter-spacing: -0.01em;
  transition: opacity 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav__logo:hover .nav__logo-name { opacity: 0.75; }

/* ── Desktop links ────────────────────────────────────────── */
.nav__links {
  display: flex; align-items: center; gap: var(--space-8);
}
@media (max-width: 768px) { .nav__links { display: none; } }

.nav__link {
  position: relative;
  font-size: 15.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.3s cubic-bezier(0.22,1,0.36,1),
              transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
/* Ice-blue underline slides in from left */
.nav__link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.nav__link:hover,
.nav__link--active {
  color: var(--paper);
  transform: translateY(-1px);
}
.nav__link:hover::after,
.nav__link--active::after { transform: scaleX(1); }

/* Mobile active state */
.nav__mobile-link--active {
  color: var(--paper);
  transform: translateX(5px);
}

/* Blog — page-indicator variant */
.nav__link--page {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(207,231,241,0.2);
  padding: 4px 11px 4px 11px;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}
.nav__link--page::after { display: none; }
/* Simple border fade on hover — no corner brackets */
.nav__link--page::before { display: none; }
.nav__link--page:hover { border-color: rgba(207,231,241,0.5); color: var(--paper); transform: none; }
.nav__link-page-icon {
  opacity: 0.45; position: relative; z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.nav__link--page:hover .nav__link-page-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* ── Social icon (LinkedIn) ───────────────────────────────── */
.nav__social {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.nav__social:hover { color: var(--lemon); border-color: rgba(216,249,75,0.5); }
/* Ensure no underline pseudo-element from .nav__link if accidentally inherited */
.nav__social::after { display: none; }

/* Mobile social link */
.nav__mobile-social { color: rgba(207,231,241,0.55); }
.nav__mobile-social:hover { color: var(--ice); }

/* ── CTA — base layout only, hover handled by components.css ── */
.nav__cta {
  margin-left: var(--space-4);
  padding: 13px 26px;
  background: var(--ice); color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  cursor: pointer; border: none;
  white-space: nowrap; text-decoration: none;
}

/* ── Burger ───────────────────────────────────────────────── */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: var(--space-2);
}
@media (max-width: 768px) { .nav__burger { display: flex; } }
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--paper);
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1),
              opacity  0.25s cubic-bezier(0.22,1,0.36,1),
              width    0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ──────────────────────────────────────────── */
.nav__mobile {
  display: none; background: var(--navy);
  pointer-events: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden; max-height: 0;
  transition: max-height 0.48s cubic-bezier(0.22,1,0.36,1);
}
@media (max-width: 768px) { .nav__mobile { display: block; } }
.nav__mobile.open { max-height: 400px; }
.nav__mobile-inner {
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5);
}
.nav__mobile-link {
  font-size: 17px; font-weight: 500; color: var(--paper);
  text-decoration: none; display: block;
  transition: color     0.28s cubic-bezier(0.22,1,0.36,1),
              transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.nav__mobile-link:hover { color: var(--paper); transform: translateX(5px); }
.nav__mobile-cta {
  padding: 14px 20px; background: var(--lemon); color: var(--navy);
  font-weight: 700; font-size: 14px; text-align: center;
  border: none; cursor: pointer; text-decoration: none; display: block;
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.nav__mobile-cta:hover {
  box-shadow: 0 4px 16px rgba(216,249,75,0.25);
  transform: translateY(-1px);
}


.nav__links { gap: clamp(16px, 1.55vw, 24px); }
.nav__link { white-space: nowrap; }
@media (max-width: 1023px) { .nav__links { display: none; } .nav__burger { display: flex; } .nav__mobile { display: block; } }
.nav__mobile.open { max-height: calc(100vh - 64px); overflow-y: auto; }
@media (min-width: 769px) { .nav__mobile-inner { max-width: 520px; } }

/* Header: heller, transparenter, flacher, breiter; Anfrage-Button kompakter (2026-10-25) */
.nav__inner { height: 72px; }
.nav.scrolled .nav__inner {
  width: calc(100% - 32px); max-width: 1400px; margin-top: 18px; height: 54px; padding: 0 8px 0 20px;
  background: rgba(252, 249, 251, 0.16);
  border: 0;
  box-shadow: 0 8px 28px rgba(12, 27, 63, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
}
.nav__cta { padding: 10px 20px; font-size: 14px; }
.nav.scrolled .nav__cta { padding: 8px 18px; font-size: 13.5px; }
@media (max-width: 768px) {
  .nav__inner { height: 62px; }
  .nav.scrolled .nav__inner { width: calc(100% - 20px); margin-top: 8px; height: 50px; padding: 0 8px 0 14px; }
}

.nav__inner {
  transition: background .32s ease, box-shadow .32s ease, border-color .32s ease,
    margin-top .32s ease, height .32s ease, border-radius .32s ease,
    width .32s ease, max-width .32s ease, padding .32s ease, backdrop-filter .32s ease;
}
.nav.scrolled .nav__inner {
  width: calc(100% - 24px);
  max-width: 1400px;
  margin-top: 18px;
  height: 54px;
  padding: 0 7px 0 20px;
  background: rgba(252,249,251,0.16);
  border: 0;
  box-shadow: 0 8px 28px rgba(12,27,63,0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
@media (max-width: 768px) {
  .nav.scrolled .nav__inner { width: calc(100% - 16px); margin-top: 6px; height: 50px; }
}
.nav.scrolled .nav__cta { background: rgba(12,27,63,0.9); border-radius: 999px !important; padding: 8px 18px !important; font-size: 13.5px !important; }
.nav__link::after { width: 100%; height: 2px; background: var(--lemon); }
.nav.scrolled .nav__link::after { background: var(--navy); }

/* Header: Milchglas, passt sich dem Hintergrund an (hell/dunkel), etwas höher (2026-10-25) */
.nav.scrolled .nav__inner {
  height: 60px !important;
  background: rgba(252,249,251,0.46) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(12,27,63,0.10), inset 0 1px 0 rgba(255,255,255,0.22) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.7) !important; backdrop-filter: blur(20px) saturate(1.7) !important;
  transition: background .45s ease, box-shadow .45s ease, height .3s ease !important;
}
.nav.scrolled.nav--dark .nav__inner { background: rgba(12,27,63,0.52) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.10) !important; }
.nav.scrolled.nav--dark .nav__logo-name, .nav.scrolled.nav--dark .nav__link, .nav.scrolled.nav--dark .nav__link:hover, .nav.scrolled.nav--dark .nav__link--active { color: var(--paper) !important; }
.nav.scrolled.nav--dark .nav__link::after { background: var(--lemon) !important; }
.nav.scrolled.nav--dark .nav__social { color: var(--paper) !important; border-color: rgba(252,249,251,0.3) !important; }
.nav.scrolled.nav--dark .nav__cta { background: var(--lemon) !important; color: var(--navy) !important; }
.nav.scrolled.nav--dark .nav__burger span { background: var(--paper) !important; }
.nav__logo-name, .nav__link, .nav__cta, .nav__social { transition: color .35s ease, background .35s ease, border-color .35s ease; }
@media (max-width: 768px) { .nav.scrolled .nav__inner { height: 54px !important; } }

.nav-spacer { height: 96px; }
@media (max-width: 768px) { .nav-spacer { height: 78px; } }
.nav__mobile-social svg { display: inline; vertical-align: middle; margin-right: 7px; }
/* Floating-Header: B-Icon blendet beim Scrollen aus, bei Hover wieder ein; kein gelber Rahmen */
.nav__logo-icon { transition: width .45s cubic-bezier(.22,1,.36,1), opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1), margin .45s cubic-bezier(.22,1,.36,1), border-color .3s ease !important; }
.nav__logo:hover .nav__logo-icon { border-color: rgba(255,255,255,0.12) !important; }
.nav.scrolled .nav__logo-icon { width: 0 !important; opacity: 0; transform: scale(.6); margin-right: calc(-1 * var(--space-3, 12px)); overflow: hidden; border-width: 0 !important; }
.nav.scrolled .nav__logo:hover .nav__logo-icon, .nav.scrolled .nav__logo:focus-visible .nav__logo-icon { width: 36px !important; opacity: 1; transform: none; margin-right: 0; border-width: 2px !important; overflow: visible; }
/* Anfrage-Pill vor und nach dem Scroll identisch */
.nav .nav__cta { padding: 8px 18px !important; font-size: 13.5px !important; border-radius: 999px !important; background: var(--lemon, #D8F94B) !important; color: var(--navy, #0C1B3F) !important; border: 0 !important; box-shadow: none !important; line-height: 1.3 !important; min-height: 0 !important; }
.nav.scrolled:not(.nav--dark) .nav__cta { background: rgba(12,27,63,0.9) !important; color: #FCF9FB !important; }
