/* =========================================================
   Winkels.dev V3 Frontend
   Datei: /src/farbe/v3.css
   Ziel: modernes, konsistentes Frontend ohne API-Änderungen.
   Scope: .v3-* Klassen + kleine globale Theme-Ergänzungen.
   ========================================================= */

:root {
  --v3-bg: #020617;
  --v3-bg-soft: #07111f;
  --v3-card: rgba(15, 23, 42, 0.72);
  --v3-card-strong: rgba(15, 23, 42, 0.92);
  --v3-border: rgba(148, 163, 184, 0.18);
  --v3-border-strong: rgba(139, 92, 246, 0.42);
  --v3-text: #f8fafc;
  --v3-muted: #aab4c6;
  --v3-muted-2: #7f8aa3;
  --v3-primary: #8b5cf6;
  --v3-primary-2: #22d3ee;
  --v3-primary-3: #ec4899;
  --v3-success: #22c55e;
  --v3-warning: #f59e0b;
  --v3-radius: 24px;
  --v3-radius-sm: 18px;
  --v3-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --v3-max: 1180px;
}

* {
  box-sizing: border-box;
}

body.theme-dark {
  background:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.13), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(236, 72, 153, 0.11), transparent 34rem),
    linear-gradient(180deg, var(--v3-bg), #030712 55%, var(--v3-bg));
  color: var(--v3-text);
}

.v3-page {
  width: min(var(--v3-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.v3-shell {
  position: relative;
}

.v3-glow {
  position: fixed;
  pointer-events: none;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.v3-glow::before,
.v3-glow::after {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .28;
}

.v3-glow::before {
  top: -14rem;
  left: -12rem;
  background: var(--v3-primary);
}

.v3-glow::after {
  right: -14rem;
  top: 10rem;
  background: var(--v3-primary-2);
}

.v3-glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    var(--v3-card);
  border: 1px solid var(--v3-border);
  border-radius: var(--v3-radius);
  box-shadow: var(--v3-shadow);
  backdrop-filter: blur(18px);
}

.v3-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.v3-hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, .32), transparent 30rem),
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, .16), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(236, 72, 153, .13), transparent 25rem);
}

.v3-hero > * {
  position: relative;
  z-index: 1;
}

.v3-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  padding: .42rem .82rem;
  border-radius: 999px;
  color: #dcd6ff;
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .015em;
  background: rgba(139, 92, 246, .16);
  border: 1px solid rgba(139, 92, 246, .35);
}

.v3-hero h1 {
  max-width: 850px;
  margin: 1rem 0 1rem;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: .94;
  letter-spacing: -.06em;
  color: var(--v3-text);
}

.v3-gradient {
  background: linear-gradient(135deg, #ffffff, #dcd6ff 45%, #67e8f9 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v3-lead {
  max-width: 760px;
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.6rem;
}

.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .82rem 1.16rem;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--v3-text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.v3-btn:hover {
  transform: translateY(-2px);
}

.v3-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-primary), var(--v3-primary-3));
  box-shadow: 0 18px 36px rgba(139, 92, 246, .3);
}

.v3-btn-secondary {
  color: var(--v3-text);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(148, 163, 184, .24);
}

.v3-btn-secondary:hover {
  border-color: var(--v3-border-strong);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
}

.v3-hero-stack {
  display: grid;
  gap: .9rem;
}

.v3-mini {
  padding: 1rem;
  border-radius: var(--v3-radius-sm);
  background: rgba(2, 6, 23, .5);
  border: 1px solid rgba(148, 163, 184, .16);
}

.v3-mini strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}

.v3-mini span {
  display: block;
  margin-top: .25rem;
  color: var(--v3-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.v3-status-card {
  padding: 1rem;
  border-radius: var(--v3-radius-sm);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(139, 92, 246, .08)),
    rgba(2, 6, 23, .55);
  border: 1px solid rgba(148, 163, 184, .18);
}

.v3-status-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  color: var(--v3-muted);
  margin-top: .55rem;
}

.v3-status-dot {
  width: .68rem;
  height: .68rem;
  border-radius: 999px;
  background: var(--v3-success);
  box-shadow: 0 0 18px rgba(34, 197, 94, .65);
}

.v3-section {
  margin-top: 2rem;
}

.v3-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.v3-section-head h2 {
  margin: .65rem 0 .2rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  letter-spacing: -.035em;
}

.v3-section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--v3-muted);
  line-height: 1.65;
}

.v3-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.v3-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.v3-card {
  min-height: 190px;
  padding: 1.25rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.v3-card:hover {
  transform: translateY(-4px);
  border-color: var(--v3-border-strong);
  box-shadow: 0 24px 55px rgba(0,0,0,.35), 0 0 28px rgba(139,92,246,.14);
}

.v3-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(139, 92, 246, .18);
  border: 1px solid rgba(139, 92, 246, .26);
  font-size: 1.35rem;
}

.v3-card h3 {
  margin: 0 0 .55rem;
  font-size: 1.18rem;
}

.v3-card p {
  margin: 0;
  color: var(--v3-muted);
  line-height: 1.6;
}

.v3-stat {
  min-height: 132px;
  padding: 1.25rem;
}

.v3-stat-value {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.055em;
}

.v3-stat-label {
  display: block;
  margin-top: .55rem;
  color: var(--v3-muted);
  font-weight: 750;
}

.v3-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.v3-support::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 20% 10%, rgba(236, 72, 153, .20), transparent 26rem),
    radial-gradient(circle at 90% 20%, rgba(34, 211, 238, .16), transparent 24rem);
  pointer-events: none;
}

.v3-support > * {
  position: relative;
  z-index: 1;
}

.v3-support h2 {
  margin: .75rem 0 .75rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -.04em;
}

.v3-support p {
  color: #d7ddea;
  line-height: 1.7;
  max-width: 760px;
}

.v3-support-panel {
  padding: 1.15rem;
  border-radius: var(--v3-radius-sm);
  background: rgba(2, 6, 23, .55);
  border: 1px solid rgba(148, 163, 184, .17);
}

.v3-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #e2e8f0;
  font-weight: 850;
  margin-bottom: .8rem;
}

.v3-progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .18);
}

.v3-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--v3-primary), var(--v3-primary-2), var(--v3-primary-3));
  box-shadow: 0 0 18px rgba(34,211,238,.36);
}

.v3-supporters {
  margin-top: 1rem;
}

.v3-supporters strong {
  display: block;
  margin-bottom: .55rem;
}

.v3-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.v3-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .34rem .68rem;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(148, 163, 184, .16);
  font-size: .85rem;
  text-decoration: none;
}

.v3-tool-card {
  min-height: 154px;
  color: inherit;
  text-decoration: none;
}

.v3-cta {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.v3-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 30% 15%, rgba(139, 92, 246, .22), transparent 24rem),
    radial-gradient(circle at 70% 35%, rgba(34, 211, 238, .13), transparent 24rem);
  pointer-events: none;
}

.v3-cta > * {
  position: relative;
  z-index: 1;
}

.v3-cta h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.04em;
}

.v3-cta p {
  max-width: 740px;
  margin: 0 auto 1.3rem;
  color: var(--v3-muted);
  line-height: 1.65;
}

.v3-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.v3-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.v3-link-clean {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .v3-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .v3-btn,
  .v3-card {
    transition: none;
  }
}

@media (max-width: 1000px) {
  .v3-hero,
  .v3-support {
    grid-template-columns: 1fr;
  }

  .v3-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .v3-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .v3-hero-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .v3-page {
    width: min(100% - 1.2rem, var(--v3-max));
    padding: 2rem 0 4rem;
  }

  .v3-hero {
    padding: 1.5rem;
  }

  .v3-grid-4,
  .v3-grid-3,
  .v3-hero-stack {
    grid-template-columns: 1fr;
  }

  .v3-section-head {
    flex-direction: column;
    align-items: start;
  }

  .v3-actions {
    flex-direction: column;
  }

  .v3-btn {
    width: 100%;
  }
}
