/* --- Projekte Bereich --- */
.projekte {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  background-color: #ffffff;         /* Hintergrundblock */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.projekte h1 {
  font-size: 2em;
  margin-bottom: 40px;
  text-align: center;
  color: #08351c;
}

/* --- Kachel-Container --- */
.projekte-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;    /* zwei Spalten nebeneinander */
  gap: 30px;
  width: 100%;
  margin: 0 auto;
}

/* Auf Handy/Tablet: untereinander */
@media (max-width: 768px) {
  .projekte-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Karten-Design --- */
.projekt-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projekt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* --- Bilder in den Kacheln --- */
.projekt-card img {
  width: 100%;
  height: 280px;         /* feste Höhe */
  object-fit: cover;     /* Bild wird zugeschnitten */
  object-position: center; /* bleibt mittig */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;    /* wichtig: schneidet überstehendes Bild ab */
  transform: scale(1);   /* Bild um 20% reinzoomen */
}

/* --- Überschriften --- */
.projekt-card h2 {
  color: #08351c;
  margin-bottom: 15px;
}

/* --- Beschreibungstext --- */
.projekt-card p {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
  text-align: justify;        /* Blocksatz */
  flex-grow: 1;
}

/* --- Link-Button --- */
.mehr-link {
  display: inline-block;
  padding: 10px 18px;
  background-color: #08351c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  margin-top: auto;
  align-self: center;         /* mittig in der Karte */
}

.mehr-link:hover {
  background-color: #0a4a27;
}
