/* Erfrischungs-Layer: dickere, mutigere Setzungen ohne das Grund-System zu brechen */

/* ---------- Global feel: tighter noise texture on bg ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 600px at 90% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 700px 500px at -10% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  opacity: 0.8;
}
body > * { position: relative; z-index: 1; }

/* ---------- Hero refresh ---------- */
.hero-refresh {
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero-bg-balls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  color: var(--accent);
}
.bg-ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent) 0%, var(--accent-strong) 55%, color-mix(in srgb, var(--accent) 40%, #000) 100%);
  opacity: 0.12;
  filter: blur(1px);
}
.bg-ball-1 { width: 340px; height: 340px; top: -80px; right: -60px; animation: float-a 14s ease-in-out infinite; }
.bg-ball-2 { width: 220px; height: 220px; bottom: 10%; left: -70px; animation: float-b 18s ease-in-out infinite; opacity: 0.09; }
.bg-ball-3 { width: 120px; height: 120px; top: 40%; right: 32%; animation: float-c 12s ease-in-out infinite; opacity: 0.14; }
@keyframes float-a { 0%,100%{transform:translate(0,0) rotate(0)} 50%{transform:translate(-30px,40px) rotate(20deg)} }
@keyframes float-b { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }
@keyframes float-c { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-20px,20px) scale(1.15)} }

.hero-squiggle {
  position: absolute;
  bottom: 8%;
  left: 2%;
  width: 200px;
  height: 30px;
  color: var(--accent);
  opacity: 0.35;
}

/* ---------- Giant kinetic headline ---------- */
.hero-giant {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(62px, 13vw, 200px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 56px);
  text-wrap: balance;
}
.hg-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}
.hg-row-2 { justify-content: flex-end; margin-top: -0.05em; }
.hg-word { display: inline-block; }
.hg-italic { font-style: italic; font-weight: 500; color: var(--text-dim); font-family: var(--font-display); }
.hg-outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
  font-style: italic;
}
[data-variant="mutig"] .hg-outline { -webkit-text-stroke-width: 3px; }
.hg-mark {
  display: inline-grid;
  place-items: center;
  width: clamp(50px, 8vw, 120px);
  height: clamp(50px, 8vw, 120px);
  flex-shrink: 0;
}
.hg-ball svg { width: 100%; height: 100%; animation: ball-spin 8s linear infinite; }
@keyframes ball-spin { to { transform: rotate(360deg); } }

/* ---------- Below-headline split ---------- */
.hero-below {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .hero-below { grid-template-columns: 1fr; } }

.hero-sub-refresh {
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--text-dim);
  line-height: 1.35;
  max-width: 48ch;
  text-wrap: pretty;
}
.hero-sub-refresh strong { color: var(--text); font-weight: 600; }

/* ---------- Live heartbeat ---------- */
.hero-heartbeat {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hb-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hb-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 160px;
  height: 28px;
}
.hb-bar span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
  opacity: 0.85;
}

/* ---------- Visual side with sticker + floating tags ---------- */
.hero-visual-refresh {
  position: relative;
  min-height: 440px;
}
.hero-sticker {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 130px;
  height: 130px;
  z-index: 3;
  color: var(--accent);
  animation: sticker-spin 18s linear infinite;
  pointer-events: none;
}
[data-variant="konservativ"] .hero-sticker { color: var(--text); }
@keyframes sticker-spin { to { transform: rotate(360deg); } }

.float-tag {
  position: absolute;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  min-width: 140px;
  z-index: 2;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  animation: ft-bob 5s ease-in-out infinite;
}
.float-tag-2 { transform: rotate(4deg); animation-delay: -2s; animation-duration: 6s; }
@keyframes ft-bob { 0%,100%{transform:rotate(-3deg) translateY(0)} 50%{transform:rotate(-3deg) translateY(-6px)} }
.float-tag-1 { bottom: 18%; left: -10px; }
.float-tag-2 { top: 10%; left: -20px; }
@media (max-width: 900px) {
  .float-tag-1 { left: 10px; bottom: 10%; }
  .float-tag-2 { left: auto; right: 10px; top: 40px; }
}
.ft-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
[data-variant="konservativ"] .ft-num { color: var(--text); }
.ft-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 6px;
  line-height: 1.3;
}

/* ---------- Court card ---------- */
.court-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}
.court-card:hover { transform: rotate(0deg); }
.court-card-inner {
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: stretch;
}
.court-card-inner svg { width: 100%; height: 100%; }
.cc-ball { animation: cc-bounce 2.4s ease-in-out infinite; transform-origin: 160px 200px; }
@keyframes cc-bounce {
  0% { transform: translate(60px, -110px); }
  50% { transform: translate(0, 0); }
  100% { transform: translate(-60px, 110px); }
}
.court-card-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 6px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ---------- Stat rail ---------- */
.stat-rail {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
@media (max-width: 700px) { .stat-rail { grid-template-columns: 1fr 1fr; gap: 24px 0; } }
.sr-cell {
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.sr-cell:last-child { border-right: 0; }
@media (max-width: 700px) {
  .sr-cell:nth-child(2n) { border-right: 0; }
  .sr-cell:nth-child(-n+2) { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
}
.sr-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.sr-sm {
  font-size: 0.45em;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.02em;
}
[data-variant="konservativ"] .sr-sm { color: var(--text); }
.sr-lbl {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Ticker refresh: alt bars ---------- */
.ticker-refresh {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  margin-top: clamp(32px, 5vw, 56px);
}
.ticker-refresh .ticker-track { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.ticker-refresh .ticker-item::after { color: var(--accent-ink); }

/* ---------- Pill live ---------- */
.pill-live { border-color: var(--accent); color: var(--accent); }
[data-variant="konservativ"] .pill-live { color: var(--text); border-color: var(--text); }

/* ---------- Alternating section bands & angled dividers ---------- */
section { position: relative; }
section.wip,
section#meilensteine,
section#community {
  background: var(--bg-elev);
}
section:not(.wip):not(#meilensteine):not(#community):not(.hero):not(.hero-refresh) + section:not(.wip):not(#meilensteine):not(#community) {
  border-top: 1px solid var(--border);
}

/* ---------- Section lead refresh: bigger number + dash ---------- */
.section-lead {
  font-size: 13px;
}

/* ---------- H-section refresh: allow bigger ---------- */
.h-section {
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -0.035em;
}

/* ---------- Outline variant for h-section headlines ---------- */
.h-section em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
[data-variant="konservativ"] .h-section em { color: var(--text); }

/* ---------- Feature cards: hover accent bar ---------- */
.features-grid .card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.features-grid .card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.features-grid .card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.features-grid .card:hover::after { transform: scaleX(1); }

/* ---------- Tier: arrow hover ---------- */
.tier { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.tier:hover { box-shadow: var(--shadow); }
.tier.featured { transform: rotate(-1deg); }
.tier.featured:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- Milestones: connecting line ---------- */
.milestones-grid { position: relative; }
.milestones-grid::before {
  content: '';
  position: absolute;
  left: 28px; right: 28px;
  top: 42px;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
@media (max-width: 900px) { .milestones-grid::before { display: none; } }
.milestone { position: relative; z-index: 1; }

/* ---------- Supporter chip hover ---------- */
.supporter-chip { transition: all 0.15s ease; }
.supporter-chip:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Quote mark on testimonials ---------- */
.testimonial { position: relative; }
.testimonial::before {
  content: '"';
  position: absolute;
  top: -30px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}

/* ---------- Blog card accent ---------- */
.blog-card { position: relative; }
.blog-card::before {
  content: '→';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.blog-card:hover::before {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translate(2px, -2px);
}

/* ---------- FAQ: accent on open ---------- */
.faq-item.open { padding-left: 16px; border-left: 3px solid var(--accent); }
.faq-item { transition: padding-left 0.25s ease, border-left 0.25s ease; border-left: 3px solid transparent; }

/* ---------- Utility: tape badge ---------- */
.tape {
  position: absolute;
  padding: 4px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---------- Grundriss overlap hard-fix (override) ---------- */
.gr-frame {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
}
@media (max-width: 900px) {
  .gr-frame { grid-template-columns: minmax(0, 1fr) !important; }
}
.gr-canvas, .gr-info {
  min-width: 0 !important;
  max-width: 100%;
}
.gr-canvas svg { max-width: 100%; }
