/* Baustein "Alkoholsteuer-Rechner" (src/bausteine/alkoholsteuer-rechner.html).
   Farben auf die des Magazins gezogen: das Markengruen #79ae36 traegt weissen
   Text nicht, deshalb hier das dunklere aus --color-accent-dunkel. */
#cnc-steuerrechner { --cnc-gruen: #649230; --cnc-gruen-dunkel: #4f7a1f; --cnc-gruen-hell: #E3F0D6; --cnc-rot: #B3261E; --cnc-rot-hell: #F8E3E1; --cnc-linie: #D3D9CC; --cnc-feld: #F7F8F4; --cnc-text: #1F2A1A; --cnc-grau: #5E6A57; max-width: 825px; margin: 24px 0; color: var(--cnc-text); font: inherit; line-height: 1.5; }
#cnc-steuerrechner *, #cnc-steuerrechner *::before, #cnc-steuerrechner *::after { box-sizing: border-box; }
#cnc-steuerrechner .cnc-panel { background: #fff; border: 1px solid var(--cnc-linie); border-radius: 12px; padding: 20px; }
#cnc-steuerrechner .cnc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
#cnc-steuerrechner .cnc-wide { grid-column: 1 / -1; }
#cnc-steuerrechner label, #cnc-steuerrechner .cnc-label { display: block; font-weight: 600; margin: 0 0 6px; }
#cnc-steuerrechner .cnc-hint { display: block; color: var(--cnc-grau); font-size: 0.875em; margin-top: 5px; }
#cnc-steuerrechner .cnc-wrap { display: flex; align-items: center; background: var(--cnc-feld); border: 1px solid var(--cnc-linie); border-radius: 8px; overflow: hidden; }
#cnc-steuerrechner .cnc-wrap:focus-within { border-color: var(--cnc-gruen); box-shadow: 0 0 0 3px var(--cnc-gruen-hell); }
#cnc-steuerrechner .cnc-wrap.cnc-invalid { border-color: var(--cnc-rot); }
#cnc-steuerrechner .cnc-wrap input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--cnc-text); font: inherit; font-size: 1.05em; padding: 10px 12px; margin: 0; outline: none; box-shadow: none; height: auto; }
#cnc-steuerrechner .cnc-fix { background: #EDEFE9; }
#cnc-steuerrechner .cnc-fix input { color: var(--cnc-grau); cursor: default; }
#cnc-steuerrechner .cnc-preis { margin-top: 16px; border: 1px solid var(--cnc-linie); border-radius: 12px; background: #fff; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#cnc-steuerrechner .cnc-preis[hidden] { display: none; }
#cnc-steuerrechner .cnc-preis div { padding: 16px 20px; border-left: 1px solid var(--cnc-linie); }
#cnc-steuerrechner .cnc-preis div:first-child { border-left: 0; }
#cnc-steuerrechner .cnc-preis p { margin: 0; }
#cnc-steuerrechner .cnc-preis .cnc-wert { font-size: 1.6em; font-weight: 700; line-height: 1.2; margin-top: 4px !important; font-variant-numeric: tabular-nums; }
#cnc-steuerrechner .cnc-unit { padding: 0 12px; color: var(--cnc-grau); white-space: nowrap; font-size: 0.9em; }
#cnc-steuerrechner .cnc-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#cnc-steuerrechner .cnc-type { font: inherit; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--cnc-linie); background: #fff; color: var(--cnc-text); cursor: pointer; line-height: 1.3; }
#cnc-steuerrechner .cnc-type span { display: block; font-size: 0.8em; color: var(--cnc-grau); margin-top: 2px; }
#cnc-steuerrechner .cnc-type:hover { border-color: var(--cnc-gruen); }
#cnc-steuerrechner .cnc-type[aria-pressed="true"] { background: var(--cnc-gruen); border-color: var(--cnc-gruen); color: #fff; font-weight: 600; }
#cnc-steuerrechner .cnc-type[aria-pressed="true"] span { color: #fff; opacity: 0.9; font-weight: 400; }
#cnc-steuerrechner .cnc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#cnc-steuerrechner .cnc-chip { font: inherit; font-size: 0.875em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--cnc-linie); background: #fff; color: var(--cnc-text); cursor: pointer; line-height: 1.4; }
#cnc-steuerrechner .cnc-chip:hover { border-color: var(--cnc-gruen); }
#cnc-steuerrechner .cnc-chip[aria-pressed="true"] { background: var(--cnc-gruen); border-color: var(--cnc-gruen); color: #fff; }
#cnc-steuerrechner button:focus-visible { outline: 3px solid var(--cnc-gruen); outline-offset: 2px; }
#cnc-steuerrechner .cnc-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
#cnc-steuerrechner .cnc-card { border: 1px solid var(--cnc-linie); border-radius: 12px; overflow: hidden; background: #fff; }
#cnc-steuerrechner .cnc-head { padding: 16px 20px; }
#cnc-steuerrechner .cnc-head p { margin: 0; }
#cnc-steuerrechner .cnc-now .cnc-head { background: var(--cnc-gruen-hell); }
#cnc-steuerrechner .cnc-next .cnc-head { background: var(--cnc-gruen); color: #fff; }
#cnc-steuerrechner .cnc-title { font-weight: 600; }
#cnc-steuerrechner .cnc-sub { font-size: 0.875em; opacity: 0.85; }
#cnc-steuerrechner .cnc-amount { font-size: 2.1em; font-weight: 700; line-height: 1.1; margin-top: 6px !important; font-variant-numeric: tabular-nums; }
#cnc-steuerrechner .cnc-rows { padding: 2px 20px 8px; }
#cnc-steuerrechner .cnc-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--cnc-linie); }
#cnc-steuerrechner .cnc-row:last-child { border-bottom: 0; }
#cnc-steuerrechner .cnc-row span:first-child { color: var(--cnc-grau); }
#cnc-steuerrechner .cnc-row span:last-child { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
#cnc-steuerrechner .cnc-diff { margin-top: 16px; padding: 18px 20px; border-radius: 12px; background: var(--cnc-rot-hell); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
#cnc-steuerrechner .cnc-diff p { margin: 0; }
#cnc-steuerrechner .cnc-diff .cnc-amount { color: var(--cnc-rot); margin-top: 0 !important; font-size: 2.4em; }
#cnc-steuerrechner .cnc-formula { margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--cnc-linie); border-radius: 8px; font-size: 0.85em; color: var(--cnc-grau); overflow-x: auto; font-variant-numeric: tabular-nums; }
#cnc-steuerrechner .cnc-formula strong { color: var(--cnc-text); }
@media (max-width: 600px) {
  #cnc-steuerrechner .cnc-inputs, #cnc-steuerrechner .cnc-compare, #cnc-steuerrechner .cnc-types, #cnc-steuerrechner .cnc-preis { grid-template-columns: 1fr; }
  #cnc-steuerrechner .cnc-preis div { border-left: 0; border-top: 1px solid var(--cnc-linie); }
  #cnc-steuerrechner .cnc-preis div:first-child { border-top: 0; }
}
