/* Elektro Sommer – Landing nach Nox-Vorbild */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --bg-3: #141414;
  --card: #ffffff;
  --card-muted: #f4f4f4;
  --text: #f5f5f5;
  --text-muted: #b8b8b8;
  --text-dark: #111111;
  --text-dark-muted: #5a5a5a;
  --yellow: #ffd400;
  --yellow-2: #ffe14a;
  --green: #22c55e;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--yellow);
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.95rem 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-yellow {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 10px 30px rgba(255, 212, 0, 0.28);
}
.btn-yellow:hover {
  background: var(--yellow-2);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-dark {
  background: #111;
  color: #fff;
}
.btn-lg {
  padding: 1.1rem 1.9rem;
  font-size: 1.05rem;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.logo img {
  height: 42px;
  width: auto;
}
.logo span {
  font-size: 0.95rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--yellow);
}
.nav-cta {
  margin-left: 0.4rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 55%, #050505 100%),
    url("/images/elektrosommer-hero-house-pv.jpg") center / cover no-repeat;
}
.hero-content {
  width: min(100% - 2rem, 920px);
  padding: 5rem 0 4rem;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0 auto 1.6rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.8rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-item .check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Logo strip */
.logo-strip {
  padding: 1.5rem 0 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.logo-strip-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  opacity: 0.72;
}
.logo-pill {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.2rem;
}

.google-badge {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0.5rem;
}
.google-badge span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.stars {
  color: var(--yellow);
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-dark {
  background: var(--bg);
}
.section-alt {
  background: linear-gradient(180deg, #0a0a0a, #121212);
}
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}
.section-head p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--text-muted);
}

/* Quiz / Dachform */
.progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  max-width: 520px;
  margin: 0 auto 1.8rem;
}
.progress span {
  height: 6px;
  border-radius: 99px;
  background: #2a2a2a;
}
.progress span.on {
  background: var(--yellow);
}

.roof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.roof-card {
  appearance: none;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  padding: 1.1rem 0.8rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.roof-card:hover,
.roof-card.active {
  border-color: var(--yellow);
  background: #1a1808;
  transform: translateY(-2px);
}
.roof-card img {
  width: 100%;
  max-width: 140px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 0.8rem;
}
.roof-card strong {
  display: block;
  font-size: 1rem;
}

.quiz-panel {
  display: none;
}
.quiz-panel.active {
  display: block;
  animation: fadeUp 0.35s ease both;
}
.quiz-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
}
.choice {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
}
.choice.active,
.choice:hover {
  border-color: var(--yellow);
  background: #1a1808;
}

.lead-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}
.lead-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
  color: #fff;
  padding: 0.85rem 0.95rem;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(255, 212, 0, 0.45);
  border-color: var(--yellow);
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.form-msg {
  margin-top: 0.8rem;
  text-align: center;
  font-weight: 600;
}
.form-msg.ok {
  color: var(--green);
}
.form-msg.err {
  color: #ff6b6b;
}

/* Calculator */
.calc-wrap {
  background: #0b0b0b;
  border-radius: 28px;
  padding: 1.2rem;
}
.calc-card {
  background: var(--card);
  color: var(--text-dark);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 212, 0, 0.35);
}
.calc-row {
  padding: 1.1rem 0;
  border-bottom: 1px solid #ececec;
}
.calc-row:last-child {
  border-bottom: 0;
}
.calc-row-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.calc-row-head .val {
  color: #c9a400;
  white-space: nowrap;
}
.slider {
  width: 100%;
  accent-color: var(--yellow);
}
.slider-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--text-dark-muted);
  font-size: 0.82rem;
}
.info-box {
  background: #eef7ff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #1f3a56;
  font-size: 0.92rem;
  margin: 0.8rem 0 1rem;
}
.storage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.storage-card {
  position: relative;
  border: 1.5px solid #e4e4e4;
  border-radius: 14px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.storage-card.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.2);
}
.storage-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.storage-card strong {
  display: block;
  margin: 0.35rem 0 0.15rem;
}
.storage-card small {
  color: var(--text-dark-muted);
  font-size: 0.78rem;
}
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.extra {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 0.85rem;
  cursor: pointer;
  background: #fff;
}
.extra.active {
  border-color: var(--yellow);
  background: #fffceb;
}
.extra input {
  accent-color: var(--yellow);
  width: 1.1rem;
  height: 1.1rem;
}
.extra .price {
  color: #c9a400;
  font-weight: 700;
  white-space: nowrap;
}
.offer-box {
  margin-top: 1.4rem;
  border: 2px solid var(--yellow);
  border-radius: 20px;
  padding: 1.4rem 1rem;
  text-align: center;
  background: #fff;
}
.offer-pill {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.offer-box h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.45rem;
}
.offer-price {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0.6rem 0 1rem;
}
.offer-cta-card {
  background: #fff8d6;
  border-radius: 16px;
  padding: 1.1rem;
  margin: 0 auto 1rem;
  max-width: 360px;
}
.include-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1rem;
  text-align: left;
  max-width: 720px;
  margin: 1rem auto 0;
}
.include-list li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
}
.include-list .tick {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 0.15rem;
}
.include-list strong {
  display: block;
}
.include-list span {
  color: var(--text-dark-muted);
  font-size: 0.85rem;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.stat {
  background: #f7f7f7;
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.25rem;
  font-family: var(--display);
}
.stat span {
  color: var(--text-dark-muted);
  font-size: 0.85rem;
}

/* Content blocks */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.split.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.split img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.eyebrow {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.fund-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.fund-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.fund-list .ico {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(255, 212, 0, 0.15);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Referenzen */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ref-card {
  background: #121212;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ref-card img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}
.ref-card .meta {
  padding: 0.9rem 1rem 1.1rem;
}
.ref-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.ref-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}
.faq details {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details[open] summary {
  color: var(--yellow);
  margin-bottom: 0.55rem;
}
.faq p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact / Footer */
.contact-section {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 212, 0, 0.12), transparent 70%),
    #0a0a0a;
}
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #070707;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.05rem;
}
.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--text-muted);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer a:hover {
  color: var(--yellow);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  font-size: 1.55rem;
}
.wa-float:hover {
  transform: scale(1.05);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 8, 8, 0.98);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.2rem;
  }
  .nav.open a {
    padding: 0.75rem 0.5rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .roof-grid,
  .storage-grid,
  .ref-grid,
  .include-list,
  .stats-row,
  .footer-grid,
  .split,
  .split.reverse,
  .extras-grid,
  .lead-form .row {
    grid-template-columns: 1fr;
  }
  .roof-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .roof-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 78vh;
  }
}
