/* Areal Werke – Solar (Werk 04). Hellgelb, Hellgrau, Weiss; Schrift und Knöpfe in Anthrazit.
   Gleiche Formensprache wie die Seite Immobilienverwaltung (Poppins leicht, kantig, ruhig). */
:root {
  --so-text: #21262A;
  --so-gelb: #FFC61A;
  --so-hellgelb: #FFF4C2;
  --so-grau: #F1F3F2;
  --so-grau-2: #E6E9E7;
  --so-weiss: #FFFFFF;
  --so-leise: #5B636A;
  --so-linie: #DDE1DF;
  --so-dunkel: #2B3035;
  --aw-rot: #FFC61A;            /* Namen aus dem Cookie-Banner (Gruppenstandard) */
  --aw-anthrazit: #21262A;
  --aw-grau-700: #4A5157;
  --hell-70: rgba(255, 255, 255, 0.74);
  --hell-45: rgba(255, 255, 255, 0.45);
  --kopf-h: 4.25rem;
  --contact-bar-h: 0px;
  --rand: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  color: var(--so-text); background: var(--so-grau);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--so-text); outline-offset: 3px; border-radius: 2px; }
.schluss :focus-visible, .fuss :focus-visible { outline-color: var(--so-gelb); }
[hidden] { display: none !important; }
section[id], form[id], [id^="station-"] { scroll-margin-top: calc(var(--kopf-h) + 0.75rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 500; background: #fff; padding: 0.6rem 1rem; border-radius: 4px; }
.skip-link:focus { top: 1rem; }
.rahmen { width: min(1180px, 100% - 2 * var(--rand)); margin: 0 auto; }
.rahmen--schmal { width: min(780px, 100% - 2 * var(--rand)); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 3px;
  font-weight: 500; font-size: 0.95rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--lg { min-height: 54px; padding: 0.9rem 1.8rem; font-size: 1rem; }
.btn--primary { background: var(--so-text); color: #fff; }
.btn--primary:hover { background: #0F1214; }
.btn--ghost { background: transparent; color: var(--so-text); border-color: var(--so-text); }
.btn--ghost:hover { background: var(--so-text); color: #fff; }
.btn--gelb { background: var(--so-gelb); color: var(--so-text); }
.btn--gelb:hover { background: #FFD44F; }
.btn--linie { background: transparent; color: #fff; border-color: var(--hell-45); }
.btn--linie:hover { border-color: #fff; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 300; height: var(--kopf-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--rand);
  background: var(--so-hellgelb); transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.kopf.is-fest { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(33, 38, 42, 0.08); }
.kopf__logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.kopf__logo img { height: 32px; width: auto; }
.kopf__logo span { padding-left: 0.7rem; border-left: 1.5px solid rgba(33, 38, 42, 0.35); line-height: 1.1; }
.kopf__nav { display: none; gap: 1.6rem; margin-left: auto; font-size: 0.9rem; }
.kopf__nav a { text-decoration: none; color: var(--so-leise); }
.kopf__nav a:hover { color: var(--so-text); }
.kopf__tel { margin-left: auto; text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.kopf__cta { display: none; min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.88rem; }
@media (min-width: 980px) { .kopf__nav { display: flex; } .kopf__tel { margin-left: 0; } .kopf__cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 12% 0%, #FFE98A 0%, var(--so-hellgelb) 38%, var(--so-grau) 100%);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero__raster { position: relative; display: grid; gap: 2.2rem; }
.werk-marke { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; font-size: 0.86rem; font-weight: 500; }
.werk-marke::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--so-gelb); box-shadow: 0 0 0 5px rgba(255, 198, 26, 0.28); }
.hero h1 { font-weight: 300; font-size: clamp(2rem, 7.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.hero__lead { margin-top: 1.2rem; max-width: 34rem; font-size: 1.08rem; color: #3D444A; }
.haken { margin-top: 1.5rem; display: grid; gap: 0.4rem; font-size: 0.95rem; color: #3D444A; }
.haken li { position: relative; padding-left: 1.5rem; }
.haken li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.42em; width: 0.72rem; height: 0.38rem;
  border-left: 2px solid var(--so-text); border-bottom: 2px solid var(--so-text); transform: rotate(-45deg);
}
.hero__mehr { display: none; margin-top: 1.9rem; font-weight: 500; text-underline-offset: 0.35em; text-decoration-color: var(--so-gelb); text-decoration-thickness: 2px; }
@media (min-width: 980px) {
  .hero__raster { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; align-items: center; }
  .hero__mehr { display: inline-block; }
}

/* ---------- Formular ---------- */
.formular {
  position: relative; background: #fff; border-radius: 6px; padding: clamp(1.3rem, 2.8vw, 2.1rem);
  box-shadow: 0 30px 60px -30px rgba(33, 38, 42, 0.35), 0 2px 6px rgba(33, 38, 42, 0.06);
  border-top: 4px solid var(--so-gelb);
}
.formular h2 { font-size: 1.55rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.formular__unter { margin: 0.25rem 0 1.2rem; font-size: 0.9rem; color: var(--so-leise); }
.wahl legend, .feld label { display: block; margin-bottom: 0.4rem; font-size: 0.86rem; font-weight: 500; }
.wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.wahl legend { width: 100%; float: left; }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; }
.wahl span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; border: 1.5px solid var(--so-linie); border-radius: 999px; font-size: 0.9rem; cursor: pointer; }
.wahl input:checked + span { background: var(--so-text); border-color: var(--so-text); color: #fff; }
.wahl input:focus-visible + span { outline: 3px solid var(--so-gelb); outline-offset: 2px; }
.formular__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.feld { min-width: 0; }
.feld--breit { grid-column: 1 / -1; }
.feld__frei { font-weight: 400; color: var(--so-leise); }
.feld input, .feld textarea, .feld select {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; font: inherit; font-size: 1rem; color: var(--so-text);
  background: var(--so-grau); border: 1.5px solid var(--so-linie); border-radius: 4px;
}
.feld textarea { resize: vertical; min-height: 72px; }
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: none; border-color: var(--so-text); background: #fff; }
.hp-feld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular__senden { width: 100%; margin-top: 1.3rem; }
.formular__hinweis { margin-top: 0.8rem; font-size: 0.8rem; color: var(--so-leise); }
.formular__stand { margin-top: 0.5rem; font-size: 0.9rem; }
.formular__stand.is-fehler { color: #A3150F; font-weight: 500; }
.formular.is-gesendet > *:not(.formular__fertig) { display: none; }
.formular__fertig { padding: 1.5rem 0; }
.formular__fertig strong { display: block; font-weight: 300; font-size: 1.7rem; line-height: 1.2; margin-bottom: 0.7rem; }
.formular__fertig p { color: var(--so-leise); }

/* ---------- Der Weg des Sonnenstrahls (3D-Bühne) ---------- */
.weg { position: relative; background: var(--so-grau); }
.weg__buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--so-grau); }
.weg__canvas { position: absolute; inset: 0; }
.weg__canvas canvas { display: block; width: 100%; height: 100%; }
.weg__tags { position: absolute; inset: 0; pointer-events: none; }
.weg-tag {
  position: absolute; top: 0; left: 0; opacity: 0; margin: -0.95em 0 0 12px;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem; background: rgba(255, 255, 255, 0.94); border-radius: 999px;
  box-shadow: 0 4px 14px rgba(33, 38, 42, 0.14);
  font-size: 0.78rem; font-weight: 500; white-space: nowrap; color: var(--so-text);
  transition: opacity 0.25s linear; will-change: transform;
}
.weg-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.45rem; border-radius: 50%; background: var(--so-gelb); vertical-align: 0.05em; }
.weg-tag--links { margin-left: 0; translate: calc(-100% - 12px) 0; }
.weg__schleier {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(241, 243, 242, 0.98) 0%, rgba(241, 243, 242, 0.94) 38%, rgba(241, 243, 242, 0) 62%);
}
html.no-webgl .weg__buehne { background: linear-gradient(180deg, var(--so-hellgelb), var(--so-grau)); }

.rundgang { position: sticky; top: 50vh; height: 0; z-index: 5; visibility: hidden; }
.rundgang li { position: absolute; right: 1.4rem; }
.rundgang li:nth-child(1) { top: -4.5rem; } .rundgang li:nth-child(2) { top: -2.5rem; }
.rundgang li:nth-child(3) { top: -0.5rem; } .rundgang li:nth-child(4) { top: 1.5rem; } .rundgang li:nth-child(5) { top: 3.5rem; }
.rundgang__dot { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; height: 1.6rem; text-decoration: none; font-size: 0.75rem; color: var(--so-leise); }
.rundgang__dot span { opacity: 0; transition: opacity 0.2s ease; }
.rundgang__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(33, 38, 42, 0.4); transition: all 0.2s ease; }
.rundgang__dot:hover span, .rundgang__dot:focus-visible span, .rundgang__dot.is-active span { opacity: 1; }
.rundgang__dot.is-active { color: var(--so-text); }
.rundgang__dot.is-active::after { background: var(--so-gelb); border-color: var(--so-text); transform: scale(1.25); }
@media (min-width: 900px) { html.has-webgl .rundgang { visibility: visible; } }
@media (max-width: 899px) { .weg-tag { font-size: 0.7rem; padding: 0.2rem 0.55rem 0.2rem 0.45rem; background: rgba(255, 255, 255, 0.9); } }

.weg__stationen { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.station { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--kopf-h) + 1rem) var(--rand) calc(var(--contact-bar-h) + 2rem); }
.station__text { max-width: 34rem; }
.station h2 { font-weight: 300; font-size: clamp(1.75rem, 6.4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.station h2 + p { margin-top: 1.1rem; }
.station p { color: #3D444A; }
.station__ort { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 0.86rem; font-weight: 500; color: var(--so-text) !important; }
.station__ort::before { content: ""; width: 1.6rem; height: 3px; background: var(--so-gelb); }
.station__cta { margin-top: 1.6rem; }
.station__weiter { display: inline-block; margin-top: 1.4rem; font-weight: 500; text-underline-offset: 0.35em; text-decoration-color: var(--so-gelb); text-decoration-thickness: 2px; }
@media (min-width: 900px) {
  .weg__schleier { background: linear-gradient(to right, rgba(241, 243, 242, 0.97) 0%, rgba(241, 243, 242, 0.86) 28%, rgba(241, 243, 242, 0) 56%); }
  .station { align-items: center; padding-bottom: 3rem; }
  .station__text { max-width: min(36rem, 40vw); }
  html.has-webgl .station .station__text { opacity: 0.2; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
  html.has-webgl .station.is-active .station__text { opacity: 1; transform: none; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.abschnitt--gelb { background: var(--so-hellgelb); }
.abschnitt--weiss { background: #fff; }
.abschnitt--hell { background: var(--so-grau); }
.titel { max-width: 24ch; font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.titel--hell { color: #fff; }

.leistungen { margin: 2.8rem 0; display: grid; gap: 2.2rem; }
.leistungen h3 { font-size: 1.05rem; font-weight: 600; padding-bottom: 0.8rem; border-bottom: 2px solid var(--so-text); }
.leistungen li { padding: 0.7rem 0; border-bottom: 1px solid rgba(33, 38, 42, 0.14); font-size: 0.97rem; color: #3D444A; }
@media (min-width: 820px) { .leistungen { grid-template-columns: repeat(3, 1fr); gap: 2.8rem; } }

.schritte { margin-top: 3rem; display: grid; gap: 2.2rem; counter-reset: s; }
.schritte li { counter-increment: s; padding-top: 1.2rem; border-top: 2px solid var(--so-text); }
.schritte li::before { content: counter(s); display: block; margin-bottom: 0.6rem; font-weight: 300; font-size: 3rem; line-height: 1; color: #C99700; }
.schritte h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.schritte p { color: var(--so-leise); font-size: 0.98rem; }
@media (min-width: 820px) { .schritte { grid-template-columns: repeat(3, 1fr); gap: 2.8rem; } }
.gruender { margin-top: clamp(3.5rem, 7vw, 5.5rem); display: grid; gap: 1.8rem; align-items: center; }
.gruender img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; }
.gruender__zitat { font-weight: 300; font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.gruender__namen { margin-top: 1rem; font-size: 0.92rem; color: var(--so-leise); }
@media (min-width: 820px) { .gruender { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; } }

.fragen { margin-top: 2.2rem; border-top: 1px solid var(--so-linie); }
.fragen details { border-bottom: 1px solid var(--so-linie); }
.fragen summary { position: relative; list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 500; font-size: 1.08rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem;
  border-right: 2px solid var(--so-text); border-bottom: 2px solid var(--so-text); transform: rotate(45deg); transition: transform 0.2s ease;
}
.fragen details[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.fragen details p { padding: 0 2.5rem 1.4rem 0; color: #3D444A; }

.schluss { background: var(--so-dunkel); color: #fff; padding: clamp(4rem, 9vw, 7rem) 0; }
.schluss__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.schluss__mail { margin-top: 1.4rem; color: var(--hell-70); }

.fuss { background: #22262A; color: var(--hell-70); padding: 3rem 0 calc(3rem + var(--contact-bar-h)); font-size: 0.88rem; line-height: 1.9; }
.fuss__raster { display: grid; gap: 1.8rem; }
.fuss img { width: 130px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 820px) { .fuss__raster { grid-template-columns: 1.1fr 1.3fr 1fr 1fr; align-items: start; } }

/* ---------- Leiste unten (nur Handy) ---------- */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 380; display: grid; grid-template-columns: 1fr 1.4fr; height: 56px;
  transform: translateY(100%); transition: transform 0.25s ease; box-shadow: 0 -6px 20px rgba(33, 38, 42, 0.2);
}
.leiste a { display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.95rem; text-decoration: none; background: #fff; color: var(--so-text); }
.leiste .leiste__cta { background: var(--so-text); color: #fff; }
.leiste.is-da { transform: none; }
@media (max-width: 979px) { :root { --contact-bar-h: 56px; } }
@media (min-width: 980px) { .leiste { display: none; } }

/* ---------- Cookie-Banner (Gruppenstandard, js/consent.js) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 390; max-height: 30vh; overflow-y: auto;
  background: #fff; color: var(--so-text); border-top: 3px solid var(--so-gelb);
  box-shadow: 0 -10px 30px rgba(33, 38, 42, 0.18); padding: 0.7rem 1rem;
}
.cookie-banner__inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.cookie-banner__text { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--aw-grau-700); }
.cookie-banner__text a { color: inherit; }
.cookie-banner__text strong { display: block; font-size: 0.86rem; margin-bottom: 0.15rem; color: var(--so-text); }
.cookie-banner__text p { margin: 0; }
.cookie-banner__more { grid-column: 1 / -1; font-size: 0.76rem; }
.cookie-banner__options[hidden] { display: none; }
.cookie-banner__options { margin-top: 0.4rem; display: grid; gap: 0.35rem; font-size: 0.78rem; color: var(--aw-grau-700); }
.cookie-banner__options label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.cookie-banner__options input { accent-color: var(--so-text); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; align-items: center; }
.cookie-banner__actions .btn { width: 100%; min-height: 44px; padding: 0.55rem 0.5rem; font-size: 0.8rem; }
.cookie-banner__link { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: 0.76rem; color: var(--aw-grau-700); text-decoration: underline; cursor: pointer; }
@media (min-width: 900px) {
  .cookie-banner { padding: 0.75rem 1.5rem; }
  .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; column-gap: 1.5rem; }
  .cookie-banner__options { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 1.5rem; }
  .cookie-banner__actions { grid-template-columns: auto auto auto; }
  .cookie-banner__actions .btn { width: auto; min-width: 160px; }
  .cookie-banner__link { grid-column: auto; margin-left: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
