/* Seite "Brasilien in Fakten": baut auf legal.css und blog.css auf */
.wrap.wide { max-width: 68rem; }
.fk-hero .wrap { padding-block: 6.5rem 2.25rem; }
.fk-hero .meta { max-width: 40rem; font-size: 1.1rem; }

/* Zahlenleiste */
.nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: -1.6rem 0 2rem; position: relative; }
.num { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 0.75rem; padding: 0.8rem 0.9rem; box-shadow: 0 8px 22px -16px rgba(8,23,42,0.45); }
.num:nth-child(2) { border-top-color: #e9b100; } .num:nth-child(3) { border-top-color: #2a5fb0; } .num:nth-child(4) { border-top-color: #e07a2c; } .num:nth-child(5) { border-top-color: #8a4fb3; }
.num b { display: block; font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.15; color: var(--ink); }
.num span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.3; margin-top: 0.2rem; }

/* Karte + Steckbrief */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.map-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 0.75rem; padding: 1rem 1.1rem 1.1rem; }
.map-h { display: grid; gap: 0.15rem; margin: 0 0 0.6rem; font-size: 1rem; color: var(--muted); }
.map-h b { font-family: var(--display); font-size: 1.15rem; line-height: 1.25; color: var(--ink); }
.brmap:focus { outline: none; }
.brmap { display: block; width: 100%; height: auto; max-height: 30rem; margin: 0 auto; }
.brmap path { stroke: #fff; stroke-width: 1; stroke-linejoin: round; cursor: pointer; transition: opacity .15s, filter .15s; outline: none; }
.brmap path:hover, .brmap path.sel { filter: brightness(1.12) saturate(1.1); stroke: #0f2238; stroke-width: 2; }
.brmap path:focus, .brmap path:focus-visible { outline: none; }
.brmap path:focus-visible { stroke: #1d6fd1; stroke-width: 3; }
.brmap path.dim { opacity: 0.18; }
.brmap .home-t { font: 700 19px var(--body); fill: #0f2238; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.leg { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.3rem 0.75rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 0.95rem var(--body); cursor: pointer; }
.leg:hover { border-color: #9fb0c3; }
.leg[aria-pressed="true"] { border-color: #0f2238; background: #f3f6fa; }
.dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; flex: none; vertical-align: -0.05rem; margin-right: 0.45rem; }
.leg .dot { margin-right: 0; }
.map-info { --c: #0a8a4a; margin-top: 0.75rem; padding: 0.6rem 0.85rem; border-left: 5px solid var(--c); background: #f7f4ec; border-radius: 0.4rem; display: grid; gap: 0.05rem; font-size: 1rem; min-height: 5.2rem; }
.map-info b { font-family: var(--display); font-size: 1.1rem; }
.map-info span { color: var(--muted); }
.map-info em { color: #c0392b; font-style: normal; font-weight: 700; }
.intro-grid .facts-box { margin: 0; }
.intro-grid .facts-box dl { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); font-size: 1rem; }

/* Suche und Themen */
.finder { position: sticky; top: 3.6rem; z-index: 5; margin: 2.5rem 0 0.5rem; padding: 0.9rem 1rem; background: rgba(251,247,238,0.97); border: 1px solid var(--line); border-radius: 0.75rem; box-shadow: 0 8px 22px -18px rgba(8,23,42,0.5); }
.fq-l { display: block; font-family: var(--display); font-weight: 800; font-size: 1.1rem; margin-bottom: 0.35rem; }
#fq { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.85rem; border: 2px solid var(--line); border-radius: 0.5rem; font: 1.05rem var(--body); background: #fff; color: var(--ink); }
#fq:focus { border-color: var(--green); outline: none; }
.chips { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.6rem 0 0.15rem; scrollbar-width: thin; }
.chip { flex: none; min-height: 2.4rem; padding: 0.3rem 0.8rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 0.95rem var(--body); cursor: pointer; white-space: nowrap; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 0.2rem; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.on span { color: #dff3e7; }
.fcount { margin: 0.4rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* Fakten */
.cat { scroll-margin-top: 13rem; }
.cat h2 { font-size: 1.6rem; margin: 2.6rem 0 1rem; }
.cat h2::after { content: ""; display: block; width: 3rem; height: 4px; border-radius: 2px; margin-top: 0.5rem; background: linear-gradient(90deg, #0a8a4a 0 33.3%, #f5c518 33.3% 66.6%, #1d4f91 66.6% 100%); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.fact { display: flex; gap: 0.85rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.85rem 1rem; }
.fact[hidden] { display: none; }
.fn { flex: none; display: grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 0.3rem; border-radius: 0.6rem; background: #fff4cf; color: #6b4a00; font: 800 1rem var(--display); }
.fact p { margin: 0; line-height: 1.5; }
.fnone { margin: 2rem 0; padding: 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 0.75rem; }

/* Tabelle der Bundesstaaten */
.tbl-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); }
.states { width: 100%; border-collapse: collapse; font-size: 1rem; }
.states caption { text-align: left; padding: 0.75rem 1rem 0.35rem; font-weight: 700; }
.tbl-filter { font-weight: 500; color: var(--muted); }
.states th, .states td { padding: 0.45rem 1rem; text-align: left; border-top: 1px solid var(--line); }
.states th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.states tbody tr:nth-child(even) { background: #fcfaf5; }

.sources-box { margin-top: 3rem; }
.sources-box h2 { font-size: 1.3rem; }

@media (max-width: 900px) {
  .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .finder { top: 3.4rem; }
}
@media (max-width: 640px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -1.2rem; }
  .num:last-child { grid-column: span 2; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fk-hero .wrap { padding-block: 5.5rem 2rem; }
  .finder { position: static; }
  .states th, .states td { padding: 0.45rem 0.6rem; }
  .intro-grid .facts-box dl { grid-template-columns: minmax(0, 1fr); }
}
