/*
Theme Name: Waldkraft Magazin
Theme URI: https://magazin.waldkraft.bio/
Author: Paperclip Agent
Description: Magazin-Theme fuer den Waldkraft-Monatsfokus.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: waldkraft-magazin
*/

:root {
  --wk-bg: #f5f3ee;
  --wk-bg-soft: #faf8f2;
  --wk-surface: #ffffff;
  --wk-accent: #2f6f4f;
  --wk-accent-dark: #1f4f38;
  --wk-gold: #b48a4a;
  --wk-text: #243127;
  --wk-muted: #5b655d;
  --wk-border: #d8ddd5;
  --wk-radius-lg: 18px;
  --wk-radius-md: 12px;
  --wk-shadow: 0 12px 30px rgba(31, 79, 56, 0.08);
  --wk-wrap: min(1180px, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--wk-text);
  background: radial-gradient(circle at 12% 0%, #fffdf9 0%, var(--wk-bg) 42%, #f0ede6 100%);
  line-height: 1.65;
}

a { color: var(--wk-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wk-accent-dark); }

h1, h2, h3 {
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
p { margin: 0 0 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(250, 248, 242, 0.88);
  border-bottom: 1px solid rgba(47, 111, 79, 0.14);
}
.site-header__inner {
  width: var(--wk-wrap);
  margin: 0 auto;
  padding: 0.95rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-branding__title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-branding__title a { color: var(--wk-text); text-decoration: none; }
.site-branding__tagline {
  margin: 0.25rem 0 0;
  color: var(--wk-muted);
  font-size: 0.86rem;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--wk-text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--wk-accent); }

.main-content {
  width: var(--wk-wrap);
  margin: 0 auto;
  padding: 2.4rem 0 4.5rem;
}

.hero {
  background: linear-gradient(140deg, #1f4f38 0%, #2f6f4f 65%, #427a5c 100%);
  color: #f8fbf8;
  border-radius: var(--wk-radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--wk-shadow);
  margin-bottom: 2.1rem;
}
.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.74rem;
  color: #d9eadf;
  margin-bottom: 0.75rem;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.9rem;
}
.hero__text {
  max-width: 68ch;
  color: #e8f4ec;
  margin-bottom: 1.35rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}
.btn--light {
  background: #f8fbf8;
  color: var(--wk-accent-dark);
}
.btn--ghost {
  border-color: rgba(248, 251, 248, 0.55);
  color: #f8fbf8;
}

.section {
  margin-top: 2.25rem;
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.section__sub {
  color: var(--wk-muted);
  margin: 0;
  font-size: 0.95rem;
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.rubric-card {
  background: var(--wk-surface);
  border: 1px solid var(--wk-border);
  border-radius: var(--wk-radius-md);
  padding: 1.2rem;
  box-shadow: 0 5px 18px rgba(36, 49, 39, 0.05);
}
.rubric-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}
.rubric-card p {
  color: var(--wk-muted);
  margin-bottom: 0.75rem;
}
.rubric-card a { font-family: "Manrope", system-ui, sans-serif; font-weight: 700; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.teaser-card {
  background: var(--wk-surface);
  border: 1px solid var(--wk-border);
  border-radius: var(--wk-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.teaser-card__body {
  padding: 1rem 1rem 1.15rem;
}
.teaser-card__meta {
  margin: 0 0 0.6rem;
  color: var(--wk-muted);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.teaser-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.teaser-card p {
  color: var(--wk-muted);
  margin-bottom: 0.9rem;
}
.teaser-card__link {
  margin-top: auto;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
}

.content-shell {
  background: var(--wk-surface);
  border: 1px solid var(--wk-border);
  border-radius: var(--wk-radius-lg);
  padding: clamp(1.2rem, 2.8vw, 2rem);
}
.entry-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.entry-meta {
  color: var(--wk-muted);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.5rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.2rem; }

.site-footer {
  border-top: 1px solid rgba(47, 111, 79, 0.16);
  background: rgba(255, 255, 255, 0.48);
}
.site-footer__inner {
  width: var(--wk-wrap);
  margin: 0 auto;
  padding: 1.2rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--wk-muted);
}

@media (max-width: 980px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; }
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  html { font-size: 15px; }
  .main-content { width: min(100% - 1.25rem, 1180px); }
  .rubric-grid,
  .teaser-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: auto; }
}
