/* ============================================================
   STARTSEITE – HERO, COLLAGE, LEISTUNGEN, TRUST
============================================================ */

/* ============================================
   HERO – Minimalistisch, ruhig, architektonisch
============================================ */
.hero {
  width: 100%;
  height: calc(100vh - 90px);
  margin-top: 0px;
  background: url("/Bilder/hero-baustelle.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  position: relative;
}

/* ruhiges Overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: rgba(255,255,255,0.82);
}

/* Titel */
.hero-title {
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: rgba(255,255,255,0.92);
}

.hero-title .epa {
  color: rgba(255,255,255,0.92);
  font-size: 0.92em;
  font-weight: 600;
}

/* Untertitel */
.hero-subtitle {
  font-size: 1.4rem;
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.78);
  text-align: left;
  padding-left: 0.15em;
}

/* Subline */
.hero-subline {
  font-size: 1.15rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

/* ============================================
   MINI-KÄSTCHEN
============================================ */
.hero-mini-cards {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.mini-card {
  padding: 0.9rem 1.6rem;
  background: rgba(245, 245, 245, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  color: #1a1a1a;
  backdrop-filter: blur(6px);
  min-width: 180px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  transition: none;
}

/* ============================================
   TYPEWRITER
============================================ */
.hero-typewriter {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 1.2rem 0 1.8rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 2.6rem;
}

#typewriter {
  display: inline-block;
  width: 320px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.35s ease;
  color: rgba(255,255,255,0.88);
  text-align: left;
  letter-spacing: 0.3px;
}

/* ============================================
   INTRO-COLLAGE
============================================ */
.intro-collage {
  padding: 6rem 2rem;
  background: #fff;
}

.intro-collage-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.intro-collage-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  width: 50%;
}

.collage-item {
  width: 100%;
  padding-bottom: 70%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  cursor: pointer;
  filter: grayscale(100%);
  transition: 0.4s ease;
}

.collage-item:hover {
  filter: grayscale(0%);
}

.intro-collage-text {
  width: 50%;
}

.intro-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.intro-welcome {
  font-size: 1.3rem;
  opacity: 0.8;
}

.intro-epa {
  color: #808042;
  font-weight: 700;
}

.intro-collage-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ============================================
   LEISTUNGEN
============================================ */
.leistungen {
  padding: 5rem 2rem;
  background: #fafafa;
  text-align: center;
}

.leistungen h2 {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
  color: #808042;
}

.leistungen .grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: 0.35s ease;
  height: 100%;
  color: #0f1417;
  text-align: left;
}

.card h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1f2933;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 0.4rem;
}

.card ul {
  flex-grow: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  line-height: 1.5;
  font-size: 0.98rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}

/* Hover-Farben */
.card-statik:hover {
  background: rgba(230,126,34,0.08);
  border-color: rgba(230,126,34,0.55);
  transform: translateY(-3px);
}

.card-energie:hover {
  background: rgba(41,128,185,0.08);
  border-color: rgba(41,128,185,0.55);
  transform: translateY(-3px);
}

.card-sanierung:hover {
  background: rgba(93,109,126,0.08);
  border-color: rgba(93,109,126,0.55);
  transform: translateY(-3px);
}

/* ============================================
   TRUST
============================================ */
.trust {
  padding: 4rem 2rem;
  text-align: center;
}

.trust h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.trust-logos img {
  height: 60px;
  opacity: 0.8;
  transition: 0.3s ease;
}

.trust-logos img:hover {
  opacity: 1;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
  background: rgba(255,255,255,0.85);
  color: #1a1a1a;
  border: none;
  backdrop-filter: blur(4px);
}

.btn-dark-outline {
  background: rgba(255,255,255,0.20);
  border: 2px solid rgba(255,255,255,0.85);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}

.btn-dark-outline:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,1);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .hero {
    height: calc(100vh - 70px);
    margin-top: 70px;
  }

  .hero-mini-cards {
    flex-direction: column;
    gap: 0.8rem;
  }

  .intro-collage-inner {
    flex-direction: column;
  }

  .intro-collage-images,
  .intro-collage-text {
    width: 100%;
  }

  .leistungen .grid {
    grid-template-columns: 1fr;
  }

  .trust-logos {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

/* ============================================================
   FUTURISTISCHER, RUHIGER, PREMIUM-LASER
============================================================ */

.card {
  position: relative;
  overflow: visible;
}

/* SVG exakt über der Karte */
.scan-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
}

/* Pfad – unsichtbar */
.scan-border .path {
  stroke: transparent;
  stroke-width: 1px;
}

/* Weiße Laser-Schlange */
.scan-border .laser {
  stroke: rgba(255,255,255,0.85);
  stroke-width: 1px;
  stroke-linejoin: round;

  /* Segment + Lücke */
  stroke-dasharray: 22 278;

  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover aktiviert Laser */
.card:hover .laser {
  opacity: 1;
  animation: laserMove 4.8s linear infinite;
}

/* Animation */
@keyframes laserMove {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

/* ============================================================
   TRUST-LOGOS – NIE VERZERRT
============================================================ */

.trust-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .trust-logos img {
    height: 50px;
  }
}

@media (max-width: 600px) {
  .trust-logos img {
    height: 40px;
  }
}

@media (max-width: 400px) {
  .trust-logos img {
    height: 34px;
  }
}
