/* /assets/css/home.css */

/* HERO Vollbreite */
.hero{
  position:relative;
  min-height: 78vh;
  display:flex;
  align-items:flex-start;
  padding: 28px 0 72px;
}

.hero-bg{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 60%, rgba(0,0,0,.55) 100%),
    url("/assets/img/ingenieurbuero-bauplanung-gebaeudetechnik-nachhaltiges-bauen-Brandschutz.jpeg");
  background-size:cover;
  background-position:center;
  filter:saturate(.9);
}

.hero-inner{
  position:relative;
  z-index:1;
  width:100%;
}
.hero-inner .wrap{padding-top:0}

.hero h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4vw, 72px);
  line-height:1.03;
  letter-spacing:-.8px;
}

.hero-sub{
  margin:0 0 24px;
  max-width: 76ch;
  color: rgba(255,255,255,.86);
  line-height:1.7;
  font-size: 16.5px;
}

.hero-actions{display:flex; gap:14px; flex-wrap:wrap}

/* Buttons: beide erst beim Hover “farbig” */
.hero-actions .btn{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.18);
}
.hero-actions .btn:hover{
  background: rgba(42,163,104,.22);
  border-color: rgba(42,163,104,.55);
}

/* 3 Kacheln */
.cards3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.pillar{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius:24px;
  padding:22px;
  box-shadow: var(--shadow);
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.pillar:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.pill-top{
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  color: rgba(255,255,255,.70);
  margin-bottom:10px;
}
.pillar h2{
  margin:0 0 10px;
  font-size: 26px;
  letter-spacing:-.4px;
}
.pillar p{
  margin:0 0 18px;
  color: rgba(255,255,255,.74);
  line-height:1.8;
}
.pillar .more{
  font-weight:950;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}

/* farbige Top-Linie */
.pillar--sustain{ box-shadow: 0 18px 50px rgba(0,0,0,.36), 0 -4px 0 0 rgba(42,163,104,.85) inset; }
.pillar--fire{ box-shadow: 0 18px 50px rgba(0,0,0,.36), 0 -4px 0 0 rgba(255,90,95,.85) inset; }
.pillar--tga{ box-shadow: 0 18px 50px rgba(0,0,0,.36), 0 -4px 0 0 rgba(49,163,255,.85) inset; }

/* Kontaktband */
.section--contact .contact-band{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius:22px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.section--contact h2{margin:0}

@media (max-width: 980px){
  .hero{min-height: 64vh; padding: 76px 0 42px;}
  .cards3{grid-template-columns:1fr}
  .section--contact .contact-band{flex-direction:column; align-items:flex-start}
}
/* Kontaktband Buttons */
.contact-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* zweite Button-Optik wie dein Stil (kein harter Kasten, nur Outline/Glow) */
.btn--ghost{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.18);
}
.btn--ghost:hover{
  background: rgba(42,163,104,.22);
  border-color: rgba(42,163,104,.55);
}
#leistungen{
  padding-top: 54px;
}
/* Hero Buttons – Hover MUSS greifen */
.hero .hero-actions a.btn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
}

.hero .hero-actions a.btn:hover{
  background: rgba(42,163,104,.22);
  border-color: rgba(42,163,104,.55);
}
/* Kontaktband Buttons – gleicher Hover wie Hero */
.section--contact .contact-actions a.btn{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
}

.section--contact .contact-actions a.btn:hover{
  background: rgba(42,163,104,.22);
  border-color: rgba(42,163,104,.55);
}
/* Mehr erfahren – Nachhaltigkeit */
.pillar--sustain .more{
  color: rgba(255,255,255,.9);
}


/* Mehr erfahren – Brandschutz */
.pillar--fire .more{
  color: rgba(255,255,255,.9);
}

}

/* Mehr erfahren – Projektmanagement */
.pillar--tga .more{
  color: rgba(255,255,255,.9);
}

}
/* Klick-Feedback für alle Mehr-erfahren Links */
.pillar:active{
  transform: translateY(-1px) scale(0.995);
}

.pillar .more:active{
  text-decoration-thickness: 3px;
}
/* --- KACHELN: Overlay-Link macht ganze Card klickbar --- */
.pillar{
  position: relative; /* wichtig für Overlay */
}

.pillar-link{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1; /* liegt unter "Mehr erfahren" */
}

/* Text/Content über Overlay halten */
.pillar > :not(.pillar-link){
  position: relative;
  z-index: 2;
}

/* --- "Mehr erfahren" ist jetzt echter Link --- */
.pillar .more{
  display: inline-flex;
  width: fit-content;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
  transition: color .18s ease, text-decoration-thickness .18s ease, transform .18s ease;
}

/* Farbe je Kachel beim Hover + Focus */
.pillar--sustain:hover .more,
.pillar--sustain .more:focus-visible{ color: rgba(42,163,104,.95); }

.pillar--fire:hover .more,
.pillar--fire .more:focus-visible{ color: rgba(255,90,95,.95); }

.pillar--tga:hover .more,
.pillar--tga .more:focus-visible{ color: rgba(49,163,255,.95); }

/* Klick-Feedback nur auf "Mehr erfahren" (sauber) */
.pillar .more:active{
  transform: translateY(1px);
  text-decoration-thickness: 3px;
}

/* Optional: Fokus sichtbar */
.pillar .more:focus-visible{
  outline: 2px solid rgba(255,255,255,.28);
  outline-offset: 4px;
  border-radius: 10px;
}

/* --- Kontaktband: "Rufen Sie uns an" soll auch grün hovern --- */
.section--contact .contact-actions a.btn:hover,
.section--contact .contact-actions a.btn:focus-visible{
  background: rgba(42,163,104,.22);
  border-color: rgba(42,163,104,.55);
}

/* Ghost-Button bleibt dezenter */
.section--contact .contact-actions a.btn--ghost:hover,
.section--contact .contact-actions a.btn--ghost:focus-visible{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.22);
}
/* Mehr erfahren: Farbe NUR wenn direkt auf dem Link */
.pillar .more{
  color: rgba(255,255,255,.90);
  transition: color .18s ease, transform .18s ease, text-decoration-thickness .18s ease;
}

/* Grün/Rot/Blau nur bei Hover auf "Mehr erfahren" */
.pillar--sustain .more:hover,
.pillar--sustain .more:focus-visible{ color: rgba(42,163,104,.95); }

.pillar--fire .more:hover,
.pillar--fire .more:focus-visible{ color: rgba(255,90,95,.95); }

.pillar--tga .more:hover,
.pillar--tga .more:focus-visible{ color: rgba(49,163,255,.95); }

/* Klick-Feedback nur auf dem Link */
.pillar .more:active{
  transform: translateY(1px);
  text-decoration-thickness: 3px;
}
.pillar{ position:relative; }
.pillar-link{ position:absolute; inset:0; border-radius:inherit; z-index:1; }
.pillar > :not(.pillar-link){ position:relative; z-index:2; }
/* 1) Card-Hover soll "Mehr erfahren" NICHT färben (überschreibt alte Regeln) */
.pillar:hover .more{
  color: rgba(255,255,255,.90) !important;
}

/* 2) Farbe NUR wenn man direkt auf "Mehr erfahren" hovert */
.pillar--sustain .more:hover,
.pillar--sustain .more:focus-visible{
  color: rgba(42,163,104,.95) !important;
}

.pillar--fire .more:hover,
.pillar--fire .more:focus-visible{
  color: rgba(255,90,95,.95) !important;
}

.pillar--tga .more:hover,
.pillar--tga .more:focus-visible{
  color: rgba(49,163,255,.95) !important;
}

/* Klick-Feedback nur auf "Mehr erfahren" */
.pillar .more{
  display: inline-block;
  transition: color .18s ease, transform .18s ease, text-decoration-thickness .18s ease;
}
.pillar .more:active{
  transform: translateY(1px);
  text-decoration-thickness: 3px;
}
/* Wenn pillar kein <a> mehr ist, braucht es cursor + hover */
.pillar{
  cursor: default;
}
.pillar:hover{
  transform: translateY(-3px);
}
/* Kontaktband: beide Buttons gleiches Hover-Verhalten erzwingen */
.section--contact .contact-actions .btn:hover{
  background: rgba(42,163,104,.22) !important;
  border-color: rgba(42,163,104,.55) !important;
  transform: translateY(-2px);
}

/* Ghost-Button NICHT anders behandeln (falls vorhanden) */
.section--contact .contact-actions .btn.btn--ghost:hover{
  background: rgba(42,163,104,.22) !important;
  border-color: rgba(42,163,104,.55) !important;
}
.nav-dropdown { position: relative; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 9999;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown.is-open .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}