:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f3faf6;
  --text: #0b1220;
  --muted: #44505f;
  --border: rgba(11,18,32,.10);
  --shadow: 0 18px 50px rgba(11,18,32,.10);
  --shadow2: 0 10px 24px rgba(11,18,32,.08);

  /* Vorgabe */
  --brand: #005437;
  --brand-dark: #003a27;
  --brand-tint: #e6f1ec;

  /* Akzent */
  --accent: #f0d000;
  --radius: 20px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(0,84,55,.12), transparent 60%),
    radial-gradient(820px 520px at 100% 26%, rgba(0,58,39,.10), transparent 62%),
    radial-gradient(700px 500px at 55% 105%, rgba(0,84,55,.06), transparent 62%),
    linear-gradient(180deg, #ffffff, #fbfdfc 55%, #ffffff);
  color: var(--text);
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 16px; top: 16px;
  width:auto; height:auto;
  padding:10px 12px;
  border-radius: 999px;
  background: var(--surface);
  border:1px solid var(--border);
  z-index: 9999;
  box-shadow: var(--shadow2);
}

/* Header */
.site-header{
  position: relative;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(11,18,32,.06);
  transition: none;
}
.site-header.is-scrolled{
  background: rgba(255,255,255,.88);
  border-bottom-color: rgba(11,18,32,.10);
  box-shadow: var(--shadow2);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand-logo{
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, var(--surface2));
  border: 1px solid var(--border);
  padding: 7px;
  box-shadow: 0 10px 26px rgba(0,84,55,.10);
}
.brand-title{
  font-weight: 860;
  letter-spacing: -.2px;
}
.brand-subtitle{
  color: var(--muted);
  font-size: .92rem;
}

.top-nav{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}
.top-nav a{
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 700;
}
.top-nav a:hover{
  border-color: rgba(0,84,55,.18);
  background: rgba(0,84,55,.06);
  text-decoration: none;
}

/* Hero */
.hero{
  position: relative;
  padding: 34px 0 12px;
  overflow: hidden;
}
.hero-backdrop{
  position:absolute;
  inset: -40px -60px auto -60px;
  height: 240px;
  background:
    radial-gradient(220px 180px at 20% 40%, rgba(0,84,55,.18), transparent 60%),
    radial-gradient(260px 190px at 55% 10%, rgba(0,84,55,.10), transparent 62%),
    radial-gradient(280px 200px at 95% 60%, rgba(240,208,0,.14), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}
.hero h1{
  font-size: clamp(1.7rem, 1.25rem + 1.4vw, 2.55rem);
  margin: 6px 0 10px;
  letter-spacing: -.6px;
}
.hero h1::after{
  content:"";
  display:block;
  width: 92px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(0,84,55,.18));
  margin-top: 12px;
}
.hero-meta{
  margin: 0 0 10px;
  color: rgba(0,58,39,.85);
  font-weight: 700;
  font-size: .95rem;
}
.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 92ch;
}
.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.notice{
  border: 1px solid rgba(0,84,55,.22);
  background: linear-gradient(180deg, rgba(0,84,55,.08), rgba(0,84,55,.05));
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #0f3d20;
}

/* Sections */
.section{
  padding: 22px 0 26px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.section h2{
  font-size: 1.25rem;
  margin: 0 0 12px;
  letter-spacing: -.2px;
}
.filters{ display:flex; gap: 10px; flex-wrap: wrap; align-items:center; 
  margin-bottom: 12px;
}
.filter-hint{
  color: var(--muted);
  font-weight: 750;
  padding-right: 2px;
}
.chip{
  appearance: none;
  border: 1px solid rgba(0,84,55,.18);
  background: rgba(0,84,55,.06);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.chip:hover{ transform: translateY(-1px); }
.chip.is-active{
  border-color: rgba(0,84,55,.40);
  background: rgba(0,84,55,.12);
}

/* Cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 6;
  border: 1px solid rgba(11,18,32,.10);
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  min-height: 450px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(11,18,32,.14);
  border-color: rgba(0,84,55,.20);
}
.card-top{ padding: 16px 16px 10px; }
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,84,55,.08);
  border: 1px solid rgba(0,84,55,.22);
  font-weight: 850;
  font-size: .85rem;
  color: var(--brand-dark);
}
.card h3{
  margin: 10px 0 4px;
  font-size: 1.08rem;
  letter-spacing: -.2px;
}
.muted{ color: var(--muted); }
.small-note{
  margin: 10px 0 0;
  font-size: .92rem;
  color: var(--brand-dark);
  background: rgba(0,84,55,.06);
  border: 1px dashed rgba(0,84,55,.28);
  padding: 9px 10px;
  border-radius: 16px;
}

.preview{
  margin: 0 16px 0;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,.10);
  background: linear-gradient(180deg, #ffffff, #f4faf7);
  overflow: hidden;
  height: 245px;
}
.preview object{
  width: 100%;
  height: 100%;
  display:block;
  border: 0;
}
.preview-fallback{
  height: 100%;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px;
  text-align:center;
}
.pdf-icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(0,84,55,.18);
  display:grid;
  place-items:center;
  font-weight: 950;
  color: var(--brand);
  background: rgba(0,84,55,.06);
}

.card-actions{
  display:flex;
  gap: 10px;
  padding: 12px 16px 16px;
  margin-top: auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.12);
  background: #ffffff;
  text-decoration:none;
  font-weight: 900;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(11,18,32,.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn-ico{ display:inline-flex; }
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(11,18,32,.08);
}
.btn:active{ transform: translateY(0px); }

.btn.primary{
  border-color: rgba(0,84,55,.35);
  background: linear-gradient(180deg, rgba(0,84,55,.16), rgba(0,84,55,.08));
  color: var(--brand-dark);
}

/* Info panels */
.two-col{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.panel{
  border: 1px solid rgba(11,18,32,.10);
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow2);
}
.panel h3{ margin: 0 0 10px; letter-spacing: -.2px; }
.panel ul{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.callout{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(0,84,55,.18);
  background: rgba(0,84,55,.06);
  color: var(--muted);
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(11,18,32,.08);
  background:
    radial-gradient(700px 420px at 10% 0%, rgba(0,84,55,.08), transparent 62%),
    #ffffff;
  margin-top: 18px;
  padding: 22px 0 12px;
}
.footer-inner{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.footer-col{
  grid-column: span 4;
  border: 1px solid rgba(11,18,32,.10);
  background: linear-gradient(180deg, var(--surface2), #ffffff);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow2);
}
.footer-title{
  font-size: 1.0rem;
  margin: 0 0 8px;
  letter-spacing: -.2px;
}
.footer-link{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,84,55,.25);
  background: rgba(0,84,55,.06);
  color: var(--brand-dark);
  font-weight: 900;
}
.footer-bottom{
  padding: 14px 0 0;
  display:flex;
  justify-content: space-between;
  align-items:center;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 920px){
  .card{ grid-column: span 12; }
  .two-col{ grid-template-columns: 1fr; }
  .footer-col{ grid-column: span 12; }
  .top-nav{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
  .card:hover, .btn:hover, .chip:hover{ transform: none; }
}

.footer-col.wide{ grid-column: span 8; }

.footer-col.impressum-full{ grid-column: span 12; }

.footer-col.ds-link{ grid-column: span 12; }
.footer-col.ds-link .footer-link{ width: fit-content; }

.privacy h1{ margin-top: 0; font-size: 1.6rem; letter-spacing: -.4px; }
.privacy h2{ margin-top: 1.25rem; font-size: 1.15rem; letter-spacing: -.2px; }
.privacy p, .privacy li, .privacy div{ color: var(--muted); }
.privacy ul{ padding-left: 18px; }
.privacy a{ text-decoration: underline; text-underline-offset: 3px; }

/* Candidate lists */
.cand{ margin-top: 12px; padding: 12px; border-radius: 18px; border: 1px solid rgba(0,84,55,.16); background: rgba(0,84,55,.04); }
.cand-head{ font-weight: 900; color: var(--brand-dark); margin-bottom: 4px; }
.cand-sub{ color: var(--muted); font-weight: 700; margin-top: 6px; }
.cand-list{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.cand-list li{ margin: 2px 0; }
.hero-panel{ margin-top: 10px; }

.cand-inline{ margin: 10px 0 0; color: var(--muted); font-weight: 650; }
.fb-btn{
  border-color: rgba(0,84,55,.30);
  background: linear-gradient(180deg, rgba(0,84,55,.12), rgba(0,84,55,.06));
  color: var(--brand-dark);
}

.hero{ padding: 30px 0 10px; }

.intro-panel{
  margin-top: 14px;
  border: 1px solid rgba(0,84,55,.20);
  background: linear-gradient(180deg, rgba(0,84,55,.08), rgba(0,84,55,.04));
}
.intro-panel p{ margin: 10px 0; }
.notice-inline{ font-size: .95rem; }

.cards{ display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card{ grid-column: span 6; }
@media (max-width: 900px){ .card{ grid-column: span 12; } }

/* Kartenraster */
.cards{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card{ grid-column: span 6; }
@media (max-width: 900px){ .card{ grid-column: span 12; } }

.preview{ overflow: hidden; }
.preview iframe, .preview object, .preview embed{
  width: 100%;
  height: 100%;
  display: block;
}

.preview img{ width:100%; height:100%; object-fit: contain; background: rgba(0,84,55,.03); }

.preview{ aspect-ratio: 3 / 4; min-height: 420px; }
@media (max-width: 600px){ .preview{ min-height: 520px; } }

.back-to-top{
  position: relative;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0,84,55,.28);
  background: rgba(255,255,255,.92);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce){
  .back-to-top{ transition: none; }
}

.footer-copy{ text-align:center; width:100%; }

.center-cta{ display:flex; justify-content:center; margin-top: 12px; }
.vote-btn{
  border-color: rgba(0,84,55,.34);
  background: linear-gradient(180deg, rgba(0,84,55,.16), rgba(0,84,55,.08));
  color: var(--brand-dark);
}

.stack{ display:grid; gap: 20px; }

/* Mehr Abstand zwischen Karten */
.cards{ gap: 22px !important; margin-top: 18px; }

.preview object{ width:100%; height:100%; }

.vote-btn{ text-align:center; }
.vote-btn .btn-sub{
  display:block;
  font-size:.8rem;
  font-weight:500;
  opacity:.85;
}

/* Wahl-Button: Text einheitlich, fett, mittig */
.vote-btn{
  display: inline-block;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
}

/* Gleichmäßige Abstände rechte Spalte */
.stack{ gap: 24px !important; }
.stack .panel{ margin-bottom: 0; }

/* Zusätzliche Leerzeile zwischen rechten Blöcken */
.stack-spacer{ height: 12px; }

.footer-copy{ text-align:center !important; width:100%; }

/* Header: nicht sticky/fixed, kein Scroll-Shadow */
.site-header, header.site-header{
  position: static !important;
  top: auto !important;
  box-shadow: none !important;
}
.site-header *{ box-shadow: none !important; }

/* Info-Block zwischen Wahlprogramm und Über uns */
.moved-info .panel{ margin-top: 0; }
.moved-info{ margin-top: 18px; }

/* Responsive PDF Preview */
.preview{
  background: transparent;
}
.pdf-thumb-link{
  display:none;
  text-decoration:none;
}
.pdf-thumb{
  width:100%;
  height:auto;
  display:block;
  border-radius: 14px;
  border: 1px solid rgba(0,84,55,.18);
  background: #fff;
}
.preview object{
  width:100%;
  height:100%;
  display:block;
  border-radius: 14px;
  border: 1px solid rgba(0,84,55,.18);
  background: #fff;
}

/* Mobile: use thumbnail instead of embedded PDF viewer (avoids grey margins in browser viewer) */
@media (max-width: 700px){
  .preview{ min-height: auto !important; aspect-ratio: auto !important; }
  .preview object{ display:none !important; }
  .pdf-thumb-link{ display:block; }
  .card-actions a.btn{ width:100%; justify-content:center; }
  .center-actions{ flex-direction: column; }
}

/* Tablet/Desktop: embedded viewer */
@media (min-width: 701px){
  .pdf-thumb-link{ display:none; }
  .preview object{ display:block; }
}

/* General responsive polish */
.top-nav{ flex-wrap: wrap; gap: 10px; }
.hero-title{ line-height: 1.15; }
.section{ padding-top: 28px; padding-bottom: 28px; }


/* Desktop/Tablet: Preview-Höhe ohne Leerraum */
@media (min-width: 701px){
  .preview{
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: clamp(320px, 42vw, 520px);
  }
}
@media (min-width: 1200px){
  .preview{
    height: clamp(360px, 28vw, 520px);
  }
}

/* Filter: stabil auf allen Geräten */
.filters{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-hint{ font-weight: 800; }
.chip{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.chip:focus{ outline: 2px solid rgba(0,84,55,.35); outline-offset: 2px; }


.card[hidden]{ display:none !important; }
