:root {
  --brand: #5b40f4;
  --brand-dark: #4730c9;
  --ink: #14121f;
  --muted: #6b6880;
  --bg: #ffffff;
  --bg-soft: #f5f4fb;
  --border: #e7e5f0;
  --radius: 14px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-header .logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.site-header nav { display: flex; gap: 1.25rem; align-items: center; }
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }

/* Article */
.article {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.article h1 { font-size: 2.1rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
.article h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.article h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.breadcrumb { color: var(--muted); font-size: 0.9rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: -0.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0.5rem 0 1.5rem;
}

.affiliate-notice {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.content th, .content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.content th { background: var(--bg-soft); }

/* CTA box (unter jedem Artikel) */
.cta-box {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}
.cta-box h2 { margin: 0 0 0.5rem; color: #fff; }
.cta-box p { margin: 0 0 1.25rem; opacity: 0.92; }
.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--brand) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
}
.cta-button:hover { text-decoration: none; transform: translateY(-1px); }

/* Related */
.related ul { list-style: none; padding: 0; }
.related li { margin: 0.5rem 0; }

/* Blog index */
.hub-group { margin: 2.5rem 0; }
.post-list { list-style: none; padding: 0; }
.post-list li { margin: 0.75rem 0; }
.post-list a {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  overflow: hidden;
}
.post-list a:hover { border-color: var(--brand); text-decoration: none; }
.thumb {
  width: 160px;
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  height: auto;
}
.post-text { padding: 1rem 1.25rem; display: flex; flex-direction: column; justify-content: center; }
.post-title { display: block; font-weight: 600; }
.post-desc { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

@media (max-width: 600px) {
  .post-list a { flex-direction: column; }
  .thumb { width: 100%; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 1rem; }

@media (max-width: 600px) {
  .site-footer { flex-direction: column; gap: 1rem; }
  .article h1 { font-size: 1.7rem; }
}

/* Build-Tabelle (Affiliate-Komponenten im Artikel) */
.build-table { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.build-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.build-row:last-child { border-bottom: none; }
.build-img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 8px; }
.build-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.build-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.build-name { font-weight: 600; line-height: 1.3; }
.build-spec { font-size: 0.85rem; color: var(--muted); }
.build-action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.build-price { font-weight: 700; }
.build-btn { background: var(--brand); color: #fff !important; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.build-btn:hover { background: var(--brand-dark); text-decoration: none; }
.build-total { display: flex; justify-content: space-between; padding: 1rem; background: var(--bg-soft); font-size: 1.05rem; }
.build-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

@media (max-width: 600px) {
  .build-row { flex-wrap: wrap; }
  .build-action { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}
