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

/* Base Hero Styles */
.hero {
  position: relative;
  min-height: 60vh;
  padding: clamp(4rem, 15vh, 10rem) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

/* Dark Overlay Gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 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;
  gap: 0;
  padding:350px 0 50px;
}

.hero-subline {
  position:relative;
  color:var(--brand-primary-color);
  font-size: 150%;
  padding-left:125px;
  font-weight:500;
}
.hero-subline:before{
  content:'';
  width:100px;
  height:1px;
  background:var(--brand-primary-color);
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
}
.hero-title {
  color: var(--brand-primary-color);
  line-height: 1.1;
  margin:0;
}

.hero-text,
.hero-content-secondary {
  color: var(--brand-primary-color);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

/* Service Card */

.hero-service-card {
  background-color: rgba(255, 255, 255, 0.85); /* Deckkraft: 85% */
  backdrop-filter: blur(22px) brightness(90%); /* Stärke: 22, Helligkeit: -10 */
  -webkit-backdrop-filter: blur(22px) brightness(90%);
  width:33.33%;
  padding:25px;
  position:absolute;
  bottom:50px;
  right: 15px;
}
.hero-service-card:after{
  content:'';
  position: absolute;
  top:25px;
  right:25px;
  background-image:url('../../assets/icons/arrow.svg');
  background-repeat:no-repeat;
  background-size:100%;
  background-position:center;
  display:block;
  width:50px;
  height:50px;
  transition:all .3s ease;
}
.hero-service-card:hover:after{
  transform:rotate(45deg);
  transition:all .3s ease;
}
.hero-card-image {
  width:70px;height:47.5px;
}

.hero-card-content {
  padding: 0;
}

.hero-card-content .card-title {
  color: var(--brand-primary-color);
  margin-top:50px;
}

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

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

.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;
}

/* Responsive Adjustments */

@media (max-width: 1480px) {
  .hero-content{
    padding:250px 0 50px;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: clamp(3rem, 10vh, 8rem) 0;
  }
  .hero-content{
    padding:50px 0;
  }
  .hero-service-card{
    position:unset;
    width:calc(100% - 30px);
    margin-left:15px;
  }
  .hero-service-card .col-md-4 {
    display: none;
  }
  
  .hero-content-secondary {
    padding-top: 2rem;
  }
}

@media (max-width: 767px) {

  .headline br{
    display:none;
  }
}

@media (max-width: 767px) {
  .hero{
    min-height:auto;
  }
  .hero-subline{
    font-size:125%;
    padding-left:75px;
  }
  .hero-subline::before{
    width:50px;
  }
}
