@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── Design System 1c: Inventur ── */
:root {
  --c-staub:      #EFEEE9;
  --c-card:       #F7F6F1;
  --c-metall:     #292A28;
  --c-text:       #44453F;
  --c-muted:      #66675F;
  --c-very-muted: #7D7E77;
  --c-regalgruen: #5C6B5E;
  --c-klebeband:  #C9A34A;
  --c-gold-dark:  #A8862F;
  --c-border:     rgba(41,42,40,0.14);
  --c-border-med: rgba(41,42,40,0.20);
  --c-border-bold:rgba(41,42,40,0.35);

  --f-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --space-xs: 0.5rem;
  --space-s:  1rem;
  --space-m:  1.5rem;
  --space-l:  2.5rem;
  --space-xl: 4rem;

  --max-w: 720px;
  --max-w-wide: 1100px;
  --pad-wide: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--c-staub);
  color: var(--c-metall);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Header / Nav ── */
.site-header {
  border-bottom: 1px solid var(--c-border);
  padding: 20px var(--pad-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  background: var(--c-staub);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo variant A: boxed (homepage) */
.site-logo-boxed {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  border: 2px solid var(--c-metall);
  padding: 6px 12px;
  text-decoration: none;
  color: inherit;
}

.logo-label {
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-very-muted);
  line-height: 1;
}

.logo-name-boxed {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--c-metall);
  line-height: 1;
}

/* Logo variant B: compact text (all other pages) */
.site-logo-compact {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--c-metall);
  text-decoration: none;
}

.site-logo-compact .logo-dot {
  color: var(--c-klebeband);
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-metall);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--c-regalgruen);
}

.site-nav .nav-search {
  font-family: var(--f-mono);
  font-weight: 400;
  color: var(--c-muted);
  border-bottom: none;
}

.site-nav .nav-search:hover {
  color: var(--c-metall);
  border-bottom: none;
}

/* ── Hero ── */
.hero-wrap {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.hero {
  padding: 88px var(--pad-wide) 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: calc(760px + var(--pad-wide) * 2);
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-regalgruen);
}

.hero h1 {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--c-metall);
  max-width: 760px;
}

.hero-sub {
  font-family: var(--f-sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--c-metall);
  color: var(--c-staub);
  border: 1px solid var(--c-metall);
}

.btn-primary:hover {
  background: transparent;
  color: var(--c-metall);
}

.btn-outline {
  background: transparent;
  color: var(--c-metall);
  border: 1px solid var(--c-border-bold);
}

.btn-outline:hover {
  background: var(--c-metall);
  color: var(--c-staub);
  border-color: var(--c-metall);
}

/* ── Article grid (homepage) ── */
.articles {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--pad-wide) 64px;
}

.articles-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.articles-all-link {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-regalgruen);
  text-decoration: none;
  border-bottom: 1px solid var(--c-regalgruen);
  padding-bottom: 1px;
}

.articles-all-link:hover {
  opacity: 0.8;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.article-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.article-card:hover {
  background: #fff;
}

.card-meta-nr {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--c-very-muted);
  text-transform: uppercase;
}

.card-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-metall);
}

.card-excerpt {
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-muted);
  flex: 1;
}

.card-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--c-regalgruen);
  margin-top: auto;
}

/* ── Author section (homepage) ── */
.author-section {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  border-top: 1px solid var(--c-border);
  padding: 56px var(--pad-wide);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.author-photo {
  width: 200px;
  height: 200px;
  background: repeating-linear-gradient(
    45deg,
    #e3e1d9,
    #e3e1d9 8px,
    #eae8e1 8px,
    #eae8e1 16px
  );
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-very-muted);
  text-align: center;
  padding: 12px;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.author-quote {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-metall);
}

.author-bio {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
}

.author-link {
  font-family: var(--f-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-regalgruen);
  text-decoration: none;
  border-bottom: 1px solid var(--c-regalgruen);
  align-self: flex-start;
  padding-bottom: 1px;
}

/* ── Single article ── */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.article-breadcrumb {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-regalgruen);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-metall);
}

.article-lead {
  font-family: var(--f-sans);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--c-text);
}

/* ── Article body ── */
.article-body {
  font-family: var(--f-sans);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--c-text);
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-metall);
  margin: 32px 0 12px;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-metall);
  margin: 24px 0 8px;
}

.article-body p {
  margin-bottom: var(--space-m);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-m);
}

.article-body li { margin-bottom: 0.4rem; }

.article-body a {
  color: var(--c-regalgruen);
  text-decoration: underline;
}

.article-body a:hover { color: var(--c-metall); }

.article-divider {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-very-muted);
  text-align: center;
  padding: 8px 0;
  margin: var(--space-m) 0;
}

/* ── Callout box ("WAS ICH HEUTE KAUFEN WÜRDE") ── */
.callout-box {
  border-left: 3px solid var(--c-metall);
  background: var(--c-card);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: var(--space-m) 0;
}

.callout-box .callout-label {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.callout-box p {
  font-family: var(--f-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--c-metall);
  margin: 0;
}

/* ── Affiliate box ── */
.affiliate-box {
  border: 1px solid var(--c-border-med);
  background: var(--c-card);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: var(--space-m) 0;
}

.affiliate-img {
  width: 64px;
  height: 64px;
  background: repeating-linear-gradient(
    45deg,
    #e3e1d9,
    #e3e1d9 6px,
    #eae8e1 6px,
    #eae8e1 12px
  );
  border: 1px solid var(--c-border);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 8px;
  color: var(--c-very-muted);
  text-align: center;
  overflow: hidden;
}

.affiliate-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.affiliate-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.affiliate-info strong {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-metall);
}

.affiliate-info p {
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}

.affiliate-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.affiliate-cta .btn {
  font-size: 13px;
  padding: 10px 16px;
}

.affiliate-disclaimer {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--c-gold-dark);
  white-space: nowrap;
}

/* ── Related articles ("AUCH AUS DEM KELLER") ── */
.related-section {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  border-top: 1px solid var(--c-border);
  padding: 40px var(--pad-wide) 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.related-card:hover { background: #fff; }

.related-card-nr {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--c-very-muted);
}

.related-card-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--c-metall);
}

/* ── Serien page ── */
.series-header {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 56px var(--pad-wide) 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.series-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-regalgruen);
}

.series-title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--c-metall);
}

.series-desc {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  max-width: 560px;
}

.series-filters {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.filter-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.filter-tag.active,
.filter-tag:hover {
  background: var(--c-regalgruen);
  color: var(--c-staub);
}

.filter-tag:not(.active) {
  background: rgba(92, 107, 94, 0.14);
  color: var(--c-metall);
}

.series-grid {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 24px var(--pad-wide) 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 24px var(--pad-wide);
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.footer-copy {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-very-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--c-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--c-metall); }

/* ── Table ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-m);
  font-size: 0.9rem;
}

.article-body th {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--space-xs) var(--space-s);
  border-bottom: 2px solid var(--c-metall);
  color: var(--c-regalgruen);
}

.article-body td {
  padding: var(--space-xs) var(--space-s);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

/* ── Verdict badge ── */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border: 1px solid;
}

.verdict.keep  { border-color: var(--c-regalgruen); color: var(--c-regalgruen); }
.verdict.skip  { border-color: var(--c-metall); color: var(--c-metall); }
.verdict.maybe { border-color: var(--c-klebeband); color: #8a6a1e; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .series-grid  { grid-template-columns: repeat(2, 1fr); }
  .author-section { grid-template-columns: 160px 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  :root { --pad-wide: 20px; }

  .site-header { padding: 16px 20px; }

  .site-nav { display: none; }
  .site-nav-mobile-toggle { display: flex; }

  .hero { padding: 44px 20px 36px; gap: 16px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; width: 100%; padding: 14px; }
  .hero-ctas .btn-outline { display: none; }

  .articles { padding: 0 20px 36px; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .series-grid  { grid-template-columns: 1fr; }

  .author-section {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 20px;
  }
  .author-photo { width: 100%; height: 200px; }

  .article-wrap { padding: 36px 20px 32px; }

  .affiliate-box { flex-direction: column; }
  .affiliate-cta { align-items: stretch; }
  .affiliate-cta .btn { text-align: center; }
  .affiliate-disclaimer { text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .series-header { padding: 40px 20px 20px; }
  .series-grid { padding: 20px 20px 36px; }
}

/* ── Mobile hamburger toggle ── */
.site-nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  cursor: pointer;
  background: none;
  border: none;
}

.site-nav-mobile-toggle span {
  display: block;
  background: var(--c-metall);
  height: 2px;
}

.site-nav-mobile-toggle span:nth-child(1) { width: 22px; }
.site-nav-mobile-toggle span:nth-child(2) { width: 22px; }
.site-nav-mobile-toggle span:nth-child(3) { width: 14px; }
