/* ============================================
   Reusable Components
   Nutzt Original-Variablen: --text, --bg, --green, --red, --gradient, --font-size
   ============================================ */

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #e6f7f5;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.feature-content h3 {
  font-size: var(--font-size);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: calc(var(--font-size) - 0.15rem);
  color: #6b7280;
  line-height: 1.5;
}

/* --- Comparison Highlight --- */
.highlight-box {
  background: linear-gradient(135deg, #e6f7f5 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem 0;
}

.highlight-box h3 {
  color: var(--green);
  font-size: calc(var(--font-size) + 0.125rem);
  margin-bottom: 1rem;
}

/* --- Author Box --- */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: calc(var(--font-size) + 0.25rem);
  flex-shrink: 0;
}

.author-info {
  font-size: calc(var(--font-size) - 0.15rem);
}

.author-name {
  font-weight: 700;
  color: var(--text);
}

.author-role {
  color: #6b7280;
}

/* --- Stat Counters --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: #FFF;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.stat-value {
  font-size: calc(var(--font-size) + 0.875rem);
  font-weight: 800;
  color: var(--green);
  display: block;
}

.stat-label {
  font-size: calc(var(--font-size) - 0.15rem);
  color: #6b7280;
  margin-top: 0.25rem;
  display: block;
}

@media (max-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Values Grid (Über uns) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-card svg {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: calc(var(--font-size) + 0.125rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: calc(var(--font-size) - 0.1rem);
  color: #6b7280;
  line-height: 1.6;
}

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

/* --- Comparison Badge (for table) --- */
.badge-testsieger {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 2px 10px;
  border-radius: 10rem;
  font-size: calc(var(--font-size) - 0.25rem);
  font-weight: 700;
  display: inline-block;
}

.badge-preisleistung {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 2px 10px;
  border-radius: 10rem;
  font-size: calc(var(--font-size) - 0.25rem);
  font-weight: 700;
  display: inline-block;
}

.badge-spartipp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 2px 10px;
  border-radius: 10rem;
  font-size: calc(var(--font-size) - 0.25rem);
  font-weight: 700;
  display: inline-block;
}

.badge-kitipp {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 2px 10px;
  border-radius: 10rem;
  font-size: calc(var(--font-size) - 0.25rem);
  font-weight: 700;
  display: inline-block;
}

/* --- Newsletter Box --- */
.newsletter-box {
  background: #e6f7f5;
  border-radius: 0.75rem;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.newsletter-box h3 {
  font-size: calc(var(--font-size) + 0.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.newsletter-box p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: calc(var(--font-size) - 0.15rem);
  font-family: var(--font-fliesstext);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* --- Floating Labels --- */
.anbieter-label-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* --- Loading Spinner --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 4rem;
  color: #6b7280;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.empty-state h3 {
  font-size: calc(var(--font-size) + 0.125rem);
  color: #374151;
  margin-bottom: 0.5rem;
}
