.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  /* Responsives Grid: 1-3 Spalten je nach Bildschirm */
  gap: 2em;  /* Abstand zwischen Cards */
}

.project-card {
  background: var(--entry, white);  /* PaperMod-Variablen nutzen, falls verfügbar */
  border: 1px solid var(--border, #ddd) !important;
  border-radius: 8px !important;
  padding: 1.5em !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);  /* Leichter Schatten für Tiefe */
  transition: transform 0.2s;  /* Hover-Effekt */
}

.project-card:hover {
  transform: translateY(-5px);  /* Leichter Lift bei Hover */
}

.project-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1em;
}

.category-badges {
  margin: 1em 0;
}

.category-badge {
  display: inline-block;
  padding: 0.3em 0.6em;
  margin-right: 0.5em;
  border-radius: 4px;
  color: white;
  font-size: 0.9em;
  background: gray;  /* Fallback für undefinierte Kategorien */
}

/* Individuelle Farben pro Badge-Klasse (nicht per Container!) */
.category-badge.flutter { background: #0d96f2 !important; }  /* Blau für Flutter */
.category-badge.devops { background: #f05033 !important; }   /* Rot für DevOps */
.category-badge.fullstack { background: #4caf50 !important; } /* Grün für Fullstack */
.category-badge.electronics { background: #0d60FF !important; } /* Blau für electronics */
.category-badge.raspberry-pi { background: #ef0dff !important; } /* Blau für raspberrypi */

/* Erweitere bei Bedarf für mehr Kategorien, z.B. */
.category-badge.mobile { background: #ff9800 !important; }  /* Orange für Mobile/iOS */

/* Optional: Hover-Effekt für Interaktivität */
.category-badge:hover {
  opacity: 0.8;
}

.read-more {
  display: inline-block;
  margin-top: 1em;
  color: var(--primary, blue);
  text-decoration: none;
  font-weight: bold;
}

