/* =========================================================
   Deutsche Privat Energie · WOW-Schicht
   Section-by-section visuelle Effekte
   Touch-/Mobile-tauglich · respektiert prefers-reduced-motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   01 · GLOBAL — Page-Background Aurora
   Subtiler Gradient-Glow im Background, langsam animiert
   ========================================================= */
body {
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% -20% -10%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(221, 184, 51, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 75%, rgba(200, 170, 34, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(101, 87, 26, 0.04) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
  animation: aurora-drift 28s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  50%  { transform: translate(-2%, 1%) rotate(0.5deg); opacity: 0.85; }
  100% { transform: translate(2%, -1%) rotate(-0.5deg); opacity: 1; }
}

/* =========================================================
   02 · HERO — Floating Energy Particles + Headline Shimmer
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.hero::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(221,184,51,0.35) 0%, transparent 70%);
  top: 8%; left: -120px;
  animation: hero-orb-1 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(200,170,34,0.28) 0%, transparent 70%);
  bottom: 12%; right: -100px;
  animation: hero-orb-2 22s ease-in-out infinite alternate;
}
@keyframes hero-orb-1 {
  0%   { transform: translate(0, 0) scale(1);   }
  100% { transform: translate(40px, 80px) scale(1.2); }
}
@keyframes hero-orb-2 {
  0%   { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-60px, -50px) scale(0.9); }
}

/* H1 Shimmer auf "30 Cent" beim Hover */
.h-display .accent-word {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-bright) 50%, var(--gold-dark) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 4s ease-in-out infinite;
}
@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Hero-Mini-Card · sanftes Float */
.hero-mini-card-privat {
  animation: card-float 6s ease-in-out infinite;
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Price-Compare-Chart · gleichmäßiger Reveal beim ersten Sichtbarwerden */
.pc-chart path[stroke="#65571A"],
.pc-chart path[stroke="#C75A4A"] {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: chart-draw 2.2s ease-out 0.6s forwards;
}
.pc-chart path[stroke="#C75A4A"] { animation-delay: 1.4s; }
@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

.pc-chart circle {
  opacity: 0;
  animation: chart-dot 0.6s ease-out forwards;
  animation-delay: 3s;
}
.pc-chart circle[fill="#C75A4A"] { animation-delay: 3.4s; }

@keyframes chart-dot {
  from { opacity: 0; transform: scale(0); transform-origin: center; }
  to   { opacity: 1; transform: scale(1); }
}

/* CTA-Button · Pulse-Glow auf primary */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.35) 50%,
    transparent 60%,
    transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 0;
}
.btn-primary:hover::before {
  transform: translateX(100%);
}
.btn-primary > * { position: relative; z-index: 1; }

/* =========================================================
   03 · MARKEN-LEISTE — Hover-Lift mit Schatten + Magnetic Glow
   ========================================================= */
.brand-chip {
  position: relative;
  overflow: hidden;
}
.brand-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(221, 184, 51, 0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.brand-chip:hover::after { opacity: 1; }
.brand-chip:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 8px 24px -10px rgba(200, 170, 34, 0.4);
}

/* =========================================================
   04 · DREI SÄULEN — Gradient-Reveal on Hover
   ========================================================= */
.pillar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1.2),
              box-shadow 320ms ease;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,236,194,0) 0%, rgba(245,236,194,0.5) 100%);
  opacity: 0;
  transition: opacity 360ms ease;
  z-index: -1;
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(101, 87, 26, 0.25);
}
.pillar:hover::before { opacity: 1; }

.pillar-icon {
  transition: transform 400ms cubic-bezier(0.2, 0.9, 0.3, 1.4),
              background 300ms ease;
}
.pillar:hover .pillar-icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--gold);
  color: var(--white);
}

.pillar-num {
  position: relative;
  display: inline-block;
}
.pillar-num::before {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--gold-bright);
  transition: width 360ms ease;
}
.pillar:hover .pillar-num::before { width: 100%; }

/* =========================================================
   05 · KLAUSEL-FALLE — Pulse Up/Flat
   ========================================================= */
.trap-arrow {
  display: inline-block;
}
.trap-arrow-up {
  animation: arrow-up 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes arrow-up {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.trap-bad {
  position: relative;
}
.trap-bad strong {
  position: relative;
  display: inline-block;
}
.trap-bad strong::after {
  content: "";
  position: absolute;
  inset: -2px -4px;
  background: rgba(199, 90, 74, 0.10);
  z-index: -1;
  border-radius: 4px;
  animation: bad-pulse 2.6s ease-in-out infinite;
}
@keyframes bad-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.trap-good strong {
  color: var(--gold-dark);
}

/* Karten heben sich gegenseitig an */
.trap-card {
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.trap-card:hover {
  transform: translateY(-4px) scale(1.005);
}

/* =========================================================
   06 · TARIF-KARTEN — Spotlight + Border-Sweep
   ========================================================= */
.tariff-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.tariff-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 320deg,
    rgba(221, 184, 51, 0.5) 350deg,
    rgba(221, 184, 51, 0.8) 360deg,
    transparent 360deg);
  opacity: 0;
  transition: opacity 400ms ease;
  animation: card-rotate 6s linear infinite;
  z-index: -1;
}
.tariff-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--white);
  border-radius: calc(var(--r-24) - 1px);
  z-index: -1;
}
.tariff-card:hover::before { opacity: 1; }
@keyframes card-rotate {
  to { transform: rotate(360deg); }
}

.tariff-icon {
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tariff-card:hover .tariff-icon {
  transform: rotate(-6deg) scale(1.1);
}

.bullet-dot {
  transition: transform 300ms ease, background 300ms ease;
}
.tariff-feat li:hover .bullet-dot {
  transform: scale(1.5);
  background: var(--gold-dark);
}

/* =========================================================
   07 · ABLAUF — Connecting Line + Number Stamp
   ========================================================= */
.process-4 {
  position: relative;
}
@media (min-width: 1101px) {
  .process-4::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 5%; right: 5%;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      var(--gold-bright) 12%,
      var(--gold-bright) 88%,
      transparent 100%);
    opacity: 0.4;
    z-index: 0;
    animation: line-glow 4s ease-in-out infinite;
  }
}
@keyframes line-glow {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.55; }
}

.step {
  position: relative;
  background: var(--white);
  z-index: 1;
}

.step-num {
  position: relative;
  display: inline-block;
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), color 300ms ease;
}
.step:hover .step-num {
  transform: scale(1.15);
  color: var(--gold-dark);
}

.step-marker {
  transition: transform 300ms ease, background 300ms ease;
}
.step:hover .step-marker {
  transform: translateX(4px);
}

/* =========================================================
   08 · TRUST-ZAHLEN — Already animated; add halo
   ========================================================= */
.trust-cell {
  position: relative;
}
.trust-cell .n {
  position: relative;
  display: inline-block;
}
.trust-cell.dominant .trust-num-wrap::before {
  content: "";
  position: absolute;
  inset: -20px -30px;
  background: radial-gradient(ellipse 50% 50% at center,
    rgba(221, 184, 51, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: halo-pulse 3.2s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* =========================================================
   09 · BEWERTUNGEN — Star Sparkle + Card Lift
   ========================================================= */
.review {
  position: relative;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.3, 1.2),
              box-shadow 360ms ease;
}
.review:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(101, 87, 26, 0.20);
}
.review .stars svg {
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.review:hover .stars svg:nth-child(1) { transform: rotate(-12deg) scale(1.1); transition-delay: 0ms; }
.review:hover .stars svg:nth-child(2) { transform: rotate(-6deg) scale(1.1);  transition-delay: 40ms; }
.review:hover .stars svg:nth-child(3) { transform: scale(1.15);                transition-delay: 80ms; }
.review:hover .stars svg:nth-child(4) { transform: rotate(6deg) scale(1.1);   transition-delay: 120ms; }
.review:hover .stars svg:nth-child(5) { transform: rotate(12deg) scale(1.1);  transition-delay: 160ms; }

.review .avatar {
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.review:hover .avatar {
  transform: scale(1.1);
  background: var(--gold-dark);
  color: var(--white);
}

/* =========================================================
   10 · FAQ — Smooth Expand + Chevron-Spin
   ========================================================= */
.faq-item {
  transition: background 240ms ease;
}
.faq-item:hover {
  background: rgba(245, 236, 194, 0.18);
  padding-left: 8px;
  padding-right: 8px;
}
.faq-item > summary {
  transition: padding 240ms ease, color 200ms ease;
}
.faq-item .faq-body {
  animation: faq-fade 360ms ease;
}
@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   11 · KONTAKT-FORMULAR — Field Focus Glow + Radio Tap
   ========================================================= */
.field input:focus,
.field textarea:focus {
  animation: focus-glow 1.4s ease-in-out infinite;
}
@keyframes focus-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200, 170, 34, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(200, 170, 34, 0.28); }
}

.radio-chip span {
  position: relative;
  overflow: hidden;
}
.radio-chip input:checked + span {
  animation: radio-pop 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes radio-pop {
  0%   { transform: scale(0.96); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.contact-info-line {
  transition: transform 280ms ease, padding-left 280ms ease;
}
.contact-info-line:hover {
  transform: translateX(4px);
  padding-left: 8px;
}

/* =========================================================
   12 · FINAL CTA — Headline Gradient Sweep
   ========================================================= */
.final-cta .h2 {
  background: linear-gradient(90deg,
    var(--ink) 0%,
    var(--ink) 40%,
    var(--gold-dark) 50%,
    var(--ink) 60%,
    var(--ink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cta-shimmer 8s ease-in-out infinite;
}
@keyframes cta-shimmer {
  0%, 100% { background-position: 200% 50%; }
  50%      { background-position: 0% 50%; }
}
.final-cta .accent-word {
  -webkit-text-fill-color: var(--gold-dark);
}

/* =========================================================
   13 · REVEAL-Anim · sanfter, mit Skala
   Überschreibt die Basis-Reveal aus app.js sanft
   ========================================================= */
.reveal,
.reveal-stagger > * {
  transition: opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================
   14 · SCROLL-Progress-Indikator
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-dark));
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(221, 184, 51, 0.6);
}

/* =========================================================
   15 · MOBILE-Anpassungen — Effekte abgespeckt für Touch
   ========================================================= */
@media (max-width: 768px) {
  .hero::before, .hero::after { filter: blur(60px); opacity: 0.6; }
  .hero-mini-card-privat { animation: none; }
  body::before { animation-duration: 40s; }
  .tariff-card::before { display: none; } /* Conic gradient ist GPU-teuer */
  .pillar:hover { transform: none; } /* Touch hat kein hover state */
  .review .stars svg { transition-duration: 200ms; }
}

/* =========================================================
   16 · BRAND-CHIP MAGNETIC CURSOR (Desktop only)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .brand-chip {
    transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1.2),
                border-color 240ms ease,
                box-shadow 240ms ease;
  }
}
