/* =========================================================
   FEATURE SECTION – with Style Switcher (Dark / Light)
   ========================================================= */

/* Base (gemeinsame Struktur) ------------------------------------ */

.c-features {
  position: relative;
  padding: var(--tc-space-12) var(--tc-container-padding) var(--tc-space-12);
  background: var(--tc-features-bg);
  color: var(--tc-features-text);
}

.c-features__inner {
  max-width: var(--tc-container-width);
  margin: 0 auto;
}

/* Header ---------------------------------------------------------- */

.c-features__header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--tc-space-10);
  margin-bottom: var(--tc-space-8);
}

/* Badge */
.c-features__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--tc-features-badge-bg);
  color: var(--tc-features-badge-text);
  font-size: var(--tc-font-size-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--tc-space-3);
}

/* Titles */
.c-features__title {
  font-size: var(--tc-font-size-h2);
  line-height: var(--tc-line-height-tight);
  letter-spacing: -0.03em;
  color: var(--tc-features-title);
}

.c-features__intro {
  font-size: var(--tc-font-size-md);
  line-height: var(--tc-line-height-loose);
  color: var(--tc-features-muted);
}

/* Grid ------------------------------------------------------------- */

.c-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tc-space-8);
  border-top: 1px solid var(--tc-features-border);
  padding-top: var(--tc-space-8);
}

.c-features__item {
  display: flex;
  flex-direction: column;
  gap: var(--tc-space-2);
}

/* Icons ------------------------------------------------------------ */

.c-features__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--tc-radius-lg);
  background: var(--tc-features-icon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tc-space-3);
  color: var(--tc-features-icon-text);
  font-size: 1.2rem;
}

/* IMG SVG inside icon */
.c-features__icon img {
  width: 22px;
  height: 22px;
  display: block;
  filter: var(--tc-features-icon-filter);
}

/* Titles + Text */
.c-features__item-title {
  font-size: var(--tc-font-size-base);
  font-weight: 600;
  color: var(--tc-features-title);
}

.c-features__item-text {
  font-size: var(--tc-font-size-sm);
  line-height: var(--tc-line-height-normal);
  color: var(--tc-features-muted);
}

/* =========================================================
   DARK MODE
   ========================================================= */

.c-features--dark {
  --tc-features-bg: radial-gradient(circle at top left, #111827 0, #020617 55%, #020617 100%);
  --tc-features-title: #f9fafb;
  --tc-features-text: #e5e7eb;
  --tc-features-muted: #9ca3af;

  --tc-features-border: rgba(148, 163, 184, 0.25);

  --tc-features-badge-bg: rgba(34, 197, 94, 0.16);
  --tc-features-badge-text: #bbf7d0;

  --tc-features-icon-bg: rgba(31, 41, 55, 0.9);
  --tc-features-icon-text: #e5e7eb;

  /* SVG weiß machen */
  --tc-features-icon-filter: brightness(0) invert(1);
}

/* =========================================================
   LIGHT MODE
   ========================================================= */

.c-features--light {
  --tc-features-bg: #f9f6f1; /* Apple Beige */
  --tc-features-title: #1e293b; /* Slate-800 */
  --tc-features-text: #1e293b;
  --tc-features-muted: #475569;

  --tc-features-border: rgba(0,0,0,0.08);

  --tc-features-badge-bg: rgba(16, 185, 129, 0.14);
  --tc-features-badge-text: #0f766e;

  --tc-features-icon-bg: rgba(226, 232, 240, 0.85);
  --tc-features-icon-text: #1e293b;

  /* SVG schwarz machen */
  --tc-features-icon-filter: brightness(0) invert(0);
}

/* Mobile ----------------------------------------------------------- */

@media (max-width: 900px) {
  .c-features {
    padding-inline: 1.25rem;
  }

  .c-features__header {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--tc-space-4);
  }

  .c-features__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--tc-space-6);
  }
}