/* Startseite: Hero, Heizsysteme, Referenz-Slider, Förderung. Wird nur auf der Startseite geladen. */

/* Hero: ein festes Bild, Box mit Satz und Telefon, Aussagen als Leiste */
.frontpage-image { width: 100%; }
.frontpage-image img { display: block; width: 100%; height: min(66vh, 640px); min-height: 540px; object-fit: cover; border-radius: var(--outerradius); }
.frontpagebox p.frontpage-lead { margin-top: 4px; font-size: 1.15em; }
.frontpage-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.frontpagebox a.frontpage-tel { margin-top: 20px; color: #fff; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.frontpage-facts { position: absolute; left: 48px; right: 48px; bottom: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 8px; border-radius: var(--outerradius); background: rgba(0, 0, 0, .5); color: #fff; }
.frontpage-fact { display: flex; align-items: center; gap: 16px; padding: 0 24px; line-height: 1.35; }
.frontpage-fact + .frontpage-fact { border-left: 1px solid rgba(255, 255, 255, .3); }
.frontpage-fact img { flex: 0 0 auto; width: 40px; height: 40px; object-fit: contain; }
.frontpage-fact p { margin: 0; color: #fff; }
.frontpage-fact a { color: #fff; text-decoration: underline; }

@media (min-width: 1201px) {
  .frontpagebox { top: 40px; max-width: 640px; padding: 40px 48px 40px 72px; }
  .frontpagebox h1 { font-size: 3.4em; line-height: 1.08; }
  .frontpagebox p.subtitleh1 { font-size: 1.25em; }
}

@media (max-width: 1200px) {
  .frontpage { flex-wrap: wrap; }
  .frontpagebox { bottom: auto; height: min(66vh, 640px); min-height: 540px; border-radius: var(--outerradius); background: linear-gradient(20deg, #007eb4cc 0, #00b4afcc 60%, #00b48ccc 100%); }
  .frontpage-facts { position: static; width: 100%; margin-top: 12px; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 8px; background: #235861; }
  .frontpage-fact + .frontpage-fact { border-left: 0; }
}

/* Hero-Badge: führt direkt zum Fördercheck */
a.frontpage-badge { position: absolute; right: 56px; bottom: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 172px; height: 172px; border-radius: 50%; background: #fff; box-shadow: 5px 5px 18px rgba(0, 0, 0, .28); color: #007979; line-height: 1.15; text-align: center; text-decoration: none; transform: rotate(-8deg); transition: transform .2s ease; }
a.frontpage-badge:hover { transform: rotate(-8deg) scale(1.06); }
a.frontpage-badge:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.frontpage-badge span { font-size: .95em; font-weight: 400; }
.frontpage-badge strong { color: #00838a; font-size: 2.7em; font-weight: 500; line-height: 1; }
.frontpage-badge em { margin-top: 6px; font-size: .82em; font-style: normal; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1200px) {
  a.frontpage-badge { top: 16px; right: 16px; bottom: auto; width: 124px; height: 124px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  a.frontpage-badge { transition: none; }
}

/* Heizsysteme als Bildkacheln */
.home-systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 32px 0 48px; text-align: left; }
a.home-system { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--outerradius); color: #fff; text-decoration: none; }
.home-system img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-system:hover img { transform: scale(1.04); }
.home-system-label { position: absolute; left: 0; right: 40px; bottom: 32px; padding: 22px 24px 24px 32px; border-radius: 0 var(--outerradius) var(--outerradius) 0; background: linear-gradient(20deg, #007eb4cc 0, #00b4afcc 60%, #00b48ccc 100%); }
.home-system-label strong { display: block; font-size: 1.6em; font-weight: 500; line-height: 1.2; }
.home-system-label span { display: block; margin-top: 6px; line-height: 1.35; }
#heizsysteme > a.button, #referenzen > a.button { margin: 0 auto; }

/* Referenz-Slider */
.home-refs { margin: 32px 0 48px; text-align: left; }
.home-refs:not(.slick-initialized) .home-ref + .home-ref { display: none; }
.home-ref { position: relative; }
.home-ref > img { display: block; width: 100%; height: 600px; object-fit: cover; border-radius: var(--outerradius); }
.home-ref-caption { position: absolute; right: 48px; bottom: 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 640px; max-width: calc(100% - 96px); padding: 24px 28px; border-radius: var(--outerradius); background: rgba(0, 0, 0, .5); color: #fff; }
.home-ref-caption p { margin: 0; color: #fff; line-height: 1.35; }
.home-ref-caption strong { display: block; margin: 2px 0 6px; font-size: 1.5em; font-weight: 500; line-height: 1.2; }
.home-ref-nav { display: flex; flex: 0 0 auto; gap: 20px; }
.home-ref-nav span { padding: 6px; cursor: pointer; }

/* Förderung als farbige Fläche */
.home-foerder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; padding: 64px; border-radius: var(--outerradius); background: linear-gradient(20deg, #007eb4 0, #00b4af 60%, #00b48c 100%); }
.home-foerder p, .home-foerder p.subtitle, .home-foerder h2 { color: #fff; text-align: left; }
.home-foerder h2 { margin-bottom: 20px; }
.home-foerder p { margin-bottom: 0; }
.home-foerder p.subtitle { margin-bottom: 8px; }
.home-foerder-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.home-foerder a.button3 { margin: 0; }
.home-foerder a.home-foerder-main { height: 52px; padding: 0 30px; border-radius: 26px; font-size: 1.15em; line-height: 52px; }
.home-foerder a.home-foerder-more { color: #fff; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
a.home-foerder-figure { display: block; color: #fff; line-height: 1.2; text-align: center; text-decoration: none; }
.home-foerder-figure span { display: block; font-size: 1.5em; font-weight: 400; }
.home-foerder-figure strong { display: block; font-size: 6.5em; font-weight: 500; line-height: 1; }

/* Telefonnummer im Kontakt-Block */
a.hometel { display: inline-block; margin-top: 8px; color: #000; font-size: 1.5em; font-weight: 500; line-height: 1.3; text-decoration: none; }

@media (max-width: 980px) {
  .home-systems { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  a.home-system { aspect-ratio: 4 / 3; }
  .home-ref > img { height: 320px; border-radius: var(--outerradius) var(--outerradius) 0 0; }
  .home-ref-caption { position: static; width: 100%; max-width: none; border-radius: 0 0 var(--outerradius) var(--outerradius); background: #235861; }
  .home-foerder { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-system img { transition: none; }
}
