/* Werkzeug-Referenz – Dashboard/Internal-Tool-Look.
   Master-Detail: Filter | Tabelle | Detail-Panel. Helle Flächen, dünne Linien,
   blaue Akzente, tabellarische Zahlen. Systemfonts (kein Webfont-Ladevorgang). */
/* Inter – lokal selbst gehostet (variabel, Gewichte 100–900 in einer Datei). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-variable-latin.woff2") format("woff2");
}
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --ink: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eef4ff;
  --accent-line: #c7dbfb;
  --warn: #dc2626;
  --warn-bg: #fef2f2;
  --warn-line: #fbc5c5;
  --ok: #16a34a;
  --r: 8px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --num: "SF Mono", ui-monospace, "Segoe UI", system-ui, sans-serif;
  --topbar-h: 56px;
}
* { box-sizing: border-box; }
:root { color-scheme: light; } /* immer hell – auch bei Dark-Mode-OS */
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Topbar ---------- */
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.topbar .brand:hover { opacity: 0.85; }
.topbar .logo { width: 26px; height: 26px; border-radius: 6px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.topbar b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.topbar .tag { font-size: 12.5px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.topbar .home { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Shell (Master-Detail) ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.panel { background: var(--surface); }

/* Filterspalte */
.filters { padding: 16px; border-bottom: 1px solid var(--line); }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 12px; font-weight: 500; color: var(--muted);
  margin-bottom: 6px; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
#q {
  width: 100%; height: 42px; font-size: 15px; padding: 0 12px 0 34px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink);
  outline: none; font-variant-numeric: tabular-nums;
}
#q:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#q::placeholder { color: var(--muted-2); }

/* Kategorie-Liste */
.catlist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.catlist::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer;
  white-space: nowrap;
}
.cat:hover { background: #f9fafb; }
.cat[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }
.cat .n { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.cat[aria-selected="true"] .n { color: var(--accent); }
.catdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; flex-shrink: 0; }

/* ---------- Tabelle ---------- */
.tablewrap { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.tabletop { display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--line); }
.tabletop .res { font-size: 13px; color: var(--muted); font-weight: 500; }
.tabletop .res b { color: var(--ink); }
/* Meta-Filterleiste (Maßsystem + Antriebsprofil) über der Tabelle.
   Jede Filter-Achse steht in einer eigenen Zeile mit vorangestelltem Label –
   so ist klar, dass Maß und Profil zwei getrennte Filter sind. */
.metabar { display: flex; flex-direction: column; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.metabar[hidden] { display: none; }
.metagroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.metagroup[hidden] { display: none; }
.metalabel { flex: 0 0 auto; min-width: 46px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-2); }
.meta {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted);
  font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.meta:hover { background: #f3f4f6; color: var(--ink); }
.meta[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }

/* Sekundäres Normwelt-Tag in der Liste und im Detail-Header */
.systag { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.02em; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line);
  background: #f3f4f6; color: var(--muted); vertical-align: middle; white-space: nowrap; }
.systag--din { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.systag--zoll { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.systag--rohr { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.detail .dkicker .systag { margin-left: 6px; }
/* In der Liste: Norm als dezenter, grauer Inline-Text direkt hinter dem Namen
   (keine eigene Zeile -> Zeilenhöhe bleibt niedrig) */
.grid td.name a { display: inline; }
.grid td.name .systag { display: inline; margin: 0 0 0 7px; padding: 0; border: none;
  background: none; color: var(--muted-2); font-weight: 500; font-size: 11px;
  letter-spacing: normal; vertical-align: baseline; }

.tablescroll { overflow: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid thead th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em; padding: 9px 16px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.grid tbody td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover td { background: #f9fafb; }
.grid tbody tr.sel td { background: var(--accent-soft); }
.grid tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.grid .name { font-weight: 600; color: var(--ink); }
.grid .name a { color: inherit; }
.tagpill { display: inline-block; font-size: 11.5px; color: var(--muted); background: #f3f4f6;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tagpill--gewinde, .tagpill--zollgewinde { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.tagpill--rohrgewinde { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.tagpill--schluesselweite { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.tagpill--vierkant { background: #ecfeff; border-color: #a5f3fc; color: #0e7490; }
.tagpill--bit { background: #faf5ff; border-color: #e9d5ff; color: #7c3aed; }
.tagpill--drehmoment { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.kv { display: inline-flex; align-items: baseline; gap: 5px; margin-right: 12px; }
.kv b { font-weight: 650; font-variant-numeric: tabular-nums; }
.kv b small { font-weight: 500; color: var(--muted); font-size: 11px; }
.kv i { font-style: normal; font-size: 11.5px; color: var(--muted-2); }
.row-warn { color: var(--warn); font-weight: 700; }

/* ---------- Detail-Panel ---------- */
.detail { display: none; }
.detail .dhead { padding: 20px 20px 0; }
.detail .dkicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.detail h2 { margin: 6px 0 2px; font-size: 24px; font-weight: 680; letter-spacing: -0.02em; }
.detail .dsub { font-size: 12.5px; color: var(--muted); }
.tabsbar { display: flex; gap: 18px; padding: 14px 20px 0; border-bottom: 1px solid var(--line); }
.tabbtn { background: none; border: none; padding: 0 0 11px; font-size: 14px; font-weight: 500;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbtn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.dbody { padding: 18px 20px 30px; overflow: auto; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); }
.stat.full { grid-column: 1 / -1; }
.stat .sk { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.stat .sv { margin-top: 4px; font-size: 23px; font-weight: 680; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .sv small { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .sv.txt { font-size: 15.5px; font-weight: 500; }
/* Kurze Textwerte (Bezeichner wie „M1.6", „BSP", „1/4″") prominenter – nur in halben
   Kacheln; lange Fließtexte (Anwendung/Hinweis = .full) bleiben klein. */
.stat:not(.full) .sv.txt { font-size: 20px; font-weight: 600; }

/* Kategorie-Infotext (pro aktiver Kategorie eigener Text, bei „Alle" ausgeblendet), aufklappbar */
.catinfo { margin-top: 12px; border: 1px solid var(--line); background: #f9fafb; border-radius: var(--r); font-size: 12px; line-height: 1.45; color: var(--muted); overflow: hidden; }
.catinfo > summary { cursor: pointer; padding: 9px 12px; font-size: 12.5px; font-weight: 500; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.catinfo > summary::-webkit-details-marker { display: none; }
.catinfo > summary::before { content: ""; width: 6px; height: 6px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s ease; }
.catinfo[open] > summary { border-bottom: 1px solid var(--line); }
.catinfo[open] > summary::before { transform: rotate(45deg); }
.catinfo > p { margin: 10px 12px; }
.catinfo > p:first-of-type { margin-top: 11px; }
.catinfo b { color: var(--ink); }

/* Schlüsselweite-Zeichnung (Detail-Panel) */
.swfig-wrap { margin: 14px 0 0; border: 1px solid var(--line); background: #f9fafb; border-radius: var(--r); padding: 8px 10px 10px; }
.swfig { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.swfig-cap { margin: 6px 2px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.swfig-cap b { color: var(--ink); }

.explain { margin-top: 14px; border: 1px solid var(--line); background: #f9fafb; border-radius: var(--r);
  padding: 13px 14px; font-size: 13px; line-height: 1.5; color: #374151; }
.explain h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--muted); }
.explain p { margin: 0 0 8px; }
.explain p:last-child { margin-bottom: 0; }
.explain b { color: var(--ink); }

.warnbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn);
  border-radius: var(--r); padding: 12px 13px; font-size: 13px; font-weight: 550; line-height: 1.4; }
.warnbox svg { flex: 0 0 18px; margin-top: 1px; }

.buylist { display: grid; gap: 9px; }
.buyhead { font-size: 12px; color: var(--muted); margin: 0 0 2px; font-weight: 500; }
.buy {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 0 14px; border-radius: var(--r); text-decoration: none;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-hover);
  font-weight: 600; font-size: 14px;
}
.buy:hover { background: #e2edff; }
.buy.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.buy.primary:hover { background: var(--accent-hover); }
.buy .sub { font-weight: 500; font-size: 12px; opacity: .8; margin-left: 6px; }
.buy .arr { font-weight: 700; }

.related { margin-top: 22px; }
.related h3 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; color: var(--ink); font-weight: 500; font-size: 13px; }
.chip:hover { background: #f9fafb; border-color: var(--line-2); }
.dsrc { margin-top: 18px; font-size: 11.5px; color: var(--muted-2); }

.empty { padding: 48px 22px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

/* Detail-Seite (SEO, einspaltig) */
.page { max-width: 880px; margin: 22px auto; padding: 0 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 34px; color: var(--muted);
  font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card .dhead { padding: 22px 22px 0; }
.card .dbody { padding: 20px 22px 24px; }

/* ---------- Topbar-Navigation ---------- */
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 7px 11px; border-radius: 7px; }
.topnav a:hover { background: var(--panel, #f3f4f6); color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.navtoggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.navtoggle:hover { background: var(--panel, #f3f4f6); }

/* Untermenü „Rechtliches" (Dropdown) */
.navdrop { position: relative; }
.navdrop-btn { display: inline-flex; align-items: center; gap: 4px; font-family: inherit;
  font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 7px 11px; border-radius: 7px;
  background: none; border: 0; cursor: pointer; }
.navdrop-btn:hover { background: var(--panel, #f3f4f6); color: var(--ink); }
.navdrop-btn.active { color: var(--accent); background: var(--accent-soft); }
.navdrop-btn .caret { transition: transform 0.15s ease; }
.navdrop-menu {
  position: absolute; top: 100%; right: 0; min-width: 180px; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); display: none; z-index: 40;
}
.navdrop.open .navdrop-menu { display: flex; }
.navdrop.open .navdrop-btn .caret { transform: rotate(180deg); }
/* Desktop: zusätzlich per Hover/Tastatur-Fokus öffnen (mobil nur per Tap-Toggle) */
@media (min-width: 641px) {
  .navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu { display: flex; }
  .navdrop:hover .navdrop-btn .caret, .navdrop:focus-within .navdrop-btn .caret { transform: rotate(180deg); }
}
.navdrop-menu a { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 8px 11px; border-radius: 7px; white-space: nowrap; }
.navdrop-menu a:hover { background: var(--panel, #f3f4f6); color: var(--ink); }
.navdrop-menu a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Mobil: Navigation als Hamburger-Dropdown */
@media (max-width: 640px) {
  .navtoggle { display: inline-flex; }
  .topnav {
    position: absolute; top: 100%; right: 8px; left: 8px; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); display: none; z-index: 30;
  }
  .topbar.nav-open .topnav { display: flex; }
  .topnav a { padding: 12px 12px; font-size: 15px; }
  /* Untermenü inline im Hamburger als Akkordeon (eingeklappt, Toggle per Tap) */
  .navdrop { position: static; }
  .navdrop-btn { width: 100%; justify-content: space-between; padding: 12px 12px; font-size: 15px; }
  .navdrop-menu {
    position: static; min-width: 0; padding: 0 0 0 12px;
    border: 0; border-radius: 0; box-shadow: none; background: none;
  }
  .navdrop.open .navdrop-menu { display: flex; }
  .navdrop-menu a { padding: 12px 12px; font-size: 15px; }
}

/* Link Eintrag -> Ratgeber */
.postlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 7px 12px; border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent-hover); border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.postlink:hover { background: #e2edff; }

/* ---------- Ratgeber-Beitrag ---------- */
.posttitle { margin: 6px 0 4px; font-size: 27px; line-height: 1.2; letter-spacing: -0.02em; }
.post .dsub { font-size: 13px; color: var(--muted); }
.tldr { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px;
  padding: 14px 16px; margin: 4px 0 22px; }
.tldr h2 { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--accent-hover); }
.tldr ul { margin: 0; padding-left: 18px; }
.tldr li { margin: 5px 0; font-size: 14px; color: #1f2937; }
.prose { font-size: 15.5px; line-height: 1.62; color: #1f2937; }
.prose h2 { font-size: 19px; letter-spacing: -0.01em; margin: 24px 0 8px; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p { margin: 0 0 13px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { text-decoration: underline; }
.prose code { background: var(--panel, #f3f4f6); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 5px; font-size: 13px; }
.prose table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--panel, #f3f4f6); font-weight: 650; color: var(--ink); white-space: nowrap; }
.prose tbody tr:nth-child(even) td { background: #fafbfc; }
.prose .table-scroll { overflow-x: auto; }
.buy.affiliate { margin: 18px 0 6px; }

.faq { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.faq h2 { font-size: 17px; margin: 0 0 10px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14.5px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq .fa { padding: 0 14px 13px; font-size: 14px; line-height: 1.55; color: #374151; }

/* Ratgeber-Abschnitt auf der Eintragsseite (konsolidiert) */
.guide { margin-top: 8px; }
.guide-sep { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.guide-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 14px; }

/* ---------- Kompatibilitäts-Seite ---------- */
.kompat .ratlead { margin-bottom: 20px; }
.checker { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; margin-bottom: 28px; }
.checker-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.ctab-btn { flex: 1; background: none; border: none; padding: 13px 10px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctab-btn:hover { color: var(--ink); }
.ctab-btn[aria-selected="true"] { color: var(--accent-hover); border-bottom-color: var(--accent); background: #fff; }
.checker-body { padding: 18px 18px 20px; }
.clab { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.csel { width: 100%; height: 42px; padding: 0 12px; font-size: 15px; border: 1px solid var(--line-2);
  border-radius: var(--r); background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.csel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cpair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.cvs { padding-bottom: 10px; font-size: 17px; color: var(--muted-2); }
.vbox { margin-top: 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r); padding: 14px 16px; }
.vbox--ja { border-left-color: var(--ok); background: #f0fdf4; }
.vbox--vorsicht { border-left-color: #d97706; background: #fffbeb; }
.vbox--nein { border-left-color: var(--warn); background: var(--warn-bg); }
.vhead { font-size: 17px; font-weight: 680; }
.vbox--ja .vhead { color: #15803d; }
.vbox--vorsicht .vhead { color: #b45309; }
.vbox--nein .vhead { color: var(--warn); }
.vhead-sub { font-size: 13px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.vdetail { margin-top: 10px; font-size: 14px; color: #1f2937; }
.vdetail b { font-variant-numeric: tabular-nums; }
.cnote { margin: 8px 0 0; font-size: 13px; color: #374151; line-height: 1.5; }
.clink { display: inline-block; margin-top: 10px; margin-right: 14px; font-size: 13px; font-weight: 500; }

.compat-ref { margin: 26px 0; }
.compat-ref h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.compat-ref > p { font-size: 14px; color: var(--muted); margin: 0 0 12px; max-width: 640px; line-height: 1.55; }
.ctab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctab th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.03em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ctab td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctab tbody tr:nth-child(even) td { background: #fafbfc; }
.vbadge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.vbadge--ja { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.vbadge--vorsicht { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.vbadge--nein { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.famgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px) { .famgrid { grid-template-columns: 1fr 1fr; } }
.famcard { border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; background: var(--surface); }
.famcard h3 { margin: 0 0 6px; font-size: 14.5px; }
.famcard p { margin: 0; font-size: 13px; color: #374151; line-height: 1.5; }

/* Ratgeber-Index */
.ratlead { font-size: 15px; color: var(--muted); max-width: 620px; margin: 0 0 22px; }
.postgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.postcard { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px;
  background: var(--surface); }
.postcard:hover { border-color: var(--line-2); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.pc-kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.postcard h2 { margin: 7px 0 6px; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.postcard p { margin: 0 0 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.pc-date { font-size: 12px; color: var(--muted-2); }
@media (min-width: 760px) { .postgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- Desktop: 3 Spalten ---------- */
@media (min-width: 1024px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr) 400px; }
  .filters { border-bottom: none; border-right: 1px solid var(--line); height: calc(100vh - var(--topbar-h));
    position: sticky; top: var(--topbar-h); }
  .field.cat-field > label { margin-top: 4px; }
  .catlist { flex-direction: column; overflow: visible; }
  .cat { width: 100%; justify-content: space-between; height: 38px; }
  .tablewrap { border-right: 1px solid var(--line); height: calc(100vh - var(--topbar-h)); }
  .tablescroll { flex: 1; }
  .tabletop { position: sticky; top: 0; background: var(--surface); z-index: 2; }
  .detail { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h));
    position: sticky; top: var(--topbar-h); }
}
@media (min-width: 1500px) {
  .shell { grid-template-columns: 300px minmax(0, 1fr) 440px; }
}

/* ---------- Schmal (Mobile/Tablet ohne Detail-Panel) ---------- */
@media (max-width: 1023px) {
  .tablescroll { -webkit-overflow-scrolling: touch; }
  .grid td.tnum { white-space: normal; }
  .kv { margin: 0 10px 2px 0; }
}
@media (max-width: 620px) {
  .grid thead th:nth-child(2), .grid tbody td:nth-child(2) { display: none; } /* Kategorie ausblenden */
  .grid thead th, .grid tbody td { padding-left: 14px; padding-right: 14px; }
  .grid .kv { display: inline-flex; }
  .grid td.name { font-size: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  .grid tbody tr td, .buy, .cat { transition: background-color .1s ease; }
}
/* Bewusst kein Dark-Mode: immer helles, kontrastreiches Werkstatt-Design. */
