/* B2: Aussehen der Preis- und Datenseiten. Nutzt die Farben aus style.css (mit Ersatzwerten). */
.p-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-leise { color: var(--grau, #44525a); font-size: .95rem; }
.p-text { max-width: 42rem; }
.p-schmal { max-width: 34rem; }

/* Kopf der Seite */
.p-kopf h1 { margin-bottom: .2em; text-wrap: balance; }
.p-unterzeile { color: var(--grau, #44525a); margin: 0 0 14px; font-size: 1rem; }

/* Schalter Endpreis / Börsenpreis */
.p-schalter { display: inline-flex; background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: 999px; padding: 3px; gap: 2px; margin: 4px 0 6px; }
.p-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-schalter label { padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .98rem; color: var(--petrol, #12343b); min-height: 44px; display: flex; align-items: center; }
.p-schalter input:checked + label { background: var(--petrol, #12343b); color: #fff; }
.p-schalter input:focus-visible + label { outline: 3px solid var(--petrol, #12343b); outline-offset: 2px; }
.p-hinweis { font-size: .92rem; color: var(--grau, #44525a); margin: 10px 0 8px; max-width: 46rem; }

/* Endpreis oder Börsenpreis: genau eine Ansicht sichtbar (ohne :has() bleiben beide sichtbar) */
body:has(#ansicht-netto:checked) .pb { display: none; }
body:has(#ansicht-brutto:checked) .pn { display: none; }
body:not(:has(.p-schalter)) .pn { display: none; }

/* Karten */
.p-karte { background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: var(--rund, 14px); box-shadow: var(--schatten, 0 1px 3px rgba(0,0,0,.08)); padding: 18px 20px; margin: 0 0 16px; }
.p-klein-titel { font-size: 1rem; font-weight: 700; text-transform: none; color: var(--grau, #44525a); margin: 0 0 6px; letter-spacing: .01em; }
.p-oben { display: grid; gap: 16px; margin-bottom: 8px; }
.p-oben > .p-karte { margin: 0; }
@media (min-width: 860px) { .p-oben { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }

/* Jetzt */
.p-jetzt { border-top: 5px solid var(--petrol, #12343b); }
.p-gross { font-size: clamp(2.6rem, 10vw, 3.6rem); font-weight: 800; line-height: 1.05; margin: 2px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-je { font-size: 1.05rem; font-weight: 600; color: var(--grau, #44525a); letter-spacing: 0; }
.p-zweit { margin: 0 0 12px; color: var(--grau, #44525a); }
.p-ampel { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px 6px 10px; margin: 0 0 12px; font-size: 1rem; }
.p-ampel strong { font-size: 1.08rem; }
.p-punkt { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.p-ampel.p-guenstig { background: var(--gut-hell, #e3f2e9); color: var(--gut, #17663f); }
.p-ampel.p-guenstig .p-punkt { background: #2f8a5f; }
.p-ampel.p-mittel { background: var(--neutral-hell, #eaf0f2); color: var(--neutral, #35505c); }
.p-ampel.p-mittel .p-punkt { background: #6f858c; }
.p-ampel.p-teuer { background: var(--schlecht-hell, #f9e8e3); color: var(--schlecht, #a33a26); }
.p-ampel.p-teuer .p-punkt { background: #c2603f; }
.p-naechste { margin: 0; font-size: 1.05rem; }

/* Beste Zeit */
.p-dauer { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.p-dauer legend { font-weight: 600; font-size: 1rem; padding: 0; margin-bottom: 8px; }
.p-dauer input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-dauer label { border: 1px solid var(--feldrand, #6f7a7c); border-radius: 999px; padding: 8px 14px; min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; background: var(--weiss, #fff); }
.p-dauer input:checked + label { background: var(--bernstein, #f2b134); border-color: var(--bernstein-dunkel, #8a5a00); color: var(--tinte, #14262b); }
.p-dauer input:focus-visible + label { outline: 3px solid var(--petrol, #12343b); outline-offset: 2px; }
.p-erg { border-top: 1px solid var(--linie, #d6d9d3); padding-top: 10px; margin-top: 4px; }
.p-erg p { margin: 0 0 6px; }
.p-fenster { font-size: 1.45rem; font-weight: 800; line-height: 1.2; color: var(--petrol, #12343b); }
.p-finder:has(input[value="1"]:checked) .p-erg:not([data-d="1"]),
.p-finder:has(input[value="2"]:checked) .p-erg:not([data-d="2"]),
.p-finder:has(input[value="3"]:checked) .p-erg:not([data-d="3"]),
.p-finder:has(input[value="4"]:checked) .p-erg:not([data-d="4"]),
.p-finder:has(input[value="6"]:checked) .p-erg:not([data-d="6"]),
.p-finder:has(input[value="8"]:checked) .p-erg:not([data-d="8"]) { display: none; }
.p-finder:has(.p-dauer input:checked) .p-erg { border-top: 0; padding-top: 0; }
.p-alle { margin: 8px 0 6px; }
.p-alle summary, .p-tabelle summary { cursor: pointer; font-weight: 600; font-size: .98rem; color: var(--petrol, #12343b); min-height: 32px; }

/* Hinweise */
.p-negativ { background: var(--gut-hell, #e3f2e9); border-color: #b8dcc6; box-shadow: none; }
.p-negativ p, .p-info p { margin: 0; }
.p-info { background: var(--neutral-hell, #eaf0f2); box-shadow: none; }
.p-veraltet { margin: 6px 0 16px; }
.p-veraltet p { margin: 0; }

/* Sprungmarken */
.p-marken { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.p-marken a { text-decoration: none; border: 1px solid var(--linie, #d6d9d3); background: var(--weiss, #fff); border-radius: 999px; padding: 8px 16px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.p-marken a:hover { border-color: var(--petrol, #12343b); }

/* Tagesabschnitt */
.p-tag { margin-top: 8px; }
.p-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.p-kachel { background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: 12px; padding: 10px 14px; display: grid; gap: 1px; align-content: start; }
.p-kachel span { font-size: .92rem; color: var(--grau, #44525a); }
.p-kachel strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.p-kachel.p-heute { border-color: var(--petrol, #12343b); box-shadow: inset 0 0 0 1px var(--petrol, #12343b); }
.p-kachel.p-leer strong { font-size: 1.05rem; }

.p-diagramm { margin: 0 0 10px; background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: 12px; padding: 12px; }
.p-svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.p-gitter { stroke: #e4e6e1; stroke-width: 1; }
.p-null { stroke: var(--tinte, #14262b); stroke-width: 1.2; }
.p-achse { font-size: 10px; fill: var(--grau, #44525a); font-family: var(--schrift, system-ui, sans-serif); }
.p-balken .p-guenstig, .p-bal.p-guenstig { fill: #2f8a5f; }
.p-balken .p-mittel, .p-bal.p-mittel { fill: #6f858c; }
.p-balken .p-teuer, .p-bal.p-teuer { fill: #c2603f; }
.p-balken .p-vorbei { opacity: .32; }
.p-bal { fill: var(--petrol, #12343b); }
.p-bal.p-hell { fill: #8fb3b8; }
.p-band { fill: #f2b134; opacity: .28; }
.p-jetzt-linie { stroke: var(--tinte, #14262b); stroke-width: 2.5; stroke-dasharray: 5 4; }
.p-legende { font-size: .92rem; color: var(--grau, #44525a); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 8px; }
.p-l { display: inline-block; width: 14px; height: 12px; border-radius: 2px; margin-left: 6px; }
.p-li { white-space: nowrap; margin-right: 10px; display: inline-flex; align-items: center; gap: 6px; }
.p-li .p-l { margin-left: 0; }
.p-l-guenstig { background: #2f8a5f; }
.p-l-mittel { background: #6f858c; }
.p-l-teuer { background: #c2603f; }
.p-l-band { background: rgba(242, 177, 52, .45); }
.p-l-jetzt { width: 3px; background: var(--tinte, #14262b); }
.p-l-dunkel { background: var(--petrol, #12343b); }
.p-l-hell { background: #8fb3b8; }
.p-einheit-txt { flex-basis: 100%; font-size: .88rem; }
.p-ablesen { margin: 6px 0 0; min-height: 1.5em; font-size: .98rem; }
.p-ablesen:empty::before { content: "Zum Ablesen auf das Diagramm tippen oder zeigen."; color: var(--grau, #44525a); font-size: .92rem; }
.p-tabelle { margin: 0 0 18px; }
.p-tab { font-variant-numeric: tabular-nums; }
.p-tab th.zahl, .p-tab td.zahl { text-align: right; white-space: nowrap; }
.p-tab th[scope=row] { font-weight: 600; background: none; }

/* Woche */
.p-woche { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 4px; }
.p-woche li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) 6.2em; gap: 2px 12px; align-items: center; padding: 6px 10px; border-radius: 10px; }
.p-woche li.p-heute { background: var(--weiss, #fff); box-shadow: inset 0 0 0 1px var(--petrol, #12343b); }
.p-w-tag { font-weight: 600; }
.p-w-balken svg { display: block; width: 100%; height: 14px; }
.p-w-balken rect { fill: var(--petrol, #12343b); }
.p-w-wert { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-w-min { grid-column: 2 / 4; font-size: .9rem; color: var(--grau, #44525a); }

/* Eigene Werte */
.p-eigen { margin-top: 14px; max-width: 42rem; }
.p-felder { display: grid; gap: 12px; margin: 8px 0 14px; }
@media (min-width: 640px) { .p-felder { grid-template-columns: 1fr 1fr; } }
.p-felder label { display: grid; gap: 4px; font-weight: 600; font-size: .98rem; }
.p-eingabe { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--grau, #44525a); }
.p-eingabe input { font: inherit; width: 6.5em; padding: 9px 10px; border: 1px solid var(--feldrand, #6f7a7c); border-radius: 8px; color: var(--tinte, #14262b); min-height: 44px; }
.p-knopf { font: inherit; font-weight: 700; background: var(--petrol, #12343b); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; min-height: 44px; cursor: pointer; margin-right: 10px; }
.p-knopf:hover { background: var(--petrol-dunkel, #0b2429); }

/* Regler „Stunden unter …“ */
.p-unter label { font-weight: 600; display: block; margin-bottom: 6px; }
.p-unter input[type=range] { width: 100%; max-width: 28rem; accent-color: var(--petrol, #12343b); min-height: 32px; }
.p-unter-erg { font-size: 1.1rem; margin: 6px 0 0; }

/* Weitere Seiten */
.p-weiter { margin: 30px 0 12px; }
.p-weiter h2 { font-size: 1.2rem; }
.p-weiter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.p-weiter a { display: grid; gap: 2px; padding: 12px 14px; background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: 12px; text-decoration: none; color: var(--tinte, #14262b); height: 100%; }
.p-weiter a:hover { border-color: var(--petrol, #12343b); }
.p-weiter span { font-size: .92rem; color: var(--grau, #44525a); }
.p-quelle { font-size: .9rem; color: var(--grau, #44525a); max-width: 50rem; }

/* Zahlenkacheln der Datenseiten */
.p-zahlen { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 10px 0 16px; }
.p-zahl { background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.p-zahl span { font-size: .92rem; color: var(--grau, #44525a); }
.p-zahl strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.p-zahlen-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 46rem; }
.p-saetze { font-size: 1.08rem; max-width: 44rem; margin: 0 0 14px; }
.p-kopf .p-saetze { margin-bottom: 10px; }
.p-blaettern { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.p-blaettern a { font-weight: 600; }

/* Zwei Diagramme nebeneinander (am PC) */
.p-zwei { display: grid; gap: 16px; }
.p-zwei .p-diagramm { margin: 0; }
@media (min-width: 860px) { .p-zwei { grid-template-columns: 1fr 1fr; } .p-zwei .p-achse { font-size: 17px; } }

/* Wärmebild */
.p-waermen { display: grid; gap: 16px; }
@media (min-width: 860px) { .p-waermen { grid-template-columns: 1fr 1fr; } }
.p-waermen figure { margin: 0; background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: 12px; padding: 12px; }
.p-waermen figcaption { font-weight: 700; margin-bottom: 6px; }
.p-waerme { max-width: 460px; margin: 0 auto; }
.p-waerme .p-w { font-size: 15px; }
.p-wert { font-size: 14px; fill: var(--tinte, #14262b); font-family: var(--schrift, system-ui, sans-serif); font-variant-numeric: tabular-nums; }

/* Schnittstelle */
.p-code { background: #10262b; color: #e9f1f1; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .9rem; line-height: 1.45; }
.p-code code { font-family: ui-monospace, Consolas, "Courier New", monospace; }

/* Achsenschrift: mindestens 12 px auf dem Bildschirm */
@media (max-width: 1100px) { .p-achse { font-size: 13px; } }
@media (max-width: 860px) { .p-achse { font-size: 17px; } }
@media (max-width: 560px) {
  .p-achse { font-size: 25px; }
  .p-karte { padding: 16px; }
  .p-kachel { padding: 8px 10px; }
  .p-kachel strong { font-size: 1.1rem; }
  .p-kachel span { font-size: .85rem; }
  .p-diagramm { padding: 6px; }
  .p-schalter label { padding: 8px 12px; font-size: .95rem; }
  .p-marken { gap: 6px; }
  .p-marken a { padding: 8px 12px; font-size: .95rem; }
  .p-woche li { grid-template-columns: 5.6em minmax(0, 1fr) 5.6em; padding: 6px 4px; gap: 2px 8px; }
}

/* Runde 2: schmale Tabellen am Handy (N1 Nr. 2, 3) */
.p-monat { white-space: nowrap; }
@media (max-width: 600px) { .nur-breit { display: none; } }
/* Runde 2 (N1 Nr. 9): „Mehr zu den Börsenpreisen“ als ruhige Linkreihe statt großer Karten */
.p-weiter ul { display: flex; flex-wrap: wrap; gap: 8px; }
.p-weiter a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; height: auto; font-weight: 600; }
.p-weiter a strong { font-weight: 600; }
.p-weiter a span { display: none; }

/* R2 (Runde 3): Themenseiten (/waermepumpe/, /e-auto/, /nachteile/, /wechsel/), Kasten auf den Preisseiten, Abo-Hinweis */
.t-antwort { background: var(--weiss, #fff); border: 2px solid var(--neutral, #35505c); border-radius: 18px; padding: 18px 20px 8px; box-shadow: var(--schatten-gross, 0 2px 10px rgba(0,0,0,.1)); margin: 18px 0 26px; }
.t-antwort.gut { border-color: var(--gut, #17663f); }
.t-antwort.schlecht { border-color: var(--schlecht, #a33a26); }
.t-frage { font-size: .97rem; color: var(--grau, #44525a); margin: 0 0 6px; line-height: 1.45; }
.t-urteil { font-size: clamp(1.9rem, 6.5vw, 2.45rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 6px; color: var(--neutral, #35505c); text-wrap: balance; }
.t-antwort.gut .t-urteil { color: var(--gut, #17663f); }
.t-antwort.schlecht .t-urteil { color: var(--schlecht, #a33a26); }
.t-genau { font-weight: 600; margin: 0 0 10px; }
.t-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.t-knoepfe .knopf { min-height: 48px; padding: 10px 18px; }
.t-knopf-zweit { background: var(--weiss, #fff); color: var(--petrol, #12343b); border: 1.5px solid var(--petrol, #12343b); }
.t-knopf-zweit:hover { background: var(--petrol-hell, #e3eeee); color: var(--petrol-dunkel, #0b2429); }
.t-klein { font-size: .9375rem; color: var(--grau, #44525a); line-height: 1.5; }
.t-antwort .t-klein { border-top: 1px solid var(--linie, #d6d9d3); padding-top: 10px; }
.t-seite h2 { margin-top: 1.7em; }
.t-tabelle td, .t-tabelle th { vertical-align: middle; }
.t-tabelle td.gut { color: var(--gut, #17663f); font-weight: 650; }
.t-tabelle td.schlecht { color: var(--schlecht, #a33a26); font-weight: 650; }
.t-tabelle th .klein { display: block; font-weight: 400; }
.t-tabelle .zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-schritte { padding-left: 1.3em; }
.t-schritte > li { margin-bottom: .8em; padding-left: .2em; }
.t-schritte.t-gross { list-style: none; padding: 0; counter-reset: schritt; }
.t-schritte.t-gross > li { counter-increment: schritt; background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: var(--rund, 14px); box-shadow: var(--schatten, 0 1px 3px rgba(0,0,0,.08)); padding: 16px 20px 8px; margin: 0 0 14px; }
.t-schritte.t-gross > li > h2 { margin: 0 0 8px; font-size: 1.25rem; display: flex; gap: 12px; align-items: baseline; }
.t-schritte.t-gross > li > h2::before { content: counter(schritt); flex: none; display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--petrol, #12343b); color: #fff; font-size: .95rem; align-self: center; }
.t-kacheln { margin: 10px 0 20px; }
.t-seite .p-zahlen-2 { max-width: none; }

.t-lohnt { background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-left: 5px solid var(--bernstein, #f2b134); border-radius: var(--rund, 14px); box-shadow: var(--schatten, 0 1px 3px rgba(0,0,0,.08)); padding: 16px 20px 6px; margin: 22px 0; max-width: 60rem; }
.t-lohnt h2 { margin: 0 0 6px; font-size: 1.25rem; }
.t-lohnt p { margin: 0 0 10px; }
.t-lohnt-liste { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.t-lohnt-liste li { display: grid; gap: 2px; align-content: start; background: var(--papier, #f6f4ee); border-radius: 10px; padding: 12px 14px; }
.t-wer { font-size: .92rem; color: var(--grau, #44525a); line-height: 1.4; }
.t-lohnt-liste strong { font-size: 1.2rem; line-height: 1.2; color: var(--neutral, #35505c); }
.t-lohnt-liste strong.t-gut { color: var(--gut, #17663f); }
.t-lohnt-liste strong.t-schlecht { color: var(--schlecht, #a33a26); }
.t-lohnt-liste a { font-weight: 650; display: inline-flex; align-items: center; min-height: 44px; }

.t-abo { background: var(--weiss, #fff); border: 1px solid var(--linie, #d6d9d3); border-radius: var(--rund, 14px); box-shadow: var(--schatten, 0 1px 3px rgba(0,0,0,.08)); padding: 16px 20px 6px; margin: 22px 0; max-width: 60rem; }
.t-abo h2 { margin: 0 0 6px; font-size: 1.25rem; }
.t-abo-liste { padding-left: 1.2em; }
.t-abo-liste li { margin-bottom: .5em; }
.t-abo code { font-size: .9em; background: var(--papier, #f6f4ee); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.p-tab tr.p-heute th, .p-tab tr.p-heute td { background: var(--petrol-hell, #e3eeee); }
@media (max-width: 600px) {
  .t-antwort { padding: 16px 16px 6px; }
  .t-knoepfe .knopf { flex: 1 1 100%; }
  .t-monate thead { position: absolute; left: -9999px; }
  .t-monate tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 8px 0; border-bottom: 1px solid var(--linie, #d6d9d3); }
  .t-monate th[scope=row] { grid-column: 1 / -1; border: 0; padding: 0 10px 2px; }
  .t-monate td { border: 0; padding: 1px 10px; text-align: left !important; }
  .t-monate td::before { content: attr(data-label) ": "; color: var(--grau, #44525a); font-weight: 400; }
}
.t-tabelle td:last-child:not(.zahl), .t-tabelle th:last-child:not(.zahl) { text-align: left; }
.t-schritte.t-gross ul { padding-left: 1.2em; }
.p-monat .klein { display: block; }
