/* Catalog pages + mega menu */

.page-hero--compact {
  padding-bottom: 2.5rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--grey-600);
  margin: 0.75rem 0 0;
}

.breadcrumb a {
  color: var(--blue-700);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
  color: var(--grey-400);
}

/* Product page — full-width hero banner */

.product-banner {
  position: relative;
  margin-top: var(--header-total);
  min-height: clamp(300px, 42vw, 520px);
  overflow: hidden;
}

.product-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 42vw, 520px);
  padding: 2.5rem 0;
  background: linear-gradient(
    105deg,
    rgba(12, 35, 64, 0.72) 0%,
    rgba(12, 35, 64, 0.4) 38%,
    rgba(12, 35, 64, 0.08) 68%,
    transparent 100%
  );
}

.product-banner__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.75rem;
}

.product-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 1rem;
  max-width: 22ch;
}

.product-banner__intro {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 52ch;
}

.product-banner__breadcrumb {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.product-banner__breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
}

.product-banner__breadcrumb a:hover {
  color: var(--white);
}

.product-banner__breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
  .product-banner,
  .product-banner__content {
    min-height: clamp(260px, 55vw, 360px);
  }

  .product-banner__content {
    padding: 2rem 0;
    background: linear-gradient(
      to top,
      rgba(12, 35, 64, 0.82) 0%,
      rgba(12, 35, 64, 0.45) 55%,
      rgba(12, 35, 64, 0.2) 100%
    );
  }

  .product-banner__title {
    max-width: none;
  }

  .product-banner__intro {
    max-width: none;
  }
}

/* Mega dropdown in header */

.header-nav,
.header-nav__inner {
  overflow: visible;
}

.nav-main {
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-item-split {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-item-split > .nav-link:first-child {
  flex: 0 0 auto;
  min-width: auto;
}

.nav-link--toggle {
  flex-shrink: 0;
  padding: 0 0.65rem !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 1200px) {
  .nav-link--toggle {
    display: none;
  }
}

.has-mega,
.has-dropdown {
  position: static;
}

@media (min-width: 1200px) {
  .mega-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-total);
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 1.75rem 1.5rem 2rem;
    border-radius: 0;
    border-top: 1px solid var(--grey-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    z-index: 1200;
  }

  .nav-main li.has-mega:hover > .dropdown.mega-dropdown,
  .nav-main li.has-mega.is-open > .dropdown.mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-main li.has-dropdown:hover > .dropdown,
  .nav-main li.has-dropdown.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mega-dropdown__head,
  .mega-dropdown__grid {
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
  }

  .mega-dropdown__head {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--grey-200);
  }

  .mega-dropdown__overview {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue-800);
  }

  .mega-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem 2rem;
  }

  .mega-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mega-col__title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.25rem;
  }

  .mega-col a {
    padding: 0.4rem 0;
    font-size: 0.8125rem;
    border-radius: 0;
  }

  .mega-col__all {
    margin-top: 0.35rem;
    font-weight: 600;
    color: var(--blue-700) !important;
  }
}

@media (max-width: 1199px) {
  .mega-dropdown__head,
  .mega-dropdown__grid {
    padding: 0.15rem 0;
  }

  .mega-dropdown__overview {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8125rem;
  }

  .mega-col {
    gap: 0;
  }

  .mega-col a {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .mega-col__title {
    display: block;
    padding: 0.35rem 0.85rem 0.1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
  }

  .mega-col__all {
    font-weight: 600;
    padding-top: 0.25rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* ── Mega-menu column groups (collapsible on mobile) ── */

.mega-col__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: default;
}

.mega-col__chevron {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.25s var(--ease);
}

@media (min-width: 1200px) {
  /* Desktop keeps the flat, always-visible columns */
  .mega-col__panel {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mega-col__toggle {
    padding: 0;
  }

  /* The open panel scrolls instead of being cut off on short screens */
  .mega-dropdown {
    max-height: calc(100vh - var(--header-total));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Desktop bar: the menu, the three social icons and the Angebot button all
   have to share a 1180px row, so keep the items tight at every desktop width
   (the container is capped, so wide screens are just as tight as 1200px). */
@media (min-width: 1200px) {
  .header-nav__inner {
    gap: 0.5rem;
  }

  .nav-main > li > a,
  .nav-main > li > button.nav-link,
  .nav-main > li > .nav-item-split > .nav-link {
    padding: 0 0.45rem;
    gap: 0.22rem;
  }

  .nav-link--toggle {
    padding: 0 0.4rem !important;
  }

  .nav-main .chevron {
    width: 12px;
    height: 12px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .social-links {
    gap: 0.3rem;
  }

  .social-links a {
    width: 29px;
    height: 29px;
  }

  .social-links svg {
    width: 15px;
    height: 15px;
  }

  .btn-angebot {
    padding: 0.5rem 0.9rem;
  }
}

/* 1200–1279px: the container still loses width to the side gutter here,
   so shave a little more off the items. */
@media (min-width: 1200px) and (max-width: 1279px) {
  .nav-main > li > a,
  .nav-main > li > button.nav-link,
  .nav-main > li > .nav-item-split > .nav-link {
    padding: 0 0.35rem;
  }

  .social-links {
    gap: 0.25rem;
  }

  .social-links a {
    width: 28px;
    height: 28px;
  }

  .btn-angebot {
    padding: 0.5rem 0.8rem;
  }
}

@media (min-width: 1200px) and (max-height: 800px) {
  .mega-dropdown {
    padding-top: 1.1rem;
    padding-bottom: 1.25rem;
  }

  .mega-col a {
    padding: 0.28rem 0;
  }

  .mega-dropdown__head {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 1199px) {
  .mega-col__toggle {
    cursor: pointer;
    font-family: var(--font-display);
    min-height: 42px;
    padding: 0.35rem 0.85rem !important;
    margin-top: 0.15rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.05);
  }

  .mega-col__toggle:hover,
  .mega-col.is-open > .mega-col__toggle {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
  }

  .mega-col__chevron {
    display: block;
  }

  .mega-col.is-open > .mega-col__toggle .mega-col__chevron {
    transform: rotate(180deg);
  }

  .mega-col__panel {
    display: none;
    padding: 0.15rem 0 0.35rem;
  }

  .mega-col.is-open > .mega-col__panel {
    display: block;
  }
}

/* Catalog layout */

.catalog-section {
  padding: 3rem 0 5rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .catalog-layout {
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.catalog-sidebar {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: sticky;
  top: calc(var(--header-total) + 1rem);
  max-height: calc(100vh - var(--header-total) - 2rem);
  overflow-y: auto;
}

.catalog-sidebar .level_1,
.catalog-sidebar .level_2,
.catalog-sidebar .level_3 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-sidebar .level_1 > li > a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--grey-900);
  border-radius: 8px;
}

.catalog-sidebar .level_1 > li > a:hover,
.catalog-sidebar .level_1.is-open > a {
  background: var(--blue-100);
  color: var(--blue-800);
}

.catalog-sidebar .level_2 {
  display: none;
  padding: 0.25rem 0 0.5rem 0.5rem;
}

.catalog-sidebar .level_1.is-open > .level_2 {
  display: block;
}

.catalog-sidebar .level_2 a {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--grey-700);
  border-radius: 6px;
}

.catalog-sidebar .level_2 a:hover,
.catalog-sidebar .level_2 li.active > a,
.catalog-sidebar .level_3 li.active > a {
  background: var(--grey-100);
  color: var(--blue-800);
  font-weight: 600;
}

.catalog-sidebar .level_3 {
  display: none;
  padding-left: 0.75rem;
  margin-top: 0.15rem;
}

.catalog-sidebar .level_2 > li.submenu.is-open > .level_3 {
  display: block;
}

.catalog-sidebar .level_3 a {
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
}

.catalog-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.catalog-series {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1rem;
}

.catalog-series__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin: 0 0 0.65rem;
}

.catalog-series__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-series__list a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-800);
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.catalog-series__list a:hover {
  background: var(--blue-100);
  color: var(--blue-900);
}

.catalog-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--grey-900);
  margin: 2rem 0 1rem;
}

.catalog-lead {
  font-size: 1.0625rem;
  color: var(--grey-700);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

.catalog-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--grey-700);
}

.catalog-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

.catalog-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  border: 2px solid var(--blue-700);
  border-radius: 50%;
  background: transparent;
}

.catalog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.catalog-card {
  display: block;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

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

.catalog-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-900);
  margin: 0 0 0.75rem;
}

.catalog-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-800);
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.catalog-notice {
  background: var(--blue-50, #eff6ff);
  border: 1px solid var(--blue-200, #bfdbfe);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--grey-700);
  line-height: 1.65;
}

.catalog-list--numbered {
  list-style: decimal;
  padding-left: 1.35rem;
}

.catalog-list--numbered li {
  padding-left: 0.35rem;
}

.catalog-list--numbered li::before {
  display: none;
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h2:first-of-type {
  margin-top: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.faq-item {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--grey-900);
  padding: 0.75rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--grey-600);
  font-size: 0.9375rem;
}

@media (max-width: 991px) {
  .catalog-sidebar {
    position: static;
    max-height: none;
  }
}
