/* =============================================================
   GRÜNE Wettenberg – Prototyp Designsystem
   Orientiert am Corporate Design von BÜNDNIS 90/DIE GRÜNEN
   ============================================================= */

/* ---- Design Tokens ---------------------------------------- */
:root {
  /* Farben (Grünen-CD-nah) */
  --tanne:       #005538;   /* Dunkelgrün – Primärfarbe */
  --tanne-900:   #003c28;   /* Dunkelgrün – Tiefer Ton */
  --klee:        #1a8a42;   /* Mittelgrün */
  --grashalm:    #8ed12c;   /* Hellgrün / Akzent */
  --sand:        #f4f1e8;   /* Warmer Hintergrund */
  --sand-deep:   #e9e3d2;   /* Sand dunkler */
  --sonne:       #ffd500;   /* Gelb – Highlight */
  --magenta:     #e6007e;   /* Magenta – sparsamer Akzent */
  --himmel:      #4bbfe3;   /* Hellblau – sparsamer Akzent */
  --ink:         #15241c;   /* Textfarbe */
  --ink-soft:    #41504a;   /* Sekundärtext */
  --white:       #ffffff;
  --line:        #d9d3c2;   /* Trennlinien auf Sand */

  /* Typografie */
  --font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 50, 30, 0.10);
  --shadow-sm: 0 4px 14px rgba(0, 50, 30, 0.08);
  --transition: 180ms ease;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tanne); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---- Accessibility ---------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--tanne); color: var(--white);
  padding: 10px 18px; border-radius: 8px; z-index: 999;
  font-weight: 700; transition: top var(--transition);
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout helpers --------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .kicker { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.bg-white { background: var(--white); }
.bg-sand  { background: var(--sand); }
.bg-tanne { background: var(--tanne); color: var(--white); }
.bg-tanne h1, .bg-tanne h2, .bg-tanne h3, .bg-tanne a { color: var(--white); }

.kicker {
  display: inline-block;
  font-size: .82rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--klee);
}
.bg-tanne .kicker { color: var(--grashalm); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: var(--transition);
  line-height: 1;
}
.btn--primary { background: var(--tanne); color: var(--white); }
.btn--primary:hover { background: var(--tanne-900); transform: translateY(-2px); }
.btn--sun { background: var(--sonne); color: var(--ink); }
.btn--sun:hover { background: #ffdf3d; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--tanne); border-color: var(--tanne); }
.btn--ghost:hover { background: var(--tanne); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--tanne); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* ---- Header / Navigation ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--tanne);
}
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand__sub { font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--klee); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  transition: var(--transition);
}
.nav__links a:hover { background: var(--sand); color: var(--tanne); }
.nav__links a[aria-current="page"] { color: var(--tanne); }
.nav__links a[aria-current="page"]::after {
  content: ""; display: block; height: 3px; border-radius: 3px;
  background: var(--grashalm); margin-top: 4px;
}
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: var(--sand); border: 0; border-radius: 10px;
  padding: 12px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--tanne); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Hero -------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--tanne) 0%, var(--tanne-900) 70%);
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .34;
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(0,60,40,.92) 0%, rgba(0,60,40,.45) 60%, rgba(0,60,40,.15) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: 92px 0 84px; max-width: 760px;
}
.hero h1 { color: var(--white); }
.hero__lead { font-size: 1.22rem; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__tag {
  display: inline-block; margin-bottom: 18px;
  background: var(--grashalm); color: var(--tanne-900);
  font-weight: 800; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
}

/* ---- Grids ------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- News cards ------------------------------------------- */
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: var(--transition);
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media {
  aspect-ratio: 16 / 10; background: var(--klee);
  background-size: cover; background-position: center;
}
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  background: var(--sand); color: var(--klee);
}
.tag--cat { background: var(--tanne); color: var(--white); }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--tanne); }
.card__date { font-size: .85rem; color: var(--ink-soft); margin-bottom: 10px; }
.card__excerpt { color: var(--ink-soft); font-size: .98rem; margin-bottom: 16px; }
.card__more { margin-top: auto; font-weight: 700; color: var(--tanne); text-decoration: none; }
.card__more:hover { text-decoration: underline; }

/* ---- Theme tiles ------------------------------------------ */
.theme-tile {
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; min-height: 210px;
  padding: 22px; border-radius: var(--radius);
  background: var(--tanne); color: var(--white);
  text-decoration: none; overflow: hidden;
  transition: var(--transition);
}
.theme-tile:hover { transform: translateY(-4px); }
.theme-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,60,40,0) 35%, rgba(0,50,33,.9) 100%);
}
.theme-tile__icon {
  position: relative; z-index: 2; width: 46px; height: 46px;
  margin-bottom: auto;
}
.theme-tile__label { position: relative; z-index: 2; }
.theme-tile h3 { color: var(--white); margin: 0 0 4px; font-size: 1.3rem; }
.theme-tile p { position: relative; z-index: 2; margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); }
.theme-tile--klee { background: var(--klee); }
.theme-tile--grashalm { background: #5fae28; }
.theme-tile--sun { background: #c9a200; }
.theme-tile--himmel { background: #2f93b8; }
.theme-tile--magenta { background: #b8226e; }

/* ---- Standpunkt / Spotlight ------------------------------- */
.spotlight {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.spotlight__media { background-size: cover; background-position: center; min-height: 340px; background-color: var(--klee); }
.spotlight__body { padding: 48px; }
.spotlight__body h2 { font-size: 1.9rem; }
.spotlight blockquote {
  margin: 0 0 18px; padding-left: 18px;
  border-left: 5px solid var(--grashalm);
  font-size: 1.15rem; font-weight: 600;
}
.spotlight__body p { color: var(--ink-soft); }

/* ---- Termine ---------------------------------------------- */
.events { display: flex; flex-direction: column; gap: 12px; }
.event {
  display: flex; align-items: center; gap: 22px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
  transition: var(--transition);
}
.event:hover { box-shadow: var(--shadow-sm); }
.event__date {
  flex: none; width: 78px; text-align: center;
  background: var(--sand); border-radius: 10px; padding: 10px 6px;
}
.event__day { display: block; font-size: 1.7rem; font-weight: 800; color: var(--tanne); line-height: 1; }
.event__mon { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--klee); margin-top: 4px; }
.event__info h3 { margin: 0 0 3px; font-size: 1.1rem; }
.event__info p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.event__time { margin-left: auto; font-weight: 700; color: var(--tanne); white-space: nowrap; }

/* ---- People ----------------------------------------------- */
.person { text-align: center; }
.person__photo {
  width: 132px; height: 132px; border-radius: 50%;
  margin: 0 auto 14px; background: var(--klee);
  background-size: cover; background-position: center;
  border: 4px solid var(--white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; color: var(--white);
}
.person h3 { margin: 0 0 2px; font-size: 1.12rem; }
.person p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ---- Mitmachen band --------------------------------------- */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.join-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 28px;
}
.join-card h3 { color: var(--white); }
.join-card p { color: rgba(255,255,255,.82); font-size: .96rem; }

/* ---- Newsletter ------------------------------------------- */
.newsletter {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.newsletter input {
  flex: 1; min-width: 220px; font-family: inherit; font-size: 1rem;
  padding: 13px 16px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--white);
}
.newsletter input:focus-visible { outline-offset: 0; border-color: var(--tanne); }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--tanne-900); color: rgba(255,255,255,.8); }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding: 56px 0 36px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .95rem; }
.footer-brand p { font-size: .95rem; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: .8rem;
}
.footer-social a:hover { background: var(--grashalm); color: var(--tanne-900); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: .85rem; align-items: center;
}
.footer-bottom .footer-bottom__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---- Breadcrumb ------------------------------------------- */
.breadcrumb { font-size: .88rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a { color: var(--klee); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Article ---------------------------------------------- */
.article { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.article__header { margin-bottom: 26px; }
.article__title { margin: 12px 0 14px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: .92rem; }
.article__hero {
  width: 100%; aspect-ratio: 16/8; border-radius: var(--radius-lg);
  background-size: cover; background-position: center; background-color: var(--klee);
  margin-bottom: 30px;
}
.article__body { font-size: 1.07rem; }
.article__body h2 { font-size: 1.55rem; margin-top: 1.6em; }
.article__body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.article__body blockquote {
  margin: 1.4em 0; padding: 18px 24px;
  background: var(--sand); border-left: 5px solid var(--grashalm);
  border-radius: 0 10px 10px 0; font-weight: 600;
}
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 36px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { font-weight: 700; }
.share a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tanne); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 800; font-size: .82rem;
}
.share a:hover { background: var(--klee); }

/* ---- Accordion (Themen) ----------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-trigger {
  width: 100%; text-align: left; background: var(--white);
  border: 0; cursor: pointer; font-family: inherit;
  padding: 22px 24px; display: flex; align-items: center; gap: 16px;
  font-size: 1.18rem; font-weight: 800; color: var(--ink);
}
.acc-trigger:hover { background: var(--sand); }
.acc-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--sand); display: flex; align-items: center; justify-content: center;
}
.acc-plus { margin-left: auto; flex: none; transition: transform var(--transition); color: var(--klee); font-size: 1.5rem; }
.acc-trigger[aria-expanded="true"] .acc-plus { transform: rotate(45deg); }
.acc-panel { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 280ms ease; }
.acc-panel[hidden] { display: block; }
.acc-panel__inner { padding: 4px 0 24px; color: var(--ink-soft); }
.acc-panel__inner ul { margin-top: 6px; }

/* ---- Pagebanner ------------------------------------------- */
.pagebanner { background: linear-gradient(160deg, var(--tanne), var(--tanne-900)); color: var(--white); }
.pagebanner__inner { padding: 56px 0; max-width: 720px; }
.pagebanner h1 { color: var(--white); margin-bottom: 12px; }
.pagebanner p { color: rgba(255,255,255,.88); font-size: 1.1rem; margin: 0; }

/* ---- Misc -------------------------------------------------- */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.note {
  background: var(--sonne); color: var(--ink);
  font-size: .82rem; font-weight: 700; text-align: center;
  padding: 8px 16px;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { min-height: 230px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding: 52px 0; }
  .nav-toggle { display: flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px 22px 22px; gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 12px; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__actions .btn span.nav__actions-label { display: inline; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__inner { padding: 64px 0 58px; }
  .spotlight__body { padding: 30px; }
  .event { flex-wrap: wrap; }
  .event__time { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
