/* ==========================================================================
   Photovoltaik-Le — style.css
   Statische Website, keine externen Requests, keine Google Fonts.
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------ */
:root {
  --accent:        #2bc5a0;
  --accent-strong: #1aa886;
  --accent-soft:   #e8f8f3;

  --ink:           #16211e;
  --ink-soft:      #4a5c57;
  --ink-faint:     #7b8a86;

  --bg:            #ffffff;
  --bg-soft:       #f6f8f7;
  --line:          #e3e9e7;

  --dark:          #0b2f2a;
  --dark-2:        #082421;

  --radius:        14px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(11, 47, 42, .06);
  --shadow:        0 10px 30px rgba(11, 47, 42, .09);
  --shadow-lg:     0 22px 60px rgba(11, 47, 42, .14);

  --wrap:          1140px;
  --gap:           clamp(1.25rem, 3vw, 2.5rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-strong); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* --- Typografie --------------------------------------------------------- */
.overline {
  display: block;
  margin: 0 0 1rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}
.overline--ink { color: var(--accent-strong); }

.h1 {
  font-size: clamp(2rem, 1.2rem + 4vw, 3.75rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}

.h2 {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.h3 {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  letter-spacing: .02em;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: var(--dark-2);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #35d7b0; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn__icon { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.nav a {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { color: var(--accent-strong); }
.nav .btn { padding: .6rem 1.15rem; font-size: .75rem; }

.nav__links { display: contents; }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 86vh, 880px);
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(11, 47, 42, .25), rgba(8, 36, 33, .85) 70%),
    linear-gradient(180deg, rgba(8, 36, 33, .55) 0%, rgba(8, 36, 33, .8) 100%);
}

.hero__inner { padding-block: clamp(5rem, 12vh, 8rem); max-width: 41rem; }
.hero .h1 { margin-bottom: 1.25rem; }
.hero__sub {
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem);
  color: rgba(255, 255, 255, .84);
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark-2);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  animation: bob 2.6s ease-in-out infinite;
}
.hero__scroll svg { width: 20px; height: 20px; fill: currentColor; }
.hero__scroll:hover { background: #35d7b0; }

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* --- Vorteile ----------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.figure figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(8, 36, 33, .72);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.figure figcaption::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }

.benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.125rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.benefit:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.benefit__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.benefit__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { margin-bottom: .25rem; }
.benefit p  { margin: 0; color: var(--ink-soft); }

/* --- Referenzen --------------------------------------------------------- */
/* 3 Referenzen: 1 oder 3 Spalten — nie eine angebrochene Reihe */
.gallery {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-soft);
}

/* Caption: kWp-Wert prominent, darunter belegte Zusatzangaben (Ausrichtung,
   ggf. Ort, Monat/Jahr). Grid, damit der Akzentpunkt an der ersten Zeile sitzt
   und die Zweitzeile sauber darunter ausgerichtet bleibt. */
.card figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: .55rem;
  row-gap: .15rem;
  padding: 1rem 1.125rem;
}
.card figcaption::before {
  content: "";
  grid-row: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.card__kwp {
  grid-column: 2;
  font-weight: 700;
  letter-spacing: .05em;
}
.card__meta {
  grid-column: 2;
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-faint);
  text-wrap: balance;
}

.gallery-note {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  color: var(--ink-soft);
}
.gallery-note .btn { margin-top: 1rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 1rem; max-width: 60rem; margin-inline: auto; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: clamp(1rem, .97rem + .25vw, 1.125rem);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details[open] summary { color: var(--accent-strong); }
.faq p { margin: 0; padding: 0 1.5rem 1.5rem; color: var(--ink-soft); }

/* --- Kontakt ------------------------------------------------------------ */
.contact {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact .lead { color: rgba(255, 255, 255, .82); margin-inline: auto; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
  margin-top: 2rem;
}
.contact__meta {
  margin-top: 2rem;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .62);
}
.contact__meta a { color: rgba(255, 255, 255, .82); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--dark-2);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: .9375rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.site-footer h2 {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: .9rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer p { margin: 0 0 .5rem; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-brand svg { width: 26px; height: 26px; }

.social {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  margin-top: .5rem;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--dark-2); }

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
}

/* --- Rechtstexte (Impressum / Datenschutz) ------------------------------ */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); letter-spacing: .06em; text-transform: uppercase; }
.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.1875rem;
  letter-spacing: .04em;
}
.legal h3 { margin-top: 1.75rem; font-size: 1.0625rem; }
.legal address { font-style: normal; }
.legal .note {
  padding: 1.125rem 1.375rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}
.legal .note p:last-child { margin-bottom: 0; }

.legal-date {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-faint);
}

mark {
  background: #ffe9a8;
  color: #4a3a00;
  padding: .1em .45em;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .hero__scroll, .btn { display: none !important; }
  body { color: #000; }
}
