/* ============================================================
   PV-LANDINGPAGE – Ergänzungen zum geteilten Basis-Design
   (Basis: styles-light.css – hier nur PV-spezifische Zusätze)
   ============================================================ */

/* ── Hero-Hintergrundbild (Platzhalter bis Foto eingesetzt) ─ */
.hero { background-image: url('img/pv-hero.jpg'); background-color: var(--ink); }

/* ── Hero: USP-Chips unter den Buttons ───────────────────── */
.hero-usps {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px;
  margin-top: 30px;
}
.hero-usps li {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: #fff;
}
.hero-usps svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
@media (max-width: 560px) {
  .hero-usps { gap: 10px 18px; margin-top: 24px; }
  .hero-usps li { font-size: 13.5px; }
}

/* ── Platzhalter-Fallback für noch fehlende Hintergrundbilder ─
   Solange die jeweilige Bilddatei fehlt, erscheint eine saubere
   Markenfläche statt eines leeren/kaputten Bereichs.            */
.bento-card.photo { background: linear-gradient(135deg, var(--blue), var(--blue-700)); }
.g-item { background-color: var(--blue-soft); }

/* ── Eigenständige Landing Page: schlanker Footer ohne Seiten-Links ─ */
@media (min-width: 1041px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
}

/* ============================================================
   DESIGN-REFRESH (Blau-Weiß) – PV-Landingpage
   ============================================================ */

/* Hero: blau getönter Verlauf statt neutralem Dunkel-Overlay */
.hero::before {
  background:
    linear-gradient(180deg, rgba(8,40,68,0.52) 0%, rgba(8,40,68,0.46) 42%, rgba(8,40,68,0.26) 100%),
    linear-gradient(90deg, rgba(10,98,152,0.64) 0%, rgba(10,98,152,0.34) 52%, rgba(10,98,152,0.08) 100%);
}

/* Eyebrow im Hero: heller Glas-Look auf dem Bild */
.hero .eyebrow {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.26);
  backdrop-filter: blur(4px);
}

/* Direkt-Kontakt-Sektion auf zartem Blau */
#kontakt { background: var(--blue-soft); }

/* ============================================================
   HERO mit integriertem PV-KONFIGURATOR
   ============================================================ */
.hero { align-items: center; }
.pv-hero-grid {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 50px; align-items: center;
  padding-top: clamp(108px, 15vh, 168px);
  padding-bottom: clamp(48px, 7vh, 90px);
}
.pv-hero-grid .hero-copy { max-width: 560px; }
@media (max-width: 1040px) {
  .pv-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 104px; }
  .pv-hero-grid .hero-copy { max-width: 640px; }
}
.cfg { max-width: 100%; }

/* ── 2D-Sonnen-Animation im Hero ─────────────────────────── */
.pv-hero-grid { position: relative; z-index: 2; }
.hero-sun {
  position: absolute; z-index: 1; pointer-events: none;
  top: clamp(-30px, 3vh, 40px); left: 4%;
  width: clamp(170px, 22vw, 300px); aspect-ratio: 1; opacity: .9;
}
.hero-sun svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-sun .sun-rays, .hero-sun .sun-core, .hero-sun .sun-halo {
  transform-box: view-box; transform-origin: 110px 110px;
}
.hero-sun .sun-rays { animation: sunSpin 90s linear infinite; }
.hero-sun .sun-core { animation: sunPulse 5s ease-in-out infinite; }
.hero-sun .sun-halo { animation: sunHalo 5s ease-in-out infinite; }
@keyframes sunSpin { to { transform: rotate(360deg); } }
@keyframes sunPulse { 0%, 100% { opacity: .95; } 50% { opacity: .7; } }
@keyframes sunHalo { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@media (max-width: 1040px) {
  .hero-sun { left: auto; right: 4%; top: 10px; width: 150px; opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sun .sun-rays, .hero-sun .sun-core, .hero-sun .sun-halo { animation: none; }
}
@media (max-width: 540px) {
  .cfg-opts { grid-template-columns: 1fr; }
  .cfg-res { grid-template-columns: 1fr 1fr; }
}

/* Konfigurator-Karte */
.cfg {
  background: #fff; border-radius: 22px; padding: 24px 24px 22px;
  box-shadow: 0 34px 80px -34px rgba(8, 40, 68, 0.6); position: relative;
}
.cfg-head h3 { font-size: 20px; }
.cfg-head p { font-size: 13px; color: var(--slate); margin-top: 4px; }
.cfg-progress { display: flex; gap: 6px; margin: 16px 0 18px; }
.cfg-progress i { height: 5px; flex: 1; border-radius: 999px; background: var(--blue-soft-2); transition: background .3s ease; }
.cfg-progress i.on { background: var(--blue); }

.cfg-step { display: none; }
.cfg-step.active { display: block; animation: cfgIn .34s ease; }
@keyframes cfgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cfg-q { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 14px; color: var(--ink); }

.cfg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg-opt { position: relative; cursor: pointer; }
.cfg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-opt > span { display: flex; align-items: center; gap: 9px; height: 100%; padding: 13px 13px; border: 1.5px solid var(--line); border-radius: 13px; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: border-color .2s ease, background .2s ease; }
.cfg-opt > span svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.cfg-opt input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.cfg-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.cfg-opt.full { grid-column: 1 / -1; }

.cfg-slider { margin-bottom: 18px; }
.cfg-slider .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.cfg-slider label { font-size: 14px; font-weight: 600; color: var(--ink); }
.cfg-slider .val { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 16px; }
.cfg-help { font-size: 12.5px; color: var(--slate); margin: 8px 0 0; }
input[type=range].rng { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--blue-soft-2); outline: none; }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 21px; height: 21px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 7px rgba(10, 98, 152, 0.55); }
input[type=range].rng::-moz-range-thumb { width: 19px; height: 19px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 3px solid #fff; }

.cfg-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 13px; margin-bottom: 10px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.cfg-toggle.on { border-color: var(--blue); background: var(--blue-soft); }
.cfg-toggle .t-l { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cfg-toggle .t-l svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.cfg-toggle .t-l small { display: block; font-weight: 500; font-size: 12px; color: var(--slate); margin-top: 1px; }
.cfg-switch { width: 44px; height: 25px; border-radius: 999px; background: var(--blue-soft-2); position: relative; flex: none; transition: background .2s ease; }
.cfg-toggle.on .cfg-switch { background: var(--blue); }
.cfg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cfg-toggle.on .cfg-switch::after { transform: translateX(19px); }

.cfg-result-head { text-align: center; margin-bottom: 16px; }
.cfg-result-head .big { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--blue); line-height: 1; }
.cfg-result-head .big small { font-size: 15px; font-weight: 700; }
.cfg-result-head p { font-size: 12.5px; color: var(--slate); margin-top: 7px; }
.cfg-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cfg-res .r { background: var(--blue-soft); border-radius: 13px; padding: 12px 14px; }
.cfg-res .r .k { font-size: 11px; font-weight: 600; color: var(--slate-2); text-transform: uppercase; letter-spacing: .03em; }
.cfg-res .r .v { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin-top: 3px; }
.cfg-res .r .v b { color: var(--blue); }
.cfg-note { font-size: 11px; color: var(--slate-2); line-height: 1.5; margin: 12px 0 0; }

.cfg .field { margin-bottom: 11px; }
.cfg .dsgvo-label { font-size: 12.5px; margin-top: 4px; }

.cfg-nav { display: flex; gap: 10px; margin-top: 18px; }
.cfg-nav .btn-primary { flex: 1; justify-content: center; }

.cfg-success { display: none; text-align: center; padding: 22px 6px 10px; }
.cfg-success.show { display: block; animation: cfgIn .34s ease; }
.cfg-success .fs-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 14px; }
.cfg-success h3 { font-size: 22px; margin-bottom: 8px; }
.cfg-success p { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* ============================================================
   RATGEBER / BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1040px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--blue-soft-2); }
.blog-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--blue-soft); }
.blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 5px 11px; border-radius: var(--pill); margin-bottom: 13px; }
.blog-body h3 { font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.blog-body h3 a { color: var(--ink); transition: color .2s ease; }
.blog-body h3 a:hover { color: var(--blue); }
.blog-body p { font-size: 14px; color: var(--slate); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.blog-more { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--blue); }
.blog-more svg { transition: transform .25s ease; }
.blog-more:hover svg { transform: translateX(3px); }

/* ── Footer: lokaler SEO-Text ─────────────────────────────── */
.footer-seo { border-top: 1px solid rgba(255, 255, 255, 0.10); padding-top: 26px; padding-bottom: 2px; }
.footer-seo h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 10px; }
.footer-seo p { font-size: 13px; line-height: 1.7; color: var(--slate); max-width: none; }

/* ============================================================
   BLOG-ARTIKEL (Unterseiten)
   ============================================================ */
.article { padding: clamp(34px, 5vw, 60px) 0 clamp(40px, 6vw, 80px); }
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); margin: 0 0 30px; background: var(--blue-soft); }
.article-figure img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { font-size: 16.5px; line-height: 1.75; color: var(--slate); }
.article-body h2 { font-size: clamp(23px, 3vw, 30px); color: var(--ink); margin: 38px 0 14px; }
.article-body h3 { font-size: 20px; color: var(--ink); margin: 26px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 4px; list-style: none; display: grid; gap: 11px; }
.article-body ul li { position: relative; padding-left: 30px; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23119AE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.article-body a { color: var(--blue); font-weight: 600; border-bottom: 1px solid var(--blue-soft-2); }
.article-body a:hover { border-color: var(--blue); }
.article-body strong { color: var(--ink); }
.article-cta { margin-top: 36px; padding: 28px 30px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--blue), var(--blue-700)); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.article-cta h3 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.article-cta p { color: rgba(255, 255, 255, 0.9); font-size: 14px; margin: 0; }
.article-faq { margin-top: 36px; }
.article-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 12px; }
.article-faq summary { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); cursor: pointer; padding: 14px 0; list-style: none; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq details[open] summary { color: var(--blue); }
.article-faq details p { font-size: 15px; padding-bottom: 14px; margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; color: var(--slate-2); margin-bottom: 22px; }
.article-meta .blog-tag { margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
