/* Smartmacherei — gemeinsame Bausteine der bildgetriebenen Ratgeber (Kurz-Liste, Diagramme,
   Kennzahlen, Stufen, Vergleichskarten, Handy-Mock, zuklappbare Technik-Details).
   Mobile zuerst: alles einspaltig, ab 720 px zwei Spalten. Farben der Diagramme sind mit
   dem dataviz-Validator geprueft: PV #c98300, Eigenverbrauch #13875c, Netzbezug #cf3d33. */

.lp-hero .visual video { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 30px 60px rgba(4,40,70,.35); background: #0a2a3d; }

.article .rg-kurz { margin: 0 0 30px; padding: 0; list-style: none; display: grid; gap: 10px; }
.article .rg-kurz li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; }
.article .rg-kurz li b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--deep); color: #fff; font: 700 15px var(--font-display); }

/* Diagramme */
.rg-fig { margin: 18px 0 26px; }
.rg-fig h3 { margin: 0 0 4px; font-size: 18px; }
.rg-fig .sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.rg-svg { width: 100%; height: auto; display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; touch-action: pan-y; }
.rg-svg .ax { font: 500 11px var(--font-body); fill: #5b7180; }
.rg-svg .lab { font: 600 11px var(--font-body); fill: #0a2a3d; }
.rg-tip { position: absolute; pointer-events: none; font: 500 12px var(--font-mono); color: #fff; background: rgba(10,42,61,.92); border-radius: 8px; padding: 6px 8px; white-space: nowrap; transform: translate(-50%, -100%); }
.rg-host { position: relative; }
.article .rg-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text); }
.rg-legend li { display: flex; align-items: center; gap: 7px; }
.rg-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.rg-legend i.line { height: 2px; border-radius: 1px; }
.rg-legend i.pv { background: rgba(201,131,0,.35); box-shadow: inset 0 -2px 0 #c98300; }
.rg-legend i.eigen { background: rgba(19,135,92,.4); }
.rg-legend i.netz { background: rgba(207,61,51,.4); }
.rg-legend i.ink { background: #0a2a3d; }
.rg-legend i.pvline { background: #c98300; }
.rg-compare { display: grid; gap: 22px; }
.rg-compare .rg-fig { margin: 0; }
.rg-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.rg-kpi div { background: var(--card-soft); border-radius: 12px; padding: 10px 8px; text-align: center; }
.rg-kpi small { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 2px; }
.rg-kpi strong { font: 700 22px var(--font-display); color: var(--ink); display: block; line-height: 1; }
.rg-kpi strong span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.rg-kpi .up strong { color: #13875c; }
.rg-kpi .down strong { color: #cf3d33; }
.rg-fig figcaption, .rg-note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }

/* Reihenfolge der Verbraucher */
.article .stufen { display: grid; gap: 10px; margin: 16px 0 26px; padding: 0; list-style: none; counter-reset: st; }
.stufen li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stufen .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--card-soft); display: grid; place-items: center; position: relative; }
.stufen .ic svg { width: 30px; height: 30px; fill: none; stroke: var(--deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stufen .ic::after { counter-increment: st; content: counter(st); position: absolute; top: -7px; left: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--deep); color: #fff; font: 700 11px var(--font-display); display: grid; place-items: center; }
.stufen h3 { margin: 0 0 2px; font-size: 17px; }
.stufen p { margin: 0; font-size: 14px; color: var(--text); }
.stufen .tag { display: inline-block; margin-top: 6px; font: 600 11px var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--deep); background: rgba(10,111,190,.08); border-radius: 100px; padding: 3px 9px; }

/* Vergleichskarten (Heizstab vs Waermepumpe, App vs Zentrale) */
.rg-duo { display: grid; gap: 12px; margin: 16px 0 24px; }
.rg-duo .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.rg-duo .card.win { border-color: rgba(19,135,92,.45); background: linear-gradient(180deg, rgba(19,135,92,.06), transparent); }
.rg-duo .card h3 { margin: 0 0 6px; font-size: 17px; }
.rg-duo .big { font: 700 34px var(--font-display); color: var(--ink); line-height: 1; margin: 6px 0 8px; }
.rg-duo .big small { font: 600 14px var(--font-body); color: var(--ink-soft); }
.rg-duo p { margin: 0; font-size: 14px; }
.rg-duo .bars { display: grid; gap: 6px; margin: 8px 0 10px; }
.rg-duo .bar { height: 14px; border-radius: 4px 4px 4px 4px; background: rgba(201,131,0,.35); box-shadow: inset 0 -2px 0 #c98300; }
.rg-duo .bar.w { background: rgba(19,135,92,.35); box-shadow: inset 0 -2px 0 #13875c; }

/* Home-Assistant-Energie-Dashboard im Handy */
.ha-wrap { display: grid; justify-items: center; margin: 18px 0 8px; }
.ha-phone { width: min(360px, 100%); background: #111; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px rgba(4,40,70,.25); }
.ha { background: #1c1c1c; color: #e1e1e1; border-radius: 30px; padding: 14px 12px 16px; font-family: var(--font-body); }
.ha .bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9a9a9a; padding: 2px 6px 10px; }
.ha .bar b { color: #e1e1e1; font-weight: 600; font-size: 14px; }
.ha .card { background: #262626; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.ha .card h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #e1e1e1; }
.ha-flow { position: relative; width: 100%; aspect-ratio: 1 / .78; }
.ha-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ha-flow .p { fill: none; stroke-width: 2; stroke-linecap: round; }
.ha-flow .dot { stroke-width: 3; stroke-dasharray: 4 60; animation: ha-dash 2.8s linear infinite; }
@keyframes ha-dash { to { stroke-dashoffset: -64; } }
.ha-node { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 2px solid; display: grid; place-content: center; text-align: center; background: #262626; font-size: 10px; line-height: 1.15; color: #cfcfcf; }
.ha-node b { display: block; font-size: 12px; color: #fff; font-weight: 600; }
.ha-node svg { width: 18px; height: 18px; margin: 0 auto 2px; display: block; }
.ha-node.solar { border-color: #ff9800; color: #ffb74d; }
.ha-node.grid { border-color: #488fc2; color: #7fb5dd; }
.ha-node.home { border-color: #8353d1; color: #b394e8; }
.ha-node.batt { border-color: #4db6ac; color: #80cbc4; }
.ha-node.car { border-color: #9e9e9e; color: #cfcfcf; }
.ha-bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 90px; align-items: end; }
.ha-bars div { display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; height: 100%; }
.ha-bars i { display: block; border-radius: 2px 2px 0 0; }
.ha-bars i.s { background: #ff9800; }
.ha-bars i.g { background: #488fc2; }
.ha-ax { display: flex; justify-content: space-between; font-size: 10px; color: #8a8a8a; margin-top: 4px; }
.ha-leg { display: flex; gap: 12px; font-size: 11px; color: #bdbdbd; margin-top: 6px; }
.ha-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.ha-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ha-stat div { background: #262626; border-radius: 14px; padding: 10px 12px; }
.ha-stat small { display: block; font-size: 11px; color: #9a9a9a; }
.ha-stat b { font-size: 20px; font-weight: 600; color: #fff; }

/* Technik-Details zuklappbar */
.article details.tech { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin: 6px 0 22px; background: var(--card); }
.article details.tech summary { cursor: pointer; padding: 14px 0; font: 600 15px var(--font-body); color: var(--deep); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.article details.tech summary::after { content: "+"; font: 700 20px var(--font-display); color: var(--ink-soft); }
.article details.tech[open] summary::after { content: "−"; }
.article details.tech summary::-webkit-details-marker { display: none; }
.article details.tech .table-scroll { margin: 0 0 14px; }
.article details.tech p { font-size: 15px; }

@media (min-width: 720px) {
  .rg-compare { grid-template-columns: 1fr 1fr; }
  .rg-duo { grid-template-columns: 1fr 1fr; }
  .stufen { grid-template-columns: 1fr 1fr; }
  .stufen li:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .ha-flow .dot { animation: none; } }

/* Conversion-Bausteine: Buttons unter "Kurz gesagt", Ein-Satz-CTA, Autor-Block und Kontakt-Buttons im Anfrage-Block */
.article .kurz .kurz-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 16px 0 0; font-size: 16px; }
.article .kurz .kurz-cta .btn { min-height: 44px; }
.article .mini-cta { font-size: 16px; margin: 4px 0 26px; }
.article .mini-cta a { font-family: var(--font-body); font-weight: 600; text-decoration: none; display: inline-block; padding: 10px 0; }
.article .cta-box .btns .btn { white-space: normal; text-align: center; min-height: 44px; }
.lp-cta { row-gap: 20px; }
.lp-cta .autor { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.lp-cta .autor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; display: block; }
.lp-cta .autor p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.85); }
.lp-cta .autor p b { color: #fff; }
.lp-cta .contact a.btn { display: flex; justify-content: center; width: 100%; min-height: 44px; margin-top: 10px; font-size: 15px; white-space: normal; text-align: center; }
.lp-cta .contact a.btn.light { color: var(--deep); }
.lp-cta .contact a.btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.lp-cta .contact a.btn.ghost:hover { background: rgba(255,255,255,.1); }
.lp-cta .contact a.btn + a:not(.btn) { margin-top: 14px; }
@media (min-width: 901px) {
  .lp-cta > div:first-child { grid-row: 1 / span 2; }
  .lp-cta .autor, .lp-cta .lp-form { grid-column: 2; }
}
@media (max-width: 560px) {
  .article .kurz .kurz-cta .btn { flex: 1 1 100%; justify-content: center; }
  .article .cta-box .btns .btn { width: 100%; justify-content: center; }
}

/* Teilen: WhatsApp und Link kopieren (vor der FAQ-Sektion) */
.share { max-width: 716px; margin: -12px auto 44px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.share p { margin: 0; flex: 1 1 240px; font: 600 15px var(--font-body); color: var(--ink); line-height: 1.45; }
.share .share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.share .btn { min-height: 44px; }
.share .share-url { flex: 1 1 100%; width: 100%; font: 500 14px var(--font-mono); color: var(--ink); background: var(--card-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.share .share-url[hidden] { display: none; }
@media (max-width: 560px) { .share .share-btns { width: 100%; } .share .btn { flex: 1 1 100%; justify-content: center; } }
