/* ===== Nordwald Vermögen — Blog Stylesheet ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:     #1a4fd6;
  --brand-dk:  #1240b0;
  --brand-lt:  #e8effe;
  --text:      #1a1d23;
  --muted:     #5c6370;
  --border:    #e2e6ed;
  --bg:        #ffffff;
  --bg-off:    #f7f9fc;
  --radius:    8px;
  --max-w:     1100px;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }

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

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header / Nav ── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.18rem; color: var(--text); text-decoration: none;
}
.site-logo .logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; letter-spacing: -.5px;
  flex-shrink: 0;
}
.site-logo span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 8px 18px; border-radius: 6px; font-size: 0.88rem !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--brand-dk) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0d2f8a 0%, #1a4fd6 60%, #3b72f5 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; max-width: 640px; margin-bottom: 16px; }
.hero p { font-size: 1.08rem; opacity: .85; max-width: 520px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stat span { font-size: 0.82rem; opacity: .7; }

/* ── Section headings ── */
.section-header { text-align: center; padding: 56px 0 36px; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; }
.section-header p { color: var(--muted); margin-top: 8px; font-size: 1.02rem; }

/* ── Category strip ── */
.category-strip { padding: 16px 0; border-bottom: 1px solid var(--border); }
.cat-list { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-list::-webkit-scrollbar { display: none; }
.cat-pill {
  white-space: nowrap; padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--border); font-size: 0.84rem; font-weight: 500;
  color: var(--muted); transition: all .2s; cursor: pointer; text-decoration: none;
}
.cat-pill:hover, .cat-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }

/* ── Article grid ── */
.articles-section { padding: 48px 0 64px; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 28px; }

.article-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: 0 8px 32px rgba(26,79,214,.1); transform: translateY(-2px); }
.card-image {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.74rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 8px;
}
.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--text); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted); padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-meta .read-time { display: flex; align-items: center; gap: 4px; }
.read-more { font-size: 0.84rem; font-weight: 600; color: var(--brand); }

/* ── Featured article (first item spans 2 cols) ── */
.article-card.featured { grid-column: span 2; flex-direction: row; }
.article-card.featured .card-image { height: auto; min-height: 200px; width: 300px; flex-shrink: 0; }
.article-card.featured .card-title { font-size: 1.3rem; }
@media (max-width: 720px) {
  .article-card.featured { grid-column: span 1; flex-direction: column; }
  .article-card.featured .card-image { width: auto; height: 180px; }
}

/* ── Article page ── */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 72px; }
.article-main {}
.article-sidebar {}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { opacity: .5; }

.article-header { margin-bottom: 32px; }
.article-category {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.article-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.article-header .meta { display: flex; align-items: center; gap: 16px; font-size: 0.86rem; color: var(--muted); flex-wrap: wrap; }
.article-header .meta .author { font-weight: 600; color: var(--text); }

.article-cover {
  width: 100%; height: 340px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; margin-bottom: 36px;
}

.article-body { font-size: 1.02rem; line-height: 1.8; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-lt); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--brand); background: var(--brand-lt);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0; font-style: italic; color: var(--muted);
}
.article-body strong { font-weight: 700; }
.article-body code { background: var(--bg-off); padding: 2px 7px; border-radius: 4px; font-size: .9em; font-family: 'Fira Code', monospace; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0; }
.article-tag {
  padding: 5px 14px; border-radius: 100px; background: var(--bg-off);
  border: 1px solid var(--border); font-size: 0.82rem; color: var(--muted);
}

/* ── Sidebar ── */
.sidebar-widget { margin-bottom: 32px; }
.sidebar-widget h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sidebar-article { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article-thumb { width: 48px; height: 48px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.sidebar-article-info .title { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 3px; }
.sidebar-article-info .title a { color: inherit; text-decoration: none; }
.sidebar-article-info .title a:hover { color: var(--brand); }
.sidebar-article-info .date { font-size: 0.78rem; color: var(--muted); }
.sidebar-cta { background: var(--brand-lt); border-radius: var(--radius); padding: 20px; text-align: center; }
.sidebar-cta p { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.sidebar-cta a { display: inline-block; background: var(--brand); color: #fff; padding: 9px 20px; border-radius: 6px; font-size: 0.88rem; font-weight: 600; }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

/* ── About / Info pages ── */
.page-hero { background: var(--bg-off); border-bottom: 1px solid var(--border); padding: 56px 0 48px; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 580px; }
.page-body { padding: 48px 0 72px; }
.page-body h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; }
.page-body p { margin-bottom: 16px; color: var(--text); line-height: 1.8; }
.page-body ul { margin: 0 0 16px 24px; }
.page-body li { margin-bottom: 8px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0 72px; }
.contact-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 14px; font-size: 0.95rem; font-family: var(--font);
  color: var(--text); background: var(--bg); margin-bottom: 18px;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); outline: none; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--brand); color: #fff; border: none; border-radius: 6px;
  padding: 12px 28px; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: background .2s;
}
.contact-form button:hover { background: var(--brand-dk); }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-icon { width: 42px; height: 42px; border-radius: 8px; background: var(--brand-lt); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.info-item strong { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.info-item span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Success message ── */
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 0.92rem; }

/* ── Footer ── */
.site-footer { background: #111827; color: #9ca3af; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .6px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #9ca3af; font-size: 0.88rem; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; font-size: 0.82rem; }
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 32px 0 16px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--border);
  font-size: 0.88rem; color: var(--muted); transition: all .2s;
}
.pagination a:hover, .pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }

/* ── 404 ── */
.not-found { text-align: center; padding: 100px 24px; }
.not-found h1 { font-size: 5rem; font-weight: 900; color: var(--brand); line-height: 1; }
.not-found h2 { font-size: 1.6rem; margin: 12px 0 8px; }
.not-found p { color: var(--muted); margin-bottom: 24px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .articles-grid { grid-template-columns: 1fr; }
}
