/* Endo-Karte – design system. Plain CSS, no build step. Brand colours live in :root. */
:root {
  --brand: #2b6449; --brand-ink: #1f4d3a; --brand-soft: #e1eee6;
  --accent: #e4633e; --accent-ink: #b94a29; --accent-soft: #fbe6dd;
  --gold: #c58a00; --gold-soft: #fff3d6;
  --bg: #fbf8f4; --surface: #ffffff; --surface-2: #f4efe8;
  --ink: #1f2a2a; --muted: #5c6b6b; --line: #e6e0d8;
  --ok: #2e7d32; --ok-soft: #e3f3e4; --warn: #b3261e; --warn-soft: #fbe4e2; --info-soft: #e7f0f9;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(31,42,42,.05), 0 8px 24px -12px rgba(31,42,42,.18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
.h4 { font-size: 1.02rem; margin: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.text-gold { color: #8f6500; font-weight: 600; }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }
.container--mid { max-width: 920px; }
/* Vertical only, so .container keeps its side padding on phones. */
.section { padding-block: 40px; }
.section--tight { padding-block: 20px; }
.stack > * + * { margin-top: 16px; }
.stack--sm > * + * { margin-top: 8px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; }
.skip:focus { left: 8px; z-index: 100; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* header */
.announcement { background: var(--gold-soft); color: #5a3f00; text-align: center; padding: 8px 16px; font-size: .9rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 1.15rem; }
.brand__mark { display: inline-flex; }
.brand__mark svg { display: block; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--brand-ink); }
.nav__mod { color: var(--accent-ink) !important; }
.nav__account { font-weight: 700 !important; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; transition: transform .05s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: #c84e2b; color: #fff; }
.btn--primary:hover { background: #a94022; color: #fff; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); color: #fff; }
.btn--secondary { background: #fff; color: var(--brand-ink); border-color: var(--line); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--brand); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--danger { background: #fff; color: var(--warn); border-color: var(--warn); }
.btn--sm { padding: 7px 12px; font-size: .875rem; }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* cards & badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card--soft { background: var(--surface-2); box-shadow: none; }
.card--flat { box-shadow: none; }
.card--accent { border-color: var(--accent); background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.badge--ok { background: var(--ok-soft); color: #2a7330; border-color: transparent; }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge--gold { background: var(--gold-soft); color: #7a5600; border-color: transparent; }
.badge--wait { background: var(--info-soft); color: #234a6b; border-color: transparent; }
.badge--verified { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge--demo { background: #eee; color: #666; border-style: dashed; }
.badge--founder { background: linear-gradient(90deg, var(--gold-soft), #fff); color: #7a5600; border-color: var(--gold); }
.pin { width: 14px; height: 14px; border-radius: 50%; background: var(--pin, #555); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); flex: none; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0; background: var(--info-soft); border: 1px solid transparent; }
.alert--success { background: var(--ok-soft); color: #1f5a22; }
.alert--error { background: var(--warn-soft); color: var(--warn); }
.alert--warning { background: var(--gold-soft); color: #5a3f00; }
.messages { margin-top: 12px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field > .label { font-weight: 600; font-size: .95rem; }
.input, .select, .textarea { font: inherit; padding: 11px 13px; border: 1px solid #cfc7bc; border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; }
.input:focus, .select:focus, .textarea:focus, .btn:focus-visible, .chip input:focus-visible + span { outline: 3px solid rgba(11,94,90,.28); outline-offset: 1px; }
.textarea { min-height: 140px; resize: vertical; }
.help { color: var(--muted); font-size: .85rem; margin: 0; }
.error { color: var(--warn); font-size: .875rem; margin: 0; font-weight: 600; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.checkbox input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid #cfc7bc; background: #fff; cursor: pointer; font-size: .92rem; }
.chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip--accent input:checked + span { background: var(--accent); border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }

/* score scale */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; }
.scale span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 4px; border: 1px solid #cfc7bc; border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 700; min-height: 58px; }
.scale small { font-weight: 500; color: var(--muted); font-size: .7rem; text-align: center; line-height: 1.1; }
.scale input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.scale input:checked + span small { color: #d9f0ee; }
.scale input:focus-visible + span { outline: 3px solid rgba(11,94,90,.28); }
.score-block { padding: 14px 0; border-top: 1px solid var(--line); }
.score-block__q { font-weight: 700; margin: 0 0 2px; }
.score-block__hint { margin: 0 0 10px; color: var(--muted); font-size: .875rem; }

/* stars */
.stars { --size: 18px; display: inline-block; position: relative; width: calc(var(--size) * 5); height: var(--size); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23d9d2c7' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/></svg>") repeat-x; background-size: var(--size) var(--size); vertical-align: middle; }
.stars__fill { position: absolute; inset: 0; width: var(--pct, 0%); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23e5a100' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/></svg>") repeat-x; background-size: var(--size) var(--size); }
.stars--sm { --size: 15px; }
.stars--lg { --size: 26px; }

/* category bars */
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font-size: .92rem; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4aa39e); width: var(--w, 0%); }

/* hero & home */
.hero { background: radial-gradient(1200px 500px at 80% -10%, var(--brand-soft), transparent), linear-gradient(180deg, #fff, var(--bg)); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 760px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.search-box { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 720px; }
.search-box .input { border-color: transparent; font-size: 1.05rem; }
.search-box .select { border-color: transparent; width: auto; }
@media (max-width: 640px) { .search-box { grid-template-columns: 1fr; } .search-box .select { width: 100%; } }
.stat { text-align: center; padding: 14px; }
.stat b { display: block; font-size: 1.8rem; color: var(--brand); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.type-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.type-tile:hover { border-color: var(--brand); }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps > div { position: relative; padding: 18px 18px 18px 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps > div::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.quote { border-left: 4px solid var(--brand-soft); padding: 4px 0 4px 14px; font-style: italic; }

/* map page */
.map-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 61px); }
.map-page__filters { border-right: 1px solid var(--line); background: #fff; padding: 16px; overflow-y: auto; max-height: calc(100vh - 61px); position: sticky; top: 61px; }
.map-page__main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.map-page__body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 0; }
.map-page__map { position: relative; min-height: 420px; background: #eee; }
#map { position: absolute; inset: 0; }
.map-page__list { overflow-y: auto; max-height: calc(100vh - 61px - 54px); padding: 12px; border-left: 1px solid var(--line); background: var(--bg); }
.map-page__list .provider-card + .provider-card { margin-top: 10px; }
.map-page__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; min-height: 54px; }
.map-page__bar .select { width: auto; padding: 7px 10px; }
.view-toggle { display: none; }
.filters-toggle { display: none; }
.filter-group { border-top: 1px solid var(--line); padding: 12px 0; }
.filter-group summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.filter-group summary::after { content: "+"; color: var(--muted); }
.filter-group[open] summary::after { content: "–"; }
.filter-group .checkbox { padding: 4px 0; font-size: .9rem; }
.provider-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.maplibregl-popup-content { font-family: var(--font); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.maplibregl-popup-content a { font-weight: 700; }
.popup-meta { color: var(--muted); font-size: .85em; }
.map-legend { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 8px 10px; font-size: .78rem; display: grid; grid-template-columns: repeat(2, auto); gap: 3px 12px; box-shadow: var(--shadow); max-width: calc(100% - 20px); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-nudge { position: absolute; left: 10px; top: 10px; background: #fff; border-radius: 10px; padding: 8px 12px; font-size: .85rem; box-shadow: var(--shadow); max-width: 260px; }
.map-nudge button { float: right; border: 0; background: none; font-size: 1rem; cursor: pointer; }
@media (max-width: 1100px) { .map-page__body { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 900px) {
  .map-page { grid-template-columns: 1fr; }
  .map-page__filters { display: none; position: fixed; inset: 61px 0 0; z-index: 40; max-height: none; }
  .map-page__filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .view-toggle { display: inline-flex; margin-left: auto; }
  .map-page__body { grid-template-columns: 1fr; }
  .map-page__map { min-height: calc(100vh - 61px - 54px); }
  .map-page__list { border-left: 0; max-height: none; }
  .map-legend { display: none; }
  .map-page[data-view="map"] .map-page__list { display: none; }
  .map-page[data-view="list"] .map-page__map { display: none; }
}

/* provider card */
.provider-card__head { display: flex; gap: 10px; align-items: flex-start; }
.provider-card__title { flex: 1; min-width: 0; }
.provider-card__name { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.provider-card__name:hover { color: var(--brand); text-decoration: underline; }
.provider-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 6px; font-size: .92rem; }
.provider-card__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.fav { border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 34px; height: 34px; font-size: 1.05rem; cursor: pointer; color: #b8b0a6; flex: none; }
.fav.is-active { color: var(--accent); border-color: var(--accent); }
.fav-form { margin: 0; }

/* provider detail */
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .profile-head { grid-template-columns: 1fr; } }
.profile-title { display: flex; align-items: flex-start; gap: 12px; }
.profile-title .pin { width: 18px; height: 18px; margin-top: 8px; }
.rating-big { display: flex; gap: 14px; align-items: center; }
.rating-big b { font-size: 2.4rem; line-height: 1; }
.cta-box { position: sticky; top: 76px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 500px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.review { padding: 18px 0; border-top: 1px solid var(--line); }
.review__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.review__scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 12px; font-size: .85rem; color: var(--muted); margin: 10px 0; }
.review__scores b { color: var(--ink); }
.review__text { white-space: pre-line; }
.review__actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; font-size: .875rem; }
.review__actions button, .review__actions a { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: .875rem; padding: 0; text-decoration: underline; }
.review__actions button.is-active { color: var(--accent-ink); font-weight: 700; }
.response { margin: 12px 0 0 16px; padding: 12px 14px; background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.recommend-yes { color: var(--ok); font-weight: 700; }
.recommend-no { color: var(--warn); font-weight: 700; }

/* wizard */
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.wizard-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.wizard-progress i { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.wizard-progress i.is-done { background: var(--brand); }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.no-js .wizard-step { display: block; }
.no-js .wizard-nav button[data-next], .no-js .wizard-nav button[data-prev], .no-js .wizard-progress { display: none; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 700; }
.table--compare td { white-space: pre-line; }
.table-wrap { overflow-x: auto; }

/* prose (markdown pages) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 0 0 1em; padding: 10px 14px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; }
.prose li + li { margin-top: 4px; }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }

/* moderation */
.mod-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.mod-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.mod-nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; }
.mod-nav a:hover, .mod-nav a.is-active { background: var(--surface-2); }
.mod-nav .count { background: #c84e2b; color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 7px; font-weight: 700; }
@media (max-width: 860px) { .mod-layout { grid-template-columns: 1fr; } .mod-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a.is-active { color: var(--brand-ink); border-color: var(--brand); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-form .field { margin-bottom: 12px; }
.mod-form .grid { gap: 10px 16px; }
.mod-form ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.mod-form ul li label { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
pre.log { background: var(--surface-2); padding: 10px; border-radius: 8px; font-size: .8rem; overflow: auto; white-space: pre-wrap; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi a { text-decoration: none; color: inherit; }
.kpi .card { text-align: center; padding: 14px; }
.kpi b { display: block; font-size: 1.7rem; color: var(--accent-ink); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; padding: 28px 0 20px; }
.site-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.site-footer__col { display: flex; flex-direction: column; gap: 4px; }
.site-footer__col a { text-decoration: none; color: var(--ink); font-size: .92rem; }
.site-footer__col a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__legal { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
@media print { .site-header, .site-footer, .cta-box, .map-page__filters { display: none; } }

/* ---------- icons & illustrated sections ---------- */
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.28em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tile-bg, var(--brand-soft)); color: var(--tile-ink, var(--brand-ink)); flex: none; }
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-tile--lg .icon { width: 30px; height: 30px; }
.icon-tile--sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-tile--sm .icon { width: 18px; height: 18px; }
.icon-tile--round { border-radius: 50%; }
.icon-tile--taken_seriously { --tile-bg: #fbe6dd; --tile-ink: #b94a29; }
.icon-tile--expertise { --tile-bg: #e1eee6; --tile-ink: #2b6449; }
.icon-tile--information { --tile-bg: #e3ecf8; --tile-ink: #2f5fa8; }
.icon-tile--involvement { --tile-bg: #ece6f8; --tile-ink: #6f4bb3; }
.icon-tile--holistic { --tile-bg: #e4f2e0; --tile-ink: #3e8e41; }
.icon-tile--organisation { --tile-bg: #fff3d6; --tile-ink: #9a6b00; }
.icon-tile--wait { --tile-bg: #e7f0f9; --tile-ink: #234a6b; }
.icon-tile--newpatients { --tile-bg: #e3f3e4; --tile-ink: #2e7d32; }
.icon-tile--certified { --tile-bg: #fff3d6; --tile-ink: #9a6b00; }
.icon-tile--type { --tile-bg: color-mix(in srgb, var(--pin) 14%, #fff); --tile-ink: var(--pin); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 8px; }

/* hero with illustration */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: center; }
.hero__art { justify-self: end; width: 100%; max-width: 380px; }
.hero__art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(31,42,42,.14)); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { display: none; } }

/* "why" section */
.why { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 20px; }
.cat-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.cat-card strong { display: block; margin-bottom: 2px; }
.cat-card p { margin: 0; }
.preview { position: relative; padding: 24px 12px 12px; }
.preview__blob { position: absolute; inset: 0; z-index: 0; }
.preview-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 40px -20px rgba(31,42,42,.35); padding: 18px; transform: rotate(-1.2deg); }
.preview-card__head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.preview-card .bar-row { grid-template-columns: 30px 1fr auto; align-items: center; margin-bottom: 8px; }
.preview-card .bar-row .bar { grid-column: 2 / 4; }
.preview-card .bar-row .icon-tile { width: 26px; height: 26px; border-radius: 7px; }
.preview-card .bar-row .icon-tile .icon { width: 15px; height: 15px; }
.preview-card__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.preview__caption { text-align: center; margin: 12px 0 0; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 32px; }
.extra { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.extra strong { display: block; }
.extra p { margin: 4px 0 0; }

/* how it works */
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps > div { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start; }
.steps > div::before { position: static; grid-column: 1; grid-row: 2; width: auto; height: auto; border-radius: 999px; padding: 1px 9px; font-size: .75rem; background: var(--surface-2); color: var(--muted); content: "Schritt " counter(s); justify-self: start; }
.steps__title { grid-column: 2; grid-row: 1; font-weight: 700; margin: 0; align-self: center; }
.steps__text { grid-column: 2; grid-row: 2; margin: 0; }
.steps .icon-tile { grid-column: 1; grid-row: 1; }

/* CTA banner */
.cta-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.cta-banner__art { width: 120px; height: 120px; color: var(--accent); opacity: .9; }
@media (max-width: 640px) { .cta-banner { grid-template-columns: 1fr; } .cta-banner__art { display: none; } }

/* type tiles */
.type-tile { padding: 10px 12px; }
.type-tile .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.type-tile .icon-tile .icon { width: 21px; height: 21px; }

/* profile bars with icons */
.bar-row--icon { grid-template-columns: 32px 1fr auto; }
.bar-row--icon .bar { grid-column: 2 / 4; }
.wait-viz { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.timeline { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.timeline i { flex: 1; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-soft), var(--brand)); }
.timeline b { color: var(--ink); }
.score-block__q { display: flex; align-items: center; gap: 10px; }

/* ---------- logo lettering: Bricolage Grotesque Bold (self-hosted, OFL) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-700-latin-ext.d2c91e99bf72.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-700-latin.48e4b00b03b4.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- typography: Fraunces (self-hosted, OFL) ---------- */
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/fraunces-italic-latin-ext.53f8865644cd.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/fraunces-italic-latin.fa7ce081be5e.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/fraunces-normal-latin-ext.a04d353989ad.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/fraunces-normal-latin.069cb90e11a3.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --display: "Fraunces", Georgia, "Times New Roman", serif; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.012em; font-variation-settings: "opsz" 144; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.12; }
h3 { font-size: 1.3rem; }
.h4 { font-family: var(--font); font-weight: 700; }
.brand__name { font-family: "Bricolage Grotesque", var(--font); font-weight: 700; font-size: 1.3rem; letter-spacing: -.025em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; }
.hero__lead { font-size: 1.15rem; }
.num { font-family: var(--display); font-variation-settings: "opsz" 144; font-weight: 500; }
.hl { position: relative; white-space: nowrap; isolation: isolate; }
.hl::after { content: ""; position: absolute; left: -1%; right: -1%; bottom: -.04em; height: .42em; z-index: -1; opacity: .85;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M3 12c30-6 60-7 95-4 30 2 60 0 99-6' fill='none' stroke='%23f2b9a4' stroke-width='9' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* figures line (replaces stat cards) */
.figures { display: flex; flex-wrap: wrap; gap: 10px 44px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures b { display: block; font-family: var(--display); font-variation-settings: "opsz" 144; font-weight: 500; font-size: 2.3rem; line-height: 1.05; color: var(--brand); }
.figures span { color: var(--muted); font-size: .9rem; }

/* type pills (replace icon tiles) */
.type-list { display: flex; flex-wrap: wrap; gap: 8px; }
.type-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.type-pill:hover { border-color: var(--brand); color: var(--brand-ink); }
.type-pill .count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.type-pill .pin { width: 11px; height: 11px; border: 0; box-shadow: none; }

/* numbered question list */
.qlist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
@media (max-width: 560px) { .qlist { grid-template-columns: 1fr; } }
.qlist li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.qlist__num { font-family: var(--display); font-variation-settings: "opsz" 144; font-size: 1.75rem; line-height: 1; color: var(--accent); font-weight: 500; }
.qlist strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin-bottom: 2px; }
.qlist .q { color: var(--muted); font-size: .93rem; }

/* key facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.facts > div { border-left: 3px solid var(--accent-soft); padding-left: 16px; }
.facts dt { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); font-size: .93rem; }

/* steps as an editorial numbered row */
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.steps > div { background: none; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 16px 0 0; display: block; }
.steps > div::before { position: static; display: block; width: auto; height: auto; background: none; color: var(--accent); font-family: var(--display); font-variation-settings: "opsz" 144; font-weight: 500; font-size: 2rem; line-height: 1; margin-bottom: 10px; padding: 0; border-radius: 0; content: counter(s); }
.steps__title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 0 0 4px; }
.steps__text { margin: 0; }

/* preview card & quotes */
.preview-card__head strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.preview-card .bar-row { grid-template-columns: 1fr auto; }
.preview-card .bar-row .bar { grid-column: 1 / -1; }
.quote { font-family: var(--display); font-style: italic; font-size: 1.08rem; line-height: 1.45; border-left: 3px solid var(--accent-soft); }
.qnum { font-family: var(--display); color: #c84e2b; font-weight: 500; font-size: 1.15rem; margin-right: 8px; }
.rating-big b { font-family: var(--display); font-variation-settings: "opsz" 144; font-weight: 500; }
.stat b { font-family: var(--display); font-variation-settings: "opsz" 144; font-weight: 500; }
.kpi b { font-family: var(--display); font-weight: 500; }

@media (max-width: 640px) { .figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; } .hl { white-space: normal; } }

/* ---- Forms and touch targets ---- */
/* Plain form widgets (moderation forms) look and behave like the styled inputs. */
.field input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1px solid #cfc7bc; border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; max-width: 100%;
}
/* 16px keeps iPhones from zooming into a field; 44px is a comfortable finger target. */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: max(16px, 1rem); }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), select { min-height: 44px; }
input[type=file] { max-width: 100%; }
@media (pointer: coarse), (max-width: 640px) {
  /* Links that stand alone (back links, footer, contact details, page links) get a full 44px row. */
  .linkrow a, .site-footer__col a, .kv dd > a, details > summary { display: inline-flex; align-items: center; min-height: 44px; }
  .linkrow.cluster { row-gap: 0; }
  /* Links inside running text: a taller hit area without moving the text. */
  main p a:not(.btn), main li a:not(.btn), main td a:not(.btn), .site-footer__legal a { padding-block: 4px; }
}
/* The styled classes set font: inherit, which would pull small labels' text size into the field. */
.input, .select, .textarea { font-size: max(16px, 1rem); }
@media (pointer: coarse), (max-width: 640px) {
  /* Checkbox lists from plain form widgets (moderation): each option a full row. */
  .field label:not(.chip):not(.checkbox):has(> input[type=checkbox], > input[type=radio]) { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
  .field label > input[type=checkbox], .field label > input[type=radio] { width: 20px; height: 20px; flex: none; }
}
/* Mobile browsers count the area behind their toolbars in 100vh; dvh is the height actually visible. */
@supports (height: 100dvh) {
  .map-page { min-height: calc(100dvh - 61px); }
  .map-page__filters { max-height: calc(100dvh - 61px); }
  @media (max-width: 900px) { .map-page__map { min-height: calc(100dvh - 61px - 54px); } .map-page__filters { max-height: none; } }
}
/* Review actions (helpful, report, reply): full-height targets on touch screens. */
@media (pointer: coarse), (max-width: 640px) {
  .review__actions { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
  .review__actions button, .review__actions a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Close buttons on the map (hint box, pin popups): finger-sized on touch screens. */
@media (pointer: coarse), (max-width: 640px) {
  .map-nudge button { min-width: 44px; min-height: 44px; margin: -8px -12px 0 4px; font-size: 1.3rem; line-height: 1; }
  .maplibregl-popup-close-button { width: 44px; height: 44px; font-size: 22px; line-height: 1; }
}
