/* SAM-PRO Business v48 */
/* Übernahme des freigegebenen Hero-Entwurfs als feste Premium-Hero-Grafik.
   Der WordPress-Header bleibt funktional, der Hero selbst entspricht dem Entwurf. */

:root{
  --sampro-v48-hero-w: 1672px;
  --sampro-v48-hero-h: 638px;
}

/* Header / Menü näher am Entwurf */
.sampro-v7-topbar{
  height: 40px !important;
  min-height: 40px !important;
  background: #002856 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.sampro-v7-topbar .container,
.sampro-v7-header .container{
  max-width: 1500px !important;
  width: min(1500px, calc(100% - 90px)) !important;
}

.sampro-v7-header{
  background: #fff !important;
  border-bottom: 1px solid #e5ebf3 !important;
  box-shadow: none !important;
}

.sampro-v7-navrow{
  min-height: 112px !important;
  align-items: center !important;
}

.sampro-v7-logo{
  width: 245px !important;
  min-width: 245px !important;
}

.sampro-v7-logo img{
  max-height: 70px !important;
  width: auto !important;
}

.sampro-v7-menu{
  gap: 34px !important;
  align-items: center !important;
}

.sampro-v7-menu > li > a{
  min-height: 112px !important;
  padding: 0 0 !important;
  color: #0b2149 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.sampro-v7-menu > li > a:hover,
.sampro-v7-menu > li:hover > a{
  color: #0b4fa3 !important;
}

.sampro-v7-menu > li.current-menu-item > a,
.sampro-v7-menu > li.current_page_item > a,
.sampro-v7-menu > li.current-menu-ancestor > a{
  color: #0b4fa3 !important;
  background: transparent !important;
  box-shadow: inset 0 -3px 0 #c9a23a !important;
}

/* Hero als 1:1 übernommene Grafik */
.v7-hero{
  position: relative !important;
  overflow: hidden !important;
  background: #fff !important;
  border-bottom: 0 !important;
}

.v7-hero > .container,
.v7-hero .container,
.v7-hero .container.v7-hero__grid{
  padding: 0 !important;
  margin: 0 auto !important;
}

.v7-hero__grid{
  position: relative !important;
  display: block !important;
  width: var(--sampro-v48-hero-w) !important;
  min-width: var(--sampro-v48-hero-w) !important;
  max-width: var(--sampro-v48-hero-w) !important;
  height: var(--sampro-v48-hero-h) !important;
  min-height: var(--sampro-v48-hero-h) !important;
  overflow: hidden !important;
  background-image: url('../img/hero-approved-v48.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: var(--sampro-v48-hero-w) var(--sampro-v48-hero-h) !important;
  background-color: #fff !important;
}

/* alte Hero-Elemente ausblenden, damit keine Dopplung entsteht */
.v7-hero::before,
.v7-hero::after,
.v7-hero > .container::before,
.v7-hero > .container::after,
.v7-hero__grid::before,
.v7-hero__grid::after,
.v7-hero__copy,
.v7-hero__copy::before,
.v7-hero__copy::after,
.v7-hero__image,
.v7-hero__image-inner,
.v7-hero__image img{
  content: none !important;
  display: none !important;
}

/* Bei schmaleren Browsern bleibt die Hero-Grafik stabil und wird zentriert beschnitten */
@media (max-width: 1672px){
  .v7-hero{
    overflow-x: hidden !important;
  }
  .v7-hero__grid{
    margin-left: calc(50% - 836px) !important;
    margin-right: 0 !important;
  }
}

/* Tablet/Mobil: Hero proportional skalieren statt hart zu beschneiden */
@media (max-width: 900px){
  .sampro-v7-topbar .container,
  .sampro-v7-header .container{
    width: min(100% - 32px, 1500px) !important;
  }

  .sampro-v7-navrow{
    min-height: 86px !important;
  }

  .sampro-v7-logo{
    width: 205px !important;
    min-width: 205px !important;
  }

  .sampro-v7-menu > li > a{
    min-height: 86px !important;
    font-size: 14px !important;
  }

  .v7-hero__grid{
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 58vw !important;
    min-height: 420px !important;
    max-height: 638px !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}

/* Metrikband etwas bündiger an den Hero anschließen */
.v7-metrics{
  margin-top: 0 !important;
  border-top: 0 !important;
}
