/* ─────────────────────────────────────────────
   MKF Pillar-Page Styles
   Geteilt zwischen allen SEO-Landing-Pages
   ───────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--mkf-font-body);
  font-weight: 400;
  color: var(--mkf-cream-800);
  background-color: var(--mkf-white);
  line-height: 1.65;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--mkf-cream-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--mkf-space-8);
  transition: border-color var(--mkf-duration-normal) ease,
              box-shadow var(--mkf-duration-normal) ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom-color: var(--mkf-cream-200);
  box-shadow: var(--mkf-shadow-xs);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--mkf-space-3);
  text-decoration: none;
  color: var(--mkf-cream-900);
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-brand-text {
  font-family: var(--mkf-font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--mkf-space-6);
}

.nav-link {
  font-family: var(--mkf-font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--mkf-cream-600);
  text-decoration: none;
  transition: color var(--mkf-duration-fast) ease;
}

.nav-link:hover {
  color: var(--mkf-cream-900);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mkf-font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--mkf-duration-normal) var(--mkf-ease-out);
}

.btn-sm { height: 36px; padding: 0 var(--mkf-space-5); border-radius: var(--mkf-radius-sm); font-size: 13px; }
.btn-md { height: 48px; padding: 0 var(--mkf-space-8); border-radius: var(--mkf-radius-md); }
.btn-lg { height: 52px; padding: 0 var(--mkf-space-10); border-radius: var(--mkf-radius-md); }

.btn-fill-forest { background: var(--mkf-forest-800); color: var(--mkf-white); }
.btn-fill-forest:hover { background: var(--mkf-forest-900); box-shadow: var(--mkf-shadow-sm); }
.btn-outline-forest { background: transparent; color: var(--mkf-forest-800); border: 1.5px solid var(--mkf-forest-800); }
.btn-outline-forest:hover { background: var(--mkf-forest-50); }
.btn-fill-gold { background: var(--mkf-gold-500); color: var(--mkf-white); }
.btn-fill-gold:hover { box-shadow: 0 0 24px rgba(184, 137, 42, 0.4); }

/* ── Article container ── */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px var(--mkf-space-8) 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--mkf-space-2);
  font-size: 13px;
  color: var(--mkf-cream-500);
  margin-bottom: var(--mkf-space-8);
}

.breadcrumb a {
  color: var(--mkf-forest-700);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── Hero ── */
.hero {
  margin-bottom: var(--mkf-space-12);
  padding-bottom: var(--mkf-space-10);
  border-bottom: 1px solid var(--mkf-cream-200);
}

.hero h1 {
  font-family: var(--mkf-font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mkf-cream-900);
  margin-bottom: var(--mkf-space-5);
}

.hero .lead {
  font-family: var(--mkf-font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--mkf-cream-700);
  margin-bottom: var(--mkf-space-8);
}

.hero-cta {
  display: flex;
  gap: var(--mkf-space-4);
  flex-wrap: wrap;
}

/* ── Sections ── */
.article section {
  margin-top: var(--mkf-space-12);
}

.article h2 {
  font-family: var(--mkf-font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--mkf-cream-900);
  margin-bottom: var(--mkf-space-5);
}

.article h3 {
  font-family: var(--mkf-font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--mkf-cream-900);
  margin-bottom: var(--mkf-space-3);
}

.article p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mkf-cream-700);
  margin-bottom: var(--mkf-space-4);
}

/* Inline-Links innerhalb von Artikel-Content. Buttons (`.btn`) sind
   ausgenommen, sonst ueberschreibt diese Regel die `.btn-fill-*`-Farben
   (Specificity 0,2,0 vs. 0,1,0) und Hero-CTAs werden gruen-auf-gruen
   = unsichtbar. Audit 2026-05-10. */
.article a:not(.btn) {
  color: var(--mkf-forest-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article a:not(.btn):hover {
  color: var(--mkf-forest-900);
}

.article strong {
  color: var(--mkf-cream-900);
  font-weight: 600;
}

/* ── Callout ── */
.callout {
  padding: var(--mkf-space-6) var(--mkf-space-7);
  border-radius: var(--mkf-radius-lg);
  margin-top: var(--mkf-space-8);
  font-size: 16px;
  line-height: 1.7;
}

.callout-info {
  background: var(--mkf-forest-50);
  border-left: 4px solid var(--mkf-forest-700);
  color: var(--mkf-cream-800);
}

.callout-warning {
  background: var(--mkf-gold-50);
  border-left: 4px solid var(--mkf-gold-500);
  color: var(--mkf-cream-800);
}

.callout strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mkf-cream-900);
  margin-bottom: var(--mkf-space-3);
  font-weight: 600;
}

.callout ul {
  list-style: none;
  margin-top: var(--mkf-space-2);
  padding: 0;
}

.callout ul li {
  position: relative;
  padding-left: var(--mkf-space-5);
  margin-bottom: var(--mkf-space-2);
}

.callout ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: var(--mkf-radius-full);
  background: var(--mkf-cream-500);
}

/* ── Steps ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--mkf-space-6);
  margin-top: var(--mkf-space-6);
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--mkf-space-5);
  padding: var(--mkf-space-5);
  background: var(--mkf-cream-50);
  border-radius: var(--mkf-radius-lg);
  border: 1px solid var(--mkf-cream-200);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mkf-forest-800);
  color: var(--mkf-white);
  font-family: var(--mkf-font-display);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  margin-bottom: var(--mkf-space-2);
  font-size: 18px;
}

.step-body p {
  margin-bottom: 0;
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--mkf-space-5) 0;
  font-size: 15px;
  border: 1px solid var(--mkf-cream-200);
  border-radius: var(--mkf-radius-md);
  overflow: hidden;
}

.data-table th {
  background: var(--mkf-cream-50);
  text-align: left;
  padding: var(--mkf-space-4);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mkf-cream-700);
  border-bottom: 1px solid var(--mkf-cream-200);
}

.data-table td {
  padding: var(--mkf-space-4);
  border-bottom: 1px solid var(--mkf-cream-100);
  vertical-align: top;
  color: var(--mkf-cream-700);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ── Lists ── */
.checklist,
.feature-list {
  list-style: none;
  margin: var(--mkf-space-5) 0;
  padding: 0;
}

.checklist li,
.feature-list li {
  position: relative;
  padding: var(--mkf-space-3) 0 var(--mkf-space-3) var(--mkf-space-8);
  border-bottom: 1px solid var(--mkf-cream-100);
  font-size: 16px;
  color: var(--mkf-cream-700);
  line-height: 1.65;
}

.checklist li:last-child,
.feature-list li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: var(--mkf-space-2);
  top: 18px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--mkf-forest-700);
  border-radius: 3px;
  background: var(--mkf-white);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 22px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--mkf-forest-700);
  border-bottom: 1.5px solid var(--mkf-forest-700);
  transform: rotate(-45deg);
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: var(--mkf-space-2);
  top: var(--mkf-space-3);
  color: var(--mkf-gold-500);
  font-weight: 600;
}

/* ── FAQ ── */
.faq {
  border: 1px solid var(--mkf-cream-200);
  border-radius: var(--mkf-radius-md);
  margin-bottom: var(--mkf-space-3);
  background: var(--mkf-white);
  overflow: hidden;
}

.faq summary {
  padding: var(--mkf-space-4) var(--mkf-space-5);
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--mkf-cream-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--mkf-cream-500);
  transition: transform var(--mkf-duration-fast) ease;
}

.faq[open] summary::after {
  content: '−';
}

.faq[open] summary {
  border-bottom: 1px solid var(--mkf-cream-200);
}

.faq p {
  padding: var(--mkf-space-4) var(--mkf-space-5);
  margin: 0;
  font-size: 15px;
}

/* ── Related ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mkf-space-4);
  margin-top: var(--mkf-space-5);
}

.related-card {
  display: block;
  padding: var(--mkf-space-5);
  background: var(--mkf-cream-50);
  border: 1px solid var(--mkf-cream-200);
  border-radius: var(--mkf-radius-md);
  text-decoration: none !important;
  transition: all var(--mkf-duration-fast) ease;
}

.related-card:hover {
  background: var(--mkf-white);
  border-color: var(--mkf-forest-300);
  box-shadow: var(--mkf-shadow-sm);
  transform: translateY(-1px);
}

.related-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--mkf-forest-800);
  margin-bottom: var(--mkf-space-2);
}

.related-card p {
  font-size: 14px;
  margin: 0;
  color: var(--mkf-cream-600);
}

/* ── Author-Bio ── */
.author-bio {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--mkf-space-5);
  margin-top: var(--mkf-space-12);
  padding: var(--mkf-space-6) var(--mkf-space-7);
  background: var(--mkf-cream-50);
  border: 1px solid var(--mkf-cream-200);
  border-radius: var(--mkf-radius-lg);
  align-items: start;
}

.author-bio__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mkf-forest-50);
  border: 1px solid var(--mkf-forest-300);
  color: var(--mkf-forest-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.author-bio__avatar i {
  font-size: 22px;
  line-height: 1;
}

.author-bio__avatar i.pi-pencil::before {
  /* Fallback if primeicons font not loaded */
  font-family: var(--mkf-font-body);
}

.author-bio__content h3 {
  font-family: var(--mkf-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--mkf-cream-900);
  margin: 0 0 var(--mkf-space-2);
  line-height: 1.3;
}

.author-bio__content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mkf-cream-700);
  margin: 0 0 var(--mkf-space-2);
}

.author-bio__content p:last-child {
  margin-bottom: 0;
}

.author-bio__role {
  font-size: 13px !important;
  color: var(--mkf-cream-600) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: var(--mkf-space-3) !important;
}

.author-bio time {
  font-weight: 600;
  color: var(--mkf-cream-800);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .author-bio {
    grid-template-columns: 1fr;
    gap: var(--mkf-space-3);
    padding: var(--mkf-space-5);
  }
}

/* ── CTA-Block ── */
.cta-block {
  margin-top: var(--mkf-space-12) !important;
  padding: var(--mkf-space-10) var(--mkf-space-8);
  background-color: var(--mkf-forest-900);
  background-image:
    linear-gradient(rgba(27,77,62,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,77,62,0.3) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: var(--mkf-radius-lg);
  text-align: center;
  color: var(--mkf-white);
}

.cta-block h2 {
  color: var(--mkf-white);
  font-size: 28px;
  margin-bottom: var(--mkf-space-4);
}

.cta-block p {
  color: var(--mkf-forest-200);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto var(--mkf-space-6);
}

/* ── Footer ── */
.footer {
  background: var(--mkf-forest-900);
  padding: 48px var(--mkf-space-8);
  border-top: 1px solid rgba(170, 207, 188, 0.15);
}

.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mkf-space-8);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(95%) sepia(18%) saturate(180%) hue-rotate(324deg) brightness(102%) contrast(96%);
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--mkf-forest-200);
  line-height: 1.6;
  margin: var(--mkf-space-4) 0;
}

.footer-copy {
  font-size: 12px;
  color: rgba(170, 207, 188, 0.5);
}

.footer-col-title {
  font-family: var(--mkf-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--mkf-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--mkf-space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--mkf-space-3);
}

.footer-links a {
  font-size: 13px;
  color: var(--mkf-forest-200);
  text-decoration: none;
  transition: color var(--mkf-duration-fast) ease;
}

.footer-links a:hover {
  color: var(--mkf-white);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-link {
    display: none;
  }

  .nav-brand-text {
    font-size: 13px;
  }

  .nav .btn-sm {
    font-size: 12px;
    padding: 0 var(--mkf-space-3);
    height: 32px;
    white-space: nowrap;
  }

  .article {
    padding: 40px var(--mkf-space-6) 60px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero .lead {
    font-size: 16px;
  }

  .article h2 {
    font-size: 24px;
  }

  .article h3 {
    font-size: 18px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: var(--mkf-space-3);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--mkf-space-8);
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
