
  /* ============================================================
     FLI-Rechner – Bodymed Leberfasten Design
     Alle Stile auf .fli-wrap beschränkt → keine Theme-Konflikte
     Einbindung per Elementor HTML-Widget
  ============================================================ */

  .fli-wrap *,
  .fli-wrap *::before,
  .fli-wrap *::after {
    box-sizing: border-box;
  }

  /* ---- Design-Tokens (bodymed-leberfasten.de) ---- */
  .fli-wrap {
    --fli-teal:        #006B7D;
    --fli-teal-dark:   #1F677A;
    --fli-teal-hover:  #005566;
    --fli-teal-deep:   #10333d;
    --fli-sage:        #7BA05B;
    --fli-sage-hover:  #6a8f4d;
    --fli-black:       #000000;
    --fli-text:        #333333;
    --fli-muted:       #6B7280;
    --fli-bg:          #f2f2f2;
    --fli-white:       #ffffff;
    --fli-border:      #e0e0e0;
    --fli-green-bg:    #eef5e8;
    --fli-yellow-bg:   #fffde7;
    --fli-red-bg:      #fdecea;
    --fli-radius:      12px;
    --fli-radius-sm:   6px;
    --fli-shadow:      0 4px 20px rgba(0,0,0,0.07);

    font-family: 'Roboto',"Roboto Fallback", sans-serif;
    font-size: 16px;
    color: var(--fli-text);
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* ---- H1 ---- */
  .fli-wrap h1.fli-h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4em;
    font-weight: 400;
    color: var(--fli-teal-dark);
    margin: 0 0 0.15em 0;
    padding: 0;
    line-height: 1.15;
    border: none;
  }

  .fli-wrap h1.fli-h1 span {
    color: var(--fli-sage);
  }

  /* ---- Untertitel-Badge ---- */
  .fli-wrap .fli-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(123,160,91,0.15);
    color: var(--fli-sage);
    font-family: 'Barlow',"Barlow Fallback", sans-serif;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.8em;
  }

  /* ---- Intro-Text ---- */
  .fli-wrap .fli-intro {
    font-size: 0.95em;
    color: var(--fli-muted);
    margin: 0.5em 0 1.8em 0;
    max-width: 680px;
  }

  /* ---- Hauptkarte ---- */
  .fli-wrap .fli-card {
    background: var(--fli-white);
    border-radius: var(--fli-radius);
    box-shadow: var(--fli-shadow);
    overflow: hidden;
  }

  /* ---- Karten-Header ---- */
  .fli-wrap .fli-card-header {
    background: var(--fli-teal);
    padding: 1em 1.5em;
    display: flex;
    align-items: center;
    gap: 0.7em;
  }

  .fli-wrap .fli-card-header-icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: rgba(255,255,255,0.85);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  .fli-wrap .fli-card-header-title {
    font-family: 'Barlow',"Barlow Fallback", sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--fli-white);
    letter-spacing: 0.01em;
  }

  /* ---- Karten-Body: zweispaltig ---- */
  .fli-wrap .fli-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .fli-wrap .fli-col-form {
    flex: 1 1 300px;
    min-width: 260px;
    padding: 1.5em;
    border-right: 1px solid var(--fli-border);
  }

  .fli-wrap .fli-col-info {
    flex: 1 1 280px;
    min-width: 240px;
    padding: 1.5em;
    background: var(--fli-bg);
    font-size: 0.88em;
    color: var(--fli-muted);
    line-height: 1.65;
  }

  .fli-wrap .fli-col-info h3 {
    font-family: 'Barlow',"Barlow Fallback", sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--fli-teal-dark);
    margin: 0 0 0.7em 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .fli-wrap .fli-col-info p {
    margin: 0 0 0.9em 0;
  }

  .fli-wrap .fli-col-info p:last-child {
    margin-bottom: 0;
  }

  .fli-wrap .fli-col-info strong {
    color: var(--fli-teal);
  }

  /* ---- Eingabe-Zeilen ---- */
  .fli-wrap .fli-field {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.55em 0;
    border-bottom: 1px solid var(--fli-border);
  }

  .fli-wrap .fli-field:last-of-type {
    border-bottom: none;
  }

  .fli-wrap .fli-field label {
    flex: 0 0 148px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--fli-text);
    cursor: pointer;
  }

  .fli-wrap .fli-input {
    flex: 1 1 auto;
    max-width: 120px;
    border: 1.5px solid var(--fli-border);
    border-radius: var(--fli-radius-sm);
    padding: 0.45em 0.7em;
    font-size: 0.95em;
    font-family: 'Roboto',"Roboto Fallback", sans-serif;
    color: var(--fli-text);
    background: var(--fli-bg);
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
  }

  .fli-wrap .fli-input::-webkit-outer-spin-button,
  .fli-wrap .fli-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  .fli-wrap .fli-input:focus {
    outline: none;
    border-color: var(--fli-teal);
    box-shadow: 0 0 0 3px rgba(0,107,125,0.12);
    background: var(--fli-white);
  }

  .fli-wrap .fli-input.fli-error {
    border-color: #e53935;
    background: #fff5f5;
  }

  .fli-wrap .fli-unit {
    flex: 0 0 52px;
    font-size: 0.82em;
    color: var(--fli-muted);
    font-weight: 500;
  }

  /* ---- Fehlerhinweis ---- */
  .fli-wrap .fli-error-hint {
    font-size: 0.82em;
    color: #e53935;
    margin: 0.5em 0 0 0;
    display: none;
    align-items: center;
    gap: 0.4em;
  }

  .fli-wrap .fli-error-hint.fli-visible {
    display: flex;
  }

  /* ---- Buttons ---- */
  .fli-wrap .fli-actions {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-top: 1.2em;
    flex-wrap: wrap;
  }

  .fli-wrap .fli-btn-calc {
    flex: 1 1 auto;
    background: var(--fli-teal);
    color: var(--fli-white);
    border: none;
    border-radius: 999px;
    padding: 0.8em 1.8em;
    font-family: 'Barlow',"Barlow Fallback", sans-serif;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
  }

  .fli-wrap .fli-btn-calc:hover {
    background: var(--fli-teal-hover);
  }

  .fli-wrap .fli-btn-calc:active {
    transform: scale(0.98);
  }

  .fli-wrap .fli-btn-reset {
    background: none;
    border: none;
    color: var(--fli-muted);
    font-family: 'Roboto',"Roboto Fallback", sans-serif;
    font-size: 0.85em;
    cursor: pointer;
    padding: 0.3em 0.5em;
    text-decoration: underline;
    white-space: nowrap;
    transition: color 0.2s;
  }

  .fli-wrap .fli-btn-reset:hover {
    color: var(--fli-teal);
  }

  /* ---- Ergebnis-Box ---- */
  .fli-wrap .fli-result {
    margin-top: 1.4em;
    border-radius: var(--fli-radius-sm);
    overflow: hidden;
    display: none;
    border: 1.5px solid var(--fli-border);
  }

  .fli-wrap .fli-result.fli-visible {
    display: block;
    animation: fliSlideIn 0.3s ease;
  }

  @keyframes fliSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .fli-wrap .fli-result-header {
    background: var(--fli-teal);
    color: var(--fli-white);
    padding: 0.7em 1.1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
  }

  .fli-wrap .fli-result-label {
    font-family: 'Barlow',"Barlow Fallback", sans-serif;
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.9;
  }

  .fli-wrap .fli-result-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1;
  }

  .fli-wrap .fli-result-body {
    padding: 1em 1.1em;
    font-size: 0.9em;
    line-height: 1.6;
    border-left: 5px solid transparent;
  }

  .fli-wrap .fli-result-body.fli-green {
    background: var(--fli-green-bg);
    border-left-color: var(--fli-sage);
  }

  .fli-wrap .fli-result-body.fli-yellow {
    background: var(--fli-yellow-bg);
    border-left-color: #ffc107;
  }

  .fli-wrap .fli-result-body.fli-red {
    background: var(--fli-red-bg);
    border-left-color: #e53935;
  }

  .fli-wrap .fli-result-text {
    margin: 0 0 0.8em 0;
    color: var(--fli-text);
  }

  /* ---- Skala ---- */
  .fli-wrap .fli-scale {
    margin-top: 0.8em;
  }

  .fli-wrap .fli-scale-bar {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(
      to right,
      #7BA05B 0%, #7BA05B 30%,
      #ffc107 30%, #ffc107 60%,
      #e53935 60%, #e53935 100%
    );
  }

  .fli-wrap .fli-scale-pin {
    position: absolute;
    top: -4px;
    width: 6px;
    height: 22px;
    background: var(--fli-teal-deep);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: left 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  }

  .fli-wrap .fli-scale-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72em;
    color: var(--fli-muted);
    margin-top: 3px;
    padding: 0 2px;
  }

  .fli-wrap .fli-scale-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em 1.4em;
    margin-top: 0.7em;
    font-size: 0.78em;
    color: var(--fli-muted);
  }

  .fli-wrap .fli-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35em;
  }

  .fli-wrap .fli-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ---- BMI-Chip ---- */
  .fli-wrap .fli-bmi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: rgba(0,107,125,0.08);
    color: var(--fli-teal);
    border-radius: 999px;
    padding: 0.25em 0.8em;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 0.7em;
  }

  /* ---- Hinweis ---- */
  .fli-wrap .fli-hinweis {
    margin-top: 1.4em;
    background: var(--fli-bg);
    border-left: 4px solid var(--fli-teal);
    border-radius: 0 var(--fli-radius-sm) var(--fli-radius-sm) 0;
    padding: 0.8em 1.1em;
    font-size: 0.82em;
    color: var(--fli-muted);
    line-height: 1.6;
  }

  .fli-wrap .fli-hinweis strong {
    color: var(--fli-teal-dark);
  }

  /* ---- Literatur ---- */
  .fli-wrap .fli-literatur {
    margin-top: 1em;
    font-size: 0.8em;
    color: #808285;
    line-height: 1.55;
  }

  .fli-wrap .fli-literatur strong {
    color: var(--fli-muted);
  }

  .fli-wrap .fli-literatur a {
    color: var(--fli-teal);
    text-decoration: none;
  }

  .fli-wrap .fli-literatur a:hover {
    text-decoration: underline;
  }

  /* ---- Responsive ---- */
  @media (max-width: 640px) {
    .fli-wrap h1.fli-h1 {
      font-size: 1.8em;
    }

    .fli-wrap .fli-col-form {
      border-right: none;
      border-bottom: 1px solid var(--fli-border);
    }

    .fli-wrap .fli-field label {
      flex: 0 0 120px;
      font-size: 0.85em;
    }

    .fli-wrap .fli-input {
      max-width: 100px;
    }

    .fli-wrap .fli-result-value {
      font-size: 1.7em;
    }
  }

/* BODYMED site alignment: typography, colors and surfaces only; calculator logic and markup stay unchanged. */
.fli-wrap {
  --fli-teal: #006778;
  --fli-teal-dark: #223d43;
  --fli-teal-hover: #00545d;
  --fli-teal-deep: #223d43;
  --fli-sage: #96be0d;
  --fli-sage-hover: #86a90b;
  --fli-black: #223d43;
  --fli-text: #223d43;
  --fli-muted: #53676b;
  --fli-bg: #f3f7ef;
  --fli-white: #ffffff;
  --fli-border: #dfe8e2;
  --fli-green-bg: #f3f7ef;
  --fli-radius: 18px;
  --fli-radius-sm: 12px;
  --fli-shadow: 0 14px 30px rgba(0, 53, 65, 0.13);
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 17px;
  color: var(--fli-text);
  line-height: 1.65;
}

.fli-wrap h1.fli-h1 {
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: clamp(35px, 4vw, 50px);
  font-weight: 750;
  color: #223d43;
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.fli-wrap h1.fli-h1 span {
  color: #96be0d;
}

.fli-wrap .fli-badge {
  background: #f3f7ef;
  border: 1px solid #e3ead9;
  color: #006778;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.fli-wrap .fli-intro {
  color: #53676b;
  font-size: 17px;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 0 26px;
}

.fli-wrap .fli-card {
  background: #ffffff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 53, 65, 0.13);
}

.fli-wrap .fli-card-header {
  background: #006778;
  border-bottom: 3px solid #96be0d;
  padding: 16px 24px;
}

.fli-wrap .fli-card-header-title {
  color: #ffffff;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.fli-wrap .fli-col-form {
  padding: 24px;
  border-color: #dfe8e2;
}

.fli-wrap .fli-col-info {
  background: #f3f7ef;
  color: #53676b;
  font-size: 15px;
  line-height: 1.65;
  padding: 24px;
}

.fli-wrap .fli-col-info h3,
.fli-wrap h3 {
  color: #223d43;
  font-family: 'Outfit',"Outfit Fallback", 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-transform: none;
}

.fli-wrap .fli-col-info p {
  font-size: 15px;
  line-height: 1.65;
}

.fli-wrap .fli-col-info strong {
  color: #006778;
}

.fli-wrap .fli-field {
  border-color: #dfe8e2;
}

.fli-wrap .fli-field label {
  color: #223d43;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.fli-wrap .fli-input {
  background: #ffffff;
  border: 1.5px solid #d5e0da;
  border-radius: 10px;
  color: #223d43;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 16px;
  min-height: 46px;
  padding: 10px 12px;
}

.fli-wrap .fli-input:focus {
  border-color: #006778;
  box-shadow: 0 0 0 3px rgba(0, 103, 120, 0.14);
}

.fli-wrap .fli-unit {
  color: #53676b;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 13px;
}

.fli-wrap .fli-btn-calc {
  background: #96be0d;
  color: #223d43;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 48px;
  padding: 12px 24px;
}

.fli-wrap .fli-btn-calc:hover {
  background: #86a90b;
}

.fli-wrap .fli-btn-calc:focus-visible,
.fli-wrap .fli-btn-reset:focus-visible {
  outline: 3px solid rgba(0, 103, 120, 0.35);
  outline-offset: 2px;
}

.fli-wrap .fli-btn-reset {
  color: #006778;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.fli-wrap .fli-btn-reset:hover {
  color: #223d43;
}

.fli-wrap .fli-result {
  border-color: #dfe8e2;
  border-radius: 12px;
}

.fli-wrap .fli-result-header {
  background: #006778;
}

.fli-wrap .fli-result-label,
.fli-wrap .fli-result-value {
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
}

.fli-wrap .fli-result-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fli-wrap .fli-result-value {
  font-size: 32px;
  font-weight: 750;
  line-height: 1.1;
}

.fli-wrap .fli-result-body {
  font-size: 15px;
  line-height: 1.65;
}

.fli-wrap .fli-scale-bar {
  background: linear-gradient(to right, #96be0d 0%, #96be0d 30%, #ffc107 30%, #ffc107 60%, #e53935 60%, #e53935 100%);
}

.fli-wrap .fli-bmi-chip {
  background: rgba(150, 190, 13, 0.14);
  color: #006778;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
}

.fli-wrap .fli-hinweis {
  background: #f3f7ef;
  border-left-color: #96be0d;
  border-radius: 0 12px 12px 0;
  color: #53676b;
  font-size: 14px;
  line-height: 1.65;
  padding: 14px 18px;
}

.fli-wrap .fli-hinweis strong {
  color: #223d43;
}

.fli-wrap .fli-literatur {
  color: #53676b;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.fli-wrap .fli-literatur a {
  color: #006778;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .fli-wrap {
    font-size: 16px;
  }

  .fli-wrap h1.fli-h1 {
    font-size: 35px;
    line-height: 1.1;
  }

  .fli-wrap .fli-col-form,
  .fli-wrap .fli-col-info {
    padding: 20px;
  }

  .fli-wrap .fli-field label {
    flex-basis: 112px;
    font-size: 14px;
  }

  .fli-wrap .fli-input {
    min-width: 0;
    max-width: 110px;
    font-size: 16px;
  }

  .fli-wrap .fli-result-value {
    font-size: 28px;
  }
}

/* Small, keyboard- and touch-accessible measurement/source disclosures. */
.fli-wrap .fli-field {
  position: relative;
}

.fli-wrap .fli-field label {
  padding-right: 24px;
}

.fli-wrap .fli-help {
  position: absolute;
  left: 126px;
  top: 50%;
  z-index: 40;
  margin: 0;
  transform: translateY(-50%);
}

.fli-wrap .fli-help summary {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  list-style: none;
  border: 1px solid #006778;
  border-radius: 50%;
  background: #ffffff;
  color: #006778;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.fli-wrap .fli-help summary::-webkit-details-marker {
  display: none;
}

.fli-wrap .fli-help summary::marker {
  content: '';
}

.fli-wrap .fli-help summary:focus-visible {
  outline: 2px solid rgba(0, 103, 120, 0.45);
  outline-offset: 2px;
}

.fli-wrap .fli-help[open] summary {
  background: #006778;
  color: #ffffff;
}

.fli-wrap .fli-help-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: -110px;
  z-index: 60;
  display: none;
  width: min(260px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #223d43;
  box-shadow: 0 8px 24px rgba(0, 53, 65, 0.18);
  color: #ffffff;
  font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.fli-wrap .fli-help[open] .fli-help-tooltip {
  display: block;
}

@media (max-width: 640px) {
  .fli-wrap .fli-help {
    left: 88px;
  }

  .fli-wrap .fli-help-tooltip {
    left: -76px;
    width: min(260px, calc(100vw - 64px));
  }
}
