/* Interaktive Hausansicht - Contao-seitige Ergaenzungen
   (Textebene mit Button)
   Bewusst NICHT in hausansicht.css: die Datei wird bei jedem neuen Export
   von David komplett ersetzt, diese hier bleibt davon unberuehrt.

   Groessen in cqw (Prozent der Hero-Breite), damit die Textebene exakt so
   mitskaliert wie die Grafik - der Hero hat ein festes Seitenverhaeltnis.
   Farben kommen aus :root in hausansicht.css (--haus-accent).
   Die Groessen sind aus Davids Screenshot vom 22.09.2026 gemessen
   (Hero 1296 breit: Kicker 21px, Headline 42px, Subline 18,5px,
   Button-Text 17px) und in cqw umgerechnet. Schrift ist Lato. */

.haus-hero{ container-type: inline-size; }

/* Hoehe ueber das Seitenverhaeltnis absichern: custom.scss setzt
   #head #hausHero { height: auto !important; } und hebelt damit die feste
   height:433px aus hausansicht.css aus - der Hero fiel auf 0 px zusammen.
   Mit aspect-ratio ergibt auch height:auto wieder 1296 x 433. (03.11.2026) */
.haus-hero{ aspect-ratio: 1296 / 433; }

.haus-text{
  position: absolute;
  left: 5.5%;
  top: 19.7%;   /* 03.11.2026: von 23,5% (Rahmen 378 hoch) auf 433 hoch umgerechnet - gleiche Lage zum Haus */
  z-index: 3;
  max-width: 38%;
  color: #111111;
}

.haus-text__kicker{
  margin: 0 !important;
  font-size: 1.62cqw;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .02em;
}

.haus-text__headline{
  margin: .15cqw 0 0 !important;
  font-size: 3.24cqw;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-shadow: 0px 0px 7px rgba(255,255,255,0.53);
}

.haus-text__sub{
  margin: .55cqw 0 0 !important;
  font-size: 1.43cqw;
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0px 0px 7px rgba(255,255,255,0.55);
}

.haus-text__btn{
  display: inline-flex;
  align-items: center;
  gap: .75cqw;
  margin-top: 1.4cqw;
  padding: .88cqw 2.0cqw;
  border-radius: 999px;
  background: var(--haus-accent, #00969b);
  background: linear-gradient(333deg,rgba(3, 150, 156, 1) 0%, rgba(29, 34, 37, 1) 100%);
  color: #ffffff !important;
  font-size: 1.31cqw;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.haus-text__btn:hover,
.haus-text__btn:focus-visible{
  background: #007b80;
  color: #ffffff;
  transform: translateY(-1px);
}
.haus-text__btn svg{
  width: 1.45cqw;
  height: 1.45cqw;
  flex: none;
}

/* ---------- Fade-in je Zeile ---------- */
@keyframes hausTextIn{
  from{ opacity: 0; transform: translateY(14px); }
  to  { opacity: 1; transform: none; }
}

.haus-text > *{
  opacity: 0;
  animation: hausTextIn .8s cubic-bezier(.22,.61,.36,1) both;
}
.haus-text > *:nth-child(1){ animation-delay: .15s; }
.haus-text > *:nth-child(2){ animation-delay: .30s; }
.haus-text > *:nth-child(3){ animation-delay: .45s; }
.haus-text > *:nth-child(4){ animation-delay: .60s; }

@media (prefers-reduced-motion: reduce){
  .haus-text > *{ opacity: 1; animation: none; }
  .haus-text__btn{ transition: none; }
  .haus-text__btn:hover{ transform: none; }
}
