/* =========================================================================
   Selbstversorger-Werkzeugkasten - Hühnerstall- & Auslauf-Kalkulator
   Stilanker: Solar-Inselanlagen-Rechner / Autarkie Garten.
   ========================================================================= */

:root {
  --paper: #f6f2ed;
  --paper-2: #efe7dc;
  --surface: #fffdf8;
  --surface-2: #f8f1e8;
  --ink: #2b2620;
  --ink-2: #5b5447;
  --muted: #8b8170;
  --line: #e3dac8;
  --line-2: #eee7d8;
  --olive-900: #353f22;
  --olive-700: #495630;
  --olive-600: #56653a;
  --olive-500: #6a7a46;
  --olive-100: #e4e8d2;
  --olive-50: #eef1e1;
  --clay-700: #9a4f2a;
  --clay-600: #b1623a;
  --clay-100: #f3ddcd;
  --clay-50: #f8ebe0;
  --sun: #cf942b;
  --sun-50: #f6e8c8;
  --leaf: #13905b;
  --leaf-700: #0c7045;
  --leaf-50: #e7f4ed;
  --info: #4c5a34;
  --info-bg: #eef1e1;
  --info-line: #d7ddbf;
  --warn: #9a661c;
  --warn-bg: #f8ecd2;
  --warn-line: #ead8ad;
  --crit: #9c3a25;
  --crit-bg: #f6e1d9;
  --crit-line: #e8c4b6;
  --radius: 16px;
  --radius-s: 11px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(58, 46, 28, .05), 0 10px 26px -16px rgba(58, 46, 28, .30);
  --shadow-sm: 0 1px 2px rgba(58, 46, 28, .07);
  --maxw: 1180px;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(140% 90% at 92% -8%, var(--olive-50), transparent 55%),
    radial-gradient(120% 70% at 0% 0%, var(--clay-50), transparent 45%),
    var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.18; }
p { margin: 0; }
a { color: var(--olive-700); }
button, input, select { font: inherit; }
output { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 30px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--olive-700);
  font-size: 13px;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: rgba(253, 250, 243, .7); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; flex: none;
  color: var(--surface); background: linear-gradient(160deg, var(--olive-600), var(--olive-900));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-sm);
}
.brand__mark svg { display: block; width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__text strong { font-family: var(--serif); font-size: 16px; letter-spacing: .005em; font-weight: 600; }
.brand__sub { font-size: 12px; color: var(--muted); }
.header-note { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.hub { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hub__inner { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.hub__inner::-webkit-scrollbar { display: none; }
.hub__tool {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; border: 1px solid transparent;
}
.hub__ico { display: inline-grid; place-items: center; color: var(--olive-600); }
.hub__tool.is-current { background: var(--surface); color: var(--olive-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.hub__tool.is-soon { color: var(--muted); cursor: default; }
.hub__tool.is-soon .hub__ico { color: var(--muted); opacity: .7; }
.hub__soon {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--clay-700); background: var(--clay-100); padding: 2px 7px; border-radius: 999px;
}

.main { padding-block: clamp(16px, 2.8vw, 26px) 52px; }
.visual-hero {
  position: relative;
  min-height: clamp(300px, 37vw, 410px);
  margin-bottom: clamp(18px, 2.8vw, 28px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .38);
  background: var(--olive-900);
  box-shadow: 0 18px 46px -30px rgba(38, 31, 20, .62), 0 1px 2px rgba(58, 46, 28, .08);
  isolation: isolate;
}
.visual-hero::before,
.visual-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.visual-hero::before {
  background:
    linear-gradient(90deg, rgba(25, 31, 16, .88) 0%, rgba(34, 38, 22, .72) 43%, rgba(34, 38, 22, .20) 78%),
    linear-gradient(0deg, rgba(20, 18, 14, .44), rgba(20, 18, 14, .04) 45%);
}
.visual-hero::after {
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(17, 15, 12, .45), transparent);
}
.visual-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  transform: scale(1.01);
}
.visual-hero__content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 690px;
  padding: clamp(26px, 5vw, 54px);
  color: #fffaf0;
}
.lede__eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f4c879;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .32);
}
.lede__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.6vw, 50px);
  letter-spacing: 0;
  margin-top: 9px;
  text-wrap: balance;
  max-width: 13.5em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .42);
}
.lede__text {
  margin-top: 13px;
  color: rgba(255, 250, 240, .88);
  font-size: clamp(15px, 2.1vw, 17px);
  max-width: 58ch;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .4);
}
.lede__text strong { color: #fff; font-weight: 750; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-points span {
  display: inline-flex; align-items: center; min-height: 32px; padding: 7px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 750; color: #fff9e8;
  background: rgba(255, 250, 240, .14); border: 1px solid rgba(255, 250, 240, .22); backdrop-filter: blur(10px);
}

.tool-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 28px); align-items: end;
  margin-bottom: 16px; padding: clamp(18px, 3vw, 24px); border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 253, 248, .72)), var(--surface);
  border: 1px solid rgba(227, 218, 200, .82); box-shadow: 0 16px 44px -34px rgba(58, 46, 28, .42);
}
.tool-intro__eyebrow {
  font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf-700);
}
.tool-intro__title { margin-top: 4px; font-family: var(--serif); font-size: clamp(22px, 3.2vw, 30px); font-weight: 650; letter-spacing: 0; }
.tool-intro__text { margin-top: 7px; max-width: 68ch; color: var(--ink-2); font-size: 14.5px; text-wrap: pretty; }
.tool-steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tool-steps > span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; border-radius: 999px;
  background: var(--leaf-50); border: 1px solid rgba(19, 144, 91, .16); color: var(--leaf-700);
  font-size: 13px; font-weight: 750; white-space: nowrap;
}
.tool-steps strong {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: #fff; background: var(--leaf); font-size: 12px; font-variant-numeric: tabular-nums;
}
.tool-steps > span > span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.calc {
  display: grid; gap: clamp(16px, 2.2vw, 22px); grid-template-columns: 1fr; padding: clamp(12px, 2vw, 16px);
  border-radius: 26px; background: rgba(255, 255, 255, .38); border: 1px solid rgba(227, 218, 200, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.config { display: grid; gap: clamp(16px, 2.2vw, 20px); min-width: 0; }
.panel {
  background: rgba(255, 253, 248, .94); border: 1px solid rgba(227, 218, 200, .9);
  border-radius: 22px; box-shadow: 0 12px 38px -30px rgba(58, 46, 28, .42); overflow: clip; min-width: 0;
}
.panel__head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.step {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  font-size: 14px; font-weight: 850; color: #fff; background: var(--leaf);
  font-variant-numeric: tabular-nums; box-shadow: 0 8px 18px -12px rgba(19, 144, 91, .8);
}
.panel__heading { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.panel__title { font-family: var(--sans); font-size: 20px; font-weight: 850; letter-spacing: 0; }
.panel__sub { font-size: 12.5px; color: var(--muted); }
.panel__body { padding: 20px; display: grid; gap: 18px; }

.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .015em; }
.note {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty;
  padding: 12px 14px; background: var(--leaf-50); border: 1px solid rgba(19, 144, 91, .16); border-radius: 15px;
}
.note--quiet { background: var(--surface-2); border-color: var(--line-2); }
.grid3, .grid4 { display: grid; gap: 14px; }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.select { position: relative; display: block; }
.select::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px;
  transform: translateY(-65%) rotate(45deg);
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); pointer-events: none;
}
.select select {
  appearance: none; -webkit-appearance: none; width: 100%; padding: 13px 40px 13px 14px;
  font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.select select:hover { border-color: #cdc2a9; }
.numfield { position: relative; display: block; }
.numfield input {
  width: 100%; padding: 13px 14px; font-size: 15px; color: var(--ink); font-family: var(--mono);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; appearance: textfield;
  transition: border-color .15s, box-shadow .15s;
}
.numfield input:hover { border-color: #cdc2a9; }

.hen-input-row {
  display: grid;
  grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.area-estimate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.area-estimate:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.area-estimate:empty::before {
  content: attr(data-empty);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.area-estimate__card {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 74px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.area-estimate__card span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--muted);
}
.area-estimate__card strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
  color: var(--leaf-700);
  line-height: 1.1;
}
.area-estimate__card small {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.25;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}
.checkline + .checkline { margin-top: 10px; }
.checkline input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--leaf);
}

.modes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; min-height: 46px;
}
.modes--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modes:empty { align-items: center; }
.modes:empty::before { content: attr(data-empty); font-size: 13px; color: var(--muted); }
.mode-button {
  appearance: none; cursor: pointer; white-space: normal; display: grid; gap: 3px; text-align: left;
  padding: 13px 15px; border-radius: 16px; font-size: 14px; font-weight: 650;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s; min-height: 42px;
  min-width: 0;
}
.mode-button strong { font-size: 15px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.mode-button span { font-size: 12.5px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.mode-button:hover { border-color: var(--olive-500); color: var(--ink); }
.mode-button[aria-pressed="true"] {
  background: var(--leaf); color: #fff; border-color: var(--leaf); box-shadow: 0 10px 24px -16px rgba(19, 144, 91, .9);
}
.mode-button[aria-pressed="true"] strong,
.mode-button[aria-pressed="true"] span { color: #fff; }

.result { min-width: 0; }
.result__sticky {
  background: rgba(255, 253, 248, .96); border: 1px solid rgba(227, 218, 200, .9); border-radius: 22px;
  box-shadow: 0 18px 46px -32px rgba(58, 46, 28, .5); overflow: clip;
}
.result__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; color: var(--ink);
  background: linear-gradient(135deg, rgba(231, 244, 237, .92), rgba(255, 253, 248, .88)), var(--surface);
  border-bottom: 1px solid var(--line-2);
}
.result__title { font-family: var(--serif); font-size: 22px; font-weight: 650; color: var(--ink); }
.result__live {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--leaf); padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 16px; }
.metric {
  background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.metric--hero {
  grid-column: 1 / -1; background: var(--leaf-50); border-color: rgba(19, 144, 91, .18);
  position: relative; padding: 16px 16px 16px 20px;
}
.metric--hero::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--leaf);
}
.metric__label { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.metric__value { font-family: var(--serif); font-size: clamp(20px, 4.6vw, 24px); font-weight: 600; color: var(--ink); word-break: break-word; }
.metric--hero .metric__value { font-size: clamp(30px, 6vw, 36px); color: var(--leaf-700); }
.result__summary {
  margin: 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty;
  padding: 13px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 16px;
}
.result-shop {
  margin: 12px 16px 0;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
}
.result-shop__title {
  margin: 0 0 9px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--olive-700);
}
.result-shop__list { display: grid; gap: 8px; }
.result-shop__list:empty::before {
  content: attr(data-empty);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.result-shop__item {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-2);
}
.result-shop__item strong { font-size: 13px; color: var(--ink); line-height: 1.25; }
.result-shop__item span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.result-products {
  margin: 12px 16px 0;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
}
.result-products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.result-products__title {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--olive-700);
}
.result-products__head a {
  color: var(--olive-700);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.result-products__head a:hover { text-decoration: underline; }
.result-products__list { display: grid; gap: 9px; }
.result-products__list:empty::before {
  content: attr(data-empty);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.result-product {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface-2);
}
.result-product__media {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  border-radius: 13px;
  background: var(--leaf-50);
  border: 1px solid rgba(19, 144, 91, .16);
  color: var(--olive-700);
}
.result-product__media span {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
}
.result-product__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.result-product__rank {
  color: var(--clay-700);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.result-product__body strong {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.result-product__body small,
.result-product__why {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.result-product__body a {
  justify-self: start;
  margin-top: 3px;
  color: var(--olive-700);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.result-product__body a:hover { text-decoration: underline; }
.result__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 4px; }
@media (max-width: 380px) { .result__actions { grid-template-columns: 1fr; } }
.result__status { min-height: 18px; margin: 0; padding: 8px 16px 16px; font-size: 12.5px; font-weight: 600; color: var(--clay-700); text-align: center; }
.result__status:empty { padding-top: 0; padding-bottom: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; font-weight: 650; min-height: 46px;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn--primary { background: var(--olive-700); color: #fff; }
.btn--primary:hover { background: var(--olive-600); }
.btn--outline { background: var(--surface); color: var(--olive-700); border-color: var(--line); }
.btn--outline:hover { background: var(--olive-50); border-color: var(--olive-100); }
.btn--ghost { background: transparent; color: var(--clay-700); border-color: var(--line); min-height: 38px; }
.btn--ghost:hover { background: var(--clay-50); border-color: var(--clay-100); }
.btn--sm { padding: 8px 12px; font-size: 12.5px; min-height: 38px; }

.block { margin-top: clamp(30px, 4.4vw, 44px); }
.block__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.block__title { font-family: var(--serif); font-size: clamp(19px, 3.2vw, 23px); font-weight: 600; }
.block__lead { margin-top: 4px; font-size: 13.5px; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.block__hint { font-size: 12.5px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
.tag--ad { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }

.detail-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(12px, 2vw, 18px); }
.detail-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); min-width: 0;
}
.detail-card__title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.plan-list, .routine { display: grid; gap: 9px; }
.plan-item, .rotation-item {
  display: grid; gap: 5px; padding: 13px 15px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  font-size: 14px; color: var(--ink-2); line-height: 1.48;
}
.plan-item strong, .rotation-item { color: var(--ink); font-weight: 650; }
.muted { color: var(--muted); font-size: 12.5px; }

.shopping-note-block {
  padding: clamp(16px, 2.8vw, 22px);
  border-radius: 22px;
  border: 1px solid rgba(227, 218, 200, .82);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(248, 241, 232, .72)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.shopping-note-block .block__head { margin-bottom: 13px; }
.shopping { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: shopping; }
.shopping:empty {
  display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--surface-2);
}
.shopping:empty::before { content: attr(data-empty); font-size: 13px; color: var(--muted); line-height: 1.5; }
.shopping-item {
  counter-increment: shopping;
  display: grid;
  grid-template-columns: 30px minmax(150px, .8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 10px 13px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.shopping-item::before {
  content: counter(shopping);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #fff;
  background: var(--olive-700);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.shopping-item strong, .shopping-item b {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.shopping-item span {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.shopping-item code {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}
.shopping-item small, .shopping-item .field-hint { color: var(--muted); }
.shopping--food {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.supermarket-item {
  min-height: 118px;
}
.shopping-link {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 650; text-decoration: none;
  color: var(--olive-900); background: var(--sun-50); border: 1px solid var(--sun); transition: background .15s;
}
.shopping-link:hover { background: var(--sun); }
.fineprint {
  margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.55; padding: 13px 15px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-s);
}
.fineprint strong { color: var(--ink-2); }

.product-rankings {
  padding: clamp(16px, 2.8vw, 22px);
  border-radius: 22px;
  border: 1px solid rgba(227, 218, 200, .82);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .94), rgba(239, 247, 241, .70)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.product-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.product-sort button {
  appearance: none;
  cursor: pointer;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 750;
}
.product-sort button:hover { border-color: var(--olive-500); }
.product-sort button.is-active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}
.product-note {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--leaf-50);
  border: 1px solid rgba(19, 144, 91, .16);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
  gap: 14px;
}
.product-grid:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}
.product-grid:empty::before { content: attr(data-empty); }
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.product-card__rank {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding-inline: 9px;
  border-radius: 999px;
  background: var(--olive-900);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.product-card__media {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 138px;
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(19, 144, 91, .16);
  background: linear-gradient(145deg, var(--leaf-50), var(--sun-50));
  color: var(--olive-700);
}
.product-card__media figcaption {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(255, 253, 248, .88);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}
.product-card__media figcaption a { color: var(--olive-700); }
.product-card__fallback {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 12px 36px;
  text-align: center;
}
.product-card__icon {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 750;
  line-height: 1;
}
.product-card__fallback span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.product-card__fallback strong {
  font-size: 13px;
  line-height: 1.22;
  color: var(--ink);
}
.product-card__fallback small { color: var(--muted); font-size: 11px; }
.product-card__body {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.product-card__award {
  color: var(--clay-700);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.product-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.product-card__score {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--leaf-50);
  border: 1px solid rgba(19, 144, 91, .16);
  color: var(--leaf-700);
  font-size: 12px;
  font-weight: 800;
}
.product-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.product-card__status span,
.product-card__meta span {
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}
.product-card p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.product-card__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.product-card__split div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}
.product-card__split strong {
  color: var(--ink);
  font-size: 12px;
}
.product-card__split span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-card__notice {
  padding-top: 6px;
  border-top: 1px solid var(--line-2);
  color: var(--muted) !important;
  font-size: 12px !important;
}

.routine { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rotation-item {
  position: relative;
  padding-left: 40px;
  min-height: 64px;
}
.rotation-item::before {
  content: ""; position: absolute; left: 15px; top: 19px; width: 14px; height: 14px; border-radius: 5px;
  border: 1.7px solid var(--olive-500); background: var(--olive-50);
}

.warnings { display: grid; gap: 10px; }
.warnings:empty { display: none; }
.warnings:not(:empty) + .warnings-empty { display: none; }
.warnings-empty {
  font-size: 13.5px; color: var(--muted); padding: 14px 16px;
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-s);
}
.warning-item {
  display: flex; gap: 12px; align-items: flex-start; position: relative; padding: 13px 15px 13px 16px;
  border-radius: var(--radius-s); font-size: 14px; line-height: 1.5; color: var(--ink-2);
  border: 1px solid var(--info-line); background: var(--info-bg);
}
.warning-item::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--info);
}
.warning-item[data-level="warning"] { border-color: var(--warn-line); background: var(--warn-bg); }
.warning-item[data-level="warning"]::before { background: var(--warn); }
.warning-item[data-level="critical"] { border-color: var(--crit-line); background: var(--crit-bg); color: #6f2c1c; }
.warning-item[data-level="critical"]::before { background: var(--crit); }
.warning-item strong { min-width: 62px; color: inherit; }

.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list:empty {
  display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--surface-2);
}
.faq-list:empty::before { content: attr(data-empty); font-size: 13px; color: var(--muted); line-height: 1.5; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow-sm); overflow: clip;
}
.faq-item summary {
  cursor: pointer; list-style: none; position: relative; padding: 15px 46px 15px 16px;
  font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.38;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--olive-600); border-bottom: 2px solid var(--olive-600);
  transform: translateY(-65%) rotate(45deg); transition: transform .15s;
}
.faq-item[open] summary { border-bottom: 1px solid var(--line-2); background: var(--leaf-50); }
.faq-item[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq-item p {
  padding: 13px 16px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.58; text-wrap: pretty;
}

.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sources:empty {
  display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--surface-2);
}
.sources:empty::before { content: attr(data-empty); font-size: 13px; color: var(--muted); line-height: 1.5; }
.sources > li {
  position: relative; font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  padding: 11px 14px 11px 32px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-s);
}
.sources > li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--olive-500); }
.sources a { color: var(--olive-700); }

.legal {
  margin-top: clamp(32px, 4.6vw, 48px); padding: clamp(18px, 3.2vw, 26px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.legal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.legal__title { font-family: var(--sans); font-size: 21px; font-weight: 850; color: var(--ink); letter-spacing: 0; }
.legal__lead { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.legal__accordion { display: grid; gap: 8px; }
.legal__item {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: #fff;
  overflow: clip;
}
.legal__item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 13px 42px 13px 14px;
  font-size: 14px;
  font-weight: 750;
}
.legal__item summary::-webkit-details-marker { display: none; }
.legal__item summary::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--olive-600);
  border-bottom: 2px solid var(--olive-600);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .15s;
}
.legal__item[open] summary { border-bottom: 1px solid var(--line-2); background: var(--leaf-50); }
.legal__item[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.legal p { font-size: 13px; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.legal__item p { padding: 12px 14px 14px; }
.legal a { color: var(--olive-700); }

.footer { border-top: 1px solid var(--line); margin-top: 44px; padding-block: 22px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.footer__links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__links a { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--olive-700); text-decoration: underline; }

.select select:focus-visible,
.numfield input:focus-visible,
.mode-button:focus-visible,
.product-sort button:focus-visible,
.result-products__head a:focus-visible,
.result-product__body a:focus-visible,
.product-card__actions a:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: none; border-color: var(--olive-600); box-shadow: 0 0 0 3px rgba(86, 101, 58, .20);
}

@media (min-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; }
  .result__sticky { position: sticky; top: 20px; }
}
@media (min-width: 1080px) {
  .calc { grid-template-columns: minmax(0, 1fr) 408px; }
}
@media (max-width: 860px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3, .detail-grid, .hen-input-row { grid-template-columns: 1fr; }
  .area-estimate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tool-intro { grid-template-columns: 1fr; align-items: start; padding: 16px; border-radius: 18px; }
  .tool-intro__title { font-size: 22px; }
  .tool-intro__text { display: none; }
  .tool-steps { justify-content: flex-start; }
  .tool-steps > span { min-height: 34px; padding: 7px 10px; font-size: 12.5px; }
  .calc { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .visual-hero { min-height: 395px; border-radius: 18px; }
  .visual-hero::before {
    background:
      linear-gradient(0deg, rgba(22, 27, 15, .90) 0%, rgba(30, 35, 19, .76) 56%, rgba(30, 35, 19, .18) 100%),
      linear-gradient(90deg, rgba(20, 18, 14, .38), rgba(20, 18, 14, .02));
  }
  .visual-hero__image { object-position: 67% 50%; }
  .visual-hero__content { justify-content: flex-end; padding: 22px; }
  .lede__title { max-width: 11em; font-size: clamp(29px, 9vw, 38px); }
  .lede__text { font-size: 15px; }
  .header-note { display: none; }
}
@media (max-width: 520px) {
  .grid4, .modes, .modes--three, .metrics, .result__actions, .shopping, .routine, .area-estimate, .product-grid { grid-template-columns: 1fr; }
  .panel__head, .panel__body { padding-inline: 16px; }
  .btn { white-space: normal; }
  .product-card { grid-template-columns: 1fr; }
  .product-card__media { min-height: 150px; }
  .product-card__split, .product-card__actions { grid-template-columns: 1fr; }
  .shopping-item { grid-template-columns: 30px 1fr; align-items: start; }
  .shopping-item code { grid-column: 2; }
  .shopping-item small { display: block; margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
  .shopping-link { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; }
}
@media (max-width: 390px) {
  .visual-hero { min-height: 405px; }
  .hero-points span { font-size: 12px; min-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
