/* Strom-Rechner im Planwerx-Design */
.rechner .wiederhergestellt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; padding: 10px 12px 10px 16px; border-radius: 12px; font-size: 14px; color: #d3d7dd; background: rgba(60, 207, 142, 0.08); border: 1px solid rgba(60, 207, 142, 0.35); }
.rechner .wiederhergestellt button { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.sogehts { padding: clamp(20px, 2.6vw, 28px); }
.sogehts-titel { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 0 0 16px; }
.sogehts-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: sg; }
.sogehts-liste li { counter-increment: sg; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 4px; align-content: start; }
.sogehts-liste li::before { content: counter(sg); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: rgba(240, 58, 58, 0.18); border: 1px solid rgba(240, 58, 58, 0.45); }
.sogehts-liste b { font-size: 16px; font-weight: 650; line-height: 34px; }
.sogehts-liste span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sogehts-fuss { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
@media (max-width: 860px) { .sogehts-liste { grid-template-columns: 1fr; gap: 16px; } }
.rechner { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1240px) { .rechner { grid-template-columns: minmax(0, 1fr); } }
.rechner > div { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.rechner > section, .rechner section.glass { min-width: 0; }
#abgaenge { overflow-x: auto; }
.rechner .abg { min-width: 0; }
.rechner section.glass { padding: clamp(20px, 2.6vw, 28px); }
.rechner h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: -0.01em; }
.rechner label { font-size: 13.5px; color: var(--muted); font-weight: 550; }
.rechner input[type=text], .rechner input[type=number], .rechner select {
  width: 100%; font: 15px/1.3 var(--font); color: var(--text);
  padding: 9px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.rechner select { background-color: #1a1d22; }
.rechner input:focus, .rechner select:focus { outline: none; border-color: rgba(240, 58, 58, 0.7); box-shadow: 0 0 0 3px rgba(240, 58, 58, 0.15); }
.rechner input:disabled { opacity: 0.45; }
.rechner input[type=checkbox] { accent-color: var(--red); width: 17px; height: 17px; }
.rechner button {
  font: 600 14.5px/1 var(--font); color: var(--text); cursor: pointer;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}
.rechner button:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }
.rechner button.haupt { background: var(--red); border-color: var(--red); color: #fff; }
.rechner button.haupt:hover { background: var(--red-hover); }
.rechner .reihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.rechner .reihe > * { flex: 0 0 auto; }
.rechner .projekt { display: grid; gap: 12px; margin-bottom: 20px; }

.rechner .tabelle { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.rechner .tabelle table { min-width: 560px; table-layout: fixed; }
.rechner .tabelle td input, .rechner .tabelle td select { font-size: 14px; padding: 8px 8px; }
.rechner .tabelle td select { padding-right: 4px; }
.rechner table { width: 100%; border-collapse: collapse; }
.rechner th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); padding: 8px 5px; border-bottom: 1px solid var(--line); }
.rechner td { padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.rechner td.zahl, .rechner th.zahl { text-align: right; white-space: nowrap; }
.rechner .col-watt { width: 76px; } .rechner .col-anz { width: 54px; } .rechner .col-art { width: 148px; } .rechner .col-sum { width: 74px; } .rechner .col-x { width: 32px; }
.rechner .x { border: none; background: none; color: var(--dim); font-size: 20px; min-height: 32px; padding: 0 8px; }
.rechner .x:hover { color: var(--red); background: var(--red-soft); }
.rechner tfoot td { font-weight: 700; border-bottom: none; padding-top: 12px; }
.rechner .f-sum { color: #d3d7dd; font-size: 14px; }

.rechner .vorlage { margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--line-strong); }
.rechner .vorlage .reihe > .wahl { flex: 1 1 260px; }

.rechner .einst { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .rechner .einst { grid-template-columns: 1fr; } }
.rechner .einst .feld { display: flex; flex-direction: column; gap: 6px; }
.rechner .check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14.5px; }
.rechner .klein-text { font-size: 12.5px; color: var(--dim); line-height: 1.5; }

#ergebnis { position: sticky; top: 96px; }
@media (max-width: 1240px) { #ergebnis { position: static; } }
.rechner .ergebnis-kopf { border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; background: linear-gradient(135deg, rgba(240, 58, 58, 0.22), rgba(240, 58, 58, 0.05)); border: 1px solid rgba(240, 58, 58, 0.35); }
.rechner .ergebnis-kopf .label { font-size: 11.5px; color: #ffb0b0; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 650; }
.rechner .ergebnis-kopf .gross { font-size: 23px; font-weight: 760; color: #fff; margin: 4px 0 6px; letter-spacing: -0.02em; line-height: 1.2; }
.rechner #kurztext { color: #e3d6d6; }
.rechner .kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.rechner .kz { border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; background: rgba(255, 255, 255, 0.035); }
.rechner .kz b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.rechner .kz span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }
@media (max-width: 420px) { .rechner .kennzahlen { grid-template-columns: 1fr 1fr; } }

.rechner .phase { display: grid; grid-template-columns: 30px 1fr 76px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.rechner .balken { height: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; position: relative; }
.rechner .balken i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #2fb57a, #6fe0aa); border-radius: 8px; transition: width 0.5s var(--ease); }
.rechner .balken i.hoch { background: linear-gradient(90deg, #d68a1f, var(--warn)); }
.rechner .balken i.voll { background: linear-gradient(90deg, #c92a2a, var(--red)); }

.rechner .abg { width: 100%; font-size: 13.5px; margin-top: 6px; }
.rechner .abg td, .rechner .abg th { padding: 7px 5px; }
.rechner .ph { display: inline-block; min-width: 28px; text-align: center; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 5px; }
.rechner .ph1 { background: #8a5a2b; } .rechner .ph2 { background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); } .rechner .ph3 { background: #6b7480; } .rechner .ph123 { background: var(--red); }
.rechner .hinweis { background: rgba(242, 180, 76, 0.1); border: 1px solid rgba(242, 180, 76, 0.3); border-left: 3px solid var(--warn); color: #f3dcae; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin: 10px 0; }
.rechner .fuss { font-size: 12.5px; color: var(--dim); margin-top: 16px; }
.rechner details summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.rechner details p { margin-top: 8px; }

.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { padding: 0; border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); font-size: 15.5px; }

.nur-druck, .wasserzeichen, .druck-fuss { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000; font-size: 11.5px; }
  body::before, body::after, .nav, .footer, .page-hero .hero-bg, .faq-sec, .cta-sec, .kein-druck, .vorlage, .x, .rechner button, .skip { display: none !important; }
  .page-hero { padding: 0 0 8px; }
  .page-hero h1 { font-size: 22px; color: #000; }
  .page-hero .lead, .crumbs { display: none; }
  .section { padding: 0; }
  .rechner { display: block; }
  .rechner section.glass { background: none !important; border: none; box-shadow: none; padding: 0 0 12px; break-inside: avoid; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rechner, .rechner * { color: #000 !important; }
  .rechner .ergebnis-kopf, .rechner .kz { background: #f4f4f4 !important; border: 1px solid #ccc; }
  .rechner .ph { color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rechner .balken, .rechner .balken i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rechner input, .rechner select { border: none; padding: 0; background: none !important; appearance: none; -webkit-appearance: none; }
  .nur-druck { display: block; margin-bottom: 8px; }
  /* Wasserzeichen auf jeder Seite */
  .wasserzeichen { display: flex; position: fixed; inset: 0; align-items: center; justify-content: center; pointer-events: none; z-index: 0; }
  .wasserzeichen span { transform: rotate(-32deg); font: 800 104px/1 var(--font); letter-spacing: 0.08em; color: rgba(0, 0, 0, 0.06) !important; white-space: nowrap; }
  .wasserzeichen b { color: rgba(240, 58, 58, 0.12) !important; font-weight: 800; }
  .druck-fuss { display: block; position: fixed; left: 0; right: 0; bottom: 0; font-size: 9px; color: #777 !important; text-align: center; }
  .rechner { position: relative; z-index: 1; }
  #ergebnis { position: static; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
