/* ============================================================
   content.css — styles for generated content pages, guides and
   free tools. Extends styles.css; loaded only where needed.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0.9rem 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--border-strong);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
.page-hero .container {
  max-width: 900px;
}
.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}
.page-hero .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 68ch;
}
.page-hero .hero-cta {
  margin-top: 1.75rem;
}
.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* ---------- Prose ---------- */
.prose {
  overflow-wrap: break-word;
  max-width: 72ch;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}
.prose.wide {
  max-width: 900px;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 2.75rem 0 0.9rem;
  scroll-margin-top: 90px;
}
.prose h3 {
  font-size: 1.1875rem;
  margin: 2rem 0 0.6rem;
  scroll-margin-top: 90px;
}
.prose p {
  margin: 0 0 1.05rem;
  color: var(--text-muted);
}
.prose p strong,
.prose li strong {
  color: var(--text);
  font-weight: 600;
}
.prose > p:first-child {
  font-size: 1.125rem;
  color: var(--text);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--accent-hover);
}
/* Buttons inside prose keep their button look: the generic prose link rule
   (accent colour + underline) would otherwise paint the label in the same
   colour as the primary button background. Labels may wrap on phones. */
.prose a.btn {
  text-decoration: none;
  white-space: normal;
  text-align: center;
}
.prose a.btn-primary,
.prose a.btn-primary:hover {
  color: #fff;
}
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 1.0625rem;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------- Table of contents ---------- */
.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2.25rem;
}
.toc h2 {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 0.65rem !important;
}
.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
}
.toc li {
  margin-bottom: 0.3rem;
}
.toc a {
  color: var(--text-muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Callouts ---------- */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}
.callout > strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}
.callout p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.callout.warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}
.callout.warn p {
  color: #7c4a03;
}
.callout.ok {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}
.callout.ok p {
  color: #04543c;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 560px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data thead th {
  background: var(--bg-alt);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  font-weight: 600;
}
table.data tbody tr:last-child td {
  border-bottom: 0;
}
table.data td {
  color: var(--text-muted);
}
table.data td:first-child,
table.data th:first-child {
  color: var(--text);
  font-weight: 500;
}
table.data .yes {
  color: var(--ok);
  font-weight: 600;
}
table.data .no {
  color: #b91c1c;
  font-weight: 600;
}

/* ---------- Feature cards as links ---------- */
.feature-link {
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-link:hover {
  border-color: var(--accent);
}
.feature-link h3 {
  color: var(--text);
}

/* ---------- Post list (guide hub) ---------- */
.post-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.post-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}
.post-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.post-card .post-tag {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* ---------- CTA band actions ---------- */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Wide footer ---------- */
.footer-cols-wide {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}
.sticky-cta.visible {
  transform: translateY(0);
}
@media (max-width: 760px) {
  .sticky-cta {
    display: block;
  }
  body {
    padding-bottom: 0;
  }
}

/* ---------- Free tools ---------- */
.tool {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  max-width: 720px;
  margin: 0 auto;
}
.tool h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.tool .tool-sub {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.35rem;
}
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.field .hint {
  font-size: 0.8125rem;
  color: var(--text-soft);
}
.field input[type='text'],
.field input[type='email'],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.6rem;
}
.tool-result {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.9375rem;
}
.tool-result[data-state='ok'] {
  border-color: #a7f3d0;
  background: var(--ok-soft);
}
.tool-result[data-state='bad'] {
  border-color: #fecaca;
  background: #fee2e2;
}
.tool-result[data-state='warn'] {
  border-color: #fde68a;
  background: var(--warn-soft);
}
.tool-result h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.tool-result ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}
.tool-result .muted {
  color: var(--text-muted);
}

/* ---------- Scorecard ---------- */
.score-grid {
  display: grid;
  gap: 0.9rem;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr 150px 44px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.score-row:last-of-type {
  border-bottom: 0;
}
.score-row .crit {
  font-size: 0.9375rem;
  font-weight: 500;
}
.score-row .crit small {
  display: block;
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.8125rem;
}
.score-row input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}
.score-row output {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
}
.score-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--border-strong);
}
.score-total .big {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem 1.25rem;
}
.stat-card .num {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  display: block;
}
.stat-card .lbl {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Contact / demo layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .score-row {
    grid-template-columns: 1fr 110px 40px;
  }
}

/* ---------- Misc ---------- */
.section-narrow .container {
  max-width: 900px;
}
.answer-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-sm);
}
.answer-box p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text);
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.pill-list li {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

/* ---------- Contact card (demo page) ---------- */
.contact-card {
  padding: 1.75rem;
}
.mail-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.mail-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}
.mail-link .mail-icon {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.mail-link .mail-icon svg {
  width: 20px;
  height: 20px;
}
.mail-link strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--accent);
  word-break: break-all;
}
.mail-link small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.mail-hint {
  margin: 1.35rem 0 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.mail-checks {
  margin: 0;
  font-size: 0.9375rem;
}
.mail-checks li {
  color: var(--text-muted);
}

/* ---------- Supplier comparison (Nutzwertanalyse) ---------- */
.nwa-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
table.nwa {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
table.nwa th,
table.nwa td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
table.nwa th:first-child,
table.nwa td:first-child {
  text-align: left;
  width: 32%;
  min-width: 200px;
}
table.nwa thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  font-weight: 600;
}
table.nwa input {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  text-align: center;
}
table.nwa input.nwa-crit,
table.nwa input.nwa-name {
  text-align: left;
}
table.nwa input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
table.nwa .nwa-weight {
  max-width: 72px;
}
table.nwa .nwa-score {
  max-width: 64px;
}
table.nwa tfoot td {
  border-bottom: 0;
  padding-top: 0.8rem;
  font-weight: 700;
}
.nwa-total {
  display: inline-block;
  min-width: 3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  background: var(--bg-alt);
}
.nwa-total.best {
  background: var(--accent);
  color: #fff;
}
.nwa-weightsum[data-ok='false'] {
  color: var(--warn);
}
.nwa-verdict {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  min-height: 1.4em;
}

/* ---------- Page meta line (updated date) ---------- */
.updated {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* ---------- Print: checklists come out as a clean document ---------- */
.print-btn {
  margin: 0 0 1.5rem;
}
@media print {
  .nav,
  .breadcrumb,
  .footer,
  .sticky-cta,
  .cta,
  .hero-cta,
  .toc,
  .print-btn,
  .faq-container,
  .section.section-alt,
  .feature-grid {
    display: none !important;
  }
  body {
    font-size: 11pt;
    color: #000;
  }
  .page-hero {
    background: none;
    padding: 0 0 1rem;
  }
  .section {
    padding: 0.5rem 0;
  }
  .prose {
    max-width: none;
  }
  .prose a {
    color: #000;
    text-decoration: none;
  }
  .prose ul li::before {
    content: '☐ ';
  }
  .prose ul {
    list-style: none;
    padding-left: 0;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  .table-wrap,
  .callout {
    break-inside: avoid;
  }
}
