/* FishLog Karte – Vereine, Gewässer, Praxistage, Partner.
   Eigenständig (ohne Tailwind), damit sie auf jeder Seite eingebunden werden kann.
   CI: Inter, Blau #084c7c, Türkis #36a39d, helle Flächen. */
.flk {
  --flk-brand: #084c7c;
  --flk-accent: #36a39d;
  --flk-ink: #0f172a;
  --flk-muted: #64748b;
  --flk-line: #e2e8f0;
  --flk-soft: #f1f5f9;
  --flk-panel: #ffffff;
  --flk-sea: #eef5f9;
  --flk-land: #e7eef3;
  --flk-dim: #edf2f6;
  --flk-verein: #084c7c;
  --flk-gewaesser: #36a39d;
  --flk-praxistag: #d97706;
  --flk-partner: #6d4bb3;
  --flk-partner-basis: #9a86c8;
  --flk-h1: #e2f1ef;
  --flk-h2: #c7e5e1;
  --flk-h3: #a5d5cf;
  --flk-h4: #7cc3bb;
  --flk-sel: #d7ece9;
  --flk-radius: 16px;
  --flk-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 8px 28px rgb(15 23 42 / .07);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--flk-ink);
  display: grid;
  gap: 14px;
  color-scheme: light;
}
.flk *, .flk *::before, .flk *::after { box-sizing: border-box; }
.flk [hidden] { display: none !important; }
.flk button { font-family: inherit; }
.flk :focus-visible { outline: 3px solid var(--flk-accent); outline-offset: 2px; }
.flk .ms { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; }
.flk svg.ic { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* Filterleiste */
.flk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flk-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--flk-line); background: var(--flk-panel);
  color: var(--flk-ink); border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.flk-chip:hover { border-color: var(--flk-accent); }
.flk-chip .flk-i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.flk-chip .flk-n { font-variant-numeric: tabular-nums; color: var(--flk-muted); font-weight: 700; }
.flk-chip[aria-pressed="false"] { background: transparent; color: var(--flk-muted); }
.flk-chip[aria-pressed="false"] .flk-i { background: #cbd5e1 !important; }
.flk-search { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--flk-line); background: var(--flk-panel);
  border-radius: 12px; padding: 0 12px; color: var(--flk-muted); }
.flk-search:focus-within { border-color: var(--flk-accent); box-shadow: 0 0 0 3px rgb(54 163 157 / .2); }
.flk-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font: 500 14px/1.2 inherit; font-family: inherit; color: var(--flk-ink); outline: none; }
.flk-b-verein { background: var(--flk-verein); } .flk-b-gewaesser { background: var(--flk-gewaesser); }
.flk-b-praxistag { background: var(--flk-praxistag); } .flk-b-partner { background: var(--flk-partner); } .flk-b-partner-basis { background: var(--flk-partner-basis); }

/* Brotkrumen und Auswahl */
.flk-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; min-width: 0; }
.flk-crumbs button { background: none; border: 0; padding: 2px 0; color: var(--flk-brand); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.flk-crumbs .sep { color: var(--flk-muted); font-weight: 400; }
.flk-selects { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; max-width: 100%; }
.flk-selects select { border: 1px solid var(--flk-line); background: var(--flk-panel); color: var(--flk-ink); border-radius: 10px; padding: 8px 10px; font: 600 14px inherit; font-family: inherit; max-width: 100%; }

/* Karte + Liste */
.flk-main { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .flk-main { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.flk-card { background: var(--flk-panel); border: 1px solid var(--flk-line); border-radius: var(--flk-radius); box-shadow: var(--flk-shadow); }
.flk-map { position: relative; overflow: hidden; }
.flk-maphead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px 0; flex-wrap: wrap; }
.flk-maphead h2, .flk-maphead h3 { font-size: 18px; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.flk-maphead .sub { font-size: 13px; color: var(--flk-muted); }
.flk-ctl { position: absolute; right: 12px; top: 60px; display: grid; gap: 6px; z-index: 2; }
.flk-ctl button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--flk-line); background: var(--flk-panel); color: var(--flk-ink);
  cursor: pointer; box-shadow: var(--flk-shadow); display: grid; place-items: center; }
.flk-ctl button:hover { color: var(--flk-brand); }
.flk-svg { display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; max-height: 78vh; background: var(--flk-sea); margin-top: 12px; touch-action: pan-x pan-y; user-select: none; cursor: grab; }
.flk-svg.drag { cursor: grabbing; }
.flk-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgb(255 255 255 / .92); color: var(--flk-ink);
  font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 12px; box-shadow: var(--flk-shadow); pointer-events: none; text-align: center; max-width: 80%; }
.flk-bg { fill: transparent; }
.flk-reg { fill: var(--flk-land); stroke: #fff; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s, opacity .2s; }
.flk-reg:hover { fill-opacity: .85; }
.flk-reg.h1 { fill: var(--flk-h1); } .flk-reg.h2 { fill: var(--flk-h2); } .flk-reg.h3 { fill: var(--flk-h3); } .flk-reg.h4 { fill: var(--flk-h4); }
.flk-reg.dim { fill: var(--flk-dim); cursor: zoom-out; }
.flk-reg.dim.in { fill: #e4ebf0; }
.flk-reg.sel { fill: var(--flk-sel); cursor: default; }
.flk-reg.off { opacity: .5; }
.flk-kreis { fill: none; stroke: #9fb8c6; stroke-width: .6; stroke-opacity: .95; vector-effect: non-scaling-stroke; pointer-events: none; }
.flk-outline { fill: none; stroke: var(--flk-brand); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.flk-lbl { font-family: inherit; font-weight: 700; fill: #084c7c; paint-order: stroke; stroke: rgb(255 255 255 / .85); stroke-linejoin: round; pointer-events: none; text-anchor: middle; dominant-baseline: middle; }
.flk-lbl.k { font-weight: 600; fill: #334155; }
.flk-mk { cursor: pointer; }
.flk-mk .c { stroke: #fff; stroke-width: 1.5; }
.flk-mk.verein .c { fill: var(--flk-verein); } .flk-mk.gewaesser .c { fill: var(--flk-gewaesser); }
.flk-mk.praxistag .c { fill: var(--flk-praxistag); } .flk-mk.partner .c { fill: var(--flk-partner); }
.flk-mk.partner.basis .c { fill: var(--flk-partner-basis); }
.flk-mk.partner.premium .ring { fill: none; stroke: var(--flk-partner); stroke-width: 2; opacity: .35; }
.flk-mk path { fill: #fff; pointer-events: none; }
.flk-mk.sel .c { stroke: var(--flk-ink); stroke-width: 2.5; }
.flk-dot { fill: var(--flk-verein); stroke: #fff; stroke-width: .5; opacity: .8; cursor: pointer; }
.flk-tip { position: absolute; pointer-events: none; background: var(--flk-ink); color: #fff; font-size: 13px; line-height: 1.35; padding: 7px 10px; border-radius: 9px;
  max-width: 260px; box-shadow: var(--flk-shadow); transform: translate(-50%, calc(-100% - 14px)); z-index: 3; }
.flk-tip b { display: block; }
.flk-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 16px 14px; font-size: 12px; color: var(--flk-muted); }
.flk-legend .l { display: inline-flex; align-items: center; gap: 6px; }
.flk-legend .flk-i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.flk-legend .flk-i svg { width: 12px; height: 12px; }
.flk-scale { display: inline-flex; gap: 2px; margin-left: 4px; }
.flk-scale i { width: 16px; height: 8px; display: inline-block; border-radius: 2px; }

.flk-side { display: grid; }
.flk-list { padding: 16px; display: grid; gap: 10px; max-height: 78vh; overflow: auto; align-content: start; }
.flk-list h3 { font-size: 18px; margin: 0; font-weight: 800; }
.flk-list .hint { color: var(--flk-muted); font-size: 13px; margin: 0; }
.flk-res { border: 1px solid var(--flk-line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px;
  background: var(--flk-panel); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.flk-res:hover, .flk-res.sel { border-color: var(--flk-accent); }
.flk-res .flk-i { grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.flk-res .flk-i svg { width: 19px; height: 19px; }
.flk-res .name { font-weight: 700; overflow-wrap: anywhere; }
.flk-res .meta { color: var(--flk-muted); font-size: 13px; }
.flk-res .info { font-size: 13px; }
.flk-res.premium { border-color: #d8ccef; background: linear-gradient(0deg, #faf8ff, #faf8ff); }
.flk-res.premium .logo { grid-column: 2; max-height: 28px; width: auto; margin-top: 6px; }
.flk-res.basis { padding: 8px 12px; }
.flk-res.basis .flk-i { width: 26px; height: 26px; }
.flk-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6f4f2; color: #1d6f6a; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.flk-badge.p { background: #efe9fa; color: #4c2f8a; }
.flk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.flk-price { font-weight: 800; color: var(--flk-accent); font-variant-numeric: tabular-nums; }
.flk-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 13px; text-decoration: none; border: 0; cursor: pointer; }
.flk-btn.pri { background: var(--flk-brand); color: #fff; }
.flk-btn.pri:hover { background: #0a5d97; }
.flk-btn.sec { background: var(--flk-soft); color: var(--flk-ink); }
.flk-more { justify-self: center; }
.flk-empty { color: var(--flk-muted); padding: 22px 4px; text-align: center; font-size: 14px; }

.flk-detail { padding: 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--flk-line); }
.flk-detail .head { display: flex; align-items: center; gap: 12px; }
.flk-detail .head .flk-i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.flk-detail .head .flk-i svg { width: 24px; height: 24px; }
.flk-detail .kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--flk-accent); }
.flk-detail h4 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.flk-detail .x { margin-left: auto; background: none; border: 0; color: var(--flk-muted); cursor: pointer; padding: 4px; border-radius: 8px; }
.flk-detail .logo { max-height: 40px; width: auto; }
.flk-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; font-size: 14px; margin: 0; }
.flk-facts dt { color: var(--flk-muted); } .flk-facts dd { margin: 0; overflow-wrap: anywhere; }
.flk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.flk-note { font-size: 12px; color: var(--flk-muted); margin: 0; }
@media (prefers-reduced-motion: reduce) { .flk * { transition: none !important; } }
