/* kundenstimmen.css — page-specific styles */

/* ─── HERO (light-mode override) ────────────────────────────── */
[data-theme="light"] #hero {
  --text-primary:  #E8E4DC;
  --text-secondary:#8A8580;
  --text-muted:    #4A4845;
  color: #E8E4DC;
}

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2.5rem 5rem;
  gap: 3rem;
}

/* Atmospheric background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* WebGL smoke canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}

/* Dark vignette — ensures text readability over any smoke color */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.55) 45%, rgba(10,10,11,0.35) 70%, rgba(10,10,11,0.55) 100%),
    linear-gradient(to bottom, rgba(10,10,11,0.45) 0%, transparent 35%, transparent 65%, rgba(10,10,11,0.55) 100%);
  pointer-events: none;
}

/* Grid blueprint lines — overlay on top of canvas */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 137, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 137, 42, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.25) 70%, transparent 100%);
  pointer-events: none;
}

/* Diagonal accent line */
.hero-diagonal {
  position: absolute;
  width: 1px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, rgba(200,137,42,0.18), transparent);
  top: 10%; right: 30%;
  transform: rotate(15deg);
  transform-origin: top;
  pointer-events: none;
}

/* ─── HERO CONTENT (centered layout) ─────────────────────── */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 0.3s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: revealUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 1.0s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 1.15s forwards;
}

/* btn-outline (used in hero-cta) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent-border);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(200, 137, 42, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ─── HERO STATS ─────────────────────────────────────────────── */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 700px;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 1.3s forwards;
}

.hero-stat { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar {
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── TESTIMONIALS SECTION ───────────────────────────────────── */
.testimonials-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.author-name {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.author-link {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.author-link:hover { color: var(--accent); }

/* ─── CTA SECTION ────────────────────────────────────────────── */
#cta-kundenstimmen {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,137,42,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.cta-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 137, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 137, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

#cta-kundenstimmen .section-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
}

.cta-subtext {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ─── PERFORMANCE ────────────────────────────────────────────── */
#social-proof, #cta-kundenstimmen {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-headline, .hero-sub, .hero-cta, .hero-stats {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  #hero-canvas { display: none; }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 767px) {
  #hero { padding: 7rem 1.5rem 4rem; gap: 2rem; }
  .hero-stats { gap: 2rem; }
  .filter-bar { padding: 1.5rem 1rem; gap: 0.5rem; }
  .testimonials-section { padding: 2rem 1.5rem 4rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
