/* Header and footer in the new design (Ergosign Figma). Applies only to pages with <body class="nc">. */

.nc {
  /* Figma body text is Poppins Regular (400); the old base stylesheet sets 300 */
  font-weight: 400;
  padding-top: 74px;
  --nc-navy: #0b1633;
  --nc-cyan: #6fd0f5;
}

/* Header: 74 px, content 1200 px wide, "Kontakt" pill on the right */
.nc .site-header.nc-header {
  height: 74px;
  box-sizing: border-box;
  padding: 0 20px;
  align-items: center;
  box-shadow: none;
  border-bottom: 1px solid rgba(11, 22, 51, .08);
}
.nc .nc-header .header-inner { width: 1200px; flex-wrap: nowrap; }
.nc .nc-header .site-logo img { width: 144px; max-height: none; height: auto; }
.nc .nc-header .header-right { gap: 16px; }
.nc .nc-header .site-navigation .menu { align-items: stretch; gap: 0; }
.nc .nc-header .site-navigation .menu li { display: flex; align-items: stretch; }
/* Menu entries per Figma (Navigation 15:30): full-height cells, medium weight in the secondary text colour;
   the current page gets a light cell, navy semibold text and a 4 px action-blue bar at the top edge */
.nc .site-header .site-navigation .menu a {
  position: relative;
  padding: 0 18px 0 16px;
  line-height: 74px;
  font-size: 16px;
  font-weight: 500;
  color: #34425f;
  transition: background-color .2s, color .2s;
}
.nc .site-header .site-navigation .menu a:hover { color: #0b1633; background: #f7fafc; }
.nc .site-header .site-navigation .menu a[aria-current="page"] { font-family: 'Inter', var(--font-family); color: #0b1633; font-weight: 600; background: #f7fafc; }
/* Reserve the width of the semibold (current page) variant in every entry, so selecting a page never moves its neighbours.
   The invisible ::before carries the entry text in the font of the OTHER state (Inter semibold normally, Poppins medium on the
   current page), so every cell is as wide as the wider of the two variants; the visible text is centred in the fixed cell. */
.nc .site-header .site-navigation .menu a[data-text] { text-align: center; }
.nc .site-header .site-navigation .menu a[data-text]::before {
  content: attr(data-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-family: 'Inter', var(--font-family);
  font-weight: 600;
}
.nc .site-header .site-navigation .menu a[data-text][aria-current="page"]::before { font-family: var(--font-family); font-weight: 500; }
.nc .site-header .site-navigation .menu a[aria-current="page"]::after {
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  height: 4px;
  background-color: #2479a8;
}
.nc .nc-header .language-toggle { display: flex; align-items: center; }

.nc-demo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  background: #2479a8;
  color: #fff;
  font-family: 'Inter', var(--font-family);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s;
}
.nc-demo:hover, .nc-demo[aria-current="page"] { background: #1d6490; color: #fff; }

/* Priority+ navigation: assets/js/main.js moves only the items that no longer fit into the
   hamburger menu (header gets .has-overflow, moved items get .ov-hidden, their copies in the dropdown .ov-show). */
.nc .nc-header .header-inner > *, .nc .nc-header .header-right > *, .nc .nc-header .site-navigation .menu li { flex: none; }
.nc .site-header .site-navigation.show { display: flex !important; }
.nc .site-navigation-toggle-holder.show { display: none !important; }
.nc .nc-header.has-overflow .site-navigation-toggle-holder.show { display: flex !important; padding: 0 4px; }
.nc .nc-header .ov-hidden { display: none !important; }
.nc .site-navigation-dropdown .menu li { display: none; }
.nc .site-navigation-dropdown .menu li.ov-show { display: block; }
.nc .nc-header .site-navigation .menu { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .nc { padding-top: 56px; }
  .nc .nc-header .header-right { gap: 8px; }
  .nc .site-header .site-navigation .menu a { line-height: 56px; }
  .nc .site-header.nc-header { height: 56px; padding: 0 15px; }
  .nc .nc-header .site-logo img { width: auto; max-height: 28px; }
}

/* Footer: four columns on navy, bottom line with legal links */
.nc-footer {
  margin: 0;
  background: var(--nc-navy);
  color: #c9d6e8;
  font-family: var(--font-family);
}
.nc-footer a { color: inherit; text-decoration: none; }
.nc-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nc-footer p, .nc-footer ul { margin: 0; padding: 0; list-style: none; }

.nc-footer-inner {
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 0 16px;
}

.nc-footer-logo { display: block; width: 142px; margin-bottom: 16px; }
.nc-footer-logo img { display: block; width: 100%; height: auto; }
.nc-footer-brand p { font-size: 16px; line-height: 1.5; }

.nc-footer-label {
  margin-bottom: 12px !important;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--nc-cyan);
}
.nc-footer-city { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 4px !important; }
.nc-footer-addr { font-size: 14px; line-height: 24px; }
.nc-footer ul li { font-size: 16px; color: #fff; }
.nc-footer ul li + li { margin-top: 8px; }

.nc-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  text-transform: uppercase;
}
.nc-footer-bottom nav { display: flex; gap: 24px; color: #fff; }

@media (max-width: 1160px) {
  .nc-footer-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
}

.nc .nc-header .language-switcher { align-self: center; margin: 0 0 0 4px; }
.nc-footer-cols { display: grid; grid-template-columns: repeat(3, 260px) minmax(0, 1fr); gap: 40px; }
.nc-footer-cols > * { flex: none; }
@media (max-width: 1000px) {
  .nc-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nc-footer-cols { grid-template-columns: 1fr; }
}

/* Hamburger icon: clean X when open (no leftover shadow bar) */
.nc .site-navigation-toggle-icon { position: relative; width: 22px; height: 18px; }
.nc .site-navigation-toggle-icon::before, .nc .site-navigation-toggle-icon::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 3px; margin: 0; box-shadow: none;
  background: currentColor; border-radius: 3px; transition: transform .2s, top .2s;
}
.nc .site-navigation-toggle-icon::before { top: 3px; }
.nc .site-navigation-toggle-icon::after { top: 12px; }
.nc .site-navigation-toggle.open .site-navigation-toggle-icon::before { top: 7.5px; transform: rotate(45deg); }
.nc .site-navigation-toggle.open .site-navigation-toggle-icon::after { top: 7.5px; transform: rotate(-45deg); }

/* Mega menu (Projekte): normal line height and no cell styling for the links inside the popup */
.nc .site-header .site-navigation .menu .mega-menu-item a {
  display: block;
  padding: 0 !important;
  line-height: 1.4;
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  color: var(--color-text);
}
.nc .site-header .site-navigation .menu .mega-menu-item a:hover { background: transparent; color: var(--color-primary); }
.nc .site-header .site-navigation .menu .mega-menu-item .mega-menu-title { line-height: 1.4; }

/* Popup attached directly to the header: no gap between the navigation and the popup */
.nc .site-header .nav-dropdown-mega { margin-top: 0; border-radius: 0 0 10px 10px; }
.nc .site-header .nav-dropdown-mega::before { display: none; }
