/* angelguide.de — Rekordfische (/rekorde, /rekorde/<fisch>).
   Wichtigste Regel hier: Die Tabellen dürfen die Seite nie sprengen. Bis 760 px liegen sie
   in einem eigenen Scroll-Container, darunter stapeln sie zu Karten (thead aus, jede Zelle
   bekommt ihr Label per ::before aus data-l). */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Kopf ── */
.rk-hero { padding-bottom: 26px; }
.rk-h1 {
  font-family: var(--font-display); font-size: clamp(27px, 4vw, 42px);
  line-height: 1.1; margin: 8px 0 12px; color: var(--ink); max-width: 20ch;
}
.rk-lead { max-width: 62ch; line-height: 1.6; }
.rk-stand {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--muted); margin: 14px 0 0;
}
/* Nur die Blockrichtung setzen — der seitliche Innenabstand kommt von .wrap-wide (--gut).
   Ein padding-Kürzel würde ihn überschreiben und den Inhalt an den Bildschirmrand kleben. */
.rk-wrap { padding-block: 30px 56px; }
.rk-h2 {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 29px);
  color: var(--ink); margin: 42px 0 6px; line-height: 1.2;
}
.rk-wrap > .rk-h2:first-of-type { margin-top: 8px; }
.rk-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; max-width: 78ch; }
.rk-einordnung {
  font-family: var(--font-serif); font-size: 19px; line-height: 1.65; color: var(--ink-soft);
  border-left: 3px solid var(--brand); padding: 2px 0 2px 20px; margin: 0 0 26px; max-width: 70ch;
}

/* Sprungmarken (nur wo eine Seite mehrere Arten führt) */
.rk-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.rk-jump a {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--brand-700);
  background: var(--aqua-soft); border-radius: var(--r-pill); padding: 7px 15px; text-decoration: none;
}
.rk-jump a:hover { background: var(--aqua); color: var(--sea-900); }

/* ── Tabellen ── */
.rk-tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.rk-tablewrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rk-table {
  width: 100%; border-collapse: collapse; font-family: var(--font-ui);
  font-size: 15px; color: var(--ink); background: var(--surface);
}
.rk-table th {
  background: var(--paper-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.rk-table td { padding: 13px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; }
.rk-row > td:first-child { border-left: 3px solid transparent; }
.rk-table tbody .rk-row:hover > td { background: rgba(47, 125, 79, .035); }
.rk-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-row td[data-l="Gewicht"] { font-weight: 700; font-size: 16px; }
.rk-raum { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; }
.rk-label {
  display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: .04em;
}
.rk-leer { color: var(--faint); font-style: italic; font-size: 14px; }
.rk-fisch { color: var(--brand-700); text-decoration: none; }
.rk-fisch:hover { text-decoration: underline; }

/* Status-Badges */
.rk-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap; cursor: help;
}
.rk-badge--offiziell { background: var(--verified-soft); color: #1c6b4e; }
.rk-badge--dokumentiert { background: var(--sand); color: #7a5d1f; }
.rk-badge--umstritten { background: #f7e2d6; color: #9a4a1c; }

/* Gewässertyp — bei Karpfen das entscheidende Merkmal */
.rk-typ {
  display: block; margin-top: 6px; width: fit-content; font-size: 11.5px; font-weight: 700;
  letter-spacing: .03em; padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.rk-typ--wild { background: var(--aqua-soft); color: var(--brand-700); }
.rk-typ--kommerziell { background: #ede4f2; color: #6b4b86; }

/* Quelle — an JEDEM Eintrag sichtbar */
.rk-quelle {
  display: block; margin-top: 7px; font-size: 13px; font-weight: 600;
  color: var(--brand-700); text-decoration: none; max-width: 26ch;
}
.rk-quelle:hover { text-decoration: underline; }
.rk-ext { font-size: 11px; margin-left: 3px; opacity: .7; }

/* Fußnote unter dem Eintrag */
.rk-noterow > td { border-top: 0; padding-top: 0; padding-bottom: 15px; }
.rk-note {
  display: flex; gap: 9px; align-items: flex-start; margin: 0;
  background: var(--paper); border-radius: var(--r-sm); padding: 10px 13px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
}
.rk-note b { color: var(--ink); }
.rk-note__ic { flex: none; color: var(--brand); margin-top: 1px; }
.rk-note__ic svg { width: 15px; height: 15px; display: block; }

/* ── Legende ── */
.rk-legende {
  margin: 20px 0 0; padding: 18px 20px; background: var(--paper-2);
  border-radius: var(--r-md); border: 1px solid var(--line);
}
.rk-legende h3 { font-family: var(--font-ui); font-size: 14px; margin: 0 0 12px; color: var(--ink); }
.rk-legende ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rk-legende li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.rk-legende li .rk-badge { flex: none; margin-top: 1px; }

/* ── Methodenblock (Übersicht) ── */
.rk-methode {
  background: var(--sea-900); color: #e6efe4; border-radius: var(--r-lg);
  padding: 26px clamp(20px, 3vw, 34px); margin-bottom: 12px;
}
.rk-methode h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 18px; color: #fff; }
.rk-methode__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 30px; }
.rk-methode__grid b { display: block; font-family: var(--font-ui); font-size: 15.5px; color: #fff; margin-bottom: 5px; }
.rk-methode__grid p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #b9cdba; }

/* ── Artenkarten (Übersicht) ── */
.rk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rk-card {
  display: flex; flex-direction: column; gap: 3px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; transition: transform .14s, box-shadow .14s, border-color .14s;
}
.rk-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--aqua); }
.rk-card__art { font-family: var(--font-ui); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rk-card__zahl { font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--ink); margin: 4px 0 2px; }
.rk-card__wer { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; min-height: 2.9em; }
.rk-card__go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand-700); }
.rk-card__go svg { width: 15px; height: 15px; }

/* ── Paylake-Erklärung ── */
.rk-paylake {
  margin: 34px 0 0; padding: 22px clamp(18px, 2.5vw, 28px);
  background: var(--sand); border-radius: var(--r-md); border: 1px solid var(--sand-deep);
}
.rk-paylake h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; color: #5d4715; }
.rk-paylake p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #6b5423; max-width: 82ch; }
.rk-paylake__go { margin-top: 14px !important; }
.rk-paylake__go .link-arrow { color: #6b5423; }

/* ── Geschichten ── */
.rk-stories { margin-top: 6px; }
.rk-story {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--r-md); padding: 22px clamp(18px, 2.5vw, 26px); margin-bottom: 16px;
}
.rk-story--legende { border-left-color: var(--gold); background: #fdfaf3; }
.rk-story__flag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: #7a5d1f; background: var(--sand);
  padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px;
}
.rk-story h3 { font-family: var(--font-display); font-size: 21px; margin: 0 0 10px; color: var(--ink); line-height: 1.25; }
.rk-story p { font-family: var(--font-serif); font-size: 17.5px; line-height: 1.68; color: var(--ink-soft); margin: 0; }
.rk-story__q { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rk-story__q .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.rk-story__q .rk-quelle { margin-top: 0; max-width: none; }

/* ── „Was wir nicht übernommen haben" ── */
.rk-honest {
  margin: 40px 0 0; padding: 24px clamp(18px, 2.5vw, 28px);
  background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--r-md);
}
.rk-honest h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; color: var(--ink); }
.rk-honest h2 em { font-style: italic; color: var(--brand-700); }
.rk-honest__intro { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; max-width: 80ch; }
.rk-honest ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.rk-honest li { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* ── FAQ ── */
.rk-faq { margin-top: 40px; }
.rk-faq h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 29px); margin: 0 0 14px; color: var(--ink); }

/* ── andere Arten ── */
.rk-andere { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rk-andere .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.rk-andere a {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--brand-700); background: var(--aqua-soft); border-radius: var(--r-pill);
  padding: 6px 14px; text-decoration: none;
}
.rk-andere a:hover { background: var(--aqua); color: var(--sea-900); }
.rk-andere .d { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ── Mittlere Breiten ── */
@media (max-width: 1000px) {
  .rk-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobil: Tabellen stapeln zu Karten ───────────────────────────────
   Kein horizontales Scrollen mehr nötig — jede Zeile wird eine Karte,
   jede Zelle trägt ihr Label aus data-l. */
@media (max-width: 760px) {
  .rk-methode__grid { grid-template-columns: 1fr; gap: 16px; }
  .rk-cards { grid-template-columns: 1fr; }
  .rk-card__wer { min-height: 0; }

  .rk-tablewrap { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .rk-table { display: block; background: transparent; font-size: 14.5px; }
  .rk-table thead { display: none; }
  .rk-table tbody { display: block; }

  .rk-table tbody .rk-row {
    display: block; background: var(--surface); border: 1px solid var(--line);
    border-left: 4px solid var(--brand); border-radius: var(--r-md);
    padding: 6px 14px 10px; margin-bottom: 12px;
  }
  .rk-table tbody .rk-row > td {
    display: flex; gap: 12px; align-items: baseline; justify-content: space-between;
    padding: 7px 0; border-top: 1px solid var(--line-soft); border-left: 0; text-align: right;
  }
  .rk-table tbody .rk-row > td:first-child { border-top: 0; }
  .rk-table tbody .rk-row > td::before {
    content: attr(data-l); flex: none; text-align: left;
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted); padding-top: 2px;
  }
  .rk-table tbody .rk-row:hover > td { background: transparent; }
  .rk-row td[data-l="Bezug"] { font-size: 16px; }
  .rk-raum { display: inline; }
  .rk-label { margin: 0 0 0 8px; }

  /* Kurze Werte bleiben einzeilig (Label links, Wert rechts) — nur die langen Felder
     stapeln unter ihr Label. Sonst wird aus jedem Eintrag ein ganzer Bildschirm. */
  .rk-table tbody .rk-row > td[data-l="Gewässer"],
  .rk-table tbody .rk-row > td[data-l="Beleg"],
  .rk-table tbody .rk-row > td[data-l="Fänger"] {
    flex-direction: column; align-items: flex-start; text-align: left; gap: 4px;
  }
  .rk-typ { margin-top: 2px; }
  .rk-quelle { margin-top: 2px; max-width: none; }

  /* Fußnote: volle Breite unter der Karte, gehört optisch zur Zeile darüber */
  .rk-noterow { display: block; margin: -6px 0 14px; }
  .rk-noterow > td { display: block; padding: 0; border: 0; }
  .rk-note { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }

  .rk-story p { font-size: 16.5px; }
  .rk-einordnung { font-size: 17px; }
}

@media (max-width: 400px) {
  /* Auf sehr schmalen Geräten darf auch der Gewässername unter sein Label rutschen,
     wenn er sonst mit dem Label kollidiert. */
  .rk-table tbody .rk-row > td { gap: 8px; }
  .rk-card__zahl { font-size: 26px; }
}
