.hero{
  position:relative;
  min-height:680px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(10,32,44,.72) 0%,rgba(10,32,44,.54) 36%,rgba(10,32,44,.18) 100%),
    url('../img/hero-bg.png') center/cover no-repeat;
}

.hero-portrait{
  position:absolute;
  left:0;
  top:0;
  width:clamp(300px,30vw,450px);
  max-height:96%;
  z-index:1;
  pointer-events:none;
}

.hero-portrait img{
  display:block;
  width:100%;
  height:auto;
  max-height:700px;
  object-fit:contain;
  filter:drop-shadow(0 22px 34px rgba(0,0,0,.34));
}

.hero-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:34px;
  align-items:center;
}

.kicker{
  display:inline-block;
  background:rgba(223,244,252,.95);
  color:var(--accent-dark);
  padding:10px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

.hero h1{
  margin:18px 0 0;
  font-size:58px;
  line-height:1.03;
  color:#fff;
  letter-spacing:-.02em;
  max-width:760px;
}

.lead{
  margin-top:22px;
  font-size:20px;
  color:rgba(255,255,255,.92);
  max-width:720px;
}

.actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}

.quickfacts{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:28px;
}

.fact{
  background:rgba(255,255,255,.14);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  padding:16px 18px;
  border-radius:16px;
  backdrop-filter:blur(8px);
}

.hero-panel{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.45);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:22px;
}

.hero-panel h3{
  margin:0 0 12px;
  font-size:26px;
}

.hero-products{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.hero-product{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-height:260px;
}

.hero-product img{
  max-width:100%;
  max-height:170px;
  object-fit:contain;
}

.hero-product span{
  display:block;
  margin-top:10px;
  font-weight:700;
  color:#264252;
}

@media (max-width:900px){
  .hero{
    display:block;
    min-height:auto;
    padding:48px 0 64px;
  }

  .hero-portrait{
    position:relative;
    left:auto;
    top:auto;
    width:min(78vw,420px);
    margin:20px auto 0;
    max-height:none;
  }

  .hero-grid,
  .quickfacts,
  .hero-products{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:40px;
  }
}


/* V68 – Hero Produktbeispiele: echte Klassen korrigiert
   Ziel: Produktbeispiele im Hero-Bereich breiter, weiter rechts und ausgewogener darstellen.
   Wichtig: Diese Regeln verwenden die tatsächlich vorhandenen Klassen aus index.html:
   .hero-grid, .hero-panel, .hero-products und .hero-product. */
@media (min-width: 1100px) {
  .hero .container.hero-grid {
    max-width: min(1500px, calc(100% - 32px));
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: 12px;
    padding-left: 16px;
    padding-right: 16px;
    grid-template-columns: minmax(480px, .78fr) minmax(620px, 1.08fr);
    gap: clamp(28px, 3vw, 52px);
    align-items: center;
  }

  .hero-panel {
    justify-self: end;
    width: min(100%, 780px);
    padding: 24px;
  }

  .hero-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .hero-product {
    min-height: 238px;
    padding: 16px 14px;
  }

  .hero-product img {
    width: 100%;
    max-width: 210px;
    max-height: 155px;
  }
}

@media (min-width: 1400px) {
  .hero .container.hero-grid {
    margin-right: 20px;
    grid-template-columns: minmax(540px, .78fr) minmax(720px, 1.12fr);
  }

  .hero-panel {
    width: min(100%, 860px);
  }

  .hero-product img {
    max-width: 230px;
    max-height: 165px;
  }
}

@media (min-width: 1650px) {
  .hero .container.hero-grid {
    margin-right: clamp(24px, 3vw, 64px);
  }

  .hero-panel {
    width: min(100%, 900px);
  }
}

@media (min-width: 1100px) and (max-width: 1260px) {
  .hero .container.hero-grid {
    grid-template-columns: minmax(430px, .78fr) minmax(560px, 1.05fr);
    gap: 24px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-panel {
    width: min(100%, 680px);
  }

  .hero-product {
    min-height: 220px;
    padding: 14px 12px;
  }

  .hero-product img {
    max-width: 180px;
    max-height: 140px;
  }
}

/* V69 – Hero harmonisiert: Textelemente näher an das linke Bild rücken
   Ziel: freier Raum zwischen Portrait und Inhalt reduzieren, ohne die Produktbeispiele zu überlagern. */
@media (min-width: 1100px) {
  .hero .container.hero-grid {
    max-width: none;
    width: auto;
    margin-left: clamp(430px, 28vw, 560px);
    margin-right: clamp(24px, 3vw, 64px);
    padding-left: 0;
    padding-right: 24px;
    grid-template-columns: minmax(430px, .82fr) minmax(620px, 1.18fr);
    gap: clamp(24px, 2.4vw, 40px);
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(48px, 3.15vw, 58px);
  }

  .lead,
  .hero .vibration-note {
    max-width: 620px;
  }

  .hero-panel {
    justify-self: stretch;
    width: 100%;
    max-width: 900px;
  }
}

@media (min-width: 1100px) and (max-width: 1320px) {
  .hero .container.hero-grid {
    margin-left: clamp(390px, 29vw, 440px);
    margin-right: 24px;
    grid-template-columns: minmax(390px, .82fr) minmax(540px, 1.18fr);
    gap: 24px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-panel {
    max-width: 680px;
  }
}

/* Unternehmen: eigenes Fertigungsbild als Hero-Hintergrund
   V10: Bild nicht mehr als schmalen Streifen croppen, sondern proportional vollständig zeigen. */
.page-hero.company-hero{
  position: relative;
  margin-top: 0;
  min-height: clamp(320px, 30vw, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(10,32,44,.72) 0%, rgba(10,32,44,.50) 45%, rgba(10,32,44,.24) 100%),
    url('../img/unternehmen-hero-fertigung.png');
  background-size:
    cover,
    100% auto;
  background-position:
    center center,
    center top;
  background-repeat:
    no-repeat,
    no-repeat;
  background-color: #eaf7fc;
}

.page-hero.company-hero .container{
  position: relative;
  z-index: 1;
}

.page-hero.company-hero .eyebrow,
.page-hero.company-hero h1,
.page-hero.company-hero p{
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.32);
}

.page-hero.company-hero .eyebrow{
  color: #d9f3fb;
}

@media (max-width: 700px){
  .page-hero.company-hero{
    min-height: 300px;
    background-size: cover, auto 100%;
    background-position: center center, center center;
  }
}
