/* Leistungsseiten (Photovoltaik, Stromspeicher, Wallbox, Wärmepumpe) – Layout nach Solak "Service details" */

.page-hero h1 { max-width: none; margin: 0; }
.page-hero .crumbs { margin: 18px 0 0; }

/* ---------- Zweispalter ---------- */
.sd { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.sd__main { min-width: 0; }
.sd__side { display: grid; gap: 28px; align-self: start; --side-h: 1130px; position: sticky; top: min(108px, calc(100vh - var(--side-h) - 24px)); }
.sd__main > .label:first-of-type { margin-top: 0; }

.sd__cover { aspect-ratio: 2 / 1; margin-bottom: 44px; }
.sd__h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; margin: 0 0 20px; }
.sd__h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; margin: 0 0 18px; }
.sd__lead { font-size: 18px; line-height: 1.7; color: var(--body); margin: 0 0 1em; }
.sd__main p { color: var(--body); }
.sd__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sd__block { margin-top: clamp(56px, 6vw, 80px); scroll-margin-top: 110px; }
.sd__block > .label { margin-bottom: 12px; }
.sd__cap { display: flex; justify-content: space-between; gap: 12px; margin: 14px 4px 0; font-size: 14px; color: var(--mute); }

/* ---------- Schritte / Funktion als weiße Karten ---------- */
.sd-cards { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sd-card { background: #fff; border-radius: var(--r-lg); box-shadow: 0 8px 34px rgba(12, 24, 48, .08); padding: 30px 32px 32px; display: grid; gap: 20px; align-content: start; }
.sd-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sd-card__ic { width: 54px; height: 54px; color: var(--theme); display: block; }
.sd-card__ic svg { width: 100%; height: 100%; }
.sd-card h3 { font-size: 24px; margin: 0 0 10px; }
.sd-card p { margin: 0; font-size: 16.5px; }

/* ---------- Vorteile: Liste neben zwei Fotos ---------- */
.sd-benefits { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 32px; }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.sd-list li { position: relative; padding-left: 28px; }
.sd-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; background: var(--theme); }
.sd-list h3 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.sd-list p { margin: 0; font-size: 16px; line-height: 1.65; }
.sd-benefits__pics { display: grid; gap: 20px; }
.sd-benefits__pics .img-rounded { aspect-ratio: 4 / 3; }

/* ---------- Technik ---------- */
.sd__main .spec { margin-top: 30px; }

/* ---------- Frage-Hinweis unter dem FAQ ---------- */
.sd__main .faq { margin-top: 28px; }
.sd-ask { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; background: var(--smoke); border-radius: var(--r-lg); padding: 28px 32px; margin-top: 24px; }
.sd-ask p { margin: 0; flex: 1 1 320px; font-size: 17px; }

/* ---------- Passt dazu ---------- */
.sd-nexts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.sd-next { display: flex; flex-direction: column; background: var(--smoke); border-radius: var(--r-lg); padding: 28px; transition: transform .4s var(--ease), box-shadow .4s, background .4s; }
.sd-next:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow); }
.sd-next__k { font-family: var(--f-title); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--theme); margin-bottom: 14px; }
.sd-next h3 { font-size: 24px; margin: 0 0 10px; }
.sd-next p { margin: 0 0 22px; font-size: 16px; line-height: 1.65; }
.sd-next__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-title); font-weight: 600; color: var(--title); }
.sd-next__go svg { width: 18px; height: 18px; color: var(--theme); transition: transform .35s var(--ease); }
.sd-next:hover .sd-next__go svg { transform: translateX(4px); }

/* ---------- Seitenleiste ---------- */
.widget { background: var(--smoke); border-radius: var(--r-lg); padding: 32px 34px 34px; }
.widget__title { font-size: 26px; margin: 0 0 24px; padding-bottom: 16px; position: relative; }
.widget__title::before, .widget__title::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; }
.widget__title::before { right: 0; background: #dde2e0; }
.widget__title::after { width: 50px; background: var(--theme); }
.widget__text { margin: 0 0 22px; font-size: 16px; line-height: 1.65; }
.pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pills a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 14px 24px; font-size: 17px; color: var(--body); transition: background .3s, color .3s, border-color .3s; }
.pills a svg { width: 17px; height: 17px; flex: none; color: var(--title); transition: color .3s, transform .35s var(--ease); }
.pills a:hover, .pills a.is-cur { background: var(--theme); border-color: var(--theme); color: #fff; }
.pills a:hover svg, .pills a.is-cur svg { color: #fff; }
.pills a:hover svg { transform: translateX(3px); }

.widget--dark { background: var(--dark); color: #b8c2d6; }
.widget--dark .widget__title { color: #fff; }
.widget--dark .widget__title::before { background: rgba(255, 255, 255, .18); }
.widget__contact { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.widget__contact li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.widget__contact .ci { width: 44px; height: 44px; border-radius: 50%; background: var(--theme); color: #fff; display: grid; place-items: center; }
.widget__contact .ci svg { width: 19px; height: 19px; }
.widget__contact a { color: #fff; font-family: var(--f-title); font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.widget__contact a:hover { color: var(--volt); }

/* ---------- CTA ---------- */
.cta-band__actions { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sd { grid-template-columns: 1fr; }
  .sd__side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 760px) {
  .sd-cards, .sd-nexts { grid-template-columns: 1fr; }
  .sd-benefits { grid-template-columns: 1fr; }
  .sd-benefits__pics { grid-template-columns: 1fr 1fr; }
  .sd__cover { aspect-ratio: 16 / 10; margin-bottom: 32px; }
  .widget { padding: 28px 24px 30px; }
  .sd-card { padding: 26px 24px; }
  .sd__lead { font-size: 17px; }
}
@media (max-width: 480px) {
  .sd-benefits__pics { grid-template-columns: 1fr; }
  .sd__actions .btn { width: 100%; }
}

/* Footer-Logo: die dunkle Header-Fläche darf die Spaltenüberschrift nicht überdecken */
.site-footer .brand::before { display: none; }

/* Tabellen auf kleinen Bildschirmen untereinander */
@media (max-width: 640px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec tr { border-bottom: 1px solid var(--line); }
  .spec tr:last-child { border-bottom: 0; }
  .spec th, .spec td { border-bottom: 0 !important; overflow-wrap: anywhere; }
  .spec th { padding: 14px 18px 6px; }
  .spec td { padding: 6px 18px 16px; }
}
