/* ============================================================
   Blog Stylesheet – Fivestar Solution 24
   Design: Helles Eisblau (#f0f9ff), konsistent mit Hauptwebsite
   ============================================================ */

/* ── CSS-Variablen ── */
:root {
  --primary:    #2563eb;
  --primary-dk: #1d4ed8;
  --heading:    #1e3a5f;
  --text:       #374151;
  --muted:      #6b7280;
  --bg:         #f0f9ff;
  --bg-card:    #ffffff;
  --border:     #bfdbfe;
  --radius:     12px;
  --shadow:     0 2px 12px rgba(37,99,235,0.08);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ── HEADER ── */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--primary); }
.header-nav .btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.header-nav .btn-primary:hover { background: var(--primary-dk); }

/* ── CONTAINER ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── ARTICLE HEADER ── */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-category {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary-dk);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-meta .author { font-weight: 600; color: var(--text); }

/* ── HERO IMAGE ── */
.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

/* ── ARTICLE BODY ── */
article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-top: 40px;
  margin-bottom: 16px;
}
article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 28px;
  margin-bottom: 12px;
}
article p { margin-bottom: 20px; }
article ul, article ol {
  margin: 0 0 20px 24px;
}
article li { margin-bottom: 8px; }
article strong { color: var(--heading); font-weight: 600; }
article a { color: var(--primary); text-decoration: none; }
article a:hover { text-decoration: underline; }

/* ── IMAGES ── */
article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}

/* ── TABLES ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
thead { background: var(--primary); color: #fff; }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: #f0f9ff; }
tbody td { padding: 12px 16px; }

/* ── CTA BUTTON ── */
.cta-button, a.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none !important;
  margin: 12px 0 24px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.cta-button:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
}

/* ── NEWSLETTER-BOX (für Blog-Beiträge) ── */
.newsletter-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}
.newsletter-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}
.newsletter-box p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.newsletter-box .cta-button { margin: 0; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* ── FOOTER ── */
.site-footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 32px 24px;
  font-size: 0.875rem;
}
.site-footer a { color: #60a5fa; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-logo {
  display: block;
  margin: 0 auto 16px;
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .container { padding: 24px 16px 60px; }
  .site-header-inner { padding: 10px 16px; }
  .site-logo img { height: 40px; }
  .header-nav .btn-primary { padding: 7px 14px; font-size: 0.8rem; }
  article h2 { font-size: 1.3rem; }
  .newsletter-box { padding: 24px 16px; }
}
