.bhkw-wp-root {
      --bhkw-bg: #ffffff;
      --bhkw-card: #ffffff;
      --bhkw-text: #1f2937;
      --bhkw-muted: #6b7280;
      --bhkw-border: #d9d9d9;
      --bhkw-accent: #003366;
      --bhkw-accent-dark: #00264d;
      --bhkw-accent-text: #ffffff;
      --bhkw-soft: #f2f2f2;
      --bhkw-warning: #92400e;
      --bhkw-radius: 0;
      --bhkw-gap: 32px;
      font-family: inherit;
      color: var(--bhkw-text);
      background: var(--bhkw-bg);
      container-type: inline-size;
      container-name: bhkw-rechner;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

.bhkw-wp-root .bhkw-calculator,
.bhkw-wp-root .bhkw-consultation {
      box-sizing: border-box;
      width: 100%;
      margin: 0;
      display: grid;
      grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
      gap: calc(var(--bhkw-gap) * 2);
      align-items: start;
    }
.bhkw-wp-root .bhkw-consultation {
      grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
    }

.bhkw-wp-root .bhkw-card {
      background: var(--bhkw-card);
      /*
      border: 1px solid var(--bhkw-border);
      border-radius: 0;
      padding: 24px;
      */
    }

.bhkw-wp-root .bhkw-input-row,
.bhkw-wp-root .bhkw-energy-options,
.bhkw-wp-root .bhkw-credit-box {
      width: fit-content;
    }
.bhkw-wp-root .bhkw-input-row:has(> .bhkw-range-control) {
      width: 100%;
    }
.bhkw-wp-root .bhkw-field:has(> .bhkw-input-row .bhkw-range-control) {
      width: 80%;
    }

.bhkw-wp-root .bhkw-results,
.bhkw-wp-root .bhkw-consultation .bhkw-card:nth-child(2) {
      border: 16px solid var(--bhkw-border);
      border-radius: 28px;
      padding: var(--bhkw-gap);
    }


.bhkw-wp-root .bhkw-header {
      margin-bottom: 20px;
    }

.bhkw-wp-root .bhkw-header h1,
.bhkw-wp-root .bhkw-header h2 {
      margin: 0 0 8px;
      /* font-size: clamp(1.4rem, 2.5vw, 2rem); */
      line-height: 1.15;
      letter-spacing: -0.02em;
    }

.bhkw-wp-root .bhkw-header p {
      margin: 0;
      color: var(--bhkw-muted);
      line-height: 1.55;
    }

.bhkw-wp-root .bhkw-form {
      display: grid;
      gap: var(--bhkw-gap);
    }

.bhkw-wp-root .bhkw-field-list {
      display: grid;
      gap: calc(var(--bhkw-gap) * 0.75);
    }

.bhkw-wp-root .bhkw-field-head {
      display: flex;
      gap: 12px;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 8px;
    }

.bhkw-wp-root .bhkw-label {
      font-weight: 700;
      line-height: 1.3;
    }

.bhkw-wp-root .bhkw-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--bhkw-muted);
      font-size: 0.88rem;
      white-space: nowrap;
      cursor: pointer;
    }

.bhkw-wp-root .bhkw-toggle input {
      width: 16px;
      height: 16px;
      accent-color: var(--bhkw-accent);
    }

.bhkw-wp-root .bhkw-input-row {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      border: 1px solid var(--bhkw-border);
      border-radius: 0;
      overflow: hidden;
      background: #fff;
      transition: border-color 0.15s ease;
    }

.bhkw-wp-root .bhkw-input-row:focus-within {
      border-color: var(--bhkw-accent);
      outline: 2px solid rgba(0, 51, 102, 0.32);
      outline-offset: 1px;
    }

    .bhkw-wp-root .bhkw-input-row input,
    .bhkw-wp-root .bhkw-input-row select {
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      border: 0;
      outline: 0;
      padding: 12px 14px;
      font: inherit;
      color: var(--bhkw-text);
      background: transparent;
    }

.bhkw-wp-root .bhkw-input-row select {
      cursor: pointer;
    }

.bhkw-wp-root .bhkw-input-row input:disabled,
.bhkw-wp-root .bhkw-input-row select:disabled {
      color: #4b5563;
      background: #f3f4f6;
      cursor: not-allowed;
    }

.bhkw-wp-root .bhkw-unit {
      align-self: stretch;
      display: inline-flex;
      align-items: center;
      padding: 0 12px;
      color: var(--bhkw-muted);
      background: #f3f4f6;
      border-left: 1px solid var(--bhkw-border);
      min-width: 46px;
      justify-content: center;
    }

.bhkw-wp-root .bhkw-help {
      margin: 8px 0 0;
      color: var(--bhkw-muted);
      line-height: 1.45;
      font-size: 0.9rem;
    }

.bhkw-wp-root .bhkw-submit {
      appearance: none;
      border: 0;
      border-radius: 0;
      padding: 13px 18px;
      background: var(--bhkw-accent);
      color: #fff;
      font-weight: 700;
      font: inherit;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.15s ease;
    }

.bhkw-wp-root .bhkw-submit:hover,
.bhkw-wp-root .bhkw-submit:focus-visible {
      background: var(--bhkw-accent-dark);
    }

.bhkw-wp-root .bhkw-submit:active {
      transform: translateY(1px);
    }

.bhkw-wp-root .bhkw-results {
      position: sticky;
      top: 20px;
    }

    .bhkw-wp-root .bhkw-highlight {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 18px;
      align-items: center;
      padding: calc(var(--bhkw-gap) * 0.75);
      border-radius: 14px;
      background: var(--bhkw-accent);
      margin-bottom: var(--bhkw-gap);
    }

    .bhkw-wp-root .bhkw-highlight-label {
      color: var(--bhkw-accent-text);
      font-weight: 700;
      margin-bottom: 4px;
    }

    .bhkw-wp-root .bhkw-highlight-model {
      color: var(--bhkw-accent-text);
      font-size: 1.35rem;
      font-weight: 800;
      line-height: 1.1;
    }

    .bhkw-wp-root .bhkw-highlight-value {
      text-align: right;
      font-weight: 900;
      font-size: clamp(2rem, 5vw, 3.4rem);
      line-height: 0.95;
      letter-spacing: -0.04em;
      color: var(--bhkw-accent-text);
      border-bottom: 2px solid #ff0000;
      padding-bottom: 4px;
    }

    .bhkw-wp-root .bhkw-highlight-unit {
      display: block;
      margin-top: 6px;
      color: var(--bhkw-accent-text);
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0;
    }

    .bhkw-wp-root .bhkw-result-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }

    .bhkw-wp-root .bhkw-result-item {
      border: 1px solid var(--bhkw-border);
      border-radius: 0;
      padding: 14px;
      min-height: 78px;
      background: #fff;
    }

    .bhkw-wp-root .bhkw-result-label {
      display: block;
      color: var(--bhkw-muted);
      font-size: 0.85rem;
      line-height: 1.35;
      margin-bottom: 8px;
    }

    .bhkw-wp-root .bhkw-result-value {
      display: block;
      font-size: 1.05rem;
      font-weight: 800;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .bhkw-wp-root .bhkw-status {
      margin: 0 0 16px;
      padding: 12px 14px;
      border-radius: 0;
      background: #fffbeb;
      color: var(--bhkw-warning);
      border: 1px solid #fde68a;
      display: none;
      line-height: 1.45;
    }

    .bhkw-wp-root .bhkw-status.is-visible {
      display: block;
    }



    .bhkw-wp-root .bhkw-sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .bhkw-wp-root .bhkw-energy-fieldset {
      min-width: 0;
      margin: 0;
      padding: 0;
      border: 0;
    }

    .bhkw-wp-root .bhkw-energy-legend {
      margin: 0 0 8px;
      padding: 0;
      font-weight: 800;
      font-size: 1rem;
    }

    .bhkw-wp-root .bhkw-energy-help {
      margin: 0 0 12px;
      color: var(--bhkw-muted);
      font-size: 0.9rem;
      line-height: 1.45;
    }

    .bhkw-wp-root .bhkw-energy-options {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: calc(var(--bhkw-gap) / 2);
    }

    .bhkw-wp-root .bhkw-energy-option {
      position: relative;
      cursor: pointer;
    }

    .bhkw-wp-root .bhkw-energy-option input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .bhkw-wp-root .bhkw-energy-card-body {
      min-height: 112px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 9px;
      border: 1px solid var(--bhkw-border);
      border-radius: 0;
      background: #fff;
      text-align: center;
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }

    .bhkw-wp-root .bhkw-energy-option:hover .bhkw-energy-card-body {
      border-color: rgba(0, 51, 102, 0.55);
      transform: translateY(-1px);
    }

    .bhkw-wp-root .bhkw-energy-option input:focus-visible + .bhkw-energy-card-body {
      border-color: var(--bhkw-accent);
      outline: 2px solid rgba(0, 51, 102, 0.32);
      outline-offset: 1px;
    }

    .bhkw-wp-root .bhkw-energy-option input:checked + .bhkw-energy-card-body {
      border-color: var(--bhkw-accent);
      background: var(--bhkw-soft);
    }

    .bhkw-wp-root .bhkw-energy-icon {
      width: 32px;
      height: 32px;
      color: var(--bhkw-accent-dark);
    }

    .bhkw-wp-root .bhkw-energy-icon svg {
      display: block;
      width: 100%;
      height: 100%;
    }

    .bhkw-wp-root .bhkw-energy-name {
      display: block;
      font-weight: 800;
      line-height: 1.15;
    }

    .bhkw-wp-root .bhkw-energy-price {
      display: block;
      color: var(--bhkw-muted);
      font-size: 0.82rem;
    }

    .bhkw-wp-root .bhkw-credit-box {
      border: 1px solid var(--bhkw-border);
      border-radius: 0;
      padding: 16px;
      background: var(--bhkw-soft);
    }

    .bhkw-wp-root .bhkw-credit-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .bhkw-wp-root .bhkw-credit-title {
      margin: 0;
      font-size: 1.05rem;
      line-height: 1.2;
    }

    .bhkw-wp-root .bhkw-credit-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      cursor: pointer;
    }

    .bhkw-wp-root .bhkw-credit-toggle input {
      width: 18px;
      height: 18px;
      accent-color: var(--bhkw-accent);
    }

    .bhkw-wp-root .bhkw-credit-help {
      margin: 8px 0 0;
      color: var(--bhkw-muted);
      font-size: 0.9rem;
      line-height: 1.45;
    }

    .bhkw-wp-root .bhkw-credit-fields {
      display: grid;
      gap: 12px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--bhkw-border);
    }

    .bhkw-wp-root .bhkw-credit-fields[hidden] {
      display: none;
    }

    .bhkw-wp-root .bhkw-cashflow {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--bhkw-border);
    }

    .bhkw-wp-root .bhkw-cashflow-header {
      margin-bottom: 14px;
    }

    .bhkw-wp-root .bhkw-cashflow-header h3 {
      margin: 0 0 6px;
      font-size: 1.15rem;
      line-height: 1.25;
    }

    .bhkw-wp-root .bhkw-cashflow-header p {
      margin: 0;
      color: var(--bhkw-muted);
      font-size: 0.88rem;
      line-height: 1.45;
    }

    .bhkw-wp-root .bhkw-cashflow-groups {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .bhkw-wp-root .bhkw-cashflow-group {
      min-width: 0;
      border: 1px solid var(--bhkw-border);
      border-radius: 0;
      overflow: hidden;
      background: #fff;
    }

    .bhkw-wp-root .bhkw-cashflow-group-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "title icon"
        "total icon";
      align-items: center;
      column-gap: 12px;
      row-gap: 4px;
      padding: 13px;
      background: var(--bhkw-soft);
      border-bottom: 0;
      list-style: none;
      cursor: pointer;
      transition: background 0.15s ease;
    }

    .bhkw-wp-root .bhkw-cashflow-group-head::-webkit-details-marker {
      display: none;
    }

    .bhkw-wp-root .bhkw-cashflow-group-head::after {
      content: "";
      grid-area: icon;
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--bhkw-accent-dark);
      border-bottom: 2px solid var(--bhkw-accent-dark);
      transform: rotate(45deg) translateY(-2px);
      transition: transform 0.15s ease;
    }

    .bhkw-wp-root .bhkw-cashflow-group-head:hover,
    .bhkw-wp-root .bhkw-cashflow-group-head:focus-visible {
      background: var(--bhkw-soft);
      outline: 0;
    }

    .bhkw-wp-root .bhkw-cashflow-group[open] > .bhkw-cashflow-group-head {
      border-bottom: 1px solid var(--bhkw-border);
    }

    .bhkw-wp-root .bhkw-cashflow-group[open] > .bhkw-cashflow-group-head::after {
      transform: rotate(225deg) translate(-1px, -1px);
    }

    .bhkw-wp-root .bhkw-cashflow-group-title {
      grid-area: title;
      font-weight: 800;
      line-height: 1.2;
    }

    .bhkw-wp-root .bhkw-cashflow-group-total {
      grid-area: total;
      font-weight: 900;
      text-align: left;
      white-space: nowrap;
    }

    .bhkw-wp-root .bhkw-cashflow-list {
      display: grid;
      padding: 4px 13px;
    }

    .bhkw-wp-root .bhkw-cashflow-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: baseline;
      padding: 9px 0;
      border-bottom: 1px dashed var(--bhkw-border);
      font-size: 0.84rem;
      line-height: 1.35;
    }

    .bhkw-wp-root .bhkw-cashflow-row:last-child {
      border-bottom: 0;
    }

    .bhkw-wp-root .bhkw-cashflow-row[hidden] {
      display: none;
    }

    .bhkw-wp-root .bhkw-cashflow-row > span:first-child {
      min-width: 0;
      overflow-wrap: anywhere;
      hyphens: auto;
    }

    .bhkw-wp-root .bhkw-cashflow-row-value {
      min-width: max-content;
      padding-left: 4px;
      font-weight: 750;
      text-align: right;
      white-space: nowrap;
    }

    .bhkw-wp-root .bhkw-cashflow-result {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      margin-top: 12px;
      padding: 15px 16px;
      border: 1px solid rgba(0, 51, 102, 0.28);
      border-radius: 0;
      background: var(--bhkw-soft);
    }

    .bhkw-wp-root .bhkw-cashflow-result-label {
      font-weight: 850;
      line-height: 1.3;
    }

    .bhkw-wp-root .bhkw-cashflow-result-value {
      color: var(--bhkw-accent-dark);
      font-size: 1.2rem;
      font-weight: 950;
      text-align: right;
      white-space: nowrap;
    }

    .bhkw-wp-root .bhkw-cashflow-note {
      margin: 9px 2px 0;
      color: var(--bhkw-muted);
      font-size: 0.78rem;
      line-height: 1.4;
    }



    .bhkw-wp-root [hidden] {
      display: none !important;
    }

    .bhkw-wp-root .bhkw-consultation-cta {
      width: 100%;
      margin-top: 20px;
    }



    .bhkw-wp-root .bhkw-consultation-summary {
      position: sticky;
      top: 20px;
    }

    .bhkw-wp-root .bhkw-consultation-result-list {
      display: grid;
      gap: 0;
      margin: 18px 0 20px;
      border-top: 1px solid var(--bhkw-border);
    }

    .bhkw-wp-root .bhkw-consultation-result-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: baseline;
      padding: 11px 0;
      border-bottom: 1px solid var(--bhkw-border);
    }

    .bhkw-wp-root .bhkw-consultation-result-label {
      color: var(--bhkw-muted);
      font-size: 0.88rem;
      line-height: 1.35;
    }

    .bhkw-wp-root .bhkw-consultation-result-value {
      max-width: 190px;
      font-weight: 800;
      line-height: 1.3;
      text-align: right;
      overflow-wrap: anywhere;
    }

    .bhkw-wp-root .bhkw-button-secondary {
      appearance: none;
      width: 100%;
      border: 1px solid var(--bhkw-accent);
      border-radius: 0;
      padding: 12px 18px;
      background: #fff;
      color: var(--bhkw-accent-dark);
      font: inherit;
      font-weight: 750;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .bhkw-wp-root .bhkw-button-secondary:hover,
    .bhkw-wp-root .bhkw-button-secondary:focus-visible {
      background: var(--bhkw-soft);
      outline: 0;
    }

    .bhkw-wp-root .bhkw-contact-form {
      display: grid;
      gap: 18px;
    }

    .bhkw-wp-root .bhkw-contact-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 15px;
    }

    .bhkw-wp-root .bhkw-contact-field {
      min-width: 0;
      display: grid;
      gap: 7px;
    }

    .bhkw-wp-root .bhkw-contact-field.is-full,
    .bhkw-wp-root .bhkw-contact-checkbox.is-full {
      grid-column: 1 / -1;
    }

    .bhkw-wp-root .bhkw-contact-label {
      font-weight: 750;
      line-height: 1.3;
    }

    .bhkw-wp-root .bhkw-required {
      color: var(--bhkw-warning);
    }

    .bhkw-wp-root .bhkw-contact-field input,
    .bhkw-wp-root .bhkw-contact-field select,
    .bhkw-wp-root .bhkw-contact-field textarea {
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      border: 1px solid var(--bhkw-border);
      border-radius: 0;
      padding: 8px 12px;
      background: #fff;
      color: var(--bhkw-text);
      font: inherit;
      outline: 0;
      transition: border-color 0.15s ease;
    }

    .bhkw-wp-root .bhkw-contact-field textarea {
      resize: vertical;
      min-height: 126px;
    }

    .bhkw-wp-root .bhkw-contact-field input:focus,
    .bhkw-wp-root .bhkw-contact-field select:focus,
    .bhkw-wp-root .bhkw-contact-field textarea:focus {
      border-color: var(--bhkw-accent);
      outline: 2px solid rgba(0, 51, 102, 0.32);
      outline-offset: 1px;
    }

    .bhkw-wp-root .bhkw-contact-checkbox {
      min-width: 0;
    }

    .bhkw-wp-root .bhkw-contact-checkbox label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      line-height: 1.45;
      cursor: pointer;
    }

    .bhkw-wp-root .bhkw-contact-checkbox input {
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      margin: 2px 0 0;
      accent-color: var(--bhkw-accent);
    }

    .bhkw-wp-root .bhkw-required-note {
      margin: -4px 0 0;
      color: var(--bhkw-muted);
      font-size: 0.84rem;
    }

    .bhkw-wp-root .bhkw-contact-submit {
      width: 100%;
    }


    @media (max-width: 620px) {
      .bhkw-wp-root .bhkw-energy-options,
      .bhkw-wp-root .bhkw-cashflow-groups,
      .bhkw-wp-root .bhkw-contact-grid {
        grid-template-columns: 1fr;
      }

      .bhkw-wp-root .bhkw-energy-card-body {
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 14px;
      }

      .bhkw-wp-root .bhkw-energy-icon {
        flex: 0 0 auto;
      }

      .bhkw-wp-root .bhkw-credit-head,
      .bhkw-wp-root .bhkw-cashflow-result {
        align-items: flex-start;
        flex-direction: column;
      }

      .bhkw-wp-root .bhkw-cashflow-result-value {
        text-align: left;
      }

      .bhkw-wp-root .bhkw-contact-field.is-full,
      .bhkw-wp-root .bhkw-contact-checkbox.is-full {
        grid-column: auto;
      }

      .bhkw-wp-root .bhkw-consultation-result-row {
        grid-template-columns: 1fr;
        gap: 4px;
      }

      .bhkw-wp-root .bhkw-consultation-result-value {
        max-width: none;
        text-align: left;
      }
    }


    @media (max-width: 860px) {
      .bhkw-wp-root .bhkw-calculator,
      .bhkw-wp-root .bhkw-consultation {
        grid-template-columns: 1fr;
      }

      .bhkw-wp-root .bhkw-results,
      .bhkw-wp-root .bhkw-consultation-summary {
        position: static;
      }

      .bhkw-wp-root .bhkw-field:has(> .bhkw-input-row .bhkw-range-control) {
        width: 100%;
      }
    }

    @media (max-width: 520px) {
      .bhkw-wp-root .bhkw-calculator,
      .bhkw-wp-root .bhkw-consultation {
        width: 100%;
        margin: 0;
      }

      .bhkw-wp-root .bhkw-field-head,
      .bhkw-wp-root .bhkw-highlight {
        grid-template-columns: 1fr;
      }

      .bhkw-wp-root .bhkw-result-grid {
        grid-template-columns: 1fr;
      }

      .bhkw-wp-root .bhkw-highlight-value {
        text-align: left;
      }
    }

/* WordPress/Avada integration safeguards. */
.bhkw-wp-root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  line-height: 1.5;
  isolation: isolate;
}

.bhkw-wp-root,
.bhkw-wp-root *,
.bhkw-wp-root *::before,
.bhkw-wp-root *::after {
  box-sizing: border-box;
}

.bhkw-wp-root .bhkw-calculator,
.bhkw-wp-root .bhkw-consultation {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.bhkw-wp-root .bhkw-submit {
  background: #003366 !important;
  border: 0 !important;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.25 !important;
  min-height: 46px;
}

.bhkw-wp-root .bhkw-submit:hover,
.bhkw-wp-root .bhkw-submit:focus-visible {
  background: #00264d !important;
  color: #fff !important;
}

.bhkw-wp-root .bhkw-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.bhkw-wp-root .bhkw-button-secondary {
  border-color: #003366 !important;
  color: #003366 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.bhkw-wp-root .bhkw-contact-field input,
.bhkw-wp-root .bhkw-contact-field select,
.bhkw-wp-root .bhkw-contact-field textarea,
.bhkw-wp-root .bhkw-input-row input,
.bhkw-wp-root .bhkw-input-row select {
  min-height: 44px;
  color: var(--bhkw-text) !important;
  background-color: #fff !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.35 !important;
}

.bhkw-wp-root .bhkw-input-row input:disabled,
.bhkw-wp-root .bhkw-input-row select:disabled {
  background-color: #f3f4f6 !important;
}

.bhkw-wp-root .bhkw-input-row input[type="range"].bhkw-range-control {
  min-height: 44px;
  padding: 0 14px;
  margin: 0 8px;
  background-color: transparent !important;
  accent-color: var(--bhkw-accent);
  cursor: pointer;
  width: calc(100% - 16px);
}

.bhkw-wp-root .bhkw-input-row input[type="range"].bhkw-range-control:focus {
  outline: 0;
}

.bhkw-wp-root .bhkw-form-message {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--bhkw-border);
  background: var(--bhkw-soft);
  line-height: 1.45;
}

.bhkw-wp-root .bhkw-form-message.is-success,
.bhkw-wp-root .bhkw-form-message.is-error {
  display: block;
}

.bhkw-wp-root .bhkw-form-message.is-success {
  border-color: #003366;
  background: var(--bhkw-soft);
  color: #003366;
}

.bhkw-wp-root .bhkw-form-message.is-error {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}

.bhkw-wp-root .bhkw-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bhkw-wp-root .bhkw-privacy-link {
  color: #003366;
  text-decoration: underline;
}

.bhkw-wp-root noscript {
  display: block;
  padding: 16px;
  border: 1px solid var(--bhkw-border);
}


/* Responsive behavior inside narrow Avada columns, independent of viewport width. */
@container bhkw-rechner (max-width: 860px) {
  .bhkw-wp-root .bhkw-calculator,
  .bhkw-wp-root .bhkw-consultation {
    grid-template-columns: 1fr;
  }

  .bhkw-wp-root .bhkw-results,
  .bhkw-wp-root .bhkw-consultation-summary {
    position: static;
  }
}

@container bhkw-rechner (max-width: 620px) {
  .bhkw-wp-root .bhkw-energy-options,
  .bhkw-wp-root .bhkw-cashflow-groups,
  .bhkw-wp-root .bhkw-contact-grid {
    grid-template-columns: 1fr;
  }

  .bhkw-wp-root .bhkw-energy-card-body {
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 14px;
  }

  .bhkw-wp-root .bhkw-energy-icon {
    flex: 0 0 auto;
  }

  .bhkw-wp-root .bhkw-credit-head,
  .bhkw-wp-root .bhkw-cashflow-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .bhkw-wp-root .bhkw-cashflow-result-value {
    text-align: left;
  }

  .bhkw-wp-root .bhkw-contact-field.is-full,
  .bhkw-wp-root .bhkw-contact-checkbox.is-full {
    grid-column: auto;
  }

  .bhkw-wp-root .bhkw-consultation-result-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bhkw-wp-root .bhkw-consultation-result-value {
    max-width: none;
    text-align: left;
  }
}

@container bhkw-rechner (max-width: 520px) {
  .bhkw-wp-root .bhkw-field-head,
  .bhkw-wp-root .bhkw-highlight {
    grid-template-columns: 1fr;
  }

  .bhkw-wp-root .bhkw-result-grid {
    grid-template-columns: 1fr;
  }

  .bhkw-wp-root .bhkw-highlight-value {
    text-align: left;
  }
}

/* Avada Live: sticky panels make drag-and-drop editing unnecessarily rigid. */
body.fusion-builder-live .bhkw-wp-root .bhkw-results,
body.fusion-builder-live .bhkw-wp-root .bhkw-consultation-summary,
.fusion-builder-live .bhkw-wp-root .bhkw-results,
.fusion-builder-live .bhkw-wp-root .bhkw-consultation-summary {
  position: static;
}
