* { box-sizing: border-box; }
body[data-flavor="kollagen"] section[aria-labelledby="amino-heading"] th:nth-child(3),
body[data-flavor="kollagen"] section[aria-labelledby="amino-heading"] td:nth-child(3) { width: 190px; min-width: 190px; }
body[data-flavor="kollagen"] section[aria-labelledby="amino-heading"] .nutrient-input { width: 170px; }
.nutrient-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nutrient-table-wrap { min-width: 0; overflow-x: auto; }
.nutrient-tables th, .nutrient-tables td { padding-inline: 8px; }
@media (max-width: 700px) { .nutrient-tables { grid-template-columns: 1fr; gap: 24px; } }
.scale-toggle { display: inline-flex; gap: 0; }
.scale-toggle button { border-radius: 0; }
.scale-toggle button:first-child { border-radius: 6px 0 0 6px; }
.scale-toggle button:last-child { border-radius: 0 6px 6px 0; }
.scale-toggle button[aria-pressed="true"] { background: var(--flavor, #555); color: white; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; }
.chart-legend span { display: inline-flex; gap: 6px; align-items: center; }
.chart-legend i { display: inline-block; width: 18px; height: 10px; background: var(--flavor, #555); }
.chart-legend .legend-dot { width: 10px; border-radius: 50%; }
.chart-legend .legend-line { height: 3px; }
.chart-legend .legend-pale { background: var(--tint, #ddd); border: 1px solid var(--line, #aaa); }
[hidden] { display: none !important; }
.budget-slider { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.budget-slider input { width: min(400px, 100%); }
input[type="range"], progress { accent-color: var(--flavor, #555); }
.extra-tools { max-width: 1000px; margin: 24px auto; padding: 24px; border-top: 1px solid var(--line, #ddd); }
.target-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.target-row input { width: 130px; }
.extra-tools button { padding: 9px 15px; border: 1px solid var(--line, #aaa); background: var(--soft, #eee); border-radius: 5px; }
.extra-tools button:disabled { opacity: .5; cursor: default; }
#chart-tooltip { position: fixed; z-index: 20; max-width: 280px; padding: 10px 14px; background: #222; color: white; border-radius: 6px; font-size: 14px; pointer-events: none; box-shadow: 0 3px 14px #0003; }
[data-nrv-name] { cursor: help; }
.amount-controls { display: flex; align-items: center; gap: 8px; }
.amount-controls button { min-height: 42px; padding: 8px 12px; background: var(--soft, #eee); border: 1px solid var(--line, #aaa); border-radius: 5px; }
.calculator-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 16px 0; }
.calculator-actions button { padding: 9px 15px; background: var(--soft, #eee); border: 1px solid var(--line, #aaa); border-radius: 5px; }
.calculator-actions button:disabled { opacity: .45; cursor: default; }
#cost-chart svg, #range-chart [data-portion] { cursor: pointer; }
#range-chart [data-portion]:hover rect:not([fill="transparent"]) { filter: brightness(.85); }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 30px 0; }
.charts.single-chart { grid-template-columns: minmax(0, 1fr); }
.chart-panel { border: 1px solid var(--line, #ccc); border-radius: 6px; padding: 12px; min-width: 0; }
.chart-panel h2 { font-size: 21px; margin: 8px 0; }
.chart-panel p { text-align: center; font-size: 14px; }
.chart-panel svg { display: block; width: 100%; height: auto; }
.chart-panel svg text { font: 12px Arial, sans-serif; fill: #333; }
.chart-grid { stroke: #ddd; }
.cost-line { fill: none; stroke: var(--flavor, #555); stroke-width: 3; }
.chart-guide { stroke: var(--flavor, #555); stroke-dasharray: 4 4; }
.chart-point, .range-active { fill: var(--flavor, #555); }
.chart-point { stroke: white; stroke-width: 2; }
.range-bar { fill: var(--tint, #ddd); stroke: var(--line, #aaa); }
.chart-summary { font-weight: bold; }
.chart-panel h3 { text-align: center; margin: 8px 0 16px; }
@media (max-width: 700px) { .charts { grid-template-columns: 1fr; } }
.multi-variants { display: block; width: 50%; max-width: 400px; height: auto; margin: 24px auto; }
body[data-flavor="wildheidelbeere"] { --flavor: #884459; --tint: #f3e5eb; --soft: #faf3f6; --line: #cfabb9; }
body[data-flavor="kakao"] { --flavor: #69504f; --tint: #eee5e2; --soft: #f8f4f2; --line: #c7b4ad; }
body[data-flavor="zitrone"] { --flavor: #756400; --tint: #f8efac; --soft: #fffbe8; --line: #d6c959; }
body[data-flavor="mango_vanille"] { --flavor: #a45120; --tint: #fbe0c5; --soft: #fff5eb; --line: #e4b184; }
body[data-flavor="grassaft"] { --flavor: #3f7136; --tint: #deedd5; --soft: #f2f8ee; --line: #aac59a; }
body[data-flavor] .navigation, body[data-flavor] thead, body[data-flavor] footer { background: var(--tint); border-color: var(--line); }
body[data-flavor] .product-nav, body[data-flavor] .site-notices { background: var(--tint); border-color: var(--line); }
body[data-flavor] .results, body[data-flavor] details, body[data-flavor] .table-actions button, body[data-flavor] .dose-buttons button { background: var(--soft); border-color: var(--line); }
body[data-flavor] .is-style-stripes tbody tr:nth-child(odd) { background: var(--soft); }
body[data-flavor] tbody tr:hover { background: var(--tint) !important; }
body[data-flavor] .dose-buttons button[aria-pressed="true"] { background: var(--flavor); border-color: var(--flavor); color: #fff; }
body[data-flavor] .product-nav button[aria-pressed="true"] { color: var(--flavor); text-decoration: underline; text-underline-offset: 5px; }
.table-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.table-actions button { padding: 6px 14px; border: 1px solid #aaa; border-radius: 3px; background: #eee; color: #111; }
.table-actions + figure { margin-top: 8px; }
.site-notices { margin: 0; padding: 20px max(24px, calc((100% - 952px) / 2)); background: #e7e7e7; color: #0000df; font-size: 14px; line-height: 1.6; }
.site-notices p { margin: 0 0 16px; }
.site-notices p:last-child { margin-bottom: 0; }
.site-notices a { color: inherit; text-decoration: underline; }
.purchase-action { text-align: center; margin: 24px 0 30px; }
.purchase-button { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; max-width: 100%; padding: 16px 30px; border: 1px solid transparent; border-radius: 12px; background: var(--flavor, #555); color: #fff; line-height: 1.4; box-shadow: 0 3px 12px #00000014; text-decoration: none; transition: filter 150ms ease, box-shadow 150ms ease; }
.purchase-title { font-size: 21px; font-weight: 700; }
.purchase-discount { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; font-size: 14px; }
.purchase-code { padding: 2px 8px; border: 1px solid #ffffff66; border-radius: 5px; background: #ffffff1a; font-weight: 700; letter-spacing: 0.5px; }
.purchase-button:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 4px 14px #00000020; text-decoration: none; }
.purchase-button:active { filter: brightness(0.96); box-shadow: 0 1px 5px #00000014; }
@media (prefers-reduced-motion: reduce) { .purchase-button { transition: none; } }
.overview { min-height: 72vh; }
.intro { text-align: center; color: #555; }
.overview-product { max-width: 650px; margin: 42px auto; text-align: center; }
.overview-facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 0; border-block: 1px solid #ddd; margin: 25px 0; }
.overview-facts strong { display: block; font-size: 32px; }
.calculator-link { font-size: 18px; font-weight: bold; }
    html { scroll-behavior: smooth; }
    body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #111; background: #fff; line-height: 1.5; }
    a { color: #0000df; text-decoration: none; }
    a:hover { text-decoration: underline; }
    :focus-visible { outline: 3px solid #175fbd; outline-offset: 4px; }
    .navigation { background: #ccc; border-bottom: 1px solid #aaa; padding: 14px 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 30px; font-weight: bold; }
    .brand { color: #111; font-size: 26px; letter-spacing: -1px; }
    .brand span { color: #0000df; }
    .navigation .current { background: white; border-radius: 7px; padding: 5px 12px; }
    .product-nav { background: #e7e7e7; padding: 9px 16px; text-align: center; border-bottom: 1px solid #aaa; }
    .product-nav button { background: transparent; border: 0; color: #0000df; font-weight: bold; padding: 3px 15px; }
    main { max-width: 1000px; margin: auto; padding: 12px 24px 50px; }
    h1 { text-align: center; font-size: 28px; line-height: 1.25; margin: 8px 0; }
    h2 { text-align: center; font-size: 24px; line-height: 1.3; margin: 26px 0 20px; }
    .jump-links { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; }
    section { scroll-margin-top: 20px; }
    .products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 24px 0 32px; }
    .product { text-align: center; padding: 0 8px; }
    .product h3 { margin: 0; font-size: 21px; }
    .product p { margin: 0 0 15px; color: #555; font-size: 14px; }
    .product button { color: #0000df; background: none; border: 0; padding: 0; font-size: inherit; font-weight: bold; }
    .bar-row { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #ddd; padding: 8px 0; font-size: 14px; }
    .bar { height: 27px; background: var(--color); width: var(--width); }
    .bar-row strong { white-space: nowrap; }
    .product small { display: block; color: #555; margin-top: 9px; }
    .calculator { border-top: 1px solid #ccc; }
    .controls { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 24px 40px; padding: 4px 0 25px; }
    .field label, .field legend { display: block; font-weight: bold; margin-bottom: 8px; }
    fieldset { border: 0; margin: 0; padding: 0; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    select, input { border: 1px solid #aaa; border-radius: 3px; padding: 8px 10px; background: #fff; color: #111; min-height: 42px; }
    .dose-buttons { display: flex; gap: 5px; }
    .dose-buttons button { min-width: 44px; min-height: 42px; background: #eee; border: 1px solid #aaa; border-radius: 3px; }
    .dose-buttons button[aria-pressed="true"] { background: #0000cf; color: white; border-color: #0000cf; }
    .package-controls { border-top: 1px solid #ddd; padding-top: 20px; }
    .package-controls input { width: 150px; }
    .results { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: #f1f1f1; border-block: 1px solid #ccc; padding: 18px; gap: 20px; }
    .results strong { display: block; font-size: 30px; line-height: 1.3; }
    .results span.label { font-size: 14px; color: #444; }
    figure { margin: 20px 0; overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; }
    .nutrient-input { width: 105px; max-width: 100%; text-align: right; padding: 7px; }
    .nrv-input { width: 95px; text-align: right; padding: 7px; }
    .ingredients { margin: 20px 0 28px; line-height: 1.7; overflow-wrap: anywhere; }
    th, td { padding: 10px 16px; text-align: left; border-bottom: 1px solid #ddd; }
    thead { background: #ddd; }
    .is-style-stripes tbody tr:nth-child(odd) { background: #f2f2f2; }
    td:not(:nth-child(3n+1)), th:not(:nth-child(3n+1)) { white-space: nowrap; text-align: right; }
    td:nth-child(3), th:nth-child(3) { border-right: 2px solid white; }
    tbody tr:hover { background: #e8edf5 !important; }
    .table-note { text-align: center; font-size: 14px; color: #555; margin-top: -10px; }
    details { background: #eee; padding: 12px 16px; margin-top: 20px; }
    summary { cursor: pointer; color: #0000df; }
    details p { margin-bottom: 4px; }
    footer { background: #ddd; border-top: 1px solid #aaa; padding: 24px; text-align: center; color: #555; font-size: 14px; }
    footer a { margin-left: 20px; }
    @media (max-width: 620px) {
      main { padding: 16px 12px 30px; }
      h1 { font-size: 25px; } h2 { font-size: 22px; }
      .navigation { gap: 10px 18px; } .brand { flex-basis: 100%; text-align: center; }
      .product-nav button { padding: 4px 8px; font-size: 14px; }
      .products { grid-template-columns: 1fr; gap: 22px; max-width: 330px; margin-inline: auto; }
      .product p { margin-bottom: 3px; } .product small { margin-top: 4px; }
      .controls { gap: 20px; } th, td { padding: 9px 7px; font-size: 14px; }
      .results { padding: 16px 8px; gap: 10px; } .results strong { font-size: 26px; }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  
.legal { max-width: 850px; min-height: 65vh; } .legal h1 { margin: 20px 0 35px; } .legal h2 { text-align: left; margin-top: 32px; font-size: 23px; } .legal h3 { margin-top: 26px; } .legal p { line-height: 1.7; } .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 12px; } .footer-links a { margin: 0; }

body[data-flavor="suess_zitrone"] { --flavor: #59612a; --tint: #e7ebae; --soft: #f7f8e8; --line: #c5ce80; }
body[data-flavor="hibiskus"] { --flavor: #42645a; --tint: #d7ebd0; --soft: #eff7ec; --line: #abc9ae; }

body[data-flavor="kollagen"] { --flavor: #355e50; --tint: #cce8cf; --soft: #edf7ed; --line: #98c8a1; }

body[data-flavor="omega3"] { --flavor: #087269; --tint: #c7ebe0; --soft: #edf8f4; --line: #8ecbbc; }
body[data-flavor="omega3"] .nutrient-input { width: 170px; }

.dose-buttons { flex-wrap: wrap; }
@media (max-width: 620px) { .controls .field { max-width: 100%; } .controls select { max-width: 100%; } .results { grid-template-columns: 1fr; } }
