@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(vendor/fonts/montserrat-400-latin-ext.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: "Montserrat"; font-weight: 400; font-display: swap; src: url(vendor/fonts/montserrat-400-latin.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: "Montserrat"; font-weight: 500; font-display: swap; src: url(vendor/fonts/montserrat-500-latin-ext.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: "Montserrat"; font-weight: 500; font-display: swap; src: url(vendor/fonts/montserrat-500-latin.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: "Montserrat"; font-weight: 600; font-display: swap; src: url(vendor/fonts/montserrat-600-latin-ext.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: "Montserrat"; font-weight: 600; font-display: swap; src: url(vendor/fonts/montserrat-600-latin.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: "Oswald"; font-weight: 400; font-display: swap; src: url(vendor/fonts/oswald-400-latin-ext.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: "Oswald"; font-weight: 400; font-display: swap; src: url(vendor/fonts/oswald-400-latin.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: "Oswald"; font-weight: 500; font-display: swap; src: url(vendor/fonts/oswald-500-latin-ext.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: "Oswald"; font-weight: 500; font-display: swap; src: url(vendor/fonts/oswald-500-latin.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 {
  /* IBP brand (i-b-partner.com): wordmark gold, action blue, slate header; priority scale runs pale -> deep blue */
  --gold: #A79479;
  --gold-soft: #F4F0EA;
  --blue: #4582B8;
  --ink: #3E3E3E;
  --ink-strong: #1E201D;
  --slate: #2B333F;
  --muted: #6B6B6B;
  --line: #DDDDDD;
  --line-soft: #EEEEEE;
  --bg: #FFFFFF;
  --bg-soft: #F6F6F4;
  --v1: #E3ECF5; --v2: #B2CBE3; --v3: #7AA6CF; --v4: #4582B8; --v5: #1D3F66;
  --navy: #1D3F66;
  --hot: #B4532A; --warm: #D3A24A; --rel: #A9B4BF;
  --focus: #4582B8;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 "Montserrat", Arial, sans-serif;
  display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: minmax(0, 1fr); height: 100dvh; overflow: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink-strong); }
a { color: var(--blue); text-underline-offset: 2px; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.tag {
  display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; border: 1px solid var(--line);
  color: var(--muted); font-weight: 500; vertical-align: 1px; letter-spacing: .02em; white-space: nowrap;
}
.tag.heiss { border-color: var(--hot); color: var(--hot); }
.tag.warm { border-color: var(--warm); color: #8A6420; }
.tag.relevant { color: var(--muted); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 22px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.logo { height: 20px; width: auto; display: block; }
.top h1 {
  font: 400 19px/1.1 "Oswald", Arial, sans-serif; text-transform: uppercase; letter-spacing: .03em;
  padding-left: 22px; border-left: 1px solid var(--line);
}
.top h1 span { font: 400 13px/1 "Montserrat", Arial, sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 10px; }
.stand { font-size: 12px; color: var(--muted); white-space: nowrap; }
.credit { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.credit img { height: 16px; width: auto; display: block; }
.credit span { position: relative; top: 4px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 10px 24px; border-bottom: 1px solid var(--line); }
.field { display: flex; align-items: center; gap: 8px; }
.field-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
select { border: 1px solid var(--line); background: var(--bg); padding: 5px 28px 5px 10px; max-width: 320px; cursor: pointer; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { border: 0; background: var(--bg); padding: 5px 12px; cursor: pointer; border-left: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--bg-soft); }
.seg button[aria-pressed="true"] { background: var(--slate); color: #fff; }
.seg-sm button { min-width: 32px; }
.btn { border: 0; background: var(--blue); color: #fff; margin-left: auto; padding: 8px 16px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { background: #3A6F9E; }
.btn:active { transform: translateY(1px); }
.btn-quiet { display: none; border: 1px solid var(--line); background: var(--bg); padding: 5px 12px; cursor: pointer; }
.btn-list { display: inline-block; margin-left: auto; }
.btn-list[aria-expanded="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn-list + .btn { margin-left: 0; }
.btn-link { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; text-align: left; }
.btn-link:hover { text-decoration: underline; }

/* ---------- layout ---------- */
main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; overflow: hidden; }
@media (min-width: 1100px) {
  main:has(> .panel:not([hidden])) { grid-template-columns: minmax(0, 1fr) clamp(400px, 38vw, 560px); }
  main > .panel { position: static; width: auto; box-shadow: none; }
  main:has(> .panel:not([hidden])) .col-opt { display: none; }
}
.note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.work { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; }
.work.list-open { grid-template-rows: minmax(0, 1fr) minmax(220px, 45%); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#map { min-height: 0; background: #EDEDED; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.88) brightness(1.04); }
.leaflet-container { font: inherit; }
.leaflet-bar a.leaflet-control-zoom-in, .leaflet-bar a.leaflet-control-zoom-out { font: 400 20px/30px Arial, sans-serif; color: var(--ink-strong); }
.leaflet-control-attribution { font-size: 11px; }

/* ---------- pins ---------- */
.pin {
  display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%;
  font-size: 11px; font-weight: 600; line-height: 1; color: var(--navy);
  border: 1.5px solid var(--navy); outline: 1.5px solid #fff; cursor: pointer;
}
.pin.v1 { background: var(--v1); } .pin.v2 { background: var(--v2); } .pin.v3 { background: var(--v3); color: #fff; }
.pin.v4 { background: var(--v4); color: #fff; } .pin.v5 { background: var(--v5); color: #fff; }
.pin.vl { background: #fff; border-color: var(--ink); cursor: default; }
.s1 { width: 18px; height: 18px; } .s2 { width: 21px; height: 21px; } .s3 { width: 24px; height: 24px; }
.s4 { width: 27px; height: 27px; font-size: 12px; } .s5 { width: 31px; height: 31px; font-size: 12px; } .s6 { width: 36px; height: 36px; font-size: 13px; }
.leaflet-marker-icon.pin:hover, .leaflet-marker-icon.pin.hl { outline: 2.5px solid var(--gold); outline-offset: 2px; z-index: 1000 !important; }
.leaflet-marker-icon.pin.sel { outline: 3px solid var(--gold); outline-offset: 3px; z-index: 1001 !important; }
.cluster {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--navy); outline: 3px solid rgba(255,255,255,.85); color: var(--navy); line-height: 1;
}
.cluster b { font-size: 14px; font-weight: 600; }
.cluster.v1 { background: var(--v1); } .cluster.v2 { background: var(--v2); } .cluster.v3 { background: var(--v3); color: #fff; }
.cluster.v4 { background: var(--v4); color: #fff; } .cluster.v5 { background: var(--v5); color: #fff; }
.cluster.hl { outline: 2.5px solid var(--gold); outline-offset: 2px; }

/* ---------- overlays ---------- */
.ov { background: #fff; border: 1px solid var(--line); padding: 0 12px 10px; width: 280px;
  max-height: calc(var(--map-h, 600px) - 24px); overflow: auto; font-size: 13px; color: var(--ink); }
.ov:not([open]) { padding-bottom: 0; width: auto; }
.ov-regions { width: 320px; }
.ov summary { margin: 0 -12px; padding: 8px 12px; font: 400 14px/1.3 "Oswald", Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-strong); cursor: pointer; white-space: nowrap; }
.ov[open] summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.ov h3 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 10px 0 6px; }
.lg-cluster { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.lg-cluster .cluster { width: 26px; height: 26px; flex: none; outline: 0; }
.lg-cluster .cluster b { font-size: 12px; }
.lg-scale { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.lg-scale .pin, .lg-size .pin { cursor: default; }
.lg-ends { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.lg-size { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.lg-size li { display: grid; grid-template-columns: 40px 1fr; align-items: center; font-size: 12px; min-height: 34px; }
.lg-size .pin { justify-self: center; }
.lg-fresh { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12px; }
.lg-fresh li { display: flex; align-items: center; gap: 8px; }
.fdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fdot.heiss { background: var(--hot); } .fdot.warm { background: var(--warm); } .fdot.relevant { background: var(--rel); }

.regions { width: 100%; border-collapse: collapse; font-size: 13px; }
.regions th, .regions td { padding: 3px 4px; text-align: right; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.regions thead th { font-size: 11px; font-weight: 500; color: var(--muted); }
.regions th[scope="row"], .regions thead th:first-child { text-align: left; white-space: nowrap; font-weight: 400; }

/* ---------- list ---------- */
.list { display: none; flex-direction: column; min-height: 0; border-top: 1px solid var(--line); }
.work.list-open .list { display: flex; }
.list-head { display: flex; align-items: center; gap: 16px; padding: 8px 24px; }
.list-head h2 { font: 400 15px/1.3 "Oswald", Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow: auto; min-height: 0; flex: 1; }
.companies { width: 100%; border-collapse: collapse; font-size: 13px; }
.companies th, .companies td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.companies th:first-child, .companies td:first-child { padding-left: 24px; }
.companies thead th { position: sticky; top: 0; background: var(--bg); z-index: 1; border-bottom: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
.companies thead button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.companies thead th[aria-sort] button { color: var(--ink-strong); font-weight: 600; }
.companies .arrow { font-size: 11px; min-width: 8px; }
.companies tbody tr { cursor: pointer; }
.companies tbody tr:hover, .companies tbody tr:focus-visible { background: var(--bg-soft); }
.companies tbody tr.sel { background: var(--gold-soft); }
.companies td.name { color: var(--ink-strong); font-weight: 600; min-width: 200px; white-space: normal; }
.companies td { white-space: nowrap; }
.companies td.wrap { white-space: normal; min-width: 180px; }
.companies .r { text-align: right; font-variant-numeric: tabular-nums; }
.vc { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--navy); flex: none; }
.dot.v1 { background: var(--v1); } .dot.v2 { background: var(--v2); } .dot.v3 { background: var(--v3); }
.dot.v4 { background: var(--v4); } .dot.v5 { background: var(--v5); }

/* ---------- panel ---------- */
.panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 1100;
  background: var(--bg); border-left: 1px solid var(--line); overflow: auto; outline: none;
  box-shadow: -8px 0 24px rgba(30, 32, 29, .08); /* taste-skill-ignore: the panel floats over the map */
}
.panel[hidden] { display: none; }
.p-head { padding: 22px 28px 18px; border-bottom: 1px solid var(--line); position: relative; border-top: 3px solid var(--gold); }
.p-head h2 { font: 400 24px/1.15 "Oswald", Arial, sans-serif; padding-right: 40px; outline: none; }
.addr { margin: 6px 0 2px; color: var(--muted); }
.close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
.close:hover { background: var(--bg-soft); color: var(--ink-strong); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 5px 12px; margin: 14px 0 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prio { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; background: var(--bg-soft); }
.prio b { font-weight: 600; color: var(--ink-strong); }
.prio small { display: block; color: var(--muted); font-size: 12px; }
.sec { padding: 18px 28px; border-bottom: 1px solid var(--line-soft); }
.sec > h3 { font: 400 13px/1.3 "Oswald", Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-bottom: 10px; }
.sec > p { margin: 0; }
.lead-in { margin: 12px 0 0 !important; color: var(--ink-strong); font-weight: 500; }
.strip { display: block; width: 100%; height: auto; overflow: visible; }
.strip .ev { cursor: pointer; }
.strip .ev:hover circle, .strip .ev:focus circle { stroke: var(--ink-strong); stroke-width: 2; }
.strip-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.strip-key span { display: inline-flex; align-items: center; gap: 6px; }
.prop { margin-top: 18px; }
.prop:first-of-type { margin-top: 4px; }
.prop > h4 { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.prop > h4 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.evc { border-left: 3px solid var(--rel); padding: 8px 0 8px 14px; margin-top: 10px; }
.evc.heiss { border-left-color: var(--hot); }
.evc.warm { border-left-color: var(--warm); }
.evc.flash { background: var(--gold-soft); transition: background .6s; }
.evc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.evc-title { margin: 3px 0 0; font-weight: 600; color: var(--ink-strong); }
.opp { margin: 6px 0 0; }
.evc details { margin-top: 6px; font-size: 13px; }
.evc summary { cursor: pointer; color: var(--blue); font-size: 12px; }
.evc details p { margin: 6px 0; }
.why { color: var(--muted); }
blockquote { margin: 8px 0 6px; padding: 2px 0 2px 12px; border-left: 2px solid var(--gold); color: var(--ink-strong); font-style: italic; overflow-wrap: anywhere; }
blockquote::before { content: "„"; }
blockquote::after { content: "“"; }
.src { font-size: 12px; overflow-wrap: anywhere; display: inline-block; }
.src span { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); background: var(--bg); }
.fitlist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.fitlist li { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.fitlist b { font-weight: 600; color: var(--ink-strong); }
.fitlist .no b { font-weight: 500; color: var(--muted); }
.sec details > summary { cursor: pointer; font-size: 13px; color: var(--blue); }

/* ---------- tablet & phone ---------- */
@media (max-width: 1099px) {
  .top { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .top h1 span, .stand, .credit span { display: none; }
  .credit img { height: 13px; }
  .toolbar { padding: 8px 16px; gap: 10px 16px; }
  .work.list-open { grid-template-rows: minmax(0, 1fr); }
  .work.list-open #map { display: none; }
  .companies th:first-child, .companies td:first-child { padding-left: 16px; }
  .ov { max-width: calc(100vw - 80px); }
}
@media (max-width: 600px) {
  .top h1 { border-left: 0; padding-left: 0; font-size: 16px; }
  .credit { display: none; }
  .btn-quiet { display: inline-block; }
  .toolbar .opt { display: none; }
  .toolbar.show-opt .opt { display: flex; flex-basis: 100%; }
  .panel { width: 100%; }
  .sec, .p-head { padding-left: 18px; padding-right: 18px; }
}

/* heat map legend, only while zoomed out */
.lg-heat { display: none; }
.heat-on .lg-heat { display: block; }
.heat-on > :not(summary, .lg-heat) { display: none; }
.heat-bar { height: 10px; border: 1px solid var(--line); background: linear-gradient(90deg, rgb(69 130 184 / .04), rgb(69 130 184 / .9)); } /* taste-skill-ignore: data scale */
