/* FairFinanz Hypothekenrechner - Schutz gegen Theme-Styles */
#ff-hypothekenrechner,
#ff-hypothekenrechner * {
  box-sizing: border-box;
}

#ff-hypothekenrechner {
  isolation: isolate;
}

#ff-hypothekenrechner button,
#ff-hypothekenrechner input,
#ff-hypothekenrechner select,
#ff-hypothekenrechner table,
#ff-hypothekenrechner th,
#ff-hypothekenrechner td,
#ff-hypothekenrechner h2,
#ff-hypothekenrechner h3,
#ff-hypothekenrechner p,
#ff-hypothekenrechner div,
#ff-hypothekenrechner span,
#ff-hypothekenrechner label,
#ff-hypothekenrechner strong,
#ff-hypothekenrechner aside,
#ff-hypothekenrechner form {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#ff-hypothekenrechner button {
  appearance: none;
  -webkit-appearance: none;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
}

#ff-hypothekenrechner table {
  margin: 0;
}

#ff-hypothekenrechner input,
#ff-hypothekenrechner select,
#ff-hypothekenrechner button {
  font-size: 16px;
}



    #ff-hypothekenrechner {
      --ff-primary: #1b652b;
      --ff-primary-dark: #145020;
      --ff-bg: #ffffff;
      --ff-soft: #f3f6f8;
      --ff-border: #d9e2e7;
      --ff-text: #14213d;
      --ff-muted: #667085;
      --ff-warning: #b45309;
      --ff-year-marker: #edf7df;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ff-text);
      max-width: 1180px;
      margin: 24px auto;
      line-height: 1.45;
    }

    #ff-hypothekenrechner * { box-sizing: border-box; }

    .ff-card {
      background: var(--ff-bg);
      border: 1px solid var(--ff-border);
      border-radius: 18px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
      overflow: hidden;
    }

    .ff-header {
      padding: 24px;
      background: linear-gradient(135deg, #1b652b, #8cc53f);
      color: #fff;
    }

    .ff-header h2 {
      margin: 0 0 8px;
      font-size: clamp(24px, 3vw, 34px);
      color: #fff;
    }

    .ff-header p { margin: 0; opacity: .92; max-width: 880px; }

    .ff-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
      gap: 0;
    }

    .ff-form, .ff-results { padding: 24px; }
    .ff-results { background: var(--ff-soft); border-left: 1px solid var(--ff-border); }

    .ff-section-title {
      font-weight: 800;
      font-size: 18px;
      margin: 8px 0 16px;
    }

    .ff-box {
      border: 1px solid var(--ff-border);
      background: #fff;
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 18px;
    }

    .ff-mode-list { display: grid; gap: 9px; }

    .ff-radio, .ff-check {
      display: flex;
      gap: 9px;
      align-items: flex-start;
      padding: 10px;
      border-radius: 12px;
      border: 1px solid transparent;
      cursor: pointer;
    }

    .ff-radio:hover, .ff-check:hover { background: #f8fafc; border-color: var(--ff-border); }
    .ff-radio input, .ff-check input { margin-top: 3px; }

    .ff-radio strong, .ff-check strong { display: block; font-size: 14px; }
    .ff-radio span, .ff-check span { display: block; color: var(--ff-muted); font-size: 12px; }

    .ff-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .ff-field { display: flex; flex-direction: column; gap: 6px; }
    .ff-field label { font-weight: 700; font-size: 14px; }
    .ff-help { color: var(--ff-muted); font-size: 12px; }

    .ff-field input, .ff-field select {
      width: 100%;
      border: 1px solid var(--ff-border);
      border-radius: 12px;
      padding: 12px 13px;
      font: inherit;
      background: #fff;
      color: var(--ff-text);
    }

    .ff-field input:focus, .ff-field select:focus {
      border-color: var(--ff-primary);
      outline: 3px solid rgba(27, 101, 43, .14);
    }

    .ff-field input[disabled] {
      background: #eef2f4;
      color: #667085;
      cursor: not-allowed;
    }

    .ff-hidden { display: none !important; }

    .ff-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
    }

    .ff-btn {
      border-radius: 999px;
      padding: 12px 18px;
      cursor: pointer;
      font-weight: 800;
      font: inherit;
    }

    .ff-btn-primary {
      background: var(--ff-primary);
      color: #fff;
      border: 1px solid var(--ff-primary);
    }

    .ff-btn-primary:hover { background: var(--ff-primary-dark); }

    .ff-btn-secondary {
      background: #fff;
      color: var(--ff-primary);
      border: 1px solid var(--ff-border);
    }

    .ff-kpis { display: grid; gap: 12px; }

    .ff-kpi {
      background: #fff;
      border: 1px solid var(--ff-border);
      border-radius: 16px;
      padding: 16px;
    }

    .ff-kpi span {
      display: block;
      color: var(--ff-muted);
      font-size: 13px;
      margin-bottom: 4px;
    }

    .ff-kpi strong {
      display: block;
      font-size: clamp(21px, 3vw, 30px);
      color: var(--ff-text);
      line-height: 1.1;
    }

    .ff-small-results {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }

    .ff-note { color: var(--ff-muted); font-size: 13px; margin-top: 14px; }
    .ff-warning { color: var(--ff-warning); font-weight: 700; }

    .ff-special-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 8px;
      min-width: 520px;
    }

    .ff-special-table th, .ff-special-table td {
      border-bottom: 1px solid var(--ff-border);
      padding: 8px;
      text-align: left;
      font-size: 14px;
    }

    .ff-special-table input {
      padding: 9px 10px;
      border: 1px solid var(--ff-border);
      border-radius: 10px;
      width: 100%;
    }

    .ff-remove {
      border: 0;
      background: transparent;
      color: #b91c1c;
      cursor: pointer;
      font-weight: 800;
      font-size: 20px;
    }

    .ff-plan-controls {
      padding: 22px 24px 12px;
      border-top: 1px solid var(--ff-border);
      display: grid;
      grid-template-columns: repeat(4, minmax(160px, 1fr));
      gap: 14px;
      background: #fff;
    }

    .ff-table-wrap { padding: 0 24px 24px; overflow-x: auto; }

    .ff-table-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 24px 12px;
      background: #fff;
    }

    .ff-table-header h3 { margin: 0; font-size: 20px; }

    .ff-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 1040px;
      background: #fff;
      border: 1px solid var(--ff-border);
      border-radius: 14px;
      overflow: hidden;
    }

    .ff-table th, .ff-table td {
      padding: 11px 12px;
      border-bottom: 1px solid var(--ff-border);
      text-align: right;
      font-size: 14px;
      white-space: nowrap;
    }

    .ff-table th:first-child, .ff-table td:first-child { text-align: left; }
    .ff-table th { background: #eef4f6; font-weight: 800; }
    .ff-table tr:last-child td { border-bottom: 0; }

    .ff-table tr.ff-year-start td {
      background: var(--ff-year-marker);
      font-weight: 700;
      border-top: 2px solid var(--ff-primary);
    }

    .ff-disclaimer { padding: 0 24px 24px; color: var(--ff-muted); font-size: 12px; }

    @media (max-width: 920px) {
      .ff-grid { grid-template-columns: 1fr; }
      .ff-results { border-left: 0; border-top: 1px solid var(--ff-border); }
      .ff-plan-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 640px) {
      .ff-fields, .ff-small-results, .ff-plan-controls { grid-template-columns: 1fr; }
      .ff-form, .ff-results, .ff-header { padding: 18px; }
    }
  