/* ===== Variables ===== */
:root {
  --green: #16a34a;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --amber: #f59e0b;
  --bg: #f0fdf4;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --max-width: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ===== Navigation ===== */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; color: var(--green-700); }
.nav-logo .bolt { font-size: 1.25rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-links .btn-wa {
  background: #25D366;
  color: white !important;
  padding: 0.4375rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.nav-links .btn-wa:hover { background: #1da851; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(140deg, #15803d 0%, #166534 60%, #14532d 100%);
  color: white;
  padding: 2rem 0 1.75rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '⚡';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
}
.hero-inner { position: relative; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.25rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.625rem;
  max-width: 640px;
}
.hero p {
  font-size: 1rem;
  opacity: 0.88;
  max-width: 520px;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-white { background: white; color: var(--green); }
.btn-white:hover { background: var(--green-100); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); text-decoration: none; }

/* ===== WhatsApp Banner ===== */
.wa-banner {
  background: #25D366;
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.wa-banner-icon { font-size: 2rem; flex-shrink: 0; }
.wa-banner-text { flex: 1; min-width: 200px; }
.wa-banner-text strong { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.wa-banner-text span { font-size: 0.875rem; opacity: 0.9; }
.wa-banner-btn {
  background: white;
  color: #15803d;
  padding: 0.625rem 1.25rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.wa-banner-btn:hover { background: var(--green-100); text-decoration: none; }

/* ===== Sections ===== */
.section { padding: 2.5rem 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green);
}
.section-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
}
.section-link { font-size: 0.875rem; color: var(--green); font-weight: 600; }

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.125rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.badge-aktuell { background: #fef3c7; color: #92400e; }
.badge-ratgeber { background: var(--green-100); color: #14532d; }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--green); text-decoration: none; }
.card-date { font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.card-readmore { margin-top: auto; color: var(--green); font-weight: 600; font-size: 0.875rem; align-self: flex-start; }
.card-readmore:hover { text-decoration: underline; }

/* ===== Article Page ===== */
.article-header { padding: 2rem 0 1.5rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); text-decoration: none; }
.breadcrumb-sep { color: var(--border); }
.article-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.article-meta .badge { margin: 0; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding-bottom: 4rem;
  align-items: start;
}
.article-body img { border-radius: 0.5rem; margin: 1.25rem 0; max-width: 100%; }
.article-body h2 { font-size: 1.375rem; font-weight: 700; margin: 2.25rem 0 0.75rem; color: var(--text); }
.article-body h3 { font-size: 1.125rem; font-weight: 700; margin: 1.75rem 0 0.5rem; color: var(--text); }
.article-body p { margin-bottom: 1rem; line-height: 1.8; font-size: 1rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body strong { font-weight: 700; }
.article-body a { color: var(--green); text-decoration: underline; }
.article-body a:hover { color: var(--green-700); }
.info-box {
  background: var(--green-50);
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.info-box p { margin: 0; font-size: 0.9375rem; }
.warn-box {
  background: #fffbeb;
  border-left: 4px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.warn-box p { margin: 0; font-size: 0.9375rem; }
.fact-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9375rem; }
.fact-table th, .fact-table td { text-align: left; padding: 0.625rem 0.875rem; border: 1px solid var(--border); }
.fact-table th { background: var(--green-50); font-weight: 600; width: 40%; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 80px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.875rem; color: var(--text); }
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.sidebar-card ul li a {
  display: block;
  color: var(--text);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
  transition: color 0.15s;
}
.sidebar-card ul li:last-child a { border-bottom: none; }
.sidebar-card ul li a:hover { color: var(--green); text-decoration: none; }
.sidebar-wa {
  background: #25D366;
  color: white;
  border: none;
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.sidebar-wa .wa-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.sidebar-wa h3 { color: white; font-size: 1rem; margin-bottom: 0.375rem; }
.sidebar-wa p { font-size: 0.8125rem; opacity: 0.9; margin-bottom: 1rem; }
.sidebar-wa a {
  display: block;
  background: white;
  color: #15803d;
  padding: 0.625rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}
.sidebar-wa a:hover { background: var(--green-100); }

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand .footer-logo {
  font-size: 1.0625rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.footer-brand p { font-size: 0.8125rem; max-width: 280px; }
.footer-links-list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-list a { color: #94a3b8; font-size: 0.875rem; }
.footer-links-list a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: #475569;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 1rem;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero::before { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
}
