:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #101729;
  --text: #1a2640;
  --text-soft: #556583;
  --line: #d8e0f0;
  --brand: #007a6c;
  --brand-strong: #005b52;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 14px 34px rgba(16, 23, 41, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  color: var(--text);
  background: linear-gradient(180deg, #eef3fb 0%, #f7f9fd 30%, #f4f7fb 100%);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: min(1220px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(244, 247, 251, 0.9);
  border-bottom: 1px solid rgba(216, 224, 240, 0.8);
}

.header-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .55rem;
  padding: .8rem 0 .9rem;
}

.site-kicker {
  margin: 0;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #203353;
}

.brand {
  text-decoration: none;
  color: var(--surface-strong);
  display: inline-flex;
  justify-content: center;
}

.brand-logo {
  width: min(420px, 88vw);
  height: auto;
}

.main-nav { width: 100%; }
.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.nav-list a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: color .2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--brand-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 2fr);
  gap: 1.3rem;
  padding: 1.4rem 0 2.2rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.post-card, .article-card { overflow: hidden; }
.post-body, .article-card { padding: clamp(1rem, 2vw, 1.4rem); }

.post-title, .article-title {
  font-family: "Fraunces", Georgia, serif;
  color: var(--surface-strong);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 .65rem;
}

.post-title { font-size: clamp(1.4rem, 2.1vw, 2rem); }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--brand-strong); }
.article-title { font-size: clamp(2rem, 3vw, 2.8rem); }

.meta-line {
  color: var(--text-soft);
  font-size: .96rem;
  display: flex;
  gap: .55rem;
  align-items: center;
  margin: 0 0 .7rem;
}

.post-cover, .article-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.cover-link { display:block; padding: .9rem .9rem 0; }

.post-excerpt,
.article-content {
  color: var(--text);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--surface-strong);
  margin: 1.4rem 0 .6rem;
  line-height: 1.2;
}

.article-content p,
.article-content li,
.post-excerpt p,
.post-excerpt li {
  color: var(--text);
}

.article-content pre,
.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.article-content pre {
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  overflow-x: auto;
}

.read-more,
.pager-link {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.read-more:hover,
.pager-link:hover { color: var(--brand); }

.tax-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: #f8fbff;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .82rem;
  text-decoration: none;
  font-weight: 600;
}

.chip-cat {
  background: rgba(0,122,108,.12);
  color: #055a50;
  border-color: rgba(0,122,108,.26);
}

.sidebar-container {
  padding: 1rem 1.05rem;
  position: sticky;
  top: 96px;
}

.side-block h3 {
  margin: 0 0 .8rem;
  color: var(--surface-strong);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .84rem;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.category-list li a {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 10px;
  padding: .55rem .7rem;
  text-decoration: none;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  font-weight: 600;
}

.category-list li a strong {
  color: var(--brand-strong);
  font-size: .86rem;
}

.category-list li a:hover {
  border-color: rgba(0,122,108,.35);
  color: var(--brand-strong);
}

.empty-state {
  color: var(--text-soft);
  font-size: .94rem;
}

.pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.site-footer {
  padding: 1.1rem 0 2rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
  font-size: .92rem;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sidebar-container {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { padding: .65rem 0 .8rem; }
  .site-kicker { font-size: .74rem; }
  .brand-logo { width: min(360px, 90vw); }
  .nav-list { gap: .75rem; justify-content: flex-start; }
  .nav-list a { font-size: .88rem; }
}

/* Landing-Startseite: Hero + Intro + letzte Artikel */
.home-hero {
  padding: 1.2rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #f7fbff 0%, #eef5ff 55%, #f9fcff 100%);
}

.home-hero-eyebrow {
  margin: 0 0 .45rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  color: #21406a;
  font-weight: 700;
}

.home-hero-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--surface-strong);
}

.home-hero-sub {
  margin: .7rem 0 0;
  color: var(--text-soft);
  font-size: 1.03rem;
  max-width: 70ch;
}

.home-intro {
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.05rem;
}

.home-latest {
  display: grid;
  gap: .9rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  color: var(--surface-strong);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.post-card-compact .post-title {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  margin-bottom: .45rem;
}

.post-card-compact .post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-soft);
  margin-bottom: .7rem;
}

@media (max-width: 900px) {
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
