/* Ausgelagert aus dem <style>-Block von salzrechner.html.
   Inhalt unveraendert uebernommen. */
  /* Rechner-Widget. Bewusst eigene Regeln statt der App-Styles aus
     salzrechner_ia.html: die oeffentliche Seite laeuft auf public-pages.css
     mit anderem Grundraster (breite Sektionen statt max-w-lg App-Spalte). */
  .calc-shell { max-width: 720px; }
  .calc-card {
    /* Hintergrund kommt aus der Utility .bg-surface-container-lowest im Markup —
       dark.css themt die, ein hart gesetztes Weiss hier waere im Dark Mode
       heller Text auf weisser Karte. */
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 18px 44px -28px rgba(11, 28, 48, 0.45);
  }
  .calc-grid { display: grid; gap: 22px; }
  @media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr; } .calc-grid .calc-span { grid-column: 1 / -1; } }

  .calc-label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6e7881;
    margin-bottom: 7px;
  }
  .pool-input {
    border: 2px solid #bec8d2;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 21px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #0b1c30;
    background: #ffffff;
    width: 100%;
    transition: border-color 0.2s;
  }
  .pool-input:focus { outline: none; border-color: #0ea5e9; }
  .pool-input::-webkit-outer-spin-button,
  .pool-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .pool-input[type=number] { -moz-appearance: textfield; }
  .input-row { display: flex; align-items: center; gap: 10px; }
  .input-unit { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: #6b7580; flex-shrink: 0; }
  .field-hint { font-family: Inter, sans-serif; font-size: 11.5px; color: #6b7580; line-height: 1.45; margin-top: 6px; }

  .range-row { display: flex; gap: 6px; flex-wrap: wrap; }
  .range-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-family: Inter, sans-serif; padding: 3px 9px; border-radius: 999px; }
  .chip-ok   { background: #dcfce7; color: #2e7d5b; }
  .chip-warn { background: #fef9c3; color: #854d0e; }
  .chip-bad  { background: #fee2e2; color: #b91c1c; }

  .info-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
  .info-box { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease; }
  .info-box.open { max-height: 900px; opacity: 1; margin-top: 10px; }

  .result-card-ok   { background: #dcfce7; border: 1.5px solid #86efac; }
  .result-card-warn { background: #fef9c3; border: 1.5px solid #fde047; }
  .result-card-bad  { background: #fee2e2; border: 1.5px solid #fca5a5; }
  .result-card-add  { background: #eff6ff; border: 1.5px solid #93c5fd; }

  .steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
  .steps-list li { display: flex; align-items: flex-start; gap: 10px; font-family: Inter, sans-serif; font-size: 13.5px; color: #3e4850; line-height: 1.5; }
  .step-num { flex-shrink: 0; width: 21px; height: 21px; border-radius: 999px; background: #006591; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

  .helper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
  .helper-field label { display: block; font-family: Inter, sans-serif; font-size: 12px; color: #6b7580; margin-bottom: 5px; }
  .helper-field input, .helper-field select {
    width: 100%; border: 1.5px solid #cbd5e1; border-radius: 9px; padding: 9px 10px;
    font-family: Inter, sans-serif; font-size: 14.5px; color: #0b1c30; background: #fff;
  }
  .helper-field input:focus, .helper-field select:focus { outline: none; border-color: #0ea5e9; }
  #helper-result { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; color: #006591; margin-top: 12px; }

  .calc-btn {
    width: 100%; border-radius: 14px; padding: 15px;
    background: #006591; color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px;
    transition: transform 0.12s ease, filter 0.2s ease;
  }
  .calc-btn:hover { filter: brightness(1.08); }
  .calc-btn:active { transform: scale(0.985); }

  #calc-error { font-family: Inter, sans-serif; font-size: 13px; color: #ba1a1a; margin-top: 10px; }

  .salt-table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; font-size: 14px; }
  .salt-table th, .salt-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(148,163,184,0.25); }
  .salt-table th { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #6e7881; }
  .salt-table tbody tr:last-child td { border-bottom: none; }
  .salt-table .row-ideal { background: rgba(220, 252, 231, 0.55); }

  .formula {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
    font-size: clamp(15px, 2.4vw, 19px); color: #0b1c30;
    background: #f1f5f9; border-left: 4px solid #006591;
    border-radius: 0 12px 12px 0; padding: 16px 18px; line-height: 1.5;
  }

