/**
 * Hero Block Styles
 * 
 * Modern hero section with Bootstrap integration
 * Supports background images/videos, overlay gradients, and service cards
 */

/* Base Hero Styles */
.hero {
  position: relative;
  padding: clamp(4rem, 15vh, 10rem) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  border-bottom: 4px solid var(--brand-accent-color);
  align-content: center;
}
.hero.has-backgroundimage,
.hero.has-backgroundvideo{
    min-height:70vh;
}


/* Dark Overlay Gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47,71,92, 0.85) 0%, rgba(47,71,92, 0.3) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Content above overlay */
.hero > * {
  /* position: relative; */
  z-index: 2;
}

/* Background Video */
.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
 position: relative;
  z-index:9;
}

.hero-subline {
  /* color: var(--brand-accent-color); */
  font-size: 125%!important;
  /* padding: 5px 15px; */
  /* border: 1px solid var(--brand-accent-color); */
  /* background-color: var(--brand-accent-color-20); */
  /* border-radius: 30px; */
  /* width: max-content; */
  /* margin-bottom: 0; */
}

.hero-title {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  margin-top: 0;
}

.hero-text,
.hero-content-secondary {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.35rem;
  line-height: 1.7;
}

.hero-text p{
  font-size: 100%;
}

.hero-content-secondary {
  padding-top: 3rem;
}

/* Service Card */
.hero.has-card {
  margin-bottom: 8rem;
  padding-bottom: 4rem;
}

.hero-service-card {
  transform: translateY(50%);
  background: linear-gradient(
    90deg,
    var(--brand-secondary-color, #2c3e50) 0%,
    var(--brand-secondary-color-lighter, #34495e) 100%
  );
  color: white;
  overflow: hidden;
}

.hero-card-image {
  object-fit: cover;
}

.hero-card-content {
  padding: 2rem;
}

.hero-card-content .card-title {
  color: white;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.hero-card-content .card-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Buttons (Fixed Sidebar) */
.hero-contact-buttons {
  bottom: 50px;
  z-index: 1000;
}

.hero-contact-buttons .btn {
  width: 60px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px 0 0 30px !important;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-contact-icon {
  width: 20px;
  height: 20px;
}

.btn{
  margin-top: 0;
}

.hero .rechner{
  z-index: 9;
  align-content: center;
}

.hero .rechner form{
  padding: 25px;
  background-color: white;
  border-radius: 25px;
  color: black;
}

.hero .rechner form h2{
  color: var(--brand-accent-color) ;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 2rem;
}

.hero .rechner form input{
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
  width: 100%;
}

.hero .rechner form .btn{
  margin-top: 15px;
  margin-left: auto;
  width: fit-content;
  display: block;
}

.hero ul{
  padding-left: 0;
}

.hero ul li{
  list-style: none;
  padding-left: 0;
}

.hero li::before {
    content: "✓";
    color: var(--brand-accent-color);
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
  }


/*Zahlen--------------------------------*/

.hero-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:0;margin:1rem 0 0;border:1px solid rgba(255,255,255,.12);border-radius:20px;overflow:hidden;background:var(--brand-primary-color);}
.hero-stat{flex:1 1 200px;padding:24px 20px;border-right:1px solid rgba(255,255,255,.1);text-align:center;align-content:center;}
.hero-stat:last-child{border-right:none;}
.hero-stat-num{font-size:250%;font-weight:900;color:var(--lime);line-height:1;display:block;}
.hero-stat-label{font-size:100%;font-weight:700;color:rgba(255,255,255,.6);margin-top:5px;line-height:1.1;display:block;}

/*Kacheln--------------------------------*/

.hero .mitkachel{align-content:center;}

.kachelwrapper{align-content:center;z-index:9;}
.kachelwrapper .htrust-card{background:#fff;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:18px 20px;transition:.2s;margin-bottom:15px;}
.kachelwrapper .htrust-card:hover{background:#f2f2f2;border-color:rgba(164,198,20,.3);}
.kachelwrapper .htrust-num{font-size:225%;font-weight:900;color:var(--lime);letter-spacing:-.03em;line-height:1;margin-bottom:3px;display:block;}
.kachelwrapper .htrust-label{font-size:100%;color:var(--brand-primary-color);line-height:1.4;}
.kachelwrapper .htrust-card:first-child{background:var(--lime);border-color:var(--lime);}
.kachelwrapper .htrust-card:first-child .htrust-num{color:var(--navy-dark);}
.kachelwrapper .htrust-card:first-child .htrust-label{color:var(--navy);}

/*Infos--------------------------------*/
.infos{
  margin-bottom: 2rem;
}
.infos .zahl{
  font-size: 250%;
  margin-bottom: 0;
  color: var(--brand-accent-color);
  font-weight: 700;
}

.infos .info{
  color: var(--brand-primary-color-light);
}

@media(max-width:1480px){
  .hero-stat-num{font-size:200%;}
  .hero-stat-label{font-size:75%;}
}
@media (min-width: 1200px) {
  .hero-content{max-width: 75%;}
  .mitrechner .hero-content{max-width: 100%;}
  .mitkachel .hero-content{max-width: 100%;}
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero {
    padding: clamp(3rem, 10vh, 8rem) 0;
  }
  .hero-content{
    margin:1.5rem 0;
  }
  .hero-service-card .col-md-4 {
    display: none;
  }
  
  .hero-content-secondary {
    padding-top: 2rem;
  }
  .hero-stat{
    flex:1 1 175px;
    padding:10px 0;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 50vh;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(47, 71, 92, 0.7) 0%, rgba(47, 71, 92, 0.3) 100%);
  }
  .hero.infos::before{
    display:none;
  }

  .page-id-193 .hero.has-backgroundvideo::before{
      content: '';
      position: absolute;
      inset: 0;
      background: var(--brand-primary-color-50);
      z-index: 1;
      pointer-events: none;
      display:block;
  }

  .hero-background-video{
    position:unset;
    transform:unset;
    margin-bottom:1.5rem;
  }
  .hero-subline{
    font-size:95%!important;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }

  .hero-title span{
    color: var(--brand-accent-color)!important;
  }
  
  .hero-contact-buttons .btn {
    width: 50px;
    height: 45px;
    opacity: 0.9;
  }
  
  .hero-contact-icon {
    width: 18px;
    height: 18px;
  }
  
  .hero.has-card {
    margin-bottom: 4rem;
  }
  
  .hero-service-card {
    transform: translateY(0);
    margin-top: 2rem;
  }

  .hero-stat{
    flex:1 1 50%;
  }
}
@media(max-width:575px){
  .infos .zahl{
    font-size:200%;
  }
  .hero-subline {
    font-size: 85% !important;
  }
  .hero .kachelwrapper{
    display:none;
  }
  .hero .rechner form h2{
    font-size:1.75rem;
  }
  .hero .rechner form .btn{
    width:100%;
  }
}
