:root {
  --primary: #1b5e20;
  --primary-dark: #0f3d13;
  --accent: #d32f2f;
  --bg: #f8faf8;
  --surface: #ffffff;
  --text: #2c3e50;
  --text-muted: #555555;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 40px 20px 20px;
  text-align: center;
}

.logo-container {
  max-width: 420px;
  margin: 0 auto 20px;
}

.logo-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

main {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
}

h1, h2, h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

h1 {
  font-size: 1.8rem;
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-bottom: 25px;
}

.argument-list {
  list-style: none;
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.argument-list li {
  padding: 14px 18px;
  background: #f1f8f3;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

/* ---------- Sprungmarken unter dem Logo ---------- */
html {
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.jump-nav a {
  padding: 10px 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.jump-nav a:hover,
.jump-nav a:focus-visible {
  background: var(--primary);
  color: #ffffff;
}

.jump-nav a:focus-visible {
  outline: 3px solid #81c784;
  outline-offset: 2px;
}

/* ---------- Aktiv werden & informiert bleiben ---------- */
.engage h2 {
  text-align: center;
}

.engage-intro {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.engage-block {
  margin-top: 28px;
  text-align: center;
}

.engage-block h3 {
  margin-bottom: 6px;
}

.engage-block p {
  max-width: 520px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.engage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

/* Desktop: Kontakt und Soziales links übereinander, die hohe WhatsApp-Kachel rechts */
.engage-tile--contact {
  grid-column: 1;
  grid-row: 1;
}

.engage-tile--qr {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
}

.engage-tile--social {
  grid-column: 1;
  grid-row: 2;
}

.engage-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f8f3;
  text-align: center;
}

.engage-tile h3 {
  margin: 0;
  font-size: 1.05rem;
}

.engage-tile p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  white-space: nowrap;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #b71c1c;
}

.whatsapp-qr {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.qr-hint {
  margin-top: -4px;
}

.whatsapp-button {
  display: none;
  padding: 12px 24px;
  background-color: #1faa59;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.whatsapp-button:hover {
  background-color: #178a47;
}

/* Auf Smartphones kann man den QR-Code nicht mit demselben Gerät scannen: dort Button statt Code */
@media (max-width: 600px) {
  .engage-grid {
    grid-template-columns: 1fr;
  }

  .engage-tile--contact,
  .engage-tile--qr,
  .engage-tile--social {
    grid-column: auto;
    grid-row: auto;
  }

  .whatsapp-button {
    display: inline-block;
  }

  .whatsapp-qr,
  .qr-hint {
    display: none;
  }
}

footer {
  background: #263238;
  color: #eceff1;
  padding: 40px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-content h2 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-top: 25px;
  border-bottom: 1px solid #455a64;
  padding-bottom: 5px;
}

.footer-content h2:first-of-type {
  margin-top: 0;
}

.footer-content a {
  color: #81c784;
}

/* ---------- Aktuelles & Downloads ---------- */
[hidden] {
  display: none !important;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.link-button {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.link-button:hover {
  background: var(--primary);
  color: #ffffff;
}

.link-button:focus-visible {
  outline: 3px solid #81c784;
  outline-offset: 2px;
}

.news-list,
.download-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.news-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #fbfdfb;
}

.news-item time {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.news-item h3 {
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

.news-item p {
  white-space: pre-line;
}

.news-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.section-actions {
  margin-top: 22px;
  text-align: center;
}

.page-nav {
  margin-bottom: 20px;
}

.news-status {
  color: var(--text-muted);
  text-align: center;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfb;
}

.download-icon {
  flex: 0 0 auto;
  line-height: 0;
}

.download-body {
  flex: 1;
  min-width: 0;
}

.download-body h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.download-body p {
  font-size: 0.95rem;
}

.download-meta {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .download-item {
    flex-wrap: wrap;
  }

  .download-body {
    flex-basis: calc(100% - 60px);
  }

  .download-item .link-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 20px;
  }
  h1 {
    font-size: 1.5rem;
  }
}
