/* ============================================================
   KlimaCraft – Live-Demo und Preise (Runde 6 bis 8, 01./02.11.2026)
   ------------------------------------------------------------
   Gilt nur für demo.html und preise.html (integ_preise_demo.py).
   Nur eigene Klassen mit Präfix pd-; Farben, Schrift, Knöpfe und
   Karten kommen aus Stil 2026 (stil26.css, kc-stil.css).
   ============================================================ */

/* ---------- Demo: Kopfbereich mit Wahl (Vorbild Trainer-Landingpages) ---------- */
body.kc26 .eh-demo.pd-held{padding-bottom:84px}
.pd-wahl{display:grid;grid-template-columns:1.22fr 1fr;gap:18px;max-width:920px;margin:34px auto 0;text-align:left;
  scroll-margin-top:96px;align-items:stretch}
.pd-k{position:relative;display:flex;flex-direction:column;gap:14px;min-width:0;background:#fff;border:1px solid var(--e-line);
  border-radius:18px;padding:26px 24px 20px;box-shadow:var(--shadow-sm)}
.pd-k.pd-haupt{border:2px solid var(--e-akz);box-shadow:var(--shadow)}
.pd-marke{position:absolute;top:-12px;right:20px;background:var(--e-akz);color:#fff;font-size:12px;font-weight:600;line-height:1.4;
  border-radius:999px;padding:3px 11px}
body.kc26 .pd-kopf{display:flex;align-items:center;gap:12px;margin:0;font-family:var(--kc-kopf);font-weight:700;font-size:20px;
  line-height:1.22;letter-spacing:-.02em;color:var(--e-ink)}
.pd-ic{flex:none;width:42px;height:42px;border-radius:12px;background:var(--e-akz-hell);color:var(--e-akz);display:grid;place-items:center}
.pd-ic svg{width:21px;height:21px}
.pd-neben .pd-ic{background:#F1F5F9;color:var(--e-ink2)}
.pd-text{margin:0;font-size:15px;line-height:1.58;color:var(--e-slate);flex:1}
.pd-k .btn{width:100%;justify-content:center}
.pd-fuss{font-size:13px;color:var(--e-slate);text-align:center}
.pd-fuss span{white-space:nowrap}
.pd-wer{display:flex;align-items:center;gap:12px;font-size:13.5px;line-height:1.45;color:var(--e-ink2)}
.pd-foto{flex:none;width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 0 0 1px var(--e-line)}
.pd-wer b{font-weight:600;color:var(--e-ink)}

/* Kalender (Calendly wird erst auf Klick geladen) */
.pd-kal{max-width:920px;margin:18px auto 0;text-align:left;background:#fff;border:1px solid var(--e-line);border-radius:18px;
  box-shadow:var(--shadow);overflow:hidden;scroll-margin-top:90px}
.pd-kal[hidden],.pd-rueck[hidden]{display:none!important}
.pd-kal-kopf{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;
  border-bottom:1px solid var(--e-line);font-size:14px;font-weight:600;color:var(--e-ink)}
.pd-kal-kopf a{font-size:13px;font-weight:500;color:var(--e-akz)}
.pd-kal-box{height:760px;min-width:280px}
.pd-ausweg{padding:28px 22px;text-align:center;line-height:1.6;display:flex;flex-direction:column;align-items:center;gap:8px}
body.kc26 .pd-ausweg b{font-family:var(--kc-kopf);font-size:17px;color:var(--e-ink)}
.pd-ausweg span{font-size:14.5px;color:var(--e-slate);max-width:56ch}
.pd-ausweg p{margin:10px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.pd-ausweg .pd-klein{font-size:13.5px;color:var(--e-slate)}
.pd-ausweg .pd-klein a{color:var(--e-akz)}

/* Rückruf als dritter, kleiner Weg */
.pd-rueck-zeile{max-width:920px;margin:20px auto 0;font-size:14.5px;line-height:1.6;color:var(--e-slate);text-wrap:pretty}
.pd-rueck-zeile a[href^="tel:"]{color:var(--e-ink);font-weight:600;white-space:nowrap}
.pd-rueck-knopf{font:inherit;font-weight:600;color:var(--e-akz);background:none;border:0;padding:0;cursor:pointer;
  border-bottom:1px solid rgba(37,99,235,.35);line-height:1.35}
.pd-rueck-knopf:hover{border-bottom-color:currentColor}
.pd-rueck-knopf:focus-visible{outline:3px solid var(--e-akz);outline-offset:3px;border-radius:2px}
html:not(.pd-js) .pd-nurjs{display:none!important}
.pd-rueck{max-width:760px;margin:22px auto 0;text-align:left;scroll-margin-top:90px}
.pd-rueck .kd-karte{border-radius:20px;border:1px solid rgba(15,23,42,.08);
  box-shadow:0 40px 90px -40px rgba(10,27,61,.45),0 2px 4px rgba(15,23,42,.04);padding:34px 36px}
body.kc26 .pd-rueck .kd-schritt h2{font-family:var(--kc-kopf);letter-spacing:var(--kc-kopf-ls2)}

/* ---------- Preise: Kopfbereich, Preiskarte ---------- */
.pd-held-akt{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 22px;margin-top:26px}
.pd-leise{font-size:15px;font-weight:600;color:var(--e-ink2);border-bottom:1px solid rgba(51,65,85,.3)}
.pd-leise:hover{color:var(--e-akz);border-bottom-color:currentColor}
.pd-probe-link{display:inline-block;margin-top:14px;font-size:13.5px;font-weight:600;line-height:1.45;color:#BFDBFE;
  border-bottom:1px solid rgba(191,219,254,.4)}
.pd-probe-link:hover{color:#fff;border-bottom-color:#fff}

/* ---------- Preise: Null Risiko mit vier Zusagen ---------- */
.riskband.pd-vier{grid-template-columns:repeat(4,minmax(0,1fr))}
.pd-risk-zeile{margin:24px 0 0;text-align:center;font-size:14.5px;color:var(--e-slate)}
.pd-risk-zeile a{color:var(--e-akz);font-weight:600;white-space:nowrap}

/* ---------- Preise: Gegenwert (was wegfällt) ---------- */
.pd-gw{display:flex;flex-direction:column}
.pd-nicht{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:0 0 10px;font-size:13.5px;line-height:1.4;color:var(--e-slate)}
.pd-nicht b{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#B91C1C}
.pd-nicht s{text-decoration-color:rgba(185,28,28,.6);text-decoration-thickness:1.5px}
.pd-gw-text{margin:8px 0 16px;font-size:14px;line-height:1.6;color:#3A4557;flex:1}
.pd-gw-link{align-self:flex-start;font-size:13.5px;font-weight:600;color:var(--e-akz);border-bottom:1px solid transparent}
.pd-gw-link:hover{border-bottom-color:currentColor}
.pd-gw-note{max-width:760px;margin:28px auto 0;text-align:center;font-size:13px;line-height:1.6;color:var(--slate-l)}

/* „Probier es einfach aus“ – Demo-Welt */
.pd-probe{margin-top:46px}
.roibox.pd-probe>*{min-width:0}   /* sonst weitet der Ausschnitt mit nicht umbrechenden Zeilen die Spalte */
.pd-probe-akt{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:22px}
.pd-probe-akt span{font-size:13px;color:var(--e-slate)}
.roibox .pd-probe-termin{margin-top:14px;font-size:14px}
.pd-probe-termin a{color:var(--e-akz);font-weight:600;white-space:nowrap}
body.kc26 .mv26.pd-probe-vis{margin-top:0;padding:4px 16px 10px}
.pd-probe-kopf{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:2px 10px;padding:10px 0;border-bottom:1px solid #F1F5F9;
  font-size:13px;font-weight:600;color:#0F172A}
.pd-probe-kopf small{font-size:11.5px;font-weight:500;color:#64748B;white-space:nowrap}

@media(max-width:1100px){
  .riskband.pd-vier{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .pd-wahl{grid-template-columns:1fr;gap:22px}
}
@media(max-width:600px){
  .riskband.pd-vier{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  body.kc26 .eh-demo.pd-held{padding-bottom:56px}
  .pd-k{padding:24px 18px 18px}
  body.kc26 .pd-kopf{font-size:19px}
  .pd-kal-box{height:880px}
  .pd-rueck .kd-karte{padding:24px 18px}
  .pd-probe{margin-top:36px}
  .roibox.pd-probe{grid-template-columns:minmax(0,1fr);padding:26px 20px}
  .roibox.pd-probe h2{font-size:26px}
  .pd-probe-akt .btn{width:100%;justify-content:center}
}

/* ---------- Preise, Runde 8: Grafiken in den sechs Gegenwert-Kacheln ----------
   Gezeichnete SVGs wie die Szenenkarten der Demo-Welt (teil11_illu.js / welt.css), Schleife 9 s:
   pd-v vorher (sichtbar, fällt bei ~30 % weg) · pd-a Grundlage nachher · pd-n1…n4 nacheinander · pd-h Abschluss.
   Die Bewegung startet erst, wenn die Kachel im Bild ist (pd-preise.js setzt .pd-an); ohne JavaScript läuft sie gleich.
   „Reduzierte Bewegung“: Endzustand ohne Bewegung. */
.pd-bild{position:relative;z-index:1;margin:0 0 16px;border:1px solid #e6ecf4;border-radius:12px;overflow:hidden;background:#fff}
.pd-il{display:block;width:100%;height:auto}
.pd-il text{font-family:'Noto Sans KC','Noto Sans',system-ui,sans-serif}
.pd-il :is(.pd-v,.pd-a,.pd-n1,.pd-n2,.pd-n3,.pd-n4,.pd-h,.pd-tap,.pd-zieh){transform-box:fill-box;transform-origin:center}
.pd-il :is(.pd-a,.pd-n1,.pd-n2,.pd-n3,.pd-n4,.pd-h,.pd-tap,.pd-zieh,.pd-fluss){opacity:0}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-v{animation:pdV 9s ease-in-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-a{animation:pdA 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-fluss{animation:pdFluss 1.2s linear infinite,pdA 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-n1{animation:pdN1 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-n2{animation:pdN2 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-n3{animation:pdN3 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-n4{animation:pdN4 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-h{animation:pdH 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-tap{animation:pdTap 9s ease-out infinite}
:is(html:not(.pd-js) .pd-il,.pd-il.pd-an) .pd-zieh{animation:pdZieh 9s ease-in-out infinite}
.pd-il .pd-blink{animation:pdBlink 1s steps(1) infinite}
@keyframes pdV{0%,28%{opacity:1;transform:none}36%,95%{opacity:0;transform:translateY(8px) rotate(-3deg)}100%{opacity:1;transform:none}}
@keyframes pdA{0%,30%{opacity:0;transform:translateY(6px)}38%,92%{opacity:1;transform:none}98%,100%{opacity:0;transform:none}}
@keyframes pdN1{0%,42%{opacity:0;transform:translateY(5px)}47%,92%{opacity:1;transform:none}98%,100%{opacity:0;transform:none}}
@keyframes pdN2{0%,50%{opacity:0;transform:translateY(5px)}55%,92%{opacity:1;transform:none}98%,100%{opacity:0;transform:none}}
@keyframes pdN3{0%,58%{opacity:0;transform:translateY(5px)}63%,92%{opacity:1;transform:none}98%,100%{opacity:0;transform:none}}
@keyframes pdN4{0%,66%{opacity:0;transform:translateY(5px)}71%,92%{opacity:1;transform:none}98%,100%{opacity:0;transform:none}}
@keyframes pdH{0%,76%{opacity:0;transform:scale(.4)}81%{opacity:1;transform:scale(1.15)}84%,92%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(1)}}
@keyframes pdTap{0%,40%{opacity:0;transform:scale(.6)}44%{opacity:.9;transform:scale(1)}54%,100%{opacity:0;transform:scale(1.9)}}
@keyframes pdZieh{0%,42%{opacity:0;transform:translate(0,0)}45%{opacity:1;transform:translate(0,0)}56%{opacity:1;transform:translate(130px,16px)}60%,100%{opacity:0;transform:translate(130px,16px)}}
@keyframes pdFluss{to{stroke-dashoffset:-20}}
@keyframes pdBlink{50%{opacity:0}}
/* leicht versetzt, damit die drei Kacheln einer Reihe nicht im Gleichschritt laufen */
.modgrid>.pd-gw:nth-child(3n+2) .pd-il *{animation-delay:.6s}
.modgrid>.pd-gw:nth-child(3n) .pd-il *{animation-delay:1.2s}
@media(max-width:700px){
  .pd-bild{margin:-4px -12px 16px}   /* am Handy etwas breiter: Schrift in der Grafik etwa in Originalgröße */
}
@media (prefers-reduced-motion:reduce){
  .pd-il .pd-v,.pd-il .pd-tap,.pd-il .pd-zieh{display:none}
  .pd-il :is(.pd-a,.pd-n1,.pd-n2,.pd-n3,.pd-n4,.pd-h,.pd-fluss){opacity:1!important;transform:none!important;animation:none!important}
  .pd-il .pd-blink{animation:none}
}

/* Runde 9c: je Kachel „Ausprobieren“ und Funktionsseite */
.pd-gw-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:auto}
.pd-gw-probe{display:inline-flex;align-items:center;font-size:13.5px;font-weight:700;color:#fff;background:var(--e-akz,#2563eb);border-radius:999px;padding:6px 14px;line-height:1.2}
.pd-gw-probe:hover{filter:brightness(1.08)}
.pd-gw-links .pd-gw-link{align-self:center}
/* Runde 9c: Umschalter laufender Betrieb / gerade erst angefangen (Drei Schritte) */
.pd-weg-zeile{display:flex;flex-direction:column;align-items:center;gap:10px;margin:-8px 0 26px}
.pd-weg-frage{margin:0;font-size:13.5px;font-weight:600;color:var(--e-slate,#475569)}
.pd-weg{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#fff;border:1px solid #DCE5F2;box-shadow:0 6px 18px -12px rgba(15,23,42,.35)}
.pd-weg button{appearance:none;border:0;background:transparent;font:inherit;font-size:14px;font-weight:600;color:#334155;padding:9px 18px;border-radius:999px;cursor:pointer;white-space:nowrap}
.pd-weg button[aria-selected="true"]{background:#0F172A;color:#fff}
.pd-weg button:focus-visible{outline:2px solid #2563EB;outline-offset:2px}
.pd-wegpanel[hidden],.bento.pd-wegpanel[hidden]{display:none!important}
@media (max-width:560px){.pd-weg{width:100%}.pd-weg button{flex:1;padding:9px 10px;font-size:13px;white-space:normal}}
/* Runde 9f: Kachel „Und noch viel mehr“ am Ende von „Was dir die 60 € abnehmen“ (wie in der Demo-Welt) */
.modcard.pd-gw-termin{background:linear-gradient(140deg,#1d4ed8,#0ea5e9);border-color:transparent;color:#fff;justify-content:flex-end;min-height:280px}
.modcard.pd-gw-termin h3{color:#fff}
.modcard.pd-gw-termin .pd-gw-text{color:rgba(255,255,255,.9)}
.modcard.pd-gw-termin .pd-nicht b{color:#fde68a}
.modcard.pd-gw-termin .pd-gw-probe{background:#fff;color:#1d4ed8}

/* ---------- Finalrunde 03.11. (Teil C): Gegenwert-Kacheln gleich aufgebaut ----------
   1. Überschriften einer Reihe auf einer Höhe: Jede Kachel teilt sich die fünf Zeilen (Bild, „Nicht mehr“, Überschrift,
      Text, Links) mit den Nachbarn ihrer Reihe (Subgrid). Ist „Nicht mehr“ in einer Kachel zweizeilig, rücken die
      Überschriften der ganzen Reihe gleich weit nach unten; die Links stehen unten auf einer Linie.
      Browser ohne Subgrid behalten den bisherigen Aufbau (Spalte mit Flex). Achtung: container-type auf der Kachel
      schaltet das Subgrid ab (Größen-Eindämmung) – deshalb hier keine Container-Abfrage.
   2. Linkzeile: „Ausprobieren“ und Funktionsseite nebeneinander. Der Link zur Funktionsseite ist mindestens so breit
      wie der längste Linktext („Digitales Anlagenbuch →“, 157 px bei 13 px Schrift). Damit passt die Zeile entweder in
      allen Kacheln (Rechner ab etwa 1200 px Fensterbreite, Tablet mit zwei Spalten) oder in keiner (drei schmale
      Spalten bei etwa 961–1199 px, Handy): dann stehen in jeder Kachel beide Links untereinander, nie gemischt.
      Längerer Linktext kommt dazu? Mindestbreite anpassen. Unterstrich beim Überfahren nur unter dem Text. */
#gegenwert .pd-gw-links{gap:8px 12px}
#gegenwert .pd-gw-probe{padding:6px 12px;font-size:13px;white-space:nowrap}
#gegenwert .pd-gw-link{min-width:158px;font-size:13px;white-space:nowrap;border-bottom:0;text-underline-offset:3px}
#gegenwert .pd-gw-link:hover{text-decoration:underline}
@supports (grid-template-rows:subgrid){
  #gegenwert .modgrid{row-gap:0}
  #gegenwert .modgrid>.pd-gw{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:0;margin-bottom:20px}
  #gegenwert .pd-gw>.pd-bild{grid-row:1}
  #gegenwert .pd-gw>.pd-nicht{grid-row:2;align-self:start}
  #gegenwert .pd-gw>h3{grid-row:3;align-self:start}
  #gegenwert .pd-gw>.pd-gw-text{grid-row:4;align-self:start}
  #gegenwert .pd-gw>.pd-gw-links{grid-row:5;align-self:end}
  /* Kachel „Und noch viel mehr“ hat kein Bild: ihre Zeilen stehen mit denen der Nachbarn auf einer Höhe */
  #gegenwert .modcard.pd-gw-termin{min-height:0}
}

/* ---------- Finalrunde 03.11. (Teil C): „Der Wechsel ist unser Job“ – Punktfelder der Karten ----------
   Die drei Karten (.riskcard) tragen je ein Punktfeld (i.hg26-p, absolut oben rechts), haben aber selbst keine
   Position. Sobald .reveal.in die Verschiebung aufhebt (transform:none), richten sich die Felder nach dem Abschnitt
   und liegen alle drei übereinander oben rechts neben der Überschrift. Oliver: an den Rand oder entfernen – entfernt. */
body.kc26 .riskcard>.hg26-p{display:none}
