/* ==========================================================================
   fontissoft — Produktkatalog (Zusatz zu assets/style.css)
   Erzeugt die Optik von /produkte, den Kategorie- und den Produktseiten.
   Nutzt die Tokens (--bg, --surface, --accent, --divider …) aus style.css;
   hier stehen nur die Bausteine, die der One-Pager nicht kennt.

   REGELN WIE IM HAUPT-STYLESHEET:
   - Kein style="…" im HTML (CSP style-src 'self'): alles Sichtbare steht hier.
   - Bei jeder Aenderung an dieser Datei `PV` in tools/build_produkte.py
     hochzaehlen — `_headers` cacht /assets/* 24 Stunden.
   ========================================================================== */

/* ------------------------------ Brotkrumen ------------------------------- */
.crumbs { margin: 0 0 28px; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
/* Trenner zwischen den Stufen: schmales Chevron aus Zeichen, kein Bild. */
.crumbs li + li::before {
  content: "›";
  color: color-mix(in srgb, var(--text) 40%, transparent);
}
.crumbs a { color: color-mix(in srgb, var(--text) 72%, transparent); }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs li[aria-current="page"] { color: var(--text); }

/* --------------------------- Kategorie-Kacheln --------------------------- */
/* /produkte: acht Kacheln, die in die Kategorieseiten fuehren. */
.ccard-grid {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.ccard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.ccard-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: var(--font-weight-heading);
  letter-spacing: -0.01em;
  color: var(--text);
}
.ccard-link:hover { color: var(--accent); text-decoration: none; }
.ccard-link:hover .cc-icon { transform: scale(1.05); }
.cc-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

/* --------------------------- Kategorie-Kopfzeile -------------------------- */
/* Kategorieseite: Icon neben Eyebrow/H1, wie der Kartenkopf auf /produkte. */
.cat-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cat-hero-icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
}
.cat-hero h1 { margin: 4px 0 0; }
.cc-count {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.cc-desc {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}

/* ---------------------------- Produkt-Kacheln ---------------------------- */
/* Kategorieseite: alle Produkte der Kategorie als Kacheln. */
.pcard-grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.pcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.pcard-link { display: block; color: var(--text); }
.pcard-link:hover { text-decoration: none; }
.pcard-link:hover .pc-name { color: var(--accent); }
.pc-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-md) - 2px);
  margin-bottom: 12px;
}
.pc-type {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pc-name {
  display: block;
  font-size: 19px;
  font-weight: var(--font-weight-heading);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.pc-vendor {
  margin: 0;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--text) 62%, transparent);
}
.pc-kurz {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

/* ------------------------------ Produktseite ----------------------------- */
.product h1 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.product-lead {
  font-size: 18px;
  line-height: 30px;
  max-width: 62ch;
  margin: 28px 0 0;
  color: color-mix(in srgb, var(--text) 86%, transparent);
}

/* Titelbild: Platzhalter aus assets/produkte/, siehe README dort. */
.product-cover {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  margin: 28px 0 0;
}

/* Faktenblock: Hersteller / Kategorie / Gattung als Definitionsliste. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  margin: 40px 0 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--divider);
}
.facts .fact {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
}
.facts dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.facts dd a { color: var(--accent); }

.product .hero-actions { margin-top: 32px; }

/* ------------------------- "Ueber <Produkt>"-Abschnitt ------------------- */
.about { margin-top: 48px; max-width: 68ch; }
.about h2 {
  font-size: 22px;
  font-weight: var(--font-weight-heading);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.about p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}
.about p:last-child { margin-bottom: 0; }

/* --------------------------------- FAQ ------------------------------------ */
.faq { margin-top: 48px; max-width: 68ch; }
.faq h2 {
  font-size: 22px;
  font-weight: var(--font-weight-heading);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.faq dl { margin: 0; }
.faq-item {
  padding: 16px 0;
  border-top: 1px solid var(--divider);
}
.faq-item:last-child { padding-bottom: 0; }
.faq-item dt {
  font-size: 15.5px;
  font-weight: var(--font-weight-heading);
  color: var(--text);
  margin: 0 0 8px;
}
.faq-item dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.product-note {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 1.7;
  max-width: 62ch;
  color: color-mix(in srgb, var(--text) 68%, transparent);
}
.muted { color: color-mix(in srgb, var(--text) 50%, transparent); }

.back-link { margin-top: 24px; font-size: 13.5px; }

/* --------------------- Weitere Produkte der Kategorie -------------------- */
.related { padding-top: 8px; }
.related h2 {
  font-size: 20px;
  font-weight: var(--font-weight-heading);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.rel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 28px;
}
.rel-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--divider);
}
.rel-list a { color: var(--text); }
.rel-list a:hover { color: var(--accent); text-decoration: none; }
.rel-type {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 52%, transparent);
  white-space: nowrap;
}

.xref { margin-top: 32px; }

/* --------------------------------- Druck --------------------------------- */
/* Wie der One-Pager: die Zielgruppe druckt Angebote in die Vergabeakte.
   Flaechen werden zu Umrissen; die Farbumkehr (schwarz auf weiss) und das
   Ausschreiben externer Links besorgt bereits der @media print in style.css. */
@media print {
  .ccard, .pcard, .facts .fact {
    background: none !important;
    border: 1pt solid #999;
    border-radius: 0;
  }
  .facts { border: 0; gap: 8pt; background: none; }
  .crumbs, .cc-count, .pc-type, .facts dt, .rel-type { color: #444 !important; }
  .ccard-link, .pc-name, .product-lead, .cc-desc, .pc-kurz,
  .facts dd, .product-note { color: #000 !important; }
  .related h2, .about h2, .faq h2, .product h1 { break-after: avoid; }
  .ccard, .pcard, .rel-list li, .faq-item { break-inside: avoid; }
  .about p, .faq-item dd { color: #000 !important; }
  .faq-item { border-color: #999; }
  /* Platzhaltergrafiken sind fuer den Vergabeakten-Ausdruck ohne Wert und
     verbrauchen nur Toner — sie sind ohnehin nur Platzhalter, siehe
     assets/produkte/README.md. */
  .pc-thumb, .product-cover, .cc-icon, .cat-hero-icon { display: none; }
}
