/*
 * nav.css — Navigation + Mobile Drawer
 * ============================================================
 */

/* ══════════════════════════════════════════════════════════
   DESKTOP NAV
══════════════════════════════════════════════════════════ */

nav {
  position:        fixed;
  top: 0; left: 0; right: 0;
  z-index:         500;
  height:          66px;
  padding:         0 48px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  background:      rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom:   1px solid var(--border);
  transition:      box-shadow .3s ease;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(10,30,43,.09); }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 60px; width: auto; border-radius: 6px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center;
  gap: 2px; list-style: none; height: 100%;
}
.nav-links > li {
  position: relative; height: 100%;
  display: flex; align-items: center;
}
.nav-links > li > a,
.nav-links > li > button {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px;
  font-family: var(--font-b); font-size: 13px; font-weight: 500;
  color: var(--text-mid); letter-spacing: .2px;
  background: none; border: none; cursor: pointer;
  white-space: nowrap; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li.open > button { color: var(--primary); background: rgba(10,92,138,.05); }
.nav-links > li.active > a { color: var(--primary); }

.nav-chevron {
  width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease; flex-shrink: 0;
}
.nav-links > li.open .nav-chevron { transform: rotate(180deg); }

.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: 9px 20px !important; border-radius: 6px;
  font-weight: 600 !important; margin-left: 6px;
  transition: all .2s !important;
}
.nav-cta:hover { background: var(--primary-l) !important; transform: translateY(-1px); }

/* ── Mega Dropdown ── */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%; transform: translateX(-50%) translateY(10px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(10,30,43,.14), 0 2px 8px rgba(10,30,43,.06);
  padding: 24px;
  min-width: 540px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 600;
}
.mega-dropdown.narrow { min-width: 240px; left: auto; right: 0; transform: translateY(10px); }
.nav-links > li.open .mega-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-links > li.open .mega-dropdown.narrow { transform: translateY(0); }

.dd-grid { display: grid; }
.dd-grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 0 20px; }
.dd-col-head {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light); font-weight: 600;
  margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.dd-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 10px; border-radius: 8px;
  transition: background .15s; text-decoration: none; margin-bottom: 1px;
}
.dd-item:hover { background: rgba(10,92,138,.06); }
.dd-item:hover .dd-item-name { color: var(--primary); }
.dd-item.c-orange:hover .dd-item-name { color: var(--accent); }
.dd-item.c-orange .dd-item-icon { background: rgba(212,80,10,.08); }
.dd-item.c-orange .dd-item-icon svg { fill: var(--accent); }
.dd-item.c-purple:hover .dd-item-name { color: #6B46C1; }
.dd-item.c-purple .dd-item-icon { background: rgba(107,70,193,.08); }
.dd-item.c-purple .dd-item-icon svg { fill: #6B46C1; }
.dd-item.c-green:hover .dd-item-name { color: #16A34A; }
.dd-item.c-green .dd-item-icon { background: rgba(22,163,74,.08); }
.dd-item.c-green .dd-item-icon svg { fill: #16A34A; }
.dd-item-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(10,92,138,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dd-item-icon svg { width: 16px; height: 16px; fill: var(--primary); }
.dd-item-name {
  font-family: var(--font-h); font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: .2px; transition: color .15s; line-height: 1.2;
}
.dd-item-desc { font-size: 11px; color: var(--text-light); margin-top: 2px; line-height: 1.5; }

.dd-sublinks { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.dd-sublinks-head {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light); font-weight: 600; margin-bottom: 4px; padding: 0 10px;
}
.dd-sublink {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; font-size: 12px; color: var(--text-mid);
  border-radius: 6px; transition: all .15s; text-decoration: none;
}
.dd-sublink::before { content: '→'; font-size: 10px; color: var(--text-light); transition: all .15s; }
.dd-sublink:hover { color: var(--primary); background: rgba(10,92,138,.05); }
.dd-sublink:hover::before { color: var(--primary); transform: translateX(2px); }

.dd-dl-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 7px;
  transition: background .15s; text-decoration: none; gap: 8px; margin-bottom: 1px;
}
.dd-dl-item:hover { background: rgba(10,92,138,.05); }
.dd-dl-item:hover .dd-item-name { color: var(--primary); }
.dd-dl-tag {
  font-size: 9px; letter-spacing: 1px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  background: rgba(10,92,138,.08); color: var(--primary); white-space: nowrap; flex-shrink: 0;
}
.dd-banner {
  margin-top: 16px; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(10,92,138,.07), rgba(10,92,138,.03));
  border: 1px solid rgba(10,92,138,.14); border-radius: 9px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; text-decoration: none; transition: background .2s;
}
.dd-banner:hover { background: linear-gradient(135deg, rgba(10,92,138,.12), rgba(10,92,138,.06)); }
.dd-banner-text { font-size: 12px; color: var(--text-mid); line-height: 1.45; }
.dd-banner-text strong { color: var(--text); font-weight: 600; display: block; font-size: 13px; }
.dd-banner-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; flex-shrink: 0; transition: transform .2s;
}
.dd-banner:hover .dd-banner-arrow { transform: translateX(3px); }
.dd-divider { height: 1px; background: var(--border); margin: 12px 0; }


/* ══════════════════════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════════════════════ */

.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--light-bg); border-color: rgba(10,92,138,.3); }
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .35s cubic-bezier(0.4,0,0.2,1),
              opacity  .25s ease,
              width    .25s ease;
  transform-origin: center;
}
/* X-State */
.nav-hamburger.open { background: rgba(10,92,138,.07); border-color: rgba(10,92,138,.2); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--primary); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--primary); }


/* ══════════════════════════════════════════════════════════
   MOBILE FULL-SCREEN DRAWER
══════════════════════════════════════════════════════════ */

.nav-drawer {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0; bottom: 0;
  z-index: 490;
  background: var(--dark);
  overflow-y: auto;
  overflow-x: hidden;

  /* Slide in from right */
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open {
  display: block;
  transform: translateX(0);
}

/* ── Drawer Navigation Body ── */
.mob-nav-body { padding: 16px 0 24px; }

/* ── Section with Accordion ── */
.mob-section { }

.mob-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 20px 10px 16px;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color .2s, background .2s;
  gap: 12px;
}
.mob-toggle:hover { color: #fff; background: rgba(255,255,255,.04); }
.mob-toggle.open { color: #fff; background: rgba(255,255,255,.05); }

/* Section icon badge */
.mob-toggle-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mob-toggle-icon svg { width: 16px; height: 16px; }

.ti-blue   { background: rgba(10,92,138,.4); }
.ti-blue   svg { fill: rgba(100,180,230,.9); }
.ti-orange { background: rgba(212,80,10,.35); }
.ti-orange svg { fill: rgba(255,140,80,.9); }
.ti-slate  { background: rgba(255,255,255,.09); }
.ti-slate  svg { fill: rgba(255,255,255,.55); }

.mob-toggle-left  { display: flex; align-items: center; gap: 10px; flex: 1; }
.mob-toggle-label { flex: 1; }

.mob-chevron {
  width: 16px; height: 16px;
  fill: none; stroke: rgba(255,255,255,.25);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s ease, stroke .2s;
  flex-shrink: 0;
}
.mob-toggle.open .mob-chevron {
  transform: rotate(180deg);
  stroke: rgba(255,255,255,.55);
}

/* ── Sub-Menu ── */
.mob-sub {
  display: none;
  flex-direction: column;
  padding: 4px 16px 12px 16px;
  overflow: hidden;
}
.mob-sub.open { display: flex; }

/* Sub-link with icon + desc (rich style) */
.mob-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: background .15s, color .15s;
  margin-bottom: 1px;
}
.mob-sub-link:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.92);
}
.mob-sub-link:hover .msub-arrow { opacity: 1; transform: translateX(3px); }

/* Mini icon */
.msub-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.msub-icon svg { width: 14px; height: 14px; fill: rgba(255,255,255,.5); }

/* Color variants for mobile sub icons */
.msub-icon.msub-orange { background: rgba(212,80,10,.3); }
.msub-icon.msub-orange svg { fill: rgba(255,140,80,.85); }
.msub-icon.msub-purple { background: rgba(107,70,193,.25); }
.msub-icon.msub-purple svg { fill: rgba(160,130,230,.85); }
.msub-icon.msub-green  { background: rgba(22,163,74,.25); }
.msub-icon.msub-green  svg { fill: rgba(74,200,120,.85); }

.msub-text { flex: 1; min-width: 0; }
.msub-label { font-size: 14px; font-weight: 600; line-height: 1.2; color: rgba(255,255,255,.8); }
.msub-desc  { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 2px; line-height: 1.4; }

.msub-arrow {
  font-size: 12px;
  color: rgba(255,255,255,.2);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}

/* Sub-Divider label */
.mob-sub-divider {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  font-weight: 600;
  padding: 10px 12px 4px;
}

/* Compact sub-links (Zubehör, Downloads) */
.mob-sub-small {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 7px;
  font-size: 13px; color: rgba(255,255,255,.4);
  text-decoration: none; transition: all .15s; margin-bottom: 1px;
}
.mob-sub-small::before { content: '→'; font-size: 10px; color: rgba(255,255,255,.18); transition: all .15s; }
.mob-sub-small:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.mob-sub-small:hover::before { color: rgba(255,255,255,.4); }
.mob-sub-all { color: rgba(100,180,230,.6); margin-top: 4px; }
.mob-sub-all:hover { color: rgba(100,180,230,.9); }

/* ── Divider between sections ── */
.mob-sep {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 4px 20px;
}

/* ── Direct top-level links (Karriere) ── */
.mob-direct-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.mob-direct-link:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.04); }
.mob-direct-link .mob-toggle-icon { pointer-events: none; }

/* ── Drawer Footer ── */
.mob-footer {
  padding: 20px 16px 32px;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 12px;
}

/* Big CTA button */
.mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  margin-bottom: 14px;
}
.mob-cta:hover { background: var(--primary-l); transform: translateY(-1px); }
.mob-cta-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

/* Contact info strip */
.mob-contact-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mob-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  flex: 1;
  min-width: 140px;
  transition: background .2s;
}
.mob-contact-item:hover { background: rgba(255,255,255,.09); }
.mob-contact-item svg { width: 15px; height: 15px; fill: rgba(100,180,230,.8); flex-shrink: 0; }
.mob-ci-label { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.3); font-weight: 600; }
.mob-ci-value { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500; margin-top: 1px; }

/* ── Responsive Breakpoints ── */
@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .nav-links    { display: none; }
  .nav-hamburger{ display: flex; }
}
