/* ------------------------------------------------------------------
   Energo Klima-Preisrechner – Vanilla CSS
   Alle Regeln sind unter .ekr gekapselt und mit ekr- praefixiert,
   damit nichts mit dem WordPress-Theme (Oxygen) kollidiert.
   ------------------------------------------------------------------ */

.ekr {
  --ekr-ink: #171719;
  --ekr-muted: #69696e;
  --ekr-line: #dddddf;
  --ekr-soft: #f5f5f3;
  --ekr-paper: #fff;
  --ekr-orange: #f47f20;
  --ekr-orange-dark: #d95f08;
  --ekr-orange-soft: #fff3e9;
  --ekr-shadow: 0 28px 70px #1717191f;

  color: var(--ekr-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scoped Reset – wirkt nur innerhalb des Rechners */
.ekr *,
.ekr *::before,
.ekr *::after { box-sizing: border-box; }

.ekr h1, .ekr h2, .ekr h3, .ekr h4,
.ekr p, .ekr ul, .ekr figure, .ekr fieldset { margin: 0; padding: 0; }

.ekr fieldset { border: 0; min-width: 0; }
.ekr legend { padding: 0; }
.ekr ul { list-style: none; }
.ekr img { max-width: 100%; height: auto; display: block; }
.ekr a { color: inherit; }
.ekr button, .ekr input, .ekr textarea, .ekr select { font: inherit; color: inherit; }
.ekr button, .ekr label { -webkit-tap-highlight-color: transparent; }
.ekr textarea { resize: vertical; }
.ekr small { font-size: 80%; }

/* ---------- Promo-Leiste ---------- */
.ekr-promo-bar { background: var(--ekr-orange); color: #fff; width: 100%; }
.ekr-promo-bar__inner {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  text-align: center; width: min(1180px, 100% - 40px); min-height: 48px; margin: 0 auto;
}
.ekr-promo-bar strong { font-size: 15px; letter-spacing: .01em; }
.ekr-promo-bar span { border-left: 1px solid #ffffff80; padding-left: 18px; font-size: 13px; font-weight: 700; }

/* ---------- Kopfbereich ---------- */
.ekr-site-header { background: #fffffff0; border-bottom: 1px solid #1717191a; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ekr-site-header__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: min(1180px, 100% - 40px); min-height: 88px; margin: 0 auto;
}
.ekr-brand { display: inline-flex; }
.ekr-brand img { width: 205px; }
.ekr-header-contact { display: grid; gap: 3px; text-align: right; }
.ekr-header-contact span { color: var(--ekr-muted); font-size: 12px; }
.ekr-header-contact a { font-size: 16px; font-weight: 700; text-decoration: none; }

/* ---------- Hero ---------- */
.ekr-hero {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(560px, 1.15fr);
  align-items: start; gap: 72px; width: min(1180px, 100% - 40px);
  margin: 0 auto; padding: 76px 0 92px; position: relative;
}
.ekr-hero::before {
  content: ""; position: absolute; top: 20px; right: -110px; z-index: -1;
  width: 410px; height: 410px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #f47f201c, #f47f2000);
}
.ekr-hero-copy { position: sticky; top: 48px; padding: 48px 0 0; }
.ekr-overline {
  color: var(--ekr-orange-dark); letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 18px; font-size: 12px; font-weight: 800;
}
.ekr-hero-copy > .ekr-overline { letter-spacing: .09em; font-size: 16px; line-height: 1.45; }
.ekr-hero-copy h1 {
  letter-spacing: -.055em; max-width: 510px;
  font-size: clamp(48px, 5.4vw, 76px); line-height: .98; font-weight: 700;
}
.ekr-hero-copy h1 span { color: var(--ekr-orange); }
.ekr-hero-copy__intro { max-width: 500px; color: var(--ekr-muted); margin: 28px 0 0; font-size: 18px; line-height: 1.65; }
.ekr-trust-list { display: grid; gap: 20px; margin-top: 40px; }
.ekr-trust-list > div { display: flex; align-items: flex-start; gap: 14px; }
.ekr-trust-check {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ekr-orange-soft); color: var(--ekr-orange-dark);
  font-size: 14px; font-weight: 900;
}
.ekr-trust-list p { display: grid; gap: 4px; }
.ekr-trust-list strong { font-size: 15px; }
.ekr-trust-list small { color: var(--ekr-muted); font-size: 13px; line-height: 1.4; }

/* ---------- Konfigurator ---------- */
.ekr-configurator {
  background: var(--ekr-paper); min-height: 650px; box-shadow: var(--ekr-shadow);
  border: 1px solid #17171917; border-radius: 28px; overflow: hidden;
}
.ekr-configurator__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px 32px 20px; }
.ekr-configurator__eyebrow {
  color: var(--ekr-orange-dark); letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 4px; font-size: 11px; font-weight: 800;
}
.ekr-configurator__top h2 { letter-spacing: -.03em; font-size: 25px; font-weight: 700; }
.ekr-step-count { color: var(--ekr-muted); white-space: nowrap; font-size: 12px; }
.ekr-progress { background: #eeeeec; height: 4px; }
.ekr-progress span { display: block; height: 100%; background: var(--ekr-orange); border-radius: 0 3px 3px 0; transition: width .22s; }

.ekr-step-panel { padding: 30px 32px 24px; animation: ekr-step-in .22s ease-out; }
@keyframes ekr-step-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.ekr-step-heading { margin-bottom: 26px; }
.ekr-step-heading p, .ekr-contact-heading > p {
  color: var(--ekr-orange-dark); letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 8px; font-size: 11px; font-weight: 800;
}
.ekr-step-heading h3, .ekr-contact-heading h3 { letter-spacing: -.025em; font-size: 23px; line-height: 1.2; font-weight: 700; }

/* ---------- Schritt 1: Pakete ---------- */
.ekr-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ekr-choice-card {
  display: flex; flex-direction: column; position: relative; cursor: pointer;
  border: 1.5px solid var(--ekr-line); border-radius: 17px;
  min-height: 212px; padding: 20px 16px 18px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.ekr-choice-card:hover { border-color: #b8b8bc; transform: translateY(-2px); }
.ekr-choice-card--selected { border-color: var(--ekr-orange); box-shadow: 0 0 0 3px #f47f201c; }
.ekr-choice-card input,
.ekr-segment input,
.ekr-line-option input,
.ekr-toggle-option > input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ekr-choice-card__radio { position: absolute; top: 17px; right: 17px; width: 18px; height: 18px; border: 1.5px solid #bbb; border-radius: 50%; }
.ekr-choice-card--selected .ekr-choice-card__radio { border: 5px solid var(--ekr-orange); }
.ekr-choice-card__eyebrow {
  color: var(--ekr-orange-dark); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 28px; font-size: 11px; font-weight: 800;
}
.ekr-choice-card strong { padding-right: 5px; font-size: 16px; line-height: 1.2; }
.ekr-choice-card small { color: var(--ekr-muted); margin-top: 8px; font-size: 11px; line-height: 1.45; }
.ekr-choice-card b { margin-top: auto; padding-top: 16px; font-size: 14px; }

.ekr-included-note, .ekr-review-alert {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--ekr-soft); border-radius: 13px; margin-top: 20px; padding: 15px 16px;
}
.ekr-included-note > span, .ekr-review-alert > span {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ekr-ink); color: #fff; font-size: 12px; font-weight: 800;
}
.ekr-included-note p, .ekr-review-alert p { color: var(--ekr-muted); margin: 1px 0 0; font-size: 12px; line-height: 1.55; }

/* ---------- Schritt 2: Gebaeude & Leitungsweg ---------- */
.ekr-field-group { margin: 0 0 25px; }
.ekr-field-label { display: block; color: #353538; margin-bottom: 11px; font-size: 13px; font-weight: 700; }
.ekr-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ekr-input-with-unit > span { display: block; color: var(--ekr-muted); margin-bottom: 6px; font-size: 11px; }
.ekr-input-with-unit > div { position: relative; }
.ekr-input-with-unit input {
  width: 100%; height: 48px; padding: 0 42px 0 13px;
  border: 1px solid var(--ekr-line); border-radius: 11px; background: #fff; outline: 0;
}
.ekr-input-with-unit input:focus,
.ekr-contact-form input:focus,
.ekr-contact-form textarea:focus { border-color: var(--ekr-orange); box-shadow: 0 0 0 3px #f47f201a; }
.ekr-input-with-unit b { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: var(--ekr-muted); font-size: 12px; }

.ekr-range-field { display: block; margin-bottom: 27px; }
.ekr-range-field__value {
  display: inline-flex; background: var(--ekr-ink); color: #fff;
  border-radius: 9px; margin-bottom: 10px; padding: 7px 11px; font-size: 14px; font-weight: 800;
}
.ekr-range-field input {
  appearance: none; -webkit-appearance: none; width: 100%; height: 6px;
  accent-color: var(--ekr-orange); background: #e4e4e2; border-radius: 5px;
}
.ekr-range-field input::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px;
  background: var(--ekr-orange); border: 4px solid #fff; border-radius: 50%;
  box-shadow: 0 1px 5px #00000038; cursor: pointer;
}
.ekr-range-field input::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--ekr-orange);
  border: 4px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px #00000038; cursor: pointer;
}
.ekr-range-field__legend { display: flex; justify-content: space-between; gap: 12px; color: var(--ekr-muted); margin-top: 9px; font-size: 10px; }

.ekr-segmented-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ekr-segment {
  display: grid; gap: 5px; position: relative; cursor: pointer;
  border: 1px solid var(--ekr-line); border-radius: 12px; min-height: 78px; padding: 14px 12px;
}
.ekr-segment--selected { border-color: var(--ekr-orange); background: var(--ekr-orange-soft); }
.ekr-segment strong { font-size: 12px; }
.ekr-segment small { color: var(--ekr-muted); font-size: 10px; line-height: 1.35; }

/* ---------- Schritt 3: Montageoptionen ---------- */
.ekr-stacked-options { display: grid; gap: 8px; }
.ekr-line-option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  position: relative; cursor: pointer;
  border: 1px solid var(--ekr-line); border-radius: 12px; min-height: 54px; padding: 12px 14px 12px 46px;
}
.ekr-line-option--selected { border-color: var(--ekr-orange); background: var(--ekr-orange-soft); }
.ekr-line-option__radio { position: absolute; left: 15px; width: 18px; height: 18px; border: 1.5px solid #aaa; border-radius: 50%; }
.ekr-line-option--selected .ekr-line-option__radio { border: 5px solid var(--ekr-orange); background: #fff; }
.ekr-line-option strong { font-size: 12px; font-weight: 650; }
.ekr-line-option b { color: var(--ekr-muted); text-align: right; font-size: 11px; }

.ekr-toggle-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  position: relative; cursor: pointer;
  border: 1px solid var(--ekr-line); border-radius: 13px; min-height: 72px; padding: 14px;
}
.ekr-toggle-option--on { border-color: var(--ekr-orange); background: var(--ekr-orange-soft); }
.ekr-toggle { background: #ceced0; border-radius: 20px; width: 39px; height: 23px; padding: 3px; transition: background .16s; }
.ekr-toggle i { display: block; width: 17px; height: 17px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0000002e; transition: transform .16s; }
.ekr-toggle-option--on .ekr-toggle { background: var(--ekr-orange); }
.ekr-toggle-option--on .ekr-toggle i { transform: translate(16px); }
.ekr-toggle-option > span:nth-of-type(2) { display: grid; gap: 4px; }
.ekr-toggle-option strong { font-size: 12px; }
.ekr-toggle-option small { color: var(--ekr-muted); font-size: 10px; line-height: 1.35; }
.ekr-toggle-option > b { color: var(--ekr-muted); font-size: 11px; }

/* ---------- Schritt 4: Ergebnis & Kontakt ---------- */
.ekr-result-panel { padding-top: 24px; }
.ekr-result-price { background: var(--ekr-ink); color: #fff; border-radius: 18px; padding: 24px; }
.ekr-result-price p { color: #bdbdc0; margin: 0 0 8px; font-size: 12px; }
.ekr-result-price strong { display: block; letter-spacing: -.045em; font-size: clamp(36px, 5vw, 50px); }
.ekr-result-price span { display: block; color: #bdbdc0; margin-top: 5px; font-size: 10px; }

.ekr-review-alert { background: #fff7e7; }
.ekr-review-alert > span { background: var(--ekr-orange); }
.ekr-review-alert p { display: grid; gap: 3px; color: #67441d; }

.ekr-breakdown { border-bottom: 1px solid var(--ekr-line); margin: 16px 0 28px; }
.ekr-breakdown summary { cursor: pointer; color: var(--ekr-muted); padding: 2px 0 16px; font-size: 11px; font-weight: 700; }
.ekr-breakdown > div { padding-bottom: 14px; }
.ekr-breakdown p { display: flex; justify-content: space-between; gap: 18px; color: var(--ekr-muted); margin: 0; padding: 6px 0; font-size: 11px; }
.ekr-breakdown b { color: var(--ekr-ink); }
.ekr-included-services { background: var(--ekr-soft); border-radius: 13px; margin-top: 12px; padding: 18px; }
.ekr-included-services h4 { color: var(--ekr-ink); margin: 0 0 13px; font-size: 13px; }
.ekr-included-services ul { display: grid; gap: 8px; margin: 0; padding-left: 19px; list-style: disc; }
.ekr-included-services li { color: var(--ekr-muted); padding-left: 2px; font-size: 11px; line-height: 1.5; }
.ekr-included-services li::marker { color: var(--ekr-orange); }

.ekr-contact-heading { margin-bottom: 20px; }
.ekr-contact-heading > span { display: block; color: var(--ekr-muted); margin-top: 7px; font-size: 11px; }
.ekr-contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; position: relative; }
.ekr-honeypot-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ekr-contact-form label:not(.ekr-privacy-check) { display: grid; gap: 6px; }
.ekr-contact-form label > span:first-child { color: #353538; font-size: 11px; font-weight: 700; }
.ekr-contact-form input, .ekr-contact-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--ekr-line); border-radius: 10px; outline: 0;
}
.ekr-contact-form input { height: 44px; padding: 0 12px; }
.ekr-contact-form textarea { padding: 10px 12px; }
.ekr-contact-form__full { grid-column: 1 / -1; }
.ekr-privacy-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; position: relative; cursor: pointer; }
.ekr-privacy-check input { width: 17px; height: 17px; accent-color: var(--ekr-orange); margin: 1px 0 0; }
.ekr-privacy-check span { color: var(--ekr-muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.ekr-privacy-check a { color: var(--ekr-ink); font-weight: 700; }
.ekr-mail-hint { color: var(--ekr-muted); text-align: center; margin: -4px 0 0; font-size: 10px; }
.ekr-submit-status { text-align: center; border-radius: 10px; margin: 0; padding: 13px 15px; font-size: 12px; line-height: 1.5; }
.ekr-submit-status--success { color: #185a2d; background: #eaf7ee; }
.ekr-submit-status--error { color: #8a2b1d; background: #fff0ed; }
.ekr-submit-status a { font-weight: 800; }

/* ---------- Fussleiste des Konfigurators ---------- */
.ekr-configurator__footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--ekr-line); min-height: 79px; padding: 17px 32px;
}
.ekr-primary-button, .ekr-back-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 18px;
  cursor: pointer; border: 0; border-radius: 10px; min-height: 46px; font-size: 13px; font-weight: 800;
}
.ekr-primary-button {
  background: var(--ekr-orange); color: #fff; padding: 0 20px;
  box-shadow: 0 8px 20px #f47f2033; transition: background .15s, transform .15s;
}
.ekr-primary-button:hover { background: var(--ekr-orange-dark); transform: translateY(-1px); }
.ekr-primary-button:disabled { cursor: not-allowed; opacity: .72; transform: none; }
.ekr-primary-button span { font-size: 17px; }
.ekr-back-button { color: var(--ekr-muted); background: none; padding: 0; }
.ekr-back-button:hover { color: var(--ekr-ink); }

/* ---------- Leistungsuebersicht ---------- */
.ekr-package-includes { border-top: 1px solid var(--ekr-line); background: var(--ekr-soft); }
.ekr-package-includes__inner { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 88px 0 96px; }
.ekr-package-includes h2 { letter-spacing: -.04em; max-width: 650px; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 700; }
.ekr-include-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 50px; }
.ekr-include-grid article { background: #fff; border: 1px solid #dededc; border-radius: 18px; min-height: 210px; padding: 24px; }
.ekr-include-grid h3 { margin: 20px 0 14px; font-size: 22px; line-height: 1.2; font-weight: 700; }
.ekr-include-grid p { color: var(--ekr-muted); font-size: 15px; line-height: 1.55; }

.ekr-back-home-section { display: flex; justify-content: center; padding: 56px 20px 12px; }
.ekr-back-home-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 20px;
  background: var(--ekr-orange); color: #fff; border-radius: 12px;
  width: min(760px, 100%); min-height: 58px; padding: 0 28px;
  font-size: 15px; font-weight: 800; text-decoration: none;
  box-shadow: 0 12px 28px #f47f2038; transition: background .15s, transform .15s;
}
.ekr-back-home-button:hover { background: var(--ekr-orange-dark); transform: translateY(-1px); }
.ekr-back-home-button span { font-size: 20px; }

.ekr-site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  width: min(1180px, 100% - 40px); min-height: 160px; margin: 0 auto;
}
.ekr-site-footer > div { display: grid; gap: 10px; }
.ekr-site-footer p { color: var(--ekr-muted); margin: 0; font-size: 11px; }
.ekr-site-footer > div:last-child { text-align: right; }
.ekr-site-footer a { font-size: 12px; font-weight: 700; text-decoration: none; }
.ekr-footer-legal { display: flex; justify-content: flex-end; gap: 18px; margin-top: 5px; }
.ekr-footer-legal a { color: var(--ekr-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .ekr-hero { grid-template-columns: 1fr; gap: 54px; }
  .ekr-hero-copy { position: static; max-width: 720px; padding-top: 12px; }
  .ekr-hero-copy h1 { max-width: 700px; }
  .ekr-configurator { width: 100%; max-width: 720px; margin: 0 auto; }
  .ekr-include-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .ekr-promo-bar__inner { flex-direction: column; gap: 3px; width: min(100% - 28px, 1180px); padding: 10px 0; }
  .ekr-promo-bar strong { font-size: 13px; }
  .ekr-promo-bar span { border-left: 0; padding-left: 0; font-size: 11px; line-height: 1.35; }
  .ekr-site-header__inner, .ekr-hero, .ekr-package-includes__inner, .ekr-site-footer { width: min(100% - 28px, 1180px); }
  .ekr-site-header__inner { min-height: 76px; }
  .ekr-brand img { width: 168px; }
  .ekr-header-contact a { font-size: 12px; }
  .ekr-header-contact span { font-size: 10px; }
  .ekr-hero { gap: 42px; padding: 48px 0 64px; }
  .ekr-hero-copy h1 { font-size: clamp(46px, 14vw, 62px); }
  .ekr-hero-copy__intro { font-size: 16px; }
  .ekr-configurator { border-radius: 20px; min-height: 0; }
  .ekr-configurator__top, .ekr-step-panel, .ekr-configurator__footer { padding-left: 19px; padding-right: 19px; }
  .ekr-configurator__top { padding-top: 23px; }
  .ekr-configurator__top h2 { font-size: 21px; }
  .ekr-package-grid { grid-template-columns: 1fr; }
  .ekr-choice-card { min-height: 160px; }
  .ekr-choice-card__eyebrow { margin-bottom: 18px; }
  .ekr-room-grid, .ekr-segmented-options, .ekr-contact-form { grid-template-columns: 1fr; }
  .ekr-segment { min-height: 64px; }
  .ekr-contact-form__full { grid-column: auto; }
  .ekr-line-option { flex-direction: column; align-items: flex-start; padding-right: 12px; }
  .ekr-line-option b { padding-left: 0; }
  .ekr-toggle-option { grid-template-columns: auto 1fr; }
  .ekr-toggle-option > b { grid-column: 2; }
  .ekr-package-includes__inner { padding: 65px 0 72px; }
  .ekr-include-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .ekr-include-grid article { min-height: 165px; }
  .ekr-include-grid h3 { margin-top: 10px; }
  .ekr-back-home-section { padding-top: 38px; }
  .ekr-back-home-button { min-height: 54px; font-size: 14px; }
  .ekr-site-footer { flex-direction: column; align-items: flex-start; padding: 38px 0; }
  .ekr-site-footer > div:last-child { text-align: left; }
  .ekr-footer-legal { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ekr *, .ekr *::before, .ekr *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
