/* ============================================================
   rechner.css — Single-viewport PV-Rechner
   Fits on one screen at ≥1024px. Stacks on tablet/mobile.
   ============================================================ */

.rc-page {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(107,45,201,0.08), transparent 60%),
    var(--sa-cream);
  min-height: 100vh;
}

.rc-shell {
  padding: 32px 0 48px;
}
.rc-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; gap: 24px;
}
.rc-head__left .sa-pill { margin-bottom: 14px; }
.rc-head h1 {
  font-family: var(--sa-font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.rc-head h1 .grad {
  background: linear-gradient(120deg, var(--sa-purple), var(--sa-purple-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-head__meta {
  font-family: var(--sa-font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--sa-ink-mute);
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.rc-head__meta strong { color: var(--sa-ink); }

.rc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rc-input {
  background: #fff;
  border: 1px solid var(--sa-hair);
  border-radius: var(--sa-radius-xl);
  padding: 28px 32px 24px;
  display: flex; flex-direction: column;
}
.rc-input__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.rc-input__head h2 {
  font-family: var(--sa-font-display);
  font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--sa-ink);
  margin: 0;
}
.rc-input__reset {
  background: transparent; border: none;
  font-family: var(--sa-font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--sa-purple);
  text-transform: uppercase;
  cursor: pointer; padding: 2px 0;
  border-bottom: 1px solid var(--sa-purple);
}
.rc-input__reset:hover { color: var(--sa-purple-deep); }

.rc-field {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--sa-hair);
  margin-top: 18px;
}
.rc-field:first-of-type { border-top: none; padding-top: 4px; margin-top: 18px; }
.rc-field__top {
  display: flex; justify-content: space-between; align-items: baseline;
}
.rc-field__lbl {
  font-family: var(--sa-font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--sa-ink-mute);
  text-transform: uppercase;
}
.rc-field__val {
  font-family: var(--sa-font-display);
  font-size: 22px; font-weight: 600;
  color: var(--sa-ink);
  letter-spacing: -0.015em;
}
.rc-field__hint {
  font-family: var(--sa-font-body);
  font-size: 12px; line-height: 1.45;
  color: var(--sa-ink-mute);
  margin: 4px 0 0;
}

.rc-field input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: var(--sa-hair);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  margin: 6px 0;
}
.rc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--sa-purple);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 10px -2px rgba(107,45,201,0.4);
  transition: transform .15s;
}
.rc-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.rc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--sa-purple);
  border-radius: 999px;
  cursor: pointer;
  border: none;
}

.rc-field__inline {
  display: flex; gap: 12px; align-items: center;
}
.rc-field__inline input[type="text"], .rc-field__inline input[type="number"] {
  width: 110px;
  padding: 10px 14px;
  background: var(--sa-cream);
  border: 1px solid var(--sa-hair);
  border-radius: var(--sa-radius-sm);
  font-family: var(--sa-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--sa-ink);
  outline: none;
  text-align: right;
}
.rc-field__inline input:focus {
  border-color: var(--sa-purple);
  box-shadow: 0 0 0 3px rgba(107,45,201,0.1);
}
.rc-field__inline input::-webkit-outer-spin-button,
.rc-field__inline input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rc-field__inline input { -moz-appearance: textfield; }
.rc-field__inline-suffix {
  font-family: var(--sa-font-mono);
  font-size: 12px; color: var(--sa-ink-mute);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.rc-pill-group {
  display: flex; gap: 6px; margin-top: 2px;
}
.rc-pill-group label {
  flex: 1;
  padding: 11px 8px;
  border: 1px solid var(--sa-hair);
  background: var(--sa-cream);
  border-radius: var(--sa-radius-pill);
  font-family: var(--sa-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--sa-ink-soft);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
  text-align: center;
  line-height: 1.2;
}
.rc-pill-group input { display: none; }
.rc-pill-group label:has(input:checked) {
  background: var(--sa-purple); color: #fff; border-color: var(--sa-purple);
}
.rc-pill-group__hint {
  font-family: var(--sa-font-body);
  font-size: 12px; line-height: 1.45;
  color: var(--sa-ink-mute);
  margin: 8px 0 0;
}

.rc-result {
  background: var(--sa-ink);
  color: #fff;
  border-radius: var(--sa-radius-xl);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.rc-result::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 360px; height: 360px;
  background: var(--sa-purple);
  border-radius: 999px;
  filter: blur(120px); opacity: 0.5;
}
.rc-result > * { position: relative; z-index: 1; }
.rc-result__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.rc-result__head h2 {
  font-family: var(--sa-font-display);
  font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; margin: 0; color: #fff;
}
.rc-result__head .badge {
  font-family: var(--sa-font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--sa-purple-edge);
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(107,45,201,0.25);
  border: 1px solid var(--sa-purple);
  border-radius: 999px;
}

.rc-hero-num { margin: 14px 0 8px; }
.rc-hero-num__lbl {
  font-family: var(--sa-font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.rc-hero-num__val {
  font-family: var(--sa-font-display);
  font-weight: 600;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 4px;
  background: linear-gradient(120deg, #fff, #C9B5FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-hero-num__sub {
  font-family: var(--sa-font-body);
  font-size: 13.5px; color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

.rc-kpis {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--sa-radius-md);
  overflow: hidden;
  margin: 16px 0 16px;
}
.rc-kpi {
  background: rgba(0,0,0,0.2);
  padding: 14px 16px;
}
.rc-kpi__lbl {
  font-family: var(--sa-font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.rc-kpi__val {
  font-family: var(--sa-font-display);
  font-weight: 600; font-size: 22px;
  letter-spacing: -0.015em;
  color: #fff;
  margin-top: 4px;
  line-height: 1.1;
}
.rc-kpi__val .unit {
  font-size: 13px; font-weight: 500;
  color: var(--sa-purple-edge);
  margin-left: 2px;
}

.rc-compare {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.rc-compare-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--sa-font-body);
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  gap: 12px;
}
.rc-compare-row:last-child { border-bottom: none; }
.rc-compare-row strong {
  font-family: var(--sa-font-display);
  font-weight: 600; font-size: 15px;
  color: #fff;
  white-space: nowrap;
}
.rc-compare-row--hi strong {
  color: var(--sa-purple-edge);
  font-size: 16px;
}

.rc-cta {
  margin-top: auto;
  padding-top: 18px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.rc-cta a {
  font-family: var(--sa-font-display);
  font-weight: 600; font-size: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  flex: 1; justify-content: center;
}
.sa-page .rc-cta__primary {
  background: var(--sa-purple);
  color: #fff;
}
.sa-page .rc-cta__primary:hover {
  background: var(--sa-purple-deep);
  color: #fff;
}
.sa-page .rc-cta__secondary {
  background: #25D366;
  color: #fff;
  border: 1px solid #25D366;
}
.sa-page .rc-cta__secondary:hover {
  background: #1ebd5b;
  border-color: #1ebd5b;
  color: #fff;
}

.rc-foot {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--sa-cream-warm);
  border: 1px solid var(--sa-hair);
  border-radius: var(--sa-radius-md);
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
}
.rc-foot__icon {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--sa-purple-soft);
  color: var(--sa-purple);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.rc-foot__text {
  font-family: var(--sa-font-body);
  font-size: 12.5px; line-height: 1.5;
  color: var(--sa-ink-soft);
  flex: 1; min-width: 200px;
}
.rc-foot__text strong { color: var(--sa-ink); }
.rc-foot details summary {
  font-family: var(--sa-font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--sa-purple);
  text-transform: uppercase;
  cursor: pointer; list-style: none;
}
.rc-foot details summary::-webkit-details-marker { display: none; }
.rc-foot details[open] summary { margin-bottom: 8px; }
.rc-foot details p {
  font-family: var(--sa-font-body);
  font-size: 12px; line-height: 1.5;
  color: var(--sa-ink-soft);
  margin: 0;
}

/* Desktop: kompakt, ein Viewport ohne Scrollen (≥1024px) */
@media (min-width: 1025px) {
  .rc-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .rc-page .sa-site-header {
    top: 12px;
    margin-top: 12px;
    flex-shrink: 0;
  }
  .rc-shell {
    flex: 1;
    min-height: 0;
    padding: 10px 0 12px;
    display: flex;
    flex-direction: column;
  }
  .rc-shell > .sa-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .rc-head {
    margin-bottom: 10px;
    gap: 12px;
    flex-shrink: 0;
  }
  .rc-head__left .sa-pill {
    margin-bottom: 6px;
    font-size: 10.5px;
    padding: 4px 10px;
  }
  .rc-head h1 {
    font-size: clamp(22px, 2.4vw, 34px);
  }
  .rc-head__meta {
    font-size: 10px;
    max-width: 280px;
    line-height: 1.45;
    white-space: normal;
  }
  .rc-grid {
    flex: 1;
    min-height: 0;
    gap: 14px;
    align-items: stretch;
  }
  .rc-input,
  .rc-result {
    padding: 16px 20px 14px;
    min-height: 0;
  }
  .rc-input__head h2,
  .rc-result__head h2 {
    font-size: 16px;
  }
  .rc-field {
    gap: 5px;
    padding-top: 10px;
    margin-top: 10px;
  }
  .rc-field:first-of-type {
    padding-top: 2px;
    margin-top: 8px;
  }
  .rc-field__val {
    font-size: 18px;
  }
  .rc-field__hint,
  .rc-pill-group__hint {
    display: none;
  }
  .rc-field input[type="range"] {
    margin: 4px 0;
  }
  .rc-field__inline input[type="text"],
  .rc-field__inline input[type="number"] {
    padding: 8px 12px;
    font-size: 15px;
  }
  .rc-pill-group label {
    padding: 8px 6px;
    font-size: 12px;
  }
  .rc-hero-num {
    margin: 6px 0 2px;
  }
  .rc-hero-num__val {
    font-size: clamp(32px, 3.2vw, 44px);
  }
  .rc-hero-num__sub {
    font-size: 11.5px;
    margin-top: 3px;
    line-height: 1.35;
  }
  .rc-kpis {
    margin: 8px 0 10px;
  }
  .rc-kpi {
    padding: 8px 10px;
  }
  .rc-kpi__val {
    font-size: 17px;
    margin-top: 2px;
  }
  .rc-kpi__val .unit {
    font-size: 11px;
  }
  .rc-compare-row {
    padding: 5px 0;
    font-size: 12px;
  }
  .rc-compare-row strong {
    font-size: 13px;
  }
  .rc-compare-row--hi strong {
    font-size: 14px;
  }
  .rc-cta {
    padding-top: 8px;
    gap: 8px;
  }
  .rc-cta a {
    padding: 10px 16px;
    font-size: 13px;
  }
  .rc-foot {
    margin-top: 8px;
    padding: 8px 12px;
    flex-shrink: 0;
  }
  .rc-foot__icon {
    width: 26px;
    height: 26px;
  }
  .rc-foot__text {
    font-size: 11px;
    line-height: 1.4;
    min-width: 0;
  }
  .rc-page .lp-footer {
    flex-shrink: 0;
    padding: 20px 0;
  }
}

@media (min-width: 1025px) and (max-height: 820px) {
  .rc-head__meta { display: none; }
  .rc-hero-num__sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
  }
  .rc-result__head .badge { display: none; }
}

@media (max-width: 1024px) {
  .rc-grid { grid-template-columns: 1fr; }
  .rc-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rc-head__meta { text-align: left; white-space: normal; }
}
@media (max-width: 560px) {
  .rc-shell { padding: 24px 0 32px; }
  .rc-input, .rc-result { padding: 24px 22px; }
  .rc-hero-num__val { font-size: clamp(40px, 12vw, 56px); }
  .rc-kpi__val { font-size: 18px; }
  .rc-cta a { flex: 1 0 100%; }
  .rc-pill-group { flex-direction: column; }
  .rc-pill-group label { padding: 12px 14px; text-align: left; }
}
