/* pflanzenguide.net — оформление.
   Один файл, системный шрифт, ни одного внешнего запроса. Светлое (правило стройки №4).
   Образ — садовая тетрадь: светлая бумага, листовой зелёный, тёплые шкалы. */

:root {
  color-scheme: light;
  --bg:      #f7f8f3;
  --card:    #ffffff;
  --ink:     #1d261c;
  --ink-2:   #46523f;
  --ink-3:   #727c6b;
  --line:    #e1e5d8;
  --line-2:  #eef1e8;
  --accent:  #2f6b3a;
  --accent-d:#214f2a;
  --accent-w:#eaf3e6;
  --warm:    #c7802b;
  --warm-w:  #fbf2e4;
  --radius:  12px;
  --wrap:    1040px;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px }
a:hover { color: var(--accent-d) }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 9;
  background: var(--card); padding: 10px 14px; border-radius: 8px; box-shadow: 0 2px 12px rgba(20,32,20,.18) }

/* ── шапка ── */
.top { background: var(--card); border-bottom: 1px solid var(--line) }
.top-in { display: flex; align-items: center; gap: 10px 22px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; letter-spacing: -.3px;
  color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 700 }
.brand b { font-weight: 400; color: var(--accent) }
.logo { width: 30px; height: 30px; flex: none }
.mainnav { display: flex; gap: 18px; font-size: 15px }
.mainnav a { color: var(--ink-2); text-decoration: none; font-weight: 500 }
.mainnav a:hover { color: var(--accent) }
.find { display: flex; gap: 8px; flex: 1 1 260px; min-width: 0; margin-left: auto; max-width: 380px }
.find input, .big-find input {
  min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid #d3d9c8;
  border-radius: 9px; background: #fff; color: var(--ink) }
.find input { flex: 1 1 0 }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px }
button { font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; padding: 9px 16px; border: 0;
  border-radius: 9px; background: var(--accent); color: #fff; cursor: pointer }
button:hover { background: var(--accent-d) }

/* ── крошки ── */
.crumbs { padding-top: 14px }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 14px; color: var(--ink-3) }
.crumbs li + li::before { content: "›"; margin-right: 6px }
.crumbs a { color: var(--ink-2); text-decoration: none }
.crumbs a:hover { text-decoration: underline }

main { padding: 18px 20px 56px; min-height: 60vh }
main > section, article > section { margin: 0 0 30px }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.6px; margin: 6px 0 10px; overflow-wrap: anywhere }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.2px }
p { margin: 0 0 12px }
.lead-p { font-size: 18px; max-width: 70ch; color: var(--ink-2) }
.muted { color: var(--ink-3) }
.small { font-size: 14px; max-width: 80ch }
.hinweis { background: var(--warm-w); border-radius: 8px; padding: 10px 14px }

/* ── главная ── */
.hero { padding: 22px 0 8px }
.hero h1 { font-size: 40px; max-width: 18ch }
.big-find { display: flex; gap: 8px; max-width: 640px; margin: 14px 0 18px }
.big-find input { flex: 1 1 0; font-size: 17px; padding: 12px 14px }
.big-find button { font-size: 16px; padding: 12px 20px }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(30,50,25,.04) }
.note { background: var(--accent-w); border-radius: var(--radius); padding: 18px 22px; max-width: 86ch }
.note h2 { font-size: 18px }
.note p { margin: 0 }

ul.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px }
ul.tiles a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; text-decoration: none; color: var(--ink) }
ul.tiles li:nth-child(3n+2) a { border-left-color: var(--warm) }
ul.tiles li:nth-child(3n) a { border-left-color: #7cb46b }
ul.tiles a:hover { box-shadow: 0 2px 10px rgba(47,107,58,.12) }
ul.tiles strong { font-size: 16px; line-height: 1.3 }
ul.tiles span { font-size: 13px; color: var(--ink-3) }

ul.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0 }
ul.chips a { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  text-decoration: none; font-size: 15px }
ul.chips a:hover { border-color: var(--accent); background: var(--accent-w) }
ul.chips small { color: var(--ink-3); margin-left: 3px }

/* ── подбор ── */
.finder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 22px; align-items: start }
.finder fieldset { border: 0; margin: 0; padding: 0; min-width: 0 }
.finder fieldset:nth-of-type(5) { grid-column: 1 / -1 }
.finder legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 0; margin: 0 0 6px }
.opts { display: flex; flex-wrap: wrap; gap: 6px }
.opt { position: relative; cursor: pointer }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px }
.opt span { display: inline-block; padding: 6px 12px; border: 1px solid #d3d9c8; border-radius: 999px; font-size: 15px; background: #fff; color: var(--ink-2) }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600 }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
.opt:hover span { border-color: var(--accent) }
.finder button { grid-column: 1 / -1; justify-self: start; font-size: 16px; padding: 11px 20px }

/* ── таблицы ── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius) }
table { border-collapse: collapse; width: 100%; font-size: 15px }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top }
thead th { font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line) }
tbody tr:last-child > * { border-bottom: 0 }
table.arten { min-width: 640px }
table.arten th[scope=row] { font-weight: 600 }
table.arten th[scope=row] i { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3) }

/* ── карточка вида ── */
.art-head h1 { margin-bottom: 4px }
.bot { color: var(--ink-3); margin: 0 0 4px }
.bot i { color: var(--ink-2) }
.blick { margin: 16px 0 28px }
.blick dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 }
.blick dl > div { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px }
.blick dl > div:nth-child(2) { border-top-color: #3b82a8 }
.blick dl > div:nth-child(3) { border-top-color: #8a6bb5 }
.blick dl > div:nth-child(4) { border-top-color: var(--warm) }
.blick dl > div:nth-child(5) { border-top-color: #7a8d9a }
.blick dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700 }
.blick dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; line-height: 1.35 }

ul.skalen { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 16px; max-width: 720px }
.sk-kopf { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline }
.sk-kopf span { color: var(--ink-2) }
.sk-bar { display: block; width: 100%; height: 14px; margin: 6px 0 3px }
.sk-bg { fill: #e6eadf }
.sk-l { fill: #ece5c2 }
.sk-m { fill: #d6e6ef }
.sk-r { fill: #e3dcef }
.sk-n { fill: #efe2cf }
.sk-t { fill: #e2e6ea }
.sk-mark { fill: var(--accent-d) }
.sk-fuss { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3) }
.sk-fuss span:nth-child(2) { color: var(--ink-2); font-weight: 600 }

ul.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px }
ul.mini a { display: flex; flex-direction: column; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); text-decoration: none; color: var(--ink) }
ul.mini a:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(47,107,58,.1) }
ul.mini strong { font-size: 16px }
ul.mini span { font-size: 13px; color: var(--ink-3) }

.quellen { margin: 26px 0 0; padding: 16px 20px; border: 1px dashed #cfd6c3; border-radius: var(--radius); font-size: 14px; color: var(--ink-2) }
.quellen h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0 0 8px }
.quellen ul { margin: 0; padding-left: 18px }
.quellen li { margin: 3px 0 }

/* ── A–Z ── */
.abc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px }
.abc a { display: inline-block; min-width: 34px; text-align: center; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card); text-decoration: none; font-weight: 600 }
.abc-gr { scroll-margin-top: 12px }
ul.az { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 28px }
ul.az li { break-inside: avoid; padding: 3px 0 }
ul.az i { color: var(--ink-3); font-size: 13px }

dl.erkl dt { font-weight: 700; margin-top: 10px }
dl.erkl dd { margin: 2px 0 0 }

/* ── подвал ── */
.foot { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0 30px; font-size: 14px; color: var(--ink-3) }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px }
.foot-nav a { color: var(--ink-2); text-decoration: none }
.foot-nav a:hover { text-decoration: underline }
.lic { margin: 0; max-width: 90ch }

@media (max-width: 640px) {
  body { font-size: 16px }
  h1 { font-size: 27px }
  .hero h1 { font-size: 30px }
  .top-in { gap: 8px 16px }
  .find { max-width: none; flex-basis: 100% }
  .mainnav { gap: 14px; font-size: 14px }
  .panel { padding: 16px }
  .blick dl { grid-template-columns: 1fr 1fr; gap: 8px }
  ul.tiles { grid-template-columns: 1fr 1fr; gap: 8px }
  ul.tiles a { padding: 10px 12px }
}
.tbl-tipp { display: none; margin: 0 0 4px }
@media (max-width: 660px) { .tbl-tipp { display: block } }
.hinweis { background: #fff7e0; border-left: 4px solid #e0a800; padding: 10px 14px; border-radius: 6px }

/* Место под баннер: высота зарезервирована заранее — показ рекламы не двигает текст (CLS). Пока PG_WERBUNG не включён, блока нет вовсе. */
.ad { margin: 24px 0; min-height: 280px; background: #f7f8f5; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; overflow: hidden }
.ad-lbl { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em }
@media (min-width: 760px) { .ad { min-height: 120px } }
.kauf .chips a { border-color: var(--accent) }
