/* =====================================================================
   Energiegerechtigkeit – Volksbegehren
   Stylesheet
   ===================================================================== */

:root {
  --primary: #0a4f3c;
  --primary-dark: #073a2c;
  --primary-light: #1a6c54;
  --accent: #f5b800;
  --accent-dark: #d49d00;
  --text: #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --bg: #fafaf7;
  --bg-alt: #f0ede5;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-dark: #d1d5db;

  --shadow-sm: 0 1px 2px rgba(10, 79, 60, .04);
  --shadow: 0 4px 12px rgba(10, 79, 60, .08);
  --shadow-lg: 0 12px 32px rgba(10, 79, 60, .12);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Charter', 'Iowan Old Style', 'Georgia Pro', Georgia, Cambria, 'Times New Roman', serif;

  --container: 1200px;
}

/* ---- Reset / Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
  /* Verhindert, dass Anchor-Sprünge unter dem sticky Header landen */
  scroll-padding-top: 140px;
}
@media (max-width: 768px) {
  html { scroll-padding-top: 110px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 100px; }
}
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-anchor: none;
}
/* Word-break for long German words on narrow screens */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary-dark); }

::selection { background: var(--accent); color: var(--text); }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }

/* Alle Sections nutzen die gleiche Container-Breite (1200px) — sonst
   springt das Layout zwischen Hero und Inhalts-Sections sichtbar. */

section { padding: 80px 0; }
@media (max-width: 768px) {
  section { padding: 56px 0; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  section { padding: 44px 0; }
  .container { padding: 0 16px; }
  body { font-size: 15.5px; }
  h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); margin-bottom: 1rem; }
  h2 { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  p.lead { font-size: 1.05rem; }
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); margin-bottom: .5rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--text-muted); }
p.lead { font-size: 1.2rem; color: var(--text); line-height: 1.55; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
  display: inline-block;
}

.section-intro { margin-bottom: 56px; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .96);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-logo-bar {
  display: flex; justify-content: center; align-items: center;
  padding: 28px 24px 14px;
  transition: padding .3s ease;
}
.site-header.scrolled .header-logo-bar {
  padding: 10px 24px 6px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.brand-logo {
  height: 220px !important; width: auto; max-width: 100%;
  object-fit: contain;
  transition: height .3s ease;
  display: block;
}
.site-header.scrolled .brand-logo {
  height: 56px !important;
}

.header-nav-bar {
  border-top: 1px solid rgba(0, 0, 0, .04);
}
.nav { display: flex; align-items: center; justify-content: center; padding: 10px 0; min-height: 48px; position: relative; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn { padding: 10px 18px; font-size: .9rem; }

@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .88rem; }
}

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .header-logo-bar { padding: 16px 24px 8px; }
  .brand-logo { height: 130px !important; }
  .site-header.scrolled .brand-logo { height: 48px !important; }
  .site-header.scrolled .header-logo-bar { padding: 8px 24px 4px; }
}
@media (max-width: 768px) {
  .nav { justify-content: center; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border: 0; }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  .header-logo-bar { padding: 12px 16px 6px; }
  .brand-logo { height: 84px; }
  .site-header.scrolled .brand-logo { height: 38px; }
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 184, 0, .12) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(10, 79, 60, .08) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; max-width: 540px; }
.hero-meta {
  display: inline-flex; gap: 12px; align-items: center;
  background: var(--bg-alt);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 500;
  max-width: 100%;
}
.hero-meta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 184, 0, .25);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: stretch;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-visual { max-width: 720px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-visual { max-width: 100%; }
  .hero { padding: 40px 0 60px; }
}

/* ---- Hero Visual: Houses Flow ---- */
.houses-flow {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 8px 24px rgba(10, 79, 60, .08));
  border-radius: 16px;
}

/* ---- Tooltip (für Fachbegriffe wie SoMa) ---- */
.has-tooltip {
  border-bottom: 1px dotted var(--primary);
  cursor: help;
  position: relative;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--text);
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: normal;
  width: 280px;
  max-width: 80vw;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.has-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border: 6px solid transparent;
  border-top-color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 101;
}
.has-tooltip:hover::after, .has-tooltip:hover::before,
.has-tooltip:focus::after, .has-tooltip:focus::before,
.has-tooltip.tooltip-active::after, .has-tooltip.tooltip-active::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px) {
  .has-tooltip::after { width: 240px; }
}

/* ---- Sections ---- */
.section-problem { background: var(--bg); }
.section-solution { background: var(--bg-alt); }
.section-impact { background: var(--bg); }
.section-justice { background: var(--bg); }
.section-supporters { background: var(--bg-alt); padding: 64px 0; }
.section-action { background: var(--primary); color: white; }
.section-fund { background: var(--bg); }
.section-action h2,
.section-action h3,
.section-action p,
.section-action strong { color: white; }
.section-action p { color: rgba(255, 255, 255, .85); }
.section-action .eyebrow { color: var(--accent); }
.section-faq { background: var(--bg-alt); }
.section-about { background: var(--bg); }

/* ---- Cards Grid ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
@media (max-width: 480px) {
  .cards { gap: 16px; }
}
.card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
@media (max-width: 480px) {
  .card { padding: 24px 22px; }
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 16px;
  background: rgba(245, 184, 0, .15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---- Fund / Spenden ---- */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 1000px) {
  .fund-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .fund-grid { grid-template-columns: 1fr; }
}
.fund-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.fund-card-bank { border-left: 4px solid var(--primary); }
.fund-card-institution { border-left: 4px solid var(--accent); }
.fund-card-paypal { border-left: 4px solid #003087; }

.fund-paypal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #003087;
  color: white;
  border-color: #003087;
  width: 100%;
}
.fund-paypal-btn:hover { background: #001f5c; border-color: #001f5c; color: white; }
.fund-paypal-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.fund-card-paypal .fund-note { margin-top: 14px !important; }
.fund-card h3 { margin-bottom: 6px; font-family: var(--font-display); }
.fund-card > p { color: var(--text-muted); margin-bottom: 16px; }

.fund-bank-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 8px 0 12px;
}
.fund-iban, .fund-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-dark);
}
.fund-iban:last-child, .fund-detail:last-child { border-bottom: 0; }
.fund-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fund-iban-value {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
  word-break: break-all;
}
.fund-iban-value.is-pending {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
  font-family: var(--font-sans);
}
.fund-note {
  font-size: .88rem;
  color: var(--text-light);
  font-style: italic;
  margin: 8px 0 0 !important;
}

.fund-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.fund-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: .95rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.fund-list li:last-child { border-bottom: 0; }
.fund-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--primary);
  font-weight: 700;
}

.fund-usage {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.fund-usage-title {
  font-family: var(--font-display);
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.fund-usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}
.fund-usage-table th,
.fund-usage-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.fund-usage-table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 700;
}
.fund-usage-table td:nth-child(2),
.fund-usage-table td:nth-child(3),
.fund-usage-table th:nth-child(2),
.fund-usage-table th:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fund-usage-table .fund-total td { font-weight: 700; background: var(--bg-alt); }
.fund-usage-table .fund-back td { color: var(--primary); font-weight: 600; }
.fund-usage-table .fund-net td { border-top: 2px solid var(--primary); background: rgba(10, 79, 60, .06); font-size: 1.05rem; }

.fund-legal {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: .92rem;
}
.fund-legal h4 {
  font-family: var(--font-sans);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.fund-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fund-legal li {
  padding: 6px 0;
  color: var(--text-muted);
  line-height: 1.55;
}
.fund-legal li strong { color: var(--text); }

@media (max-width: 768px) {
  .fund-grid { grid-template-columns: 1fr; }
  .fund-card, .fund-usage, .fund-legal { padding: 24px 20px; }
  .fund-usage-table { font-size: .88rem; }
  .fund-usage-table th, .fund-usage-table td { padding: 8px 6px; }
}

/* ---- Supporters Marquee (Endlos-Karussell mit pause-on-hover) ---- */
.supporters-intro {
  text-align: center;
  margin-bottom: 36px;
}
.supporters-intro .eyebrow { display: inline-block; }
.supporters-intro h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 8px;
}
.supporters-intro p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

.supporters-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.supporters-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
  will-change: transform;
}
.supporters-marquee:hover .supporters-track,
.supporters-marquee:focus-within .supporters-track {
  animation-play-state: paused;
}
.supporters-marquee.is-static {
  -webkit-mask-image: none;
          mask-image: none;
}
.supporters-marquee.is-static .supporters-track {
  animation: none;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.supporters-marquee.is-static .supporter-item[aria-hidden="true"] {
  display: none;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 24px)); } /* -50% minus halber gap */
}

.supporter-item {
  flex-shrink: 0;
  height: 96px;
  min-width: 180px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-align: center;
  line-height: 1.25;
}
.supporter-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.supporter-item img {
  max-height: 60px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.supporter-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: -.005em;
}
.supporter-text .sub {
  display: block;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.supporters-cta {
  text-align: center;
  margin-top: 28px;
  font-size: .95rem;
  color: var(--text-muted);
}
.supporters-cta a {
  color: var(--primary);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .supporters-track { animation: none; }
  .supporters-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}
@media (max-width: 768px) {
  .supporters-track { gap: 28px; animation-duration: 30s; }
  .supporter-item { height: 80px; min-width: 150px; padding: 12px 18px; }
  .supporter-item img { max-height: 48px; max-width: 130px; }
  .supporter-text { font-size: .92rem; }
}

/* ---- Justice (Physik vs. Verrechnung) ---- */
.justice-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.justice-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}
.justice-col.justice-real {
  border-left: 4px solid var(--primary);
  background: #f0f7f4;
}
.justice-col.justice-bill {
  border-left: 4px solid #b91c1c;
  background: #fcf2f2;
}
.justice-tag {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.6);
}
.justice-col p { font-size: .98rem; line-height: 1.6; }
.justice-col p:last-child { margin-bottom: 0; }

.justice-conclusion {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.justice-conclusion h3 {
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.justice-flow {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
}
.justice-flow-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.justice-flow-item strong {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.justice-flow-item p { margin: 0; font-size: .94rem; color: var(--text); }
.justice-loss { color: #b91c1c; }
.justice-win  { color: #8a5e00; }
.justice-flow-arrow {
  font-size: 2rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 300;
}
.justice-headline {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.justice-headline-claim {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin: 0 auto 24px;
  max-width: 800px;
}
.justice-footnote {
  text-align: center;
  font-size: .9rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .justice-compare { grid-template-columns: 1fr; }
  .justice-flow { grid-template-columns: 1fr; gap: 12px; }
  .justice-flow-arrow { transform: rotate(90deg); }
  .justice-conclusion { padding: 28px 22px; }
  .justice-col { padding: 24px 20px; }
}

/* ---- Scenarios (Verbraucher / Erzeuger) ---- */
.scenarios-intro p { font-size: 1.05rem; }

.scenario {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.scenario:last-child { margin-bottom: 0; }

.scenario-header { margin-bottom: 28px; }
.scenario-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.scenario-tag-consumer {
  background: rgba(10, 79, 60, .1);
  color: var(--primary);
}
.scenario-tag-producer {
  background: rgba(245, 184, 0, .18);
  color: #8a5e00;
}
.scenario-title {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}
.scenario-setup {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}
.scenario-setup strong { color: var(--text); }

.scenario-case {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}
.scenario-case:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.case-context { margin-bottom: 18px; }
.case-tag {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text);
}
.case-tag-summer { background: #fef3cb; color: #8a5e00; }
.case-tag-winter { background: #e1ecf8; color: #1f4d7a; }
.case-detail {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}
.case-detail strong { color: var(--text); }

.case-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.case-side {
  padding: 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.case-side h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.case-bad { border-left: 4px solid #b91c1c; background: #fcf2f2; }
.case-bad h4 { color: #b91c1c; }
.case-good { border-left: 4px solid var(--primary); background: #f0f7f4; }
.case-good h4 { color: var(--primary); }

.case-list { list-style: none; padding: 0; margin: 0 0 12px; }
.case-list li {
  padding: 6px 0;
  font-size: .96rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.case-list li em { color: var(--text-light); font-size: .88rem; font-style: normal; }
.case-amount {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
  min-width: 64px;
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: -.005em;
}
.case-amount-bad { color: #b91c1c; }
.case-bad .case-amount { color: #6b3030; }
.case-good .case-amount { color: var(--primary); }

.case-note {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}
.case-saving {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(10, 79, 60, .08);
  border-radius: 6px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.6;
}
.case-saving strong { color: var(--primary); }

@media (max-width: 768px) {
  .scenario { padding: 28px 22px; }
  .case-comparison { grid-template-columns: 1fr; gap: 14px; }
  .case-side { padding: 18px 18px; }
}
@media (max-width: 480px) {
  .scenario { padding: 24px 18px; margin-bottom: 20px; }
  .scenario-title { font-size: 1.18rem; }
  .case-amount { min-width: 56px; font-size: 1rem; }
}

/* ---- Cascade Diagram (full Section) ---- */
.cascade-diagram {
  background: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  margin-top: 32px;
  border: 1px solid var(--border);
}
@media (max-width: 480px) {
  .cascade-diagram { padding: 24px 20px; }
}
.cascade-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cascade-row:last-child { border: 0; }
.cascade-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: white;
}
.cascade-num.lvl-1 { background: var(--primary); }
.cascade-num.lvl-2 { background: var(--primary-light); }
.cascade-num.lvl-3 { background: #4a8d77; }
.cascade-num.lvl-4 { background: #84a99c; }
.cascade-content h4 { margin-bottom: 4px; }
.cascade-content p { margin: 0; font-size: .92rem; color: var(--text-muted); }
.cascade-tag {
  font-size: .78rem; font-weight: 600;
  background: var(--bg-alt);
  padding: 4px 10px; border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cascade-row { grid-template-columns: 44px 1fr; }
  .cascade-tag { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* ---- Action / USE-Section ---- */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.action-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  padding: 36px 32px;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
@media (max-width: 480px) {
  .action-card { padding: 26px 22px; }
}
.action-card h3 { color: white; margin-bottom: .5rem; display: flex; align-items: center; gap: 12px; }
.action-card h3 svg { width: 26px; height: 26px; flex-shrink: 0; }
.action-card ol { margin: 16px 0 24px; padding-left: 20px; color: rgba(255,255,255,.9); }
.action-card ol li { margin-bottom: 6px; }
.action-card .btn { width: 100%; }
.action-card .btn-primary { background: var(--accent); color: var(--text); }
.action-card .btn-secondary { color: white; border-color: rgba(255,255,255,.4); }
.action-card .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: white; }

@media (max-width: 768px) {
  .action-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Stats / Counter ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-top: 40px;
  padding: 32px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; padding: 24px 20px; }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .92rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ---- FAQ ---- */
.faq-list { width: 100%; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-body { padding: 0 24px 24px; color: var(--text-muted); }
.faq-item-body p:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .faq-item summary { padding: 16px 18px; font-size: 1rem; gap: 12px; }
  .faq-item-body { padding: 0 18px 20px; font-size: .95rem; }
}

/* ---- About / Contact ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
}
.contact-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-top: 16px; }
.contact-box dt { font-weight: 600; color: var(--text); }
.contact-box dd { color: var(--text-muted); word-break: break-word; }
.contact-box a { color: var(--primary); word-break: break-word; }
@media (max-width: 480px) {
  .contact-box { padding: 24px 20px; }
  .contact-box dl { grid-template-columns: 1fr; gap: 4px 0; }
  .contact-box dt { margin-top: 8px; }
}

/* ---- Initiator:innen ---- */
.initiators {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.initiators h3 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: var(--text);
}
.initiators-intro {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: .98rem;
}
.initiators-intro a { color: var(--primary); text-decoration: underline; }
.initiator-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.initiator-grid:last-child { margin-bottom: 0; }
.initiator-grid-main {
  grid-template-columns: 1fr;
}
.initiator-grid-stv {
  grid-template-columns: repeat(2, 1fr);
}
.initiator-grid-vacancies {
  grid-template-columns: repeat(2, 1fr);
}
.initiator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.initiator-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.initiator-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}
.initiator-meta h4 { margin: 0 0 6px; }
.initiator-meta .initiator-role,
.initiator-meta .initiator-location { margin-bottom: 6px; }
.initiator-meta .initiator-location:last-child { margin-bottom: 0; }
.initiator-card .initiator-header + p { margin: 0; }
@media (max-width: 480px) {
  .initiator-header { gap: 14px; }
}
.initiator-card-filled {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(10, 79, 60, 0.08);
}
.initiator-card-confirmed {
  background: white;
  border-color: rgba(10, 79, 60, 0.5);
}
.initiator-card-empty {
  background: rgba(245, 184, 0, 0.04);
  border-style: dashed;
  border-color: rgba(10, 79, 60, 0.25);
}
.initiator-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.initiator-location svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--primary); }
.initiator-card-empty .initiator-location { color: var(--text-light); font-style: italic; }
.initiator-card-empty .initiator-location svg { color: var(--text-light); }
.initiator-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent, #f5b800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.initiator-avatar-empty {
  background: #e5e7eb;
  color: #9ca3af;
}
.initiator-avatar-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center top;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(10, 79, 60, 0.12);
  display: block;
}
.initiator-photo-link {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 50%;
  text-decoration: none;
  cursor: zoom-in;
  transition: transform .2s ease;
}
.initiator-photo-link:hover { transform: scale(1.03); }
.initiator-photo-link .initiator-avatar-photo { margin-bottom: 0; }
.initiator-photo-hint {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  border: 2px solid white;
}
.initiator-photo-hint svg { width: 14px; height: 14px; }
.initiator-press {
  margin-top: 12px !important;
  font-size: .8rem !important;
  color: var(--text-light) !important;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.initiator-press a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}
.initiator-card h4 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--text);
}
.initiator-role {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.initiator-role-primary {
  color: var(--primary);
  background: rgba(10, 79, 60, 0.08);
}
.initiator-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.initiator-card-empty h4 {
  color: var(--text-muted);
  font-style: italic;
}
@media (max-width: 700px) {
  .initiator-grid-main { grid-template-columns: 1fr; }
  .initiator-grid-vacancies { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .initiators { margin-top: 48px; padding-top: 36px; }
}

/* ---- Newsletter Form ---- */
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1; min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  width: 100%;
}
.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 79, 60, .15);
}
.newsletter button[disabled] { opacity: .6; cursor: progress; }
.newsletter-status {
  margin-top: 12px;
  font-size: .92rem;
  line-height: 1.5;
  min-height: 0;
}
.newsletter-status.is-success {
  color: var(--primary);
  background: rgba(10, 79, 60, .08);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}
.newsletter-status.is-error {
  color: #b91c1c;
  background: rgba(220, 38, 38, .08);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid #b91c1c;
}
.newsletter-status.is-info {
  color: var(--text);
  background: var(--bg-alt);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--text-light);
}
@media (max-width: 480px) {
  .newsletter { flex-direction: column; gap: 10px; }
  .newsletter button { width: 100%; }
}

/* ---- Modal (Volksbegehren-Hinweis) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius-lg);
  padding: 44px 40px 36px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: translateY(20px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }
.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(245, 184, 0, .18);
  color: #8a5e00;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.modal-icon svg { width: 30px; height: 30px; }
.modal h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-bottom: 14px;
  line-height: 1.25;
}
.modal p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.55; }
.modal p strong { color: var(--text); }
.modal .newsletter { margin-top: 8px; }
.modal-fineprint {
  font-size: .82rem !important;
  color: var(--text-light) !important;
  margin-top: 12px;
  margin-bottom: 0 !important;
}
body.modal-open { overflow: hidden; }
@media (max-width: 480px) {
  .modal { padding: 36px 24px 28px; }
  .modal-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .modal-icon svg { width: 26px; height: 26px; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
  font-size: .92rem;
}
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 12px; max-width: 320px; }
.footer-section h4 { color: white; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-weight: 600; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}

/* ---- Utility / A11y ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-row, .action-grid { display: none; }
  body { background: white; color: black; }
  section { padding: 24px 0; }
}
