/* Fix: prevent the first/top navigation item (e.g. "Home") from shifting the whole menu when it is active.
   The global .nav--active rule adds vertical padding, which changes the element height and can visually
   push/snap sibling items. Keep highlight, but remove vertical padding inside the top navigation. */
.nav__two__navigation__item a{
  display: inline-block;
}
.nav__two__navigation__item a.nav--active{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 36px;
}
/* ================================================================
   WEBER — PAGE STYLES
   File: images-index/page.css
   Purpose: All visual styles for the main page (index.html)
   Strategy: External file → long-lived browser cache + CDN edge
             After first visit, 0 bytes of CSS cross the network
   ================================================================ */

/* ── CSS Custom Properties (design tokens) ──────────────────── */
:root {
  --b9:    #003354;   /* darkest brand blue */
  --b7:    #0c648f;   /* mid brand blue */
  --b5:    #1894ca;   /* bright accent blue */
  --grad:  linear-gradient(to right, #003354 0%, #0c648f 27%, #1894ca 52%, #0c648f 77%, #003354 100%);
  --silver:linear-gradient(135deg, #f2f2f2 0%, #d9dde2 35%, #f7f7f7 70%, #cfd6dd 100%);
  --bg:    #f5f7fa;
  --card:  #ffffff;
  --r:     16px;
  --sh:    0 6px 18px rgba(0, 0, 0, 0.06);
  --ring:  0 0 0 4px rgba(24, 148, 202, 0.18);
}

/* ── Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body.container {
  background: var(--bg);
  color: #0f172a;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* ── Card / Shadow surfaces ──────────────────────────────────── */
.container.content__shadow,
.content__shadow {
  border-radius: var(--r);
  box-shadow: var(--sh);
  background: var(--card);
}

/* ── Navigation bar (top gradient strip) ─────────────────────── */
nav{background:var(--grad);background-repeat:no-repeat;background-size:100% 100%;}
.nav__one{background:transparent!important;}

/* ── Navigation bar (silver logo row) ───────────────────────── */
.nav__two__container {
  background: var(--silver);
  border-top:    1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav__two__navigation__item a {
  border-radius: 0;
  padding: 0.45rem 0.8rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.nav__two__navigation__item a:hover,
.nav__two__navigation__item a:focus-visible {
  background: rgba(24, 148, 202, 0.12);
  box-shadow: var(--ring);
  outline: none;
  transform: translateY(-1px);
}

/* ── MENU button (hamburger in nav__one) ─────────────────────── */
.menu-button {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.15s;
}

.menu-button:hover,
.menu-button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ── Hero image ─────────────────────────────────────────────── */
#title-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}

/* ── Body copy ──────────────────────────────────────────────── */
.article p {
  line-height: 1.65;
  color: #475569;
}

.container__headlineh1 h1 a,
.container__headlineh2 a {
  color: var(--b9);
}

#made-in-germany {
  letter-spacing: 0.08em;
}

/* ── Service row (gradient background strip) ─────────────────── */
.service-row,
.service-border-bottom,
.border-blue-white {
  background: var(--grad);
}

.service-row .container__full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.service-row .service {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 12px;
  text-align: center;
}

.service-row .service a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.service-row .service strong {
  display: block;
  margin-top: 0.4rem;
}

.service-row .service:hover {
  transform: translateY(-2px);
  transition: transform 0.15s;
}

.service-row .service a,
.service-row .service a strong,
.service-row .service a small {
  color: #ffffff !important;
}

.service-row .service svg,
.service-row .service .svc-ico {
  width: 56px;
  height: 56px;
  color: #ffffff !important;
  fill: currentColor !important;
  opacity: 0.95;
  transition: transform 0.18s, filter 0.18s, opacity 0.18s;
  filter: drop-shadow(0 8px 16px rgba(0, 51, 84, 0.35));
}

.service-row .service a:hover svg,
.service-row .service a:hover .svc-ico {
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 20px rgba(0, 51, 84, 0.45));
}

.service-row .service img.icon {
  filter: brightness(0) invert(1);
}

/* ── CTA strip (bottom of main content) ─────────────────────── */
#info svg {
  color: #2c55a7;
}

.section.container.service-row.cta-strip {
  background: var(--grad) !important;
  padding: 18px 0 14px !important;
  border-top: 4px solid rgba(255, 255, 255, 0.08);
  border-bottom: 4px solid rgba(0, 0, 0, 0.10);
  box-sizing: border-box;
}

.section.container.service-row.cta-strip .service a {
  background:     transparent !important;
  box-shadow:     none !important;
  border:         0 !important;
  border-radius:  0 !important;
  padding:        0 !important;
  display:        flex !important;
  flex-direction: column !important;
  align-items:    center !important;
  justify-content:center !important;
  gap:            8px !important;
  color:          #ffffff !important;
  text-decoration:none !important;
}

.section.container.service-row.cta-strip .service svg {
  width:   56px !important;
  height:  56px !important;
  color:   #ffffff !important;
  fill:    currentColor !important;
  opacity: 1 !important;
  filter:  drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

.section.container.service-row.cta-strip .service strong {
  color:          #ffffff !important;
  font-weight:    700 !important;
  letter-spacing: 0.06em;
  font-size:      12px !important;
  text-transform: uppercase;
  margin:         0 !important;
}

.section.container.service-row.cta-strip .service a:hover svg {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

/* ── Product card grid ───────────────────────────────────────── */
.product-row .container__full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product,
.product2 {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 14px 14px 12px;
}

.product img[itemprop="image"] {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.product strong,
.product2 strong {
  color: var(--b9);
}

.product p a,
.product2 a {
  word-break: break-word;
}

.product p svg,
.product2 svg {
  vertical-align: -0.12em;
}

#abfallbehaelter-gross .product-row .container__full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#medizinische-abfaelle .container__full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product2 img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ── Info / Quality section ───────────────────────────────────── */
#info .section {
  padding: 18px 14px;
}

#info .article h5 a {
  color: var(--b9);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--grad);
}

footer a {
  color: #ffffff;
}

footer .footer__content {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── SVG icon helpers (FontAwesome inline SVGs) ──────────────── */
svg.svg-inline--fa {
  display: inline-block;
  height: 1em;
  width: 1em;
  vertical-align: -0.125em;
  overflow: visible;
}

svg.svg-inline--fa.fa-lg {
  height: 1.3333em;
  width:  1.3333em;
  vertical-align: -0.225em;
}

svg.svg-inline--fa.fa-3x {
  height: 3em;
  width:  3em;
}

svg.svg-inline--fa.fa-5x {
  height: 5em;
  width:  5em;
}

.product p svg.svg-inline--fa,
.product2 p svg.svg-inline--fa,
.medlist svg.svg-inline--fa {
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.15em;
}

#info .svg-inline--fa.fa-left {
  width:  3rem;
  height: 3rem;
  vertical-align: middle;
}

/* ── Global focus ring ───────────────────────────────────────── */
a:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ── Responsive: tablet / desktop ────────────────────────────── */
@media (min-width: 768px) {
  .service-row .container__full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-row .container__full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #abfallbehaelter-gross .product-row .container__full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #medizinische-abfaelle .container__full {
    grid-template-columns: 1.4fr 0.8fr;
  }

  #title-image img {
    aspect-ratio: 21 / 7;
  }

  .section.container.service-row.cta-strip .container__full {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    align-items: center;
    gap: 18px;
  }
}

/* ── Responsive: small mobile — horizontal product scroll ─────── */
@media (max-width: 640px) {
  .product-row .container__full {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding: 10px 12px 14px !important;
    scroll-snap-type: x mandatory;
  }

  .product-row .product,
  .product-row .section.product,
  .product-row .product2 {
    flex: 0 0 78% !important;
    max-width: 78% !important;
    scroll-snap-align: start;
  }

  .product-row strong {
    font-size: 14px !important;
  }

  .product-row p {
    font-size: 13px !important;
  }
}

/* ── News section heading (replaces inline style from h6) ─────── */
.news-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.news-heading a {
  color: #3c5f9a;
  text-decoration: none;
}
.news-heading a:hover {
  text-decoration: underline;
}

/* ── Accessibility: reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
