/* SEO Shell Styling - Minimales CSS für Static HTML vor React-Hydration */
:root {
  --brand: #059669;
  --brand-dark: #047857;
  --text: #1a202c;
  --muted: #64748b;
  --bg: #ffffff;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.seo-nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.seo-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.seo-logo .ki {
  color: var(--brand);
}

.seo-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

.seo-nav a:hover {
  color: var(--brand);
}

/* Breadcrumbs */
.seo-breadcrumb {
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--muted);
}

.seo-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.seo-breadcrumb a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.seo-breadcrumb span {
  margin: 0 0.5rem;
}

/* Header/Main Content */
.seo-header {
  padding: 2.5rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.seo-header h1 {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.seo-header > p:first-of-type {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
}

.seo-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem 0;
  color: var(--text);
}

.seo-header h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--text);
}

.seo-header p {
  margin: 0 0 1rem 0;
  color: var(--text);
}

.seo-header ul {
  padding-left: 1.25rem;
  margin: 0 0 1.5rem 0;
}

.seo-header li {
  margin: 0.5rem 0;
  color: var(--text);
}

.seo-header li strong {
  color: var(--text);
}

.seo-header a {
  color: var(--brand);
  text-decoration: none;
}

.seo-header a:hover {
  text-decoration: underline;
}

/* CTA Button */
.seo-cta {
  display: inline-block;
  background: var(--brand);
  color: white !important;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 1.5rem 0 0 0;
  transition: background 0.15s;
}

.seo-cta:hover {
  background: var(--brand-dark);
}

/* Related Links Section */
.seo-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.seo-related h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.seo-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.seo-related-links a {
  color: var(--brand);
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  background: #f0fdf4;
  border-radius: 0.375rem;
  border: 1px solid #bbf7d0;
  transition: all 0.15s;
}

.seo-related-links a:hover {
  background: #dcfce7;
  border-color: var(--brand);
}

/* Footer */
.seo-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.seo-footer a {
  color: var(--muted);
  text-decoration: none;
}

.seo-footer a:hover {
  color: var(--brand);
}

/* Responsive */
@media (max-width: 640px) {
  .seo-nav {
    padding: 1rem;
    gap: 1rem;
  }
  
  .seo-header {
    padding: 1.5rem 1rem 2rem;
  }
  
  .seo-header h1 {
    font-size: 1.5rem;
  }
  
  .seo-footer {
    padding: 1rem;
    gap: 1rem;
  }
}

/* ===================================
   Blog Article Styles
   =================================== */

/* Article Meta */
.seo-article-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Featured Image */
.seo-featured-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

/* Article Content - Prose-like styling */
.seo-article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.seo-article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.seo-article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.seo-article-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.seo-article-content p {
  margin-bottom: 1.25rem;
}

.seo-article-content ul,
.seo-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.seo-article-content li {
  margin-bottom: 0.5rem;
}

.seo-article-content blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

.seo-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.seo-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.seo-article-content th,
.seo-article-content td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.seo-article-content th {
  background: #f8fafc;
  font-weight: 600;
}

.seo-article-content code {
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.seo-article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.seo-article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Secondary CTA */
.seo-cta-secondary {
  background: transparent;
  color: var(--brand) !important;
  border: 2px solid var(--brand);
  margin-right: 1rem;
}

.seo-cta-secondary:hover {
  background: var(--brand);
  color: white !important;
}

/* ===================================
   Blog Index / Grid Styles
   =================================== */

.seo-blog-index {
  max-width: 1100px;
}

.seo-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.seo-blog-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.2s, transform 0.2s;
}

.seo-blog-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.seo-blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.seo-blog-card-content {
  padding: 1.25rem;
}

.seo-blog-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.seo-blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.seo-blog-card h2 a:hover {
  color: var(--brand);
}

.seo-blog-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-blog-card-date {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Responsive Blog */
@media (max-width: 640px) {
  .seo-blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .seo-article-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .seo-featured-img {
    max-height: 250px;
  }
  
  .seo-cta-secondary {
    margin-right: 0;
    margin-bottom: 0.75rem;
    display: block;
    text-align: center;
  }
}
