:root {
  --akzent: #b4231c;
  --akzent-hell: #fbe9e7;
  --link: #fff6d6;
  --text: #1d1d1f;
  --grau: #6b6b70;
  --linie: #e2e2e6;
  --hg: #f6f6f8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--hg);
}
a { color: inherit; }
header {
  background: #fff;
  border-bottom: 3px solid var(--akzent);
  padding: 18px 24px 12px;
}
header h1 { margin: 0; font-size: 24px; }
header h1 a { text-decoration: none; }
.sub { margin: 2px 0 0; color: var(--grau); font-size: 14px; }
main { max-width: 1400px; margin: 0 auto; padding: 24px; }

.suche { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.suche input[type=search] {
  flex: 1 1 320px;
  font-size: 20px;
  padding: 12px 14px;
  border: 2px solid #c9c9cf;
  border-radius: 8px;
  outline: none;
}
.suche input[type=search]:focus { border-color: var(--akzent); }
.suche button {
  font-size: 18px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  background: var(--akzent);
  color: #fff;
  cursor: pointer;
}
.suche button:hover { filter: brightness(1.1); }
.optionen { flex-basis: 100%; display: flex; gap: 20px; flex-wrap: wrap; color: var(--grau); font-size: 14px; }
.optionen select { font: inherit; padding: 2px 4px; }

h2 { font-size: 18px; margin: 0 0 10px; }
section { margin-bottom: 28px; }
.klein, .legende { color: var(--grau); font-size: 13px; }
.leer, .intro { background: #fff; padding: 16px 20px; border-radius: 8px; border: 1px solid var(--linie); }
.intro a { font-weight: 600; color: var(--akzent); }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 10px 12px; }
.hst { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--grau); margin-bottom: 6px; }
.nrn .wert { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; border-top: 1px dashed var(--linie); }
.nrn .wert:first-child { border-top: 0; padding-top: 0; }
.nrn .wlink { text-decoration: none; color: var(--grau); font-size: 15px; font-weight: 600; min-width: 5em; }
.nrn .haupt .wlink { font-size: 22px; font-weight: 700; color: var(--text); }
.nrn .wlink:hover { color: var(--akzent); }
.wnrs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wnrs .nr { font-size: 15px; min-width: 2.8em; padding: 2px 6px; }
.nrn .haupt .wnrs .nr { font-size: 17px; }
.wnrs .mehr { font-size: 13px; color: var(--grau); font-weight: 600; }

.tabelle { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; white-space: nowrap; }
th { background: #fafafa; position: sticky; top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; color: var(--akzent); }
td.bez { white-space: normal; min-width: 200px; max-width: 320px; }
td.quelle { white-space: normal; min-width: 160px; font-size: 12px; color: var(--grau); }
.hinweis { font-size: 12px; color: var(--grau); }
td.fund, .legende .fund { background: var(--akzent-hell); font-weight: 700; }
td.link, .legende .link { background: var(--link); }
.legende span { padding: 1px 8px; border-radius: 4px; margin-right: 8px; }
tr.s1 td.bez { background: var(--akzent-hell); }
tr.trenner td { background: var(--hg); font-weight: 600; color: var(--grau); font-size: 13px; }
tr.verw { color: #444; }
tbody tr:hover td { background-color: #f3f6ff; }

/* Index-Nummer: gut sichtbares Schild */
.nr {
  display: inline-block;
  min-width: 3.2em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #1d1d1f;
  color: #fff !important;
  font: 700 18px/1.2 "Consolas", "Menlo", "DejaVu Sans Mono", monospace;
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-decoration: none !important;
  letter-spacing: .02em;
}
.nr:hover { background: var(--akzent); }
.nr.gefunden { background: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
td.nrzelle, th.nrzelle {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  text-align: center;
  border-right: 1px solid var(--linie);
}
th.nrzelle { background: #fafafa; z-index: 2; }
tbody tr:hover td.nrzelle { background: #f3f6ff; }
.intro .nr { font-size: 14px; min-width: 0; }

footer { max-width: 1400px; margin: 0 auto; padding: 8px 24px 40px; color: var(--grau); font-size: 12px; }

@media (max-width: 600px) {
  main { padding: 14px; }
  .suche button { flex: 1 1 100%; padding: 10px; }
}
