/* Fleeg: soft green, calm, large and readable (many visitors are older or worried family members).
   Square corners everywhere (owner's choice). */
:root {
  --bg: #f4f9f5;
  --bg2: #eaf3ec;
  --card: #ffffff;
  --mint: #dcede1;
  --sage: #a9cdb3;
  --green: #5c9a70;
  --green-dark: #3f7553;
  --ink: #223d2c;
  --muted: #5e7a67;
  --line: #d3e6d8;
  --warm: #f7efe0;
  --warn: #9a6a1c;
  --radius: 0;
  --shadow: 0 2px 10px rgba(47, 92, 63, .07);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--green-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.25; margin: .2em 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: .5em 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 0; z-index: 9; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.loading { padding: 3rem 0; text-align: center; color: var(--muted); }

/* header */
.site-header { background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; }
#nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
#nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 0; font-weight: 600; font-size: .95rem; }
#nav a.on, #nav a:hover { background: var(--mint); }
.langs { display: flex; gap: 4px; }
.langs button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 0; padding: 5px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.langs button.on { background: var(--green); color: #fff; border-color: var(--green); }

/* buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--green); color: #fff; font: inherit; font-weight: 700; padding: 13px 22px; border-radius: 0;
  text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn.soft { background: var(--mint); color: var(--ink); }
.btn.soft:hover { background: var(--sage); color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: .92rem; }
.btn:disabled { opacity: .55; cursor: wait; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 0; padding: 12px 14px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(92, 154, 112, .2); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; background: #fff; border: 1.5px solid var(--line); border-radius: 0; padding: 8px 14px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex: none; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.notice { background: var(--warm); border-radius: 0; padding: 12px 14px; color: #5b4313; font-size: .95rem; }
.ok-box { background: var(--mint); border-radius: 0; padding: 22px; }
.err { color: #a03b2a; font-weight: 600; }

/* home */
.hero { background: linear-gradient(160deg, #e3f1e7 0%, #f4f9f5 60%); border-left: 6px solid var(--sage); border-radius: 0; padding: clamp(24px, 5vw, 52px); margin: 22px 0; position: relative; overflow: hidden; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.searchbox { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; margin-top: 22px; background: #fff; padding: 12px; border-radius: 0; box-shadow: var(--shadow); position: relative; z-index: 1; }
.searchbox select { border: 0; background: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 14px 0 28px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--sage); color: var(--ink); }
.tile .ico { display: grid; place-items: center; width: 52px; height: 52px; background: var(--mint); }
.tile .ico .ic { width: 30px; height: 30px; }
.tile.soon .ico { background: #fff; }
.tile b { display: block; margin-top: 6px; }
.tile small { color: var(--muted); }
.tile.soon { background: var(--bg2); box-shadow: none; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 0; background: var(--mint); color: var(--green-dark); }
.tag.soon { background: var(--warm); color: var(--warn); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 10px 0 30px; }
.step { background: var(--card); border-radius: 0; padding: 20px; border: 1px solid var(--line); }
.step .n { width: 34px; height: 34px; border-radius: 0; background: var(--mint); color: var(--green-dark); display: grid; place-items: center; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.panel { background: var(--card); border-radius: 0; padding: 24px; border: 1px solid var(--line); }
.panel.green { background: var(--mint); border: 0; }

/* results */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--card); padding: 14px; border-radius: 0; border: 1px solid var(--line); margin: 18px 0 10px; }
.filters > div { flex: 1 1 200px; }
.filters label { margin-top: 0; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 7px 13px; border-radius: 0; font: inherit; font-size: .92rem; cursor: pointer; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.count { margin: 8px 0 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 4px 0 2px; }
.card .addr { color: var(--muted); font-size: .95rem; }
.card .links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .95rem; margin-top: 4px; }
.card .links a { text-decoration: none; font-weight: 600; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.towns { font-size: .9rem; color: var(--muted); }
.empty { text-align: center; padding: 40px 10px; background: var(--card); border-radius: 0; }

/* detail */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin: 22px 0 34px; }
.facts { list-style: none; padding: 0; margin: 10px 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.facts li span:first-child { min-width: 26px; }
.back { display: inline-block; margin-top: 18px; text-decoration: none; font-weight: 600; }

/* forms page */
.formwrap { max-width: 720px; margin: 22px auto 40px; background: var(--card); border-radius: 0; padding: clamp(18px, 4vw, 34px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.site-footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 22px 0 32px; margin-top: 20px; font-size: .9rem; color: var(--muted); }

@media (max-width: 760px) {
  .searchbox { grid-template-columns: 1fr; }
  .split, .detail, .row2 { grid-template-columns: 1fr; }
  #nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  #nav a { white-space: nowrap; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } html { scroll-behavior: auto; } }

/* line icons (js/app.js SVG set) */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: none; stroke: var(--green-dark); stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.ic .m { fill: var(--mint); stroke: none; }
.ic .f { fill: var(--sage); stroke: none; }
.ic.h1 { width: 1.1em; height: 1.1em; vertical-align: -0.12em; }
.ic.big { width: 26px; height: 26px; }
.tag .ic { width: 1.05em; height: 1.05em; vertical-align: -0.18em; stroke-width: 1.9; }
.tag .ic .m { fill: #fff; }
.card .links .ic { margin-right: 2px; }
.facts li span:first-child { min-width: 30px; padding-top: 2px; }

/* guide pages (site/guide/<lang>/…, built by tools/build_guides.py) */
.article { max-width: 780px; margin: 26px auto 40px; background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 4vw, 44px); }
.article h1 { display: flex; gap: 12px; align-items: flex-start; }
.article h2 { margin-top: 1.4em; font-size: 1.3rem; }
.article h2.small-h { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.article p.lead { font-size: 1.12rem; color: var(--muted); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: .45em 0; }
.article .notice { margin-top: 1.2em; }
.crumbs { font-size: .9rem; margin: 0 0 8px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.cta-box { background: var(--mint); padding: 20px 22px; margin: 28px 0 10px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sources { font-size: .92rem; }
.guide-links { list-style: none; padding: 0 !important; }
.guide-links a { text-decoration: none; font-weight: 600; }
.guides-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.guide-langs a { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 5px 10px; font-size: .85rem; text-decoration: none; }
.guide-langs a.on { background: var(--green); color: #fff; border-color: var(--green); }
