/* ============================================================
   DEMO: Brandl Solartechnik
   Design: "Sonnenernte" — warmes Off-White, Tannengrün,
   Sonnengold. Weiche Rundungen, viel Licht und Luft.
   ============================================================ */

:root {
  --creme: #FAF8F2;
  --weiss: #FFFFFF;
  --gruen: #1E5B41;
  --gruen-tief: #123D2B;
  --gruen-hell: #E4EFE7;
  --gruen-linie: #D3E2D7;
  --sonne: #F5B32B;
  --sonne-tief: #D99411;
  --sonne-hell: #FCF0D4;
  --text: #2E3A33;
  --text-hell: #5F6E64;
  --radius: 22px;
  --radius-s: 14px;
  --schatten: 0 2px 4px rgba(18, 61, 43, .05), 0 20px 44px -18px rgba(18, 61, 43, .22);
  --font-display: "Epilogue", "Segoe UI", Arial, sans-serif;
  --font-text: "Mulish", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  background: var(--creme);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--gruen-tief);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* --- Demo-Ribbon --- */
.demo-ribbon {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: #0B3B68;
  color: #DCE9F6;
  font-size: .85rem;
  text-align: center;
  padding: .5rem 1rem;
}
.demo-ribbon a { color: #FFC53D; font-weight: 700; text-decoration: none; }
.demo-ribbon a:hover { text-decoration: underline; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 34px;
  left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
}
.header-kapsel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gruen-linie);
  border-radius: 999px;
  padding: .55rem .7rem .55rem 1.4rem;
  box-shadow: var(--schatten);
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--gruen-tief);
}
.logo-sonne {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFD470, var(--sonne));
  position: relative;
  flex: none;
}
.logo-sonne::after {
  content: "";
  position: absolute;
  inset: auto -3px -6px -3px;
  height: 12px;
  background: var(--gruen);
  border-radius: 3px 3px 6px 6px;
}
.hauptnav { display: flex; align-items: center; gap: 1.7rem; }
.hauptnav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: color .15s ease;
}
.hauptnav a:not(.btn):hover { color: var(--gruen); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gruen-tief);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 1rem;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-sonne {
  background: var(--sonne);
  color: var(--gruen-tief);
  box-shadow: 0 12px 26px -10px rgba(217, 148, 17, .6);
}
.btn-sonne:hover { background: #FFC24F; transform: translateY(-2px); }
.btn-gruen { background: var(--gruen); color: var(--weiss); }
.btn-gruen:hover { background: var(--gruen-tief); transform: translateY(-2px); }
.btn-kontur { border-color: var(--gruen-linie); color: var(--gruen-tief); background: var(--weiss); }
.btn-kontur:hover { border-color: var(--gruen); transform: translateY(-2px); }
.btn-gross { padding: 1.05rem 2.2rem; font-size: 1.08rem; }

/* --- Hero --- */
.hero { padding: 170px 0 40px; }
.hero-karte {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-karte::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/pv-hero.jpg") center 30% / cover no-repeat;
  z-index: -2;
}
.hero-karte::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(18, 61, 43, 0) 30%, rgba(18, 61, 43, .82) 78%);
  z-index: -1;
}
.hero-inhalt {
  padding: clamp(1.8rem, 4vw, 3.4rem);
  color: var(--weiss);
  max-width: 44rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  padding: .4rem 1.05rem;
  margin-bottom: 1.3rem;
}
.hero-badge .punkt {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sonne);
  flex: none;
}
.hero h1 {
  color: var(--weiss);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--sonne);
}
.hero p { font-size: 1.18rem; color: #E8F0EA; max-width: 34rem; margin-bottom: 1.9rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Kennzahlen unter dem Hero */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.kennzahl {
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius-s);
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kennzahl-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sonne-hell);
  color: var(--sonne-tief);
  display: grid;
  place-items: center;
}
.kennzahl strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gruen-tief);
  line-height: 1.1;
}
.kennzahl span { font-size: .87rem; color: var(--text-hell); }

/* --- Sektionen --- */
.sektion { padding: 92px 0; }
.sektion-kopf { max-width: 44rem; margin-bottom: 3rem; }
.sektion-kopf.zentriert { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gruen-hell);
  color: var(--gruen);
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  margin-bottom: 1rem;
}
.sektion-kopf h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .9rem; }
.sektion-kopf p { color: var(--text-hell); font-size: 1.12rem; }

/* --- Leistungen --- */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.leistung {
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.leistung:hover { transform: translateY(-6px); box-shadow: var(--schatten); }
.leistung img { height: 190px; width: 100%; object-fit: cover; }
.leistung-text { padding: 1.5rem 1.5rem 1.7rem; }
.leistung h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.leistung p { font-size: .96rem; color: var(--text-hell); }
.leistung-text .merkmale {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gruen);
}
.leistung-text .merkmale li { display: flex; align-items: center; gap: .5rem; }
.leistung-text .merkmale svg { flex: none; }

/* --- Prozess --- */
.prozess { background: var(--gruen-tief); color: #C4D8CB; border-radius: 40px; margin: 0 16px; }
.prozess .sektion-kopf h2 { color: var(--weiss); }
.prozess .sektion-kopf p { color: #9DBBA7; }
.prozess .kicker { background: rgba(245, 179, 43, .15); color: var(--sonne); }
.prozess-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: schritt;
}
.prozess-schritt {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  position: relative;
}
.prozess-schritt::before {
  counter-increment: schritt;
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sonne);
  color: var(--gruen-tief);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.prozess-schritt h3 { color: var(--weiss); font-size: 1.15rem; margin-bottom: .45rem; }
.prozess-schritt p { font-size: .93rem; color: #9DBBA7; }

/* --- Referenzen --- */
.referenzen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.referenzen-grid figure {
  border-radius: var(--radius-s);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.referenzen-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.referenzen-grid figure:hover img { transform: scale(1.05); }
.referenzen-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(18, 61, 43, .8));
  color: var(--weiss);
  font-weight: 700;
  font-size: .92rem;
}

/* --- Testimonial --- */
.stimme {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius);
  overflow: hidden;
}
.stimme img { height: 100%; min-height: 360px; object-fit: cover; }
.stimme-text { padding: clamp(1.6rem, 3vw, 3rem); }
.sterne { color: var(--sonne); font-size: 1.25rem; letter-spacing: .18em; margin-bottom: 1rem; }
.stimme blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--gruen-tief);
  line-height: 1.4;
  margin-bottom: 1.4rem;
}
.stimme cite { font-style: normal; color: var(--text-hell); font-size: .98rem; }
.stimme cite strong { display: block; color: var(--text); }

/* --- CTA-Band --- */
.cta-band {
  background: linear-gradient(120deg, var(--sonne), #FFCB5C);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--gruen-tief); margin-bottom: .4rem; }
.cta-band p { color: #6B4E0A; font-weight: 600; max-width: 30rem; }

/* --- Kontakt --- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.kontakt-wege { list-style: none; display: grid; gap: 1rem; margin-top: 1.8rem; }
.kontakt-wege a {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius-s);
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  color: var(--text-hell);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kontakt-wege a:hover { border-color: var(--gruen); box-shadow: var(--schatten); }
.kontakt-wege .weg-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gruen-hell);
  color: var(--gruen);
  display: grid;
  place-items: center;
}
.kontakt-wege strong { display: block; color: var(--gruen-tief); font-size: 1.02rem; }
.kontakt-wege span { font-size: .86rem; }

.kontakt-formular {
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--schatten);
}
.kontakt-formular h3 { font-size: 1.35rem; margin-bottom: 1.3rem; }
.formular-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feld { display: grid; gap: .32rem; }
.feld.breit { grid-column: 1 / -1; }
.feld label { font-weight: 800; font-size: .86rem; color: var(--gruen-tief); }
.feld input, .feld select, .feld textarea {
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text);
  border: 1.5px solid var(--gruen-linie);
  border-radius: var(--radius-s);
  padding: .78rem 1rem;
  background: var(--creme);
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--gruen);
  background: var(--weiss);
}
.feld textarea { resize: vertical; min-height: 110px; }
.kontakt-formular .btn { width: 100%; margin-top: 1.2rem; }
.formular-hinweis { margin-top: .8rem; font-size: .78rem; color: var(--text-hell); text-align: center; }

/* --- Rentabilitäts-Rechner --- */
.rechner-karte {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--weiss);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
}
.rechner-eingaben { padding: clamp(1.8rem, 3vw, 2.8rem); }
.rechner-eingaben h3 { font-size: 1.35rem; margin-bottom: 1.8rem; }
.regler { margin-bottom: 1.7rem; }
.regler-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .55rem;
}
.regler-kopf label { font-weight: 800; font-size: .95rem; color: var(--gruen-tief); }
.regler-kopf output {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gruen);
  background: var(--gruen-hell);
  border-radius: 999px;
  padding: .15rem .85rem;
  white-space: nowrap;
}
.regler input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sonne), var(--gruen));
  outline: none;
  cursor: pointer;
}
.regler input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--weiss);
  border: 3px solid var(--gruen);
  box-shadow: 0 3px 8px rgba(18, 61, 43, .3);
  transition: transform .15s ease;
}
.regler input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.regler input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--weiss);
  border: 3px solid var(--gruen);
  box-shadow: 0 3px 8px rgba(18, 61, 43, .3);
}
.regler-skala {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-hell);
  margin-top: .35rem;
}
.schalter {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--creme);
  border: 1px solid var(--gruen-linie);
  border-radius: var(--radius-s);
  padding: .95rem 1.15rem;
  cursor: pointer;
  user-select: none;
}
.schalter input { position: absolute; opacity: 0; pointer-events: none; }
.schalter .knubbel {
  flex: none;
  width: 52px; height: 30px;
  border-radius: 999px;
  background: #CFDAD2;
  position: relative;
  transition: background .2s ease;
}
.schalter .knubbel::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--weiss);
  box-shadow: 0 2px 5px rgba(18, 61, 43, .3);
  transition: transform .2s ease;
}
.schalter input:checked + .knubbel { background: var(--gruen); }
.schalter input:checked + .knubbel::after { transform: translateX(22px); }
.schalter input:focus-visible + .knubbel { outline: 3px solid var(--sonne); outline-offset: 2px; }
.schalter strong { display: block; font-size: .97rem; color: var(--gruen-tief); }
.schalter span { font-size: .84rem; color: var(--text-hell); }

.rechner-ergebnis {
  background: var(--gruen-tief);
  color: #C4D8CB;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.ergebnis-haupt { text-align: left; }
.ergebnis-haupt .beschriftung {
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sonne);
}
.ergebnis-haupt strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--weiss);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ergebnis-haupt small { font-size: .92rem; color: #9DBBA7; }
.ergebnis-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.ergebnis-feld {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-s);
  padding: .95rem 1.1rem;
}
.ergebnis-feld span { display: block; font-size: .8rem; color: #9DBBA7; margin-bottom: .15rem; }
.ergebnis-feld strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--weiss);
  font-weight: 700;
}
.autarkie-balken {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  margin-top: .55rem;
}
.autarkie-balken i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sonne), #FFD470);
  transition: width .4s ease;
}
.rechner-fussnote { font-size: .78rem; color: #9DBBA7; margin-top: auto; }
.rechner-cta { margin-top: .4rem; }

/* --- Footer --- */
.site-footer {
  background: var(--gruen-tief);
  color: #9DBBA7;
  padding: 2.3rem 0;
  font-size: .92rem;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer .logo { color: var(--weiss); font-size: 1.1rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #9DBBA7; text-decoration: none; }
.footer-links a:hover { color: var(--weiss); }

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
.reveal-verzoegert-1 { transition-delay: .1s; }
.reveal-verzoegert-2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .leistungen-grid, .referenzen-grid, .kennzahlen { grid-template-columns: 1fr 1fr; }
  .prozess-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-grid, .stimme, .rechner-karte { grid-template-columns: 1fr; }
  .stimme img { min-height: 280px; }
}

@media (max-width: 768px) {
  .sektion { padding: 68px 0; }
  .hero { padding: 150px 0 30px; }
  .hero-karte { min-height: 480px; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .demo-ribbon { font-size: .76rem; }
  .nav-toggle { display: flex; }
  .hauptnav {
    position: fixed;
    top: 112px;
    left: 16px; right: 16px;
    background: var(--weiss);
    border: 1px solid var(--gruen-linie);
    border-radius: var(--radius-s);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.3rem 1.3rem;
    box-shadow: var(--schatten);
    transform: translateY(-150%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .hauptnav a { padding: .9rem 0; border-bottom: 1px solid var(--gruen-hell); }
  .hauptnav .btn { margin-top: 1rem; }
  body.nav-offen .hauptnav { transform: translateY(0); }
  body.nav-offen .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-offen .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-offen .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .leistungen-grid, .kennzahlen, .formular-grid, .prozess-grid, .referenzen-grid, .ergebnis-raster { grid-template-columns: 1fr; }
  .prozess { border-radius: 24px; margin: 0 8px; }
  .kontakt-formular { padding: 1.7rem 1.3rem; }
}
