/* ============================================================
   PRODUKTKATALOG — gemeinsames Stylesheet für alle Kategorien
   Nutzt dieselben Design-Tokens wie index.html.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --black: #0B0D0F;
  --dark: #111519;
  --dark-2: #181D21;
  --white: #F5F7F8;
  --muted: #AEB5BA;
  --muted-dark: #727A80;
  --line: rgba(245,247,248,.13);
  --line-dark: rgba(11,13,15,.13);
  --accent: #E5342A;
  --accent-hover: #C22A21;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--black);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Header (matches index.html) */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,13,15,.96);
  border-bottom: 1px solid var(--line);
  color: var(--white);
  backdrop-filter: blur(12px);
}
.nav {
  min-height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--white); }
.brand-logo { height: 30px; width: auto; }
.brand-text-inline { display: flex; align-items: baseline; gap: 6px; }
.brand-text-inline strong { font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand-text-inline small { color: #788087; font-size: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #AEB5BA; font-size: 13px; text-decoration: none; }
.nav-links a:hover { color: var(--white); }
.nav-links a.current { color: var(--accent); }
.nav-cta {
  padding: 9px 14px;
  background: var(--accent); color: white;
  font-size: 12px; font-weight: 600; text-decoration: none;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Page header */
.page-hero {
  background: var(--black); color: var(--white);
  padding: 56px 0 40px;
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.page-hero .eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.page-hero h1 {
  margin-top: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
}
.page-hero p {
  margin-top: 14px; max-width: 560px;
  color: var(--muted); font-size: 14px;
}
.page-hero .pdf-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 11px 18px;
  background: var(--accent); color: white;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.page-hero .pdf-link:hover { background: var(--accent-hover); }
.page-hero .pdf-note {
  margin-top: 10px; color: #6B7480; font-size: 11px;
}

/* Toolbar: search + sort + category filter */
.toolbar {
  background: #EEF1F3;
  border-bottom: 1px solid var(--line-dark);
  padding: 18px 0;
  position: sticky; top: 70px; z-index: 90;
}
.toolbar-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search-box {
  flex: 1 1 240px;
  display: flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--line-dark);
  padding: 10px 14px;
}
.search-box svg { flex-shrink: 0; opacity: .5; }
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: "Inter", sans-serif; font-size: 14px; color: var(--black);
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  background: white; border: 1px solid var(--line-dark);
  padding: 10px 32px 10px 14px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  color: var(--black); cursor: pointer;
}
.select-wrap::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; font-size: 10px; color: var(--muted-dark);
}
.result-count {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted-dark);
  white-space: nowrap;
}

/* Product table */
.catalog-wrap { padding: 36px 0 90px; }
.catalog-table { width: 100%; border-collapse: collapse; }
.catalog-table thead th {
  text-align: left; padding: 10px 14px;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark);
  border-bottom: 1px solid var(--line-dark);
}
.catalog-table thead th.sortable { cursor: pointer; user-select: none; }
.catalog-table thead th.sortable:hover { color: var(--black); }
.catalog-table thead th .arrow { margin-left: 4px; opacity: .5; }
.catalog-table tbody tr {
  border-bottom: 1px solid var(--line-dark);
}
.catalog-table tbody tr:hover { background: #F7F8F9; }
.catalog-table td { padding: 13px 14px; font-size: 13.5px; vertical-align: top; }
.catalog-table td.code { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted-dark); white-space: nowrap; }
.catalog-table td.price { font-family: "IBM Plex Mono", monospace; font-weight: 600; text-align: right; white-space: nowrap; }
.catalog-table td.group {
  color: var(--muted-dark); font-size: 12px; white-space: nowrap;
}
.group-pill {
  display: inline-block; padding: 3px 9px;
  background: #EEF1F3; font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; color: var(--muted-dark);
}
.no-results {
  padding: 60px 20px; text-align: center; color: var(--muted-dark); font-size: 14px;
}

/* Category link tiles (used on overview/homepage) */
.cat-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4/3; min-height: 220px;
  background: var(--black); text-decoration: none;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile-label {
  position: absolute; left: 0; bottom: 0; z-index: 2; padding: 16px 18px;
  color: var(--white); font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600;
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,15,0) 40%, rgba(11,13,15,.78) 100%);
}

/* Footer (matches index.html, condensed) */
footer { background: var(--black); color: var(--white); }
.footer-inner {
  min-height: 90px; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; padding: 24px 0;
}
.footer-brand-block { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 26px; width: auto; }
.footer-brand { font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 600; }
.footer-brand strong { color: var(--accent); }
.footer-copy { margin-top: 3px; color: #626B71; font-size: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #858D92; font-size: 10px; text-decoration: none; }
.footer-links a:hover { color: white; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .brand-text-inline small { display: none; }
  .nav-cta { padding: 8px 11px; font-size: 11px; }
  .brand-text-inline strong { font-size: 13px; }
  .page-hero .pdf-link { display: block; margin: 10px 0 0 !important; text-align: center; }
  .toolbar { position: static; }
  .catalog-table thead { display: none; }
  .catalog-table, .catalog-table tbody, .catalog-table tr, .catalog-table td { display: block; width: 100%; }
  .catalog-table tbody tr { padding: 12px 14px; }
  .catalog-table td { padding: 3px 0; }
  .catalog-table td.code { order: 1; }
  .catalog-table td.name { order: 2; font-weight: 500; }
  .catalog-table td.group { order: 3; }
  .catalog-table td.price { order: 4; text-align: left; font-size: 16px; margin-top: 4px; }
}
