/*
 * Funktionsseiten taskmonkey.de/funktionen/<slug>/ und Abschnitt
 * #funktionen der Startseite. Markup aus docs/design/funktionen/generate.py,
 * baut auf product-landing.css auf (Tokens, Karten, Schritte, FAQ).
 */

/* Hero ohne Bild: eine Spalte, gut lesbare Breite */
.fn-hero-solo > div { max-width: 50em; }
.pl-hero-visual.fn-hero-visual { padding: 0; }
.fn-avail { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 0; }
.pl-hero .pl-crumbs { margin-bottom: 18px; }

/* Karten-Raster: 3 Spalten, Tablet 2, Handy 1 */
.fn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pl-grid-gap); margin-top: 44px; }
.fn-grid .pl-card h3 { margin-top: 0; }
.fn-grid code, .pl-step code, .pl-faq code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--pl-sunken); color: var(--pl-text); }
@media (max-width: 1020px) { .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fn-grid { grid-template-columns: minmax(0, 1fr); } }

/* Weitere Funktionen als Pillen */
.fn-more { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.fn-more a {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--pl-border); background: var(--pl-surface);
  color: var(--pl-text); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: border-color .15s;
}
.fn-more a:hover { border-color: var(--pl-accent); }
.pl-faq + .pl-cta-row { margin-bottom: 0; }

/* Startseite: Funktionskarten + Praxisbeispiele */
.fn-products .pl-product h3 { font-size: 19px; }
.fn-product-ask { border-style: dashed; background: transparent; }
.fn-note { margin: -4px 0 0; font-size: 15px; color: var(--pl-muted); }
.fn-grid + .fn-note, .fn-products + .pl-platform-h3 { margin-top: 56px; }
.fn-example { display: flex; flex-direction: column; }
.fn-example h4 { margin: 6px 0 10px; font-size: 19px; line-height: 1.25; }
.fn-example ol { margin: 0 0 14px; padding-left: 20px; color: var(--pl-muted); font-size: 16px; flex: 1; }
.fn-example li + li { margin-top: 6px; }
.fn-example-links { margin: 0; font-size: 15px; font-weight: 600; }
.fn-example-links a { text-decoration: none; }
.fn-example-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Vier Beweise (Startseite, Abschnitt #warum) */
.fn-proof { margin-top: 44px; }
.fn-proof li a { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 700; text-decoration: none; }
.fn-proof li a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1020px) { .pl-safety.fn-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pl-safety.fn-proof { grid-template-columns: minmax(0, 1fr); } }
.fn-proof + .pl-systems { margin-top: 40px; }

/* Integrationen (taskmonkey.de/integrationen/, docs/design/integrationen/generate.py) */
.ig-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; font-size: 15px; color: var(--pl-muted); }
.ig-legend li { display: inline-flex; align-items: center; gap: 8px; }
.ig-nav { margin-top: 26px; }
.ig-group { scroll-margin-top: 84px; }
.ig-group .fn-grid { margin-top: 28px; }
.ig-card { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 84px; }
.ig-card h3 { margin: 0; }
.ig-card h3 a { color: inherit; text-decoration: none; }
.ig-card h3 a:hover { color: var(--pl-accent-text); }
.ig-card > p:not(.ig-badges):not(.ig-links):not(.ig-logo) { flex: 1; }
.ig-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-links { font-size: 15px; font-weight: 700; }
.ig-links a { text-decoration: none; }
.ig-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Hersteller-Logos: unveraendert, klein, auf hellem Feld (auch im Dark Mode lesbar) */
.ig-logo { flex: none; display: flex; align-items: center; height: 44px; box-sizing: border-box; margin: 0; padding: 0 12px; align-self: flex-start; border-radius: 10px; background: #fff; border: 1px solid var(--pl-border); }
.ig-logo img { display: block; height: 28px; width: auto; max-width: 150px; object-fit: contain; }
.ig-marken { margin: 28px 0 0; font-size: 14px; color: var(--pl-muted); }
