.projekt-card {
  border: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.projekt-card .badge,
.modal-body .badge  {
  border-radius: 0px;
  white-space: normal;
}

.projekt-card img {
  transition: transform 0.4s ease;
}

.projekt-card:hover img {
  transform: scale(1.05);
}

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

/* Hauptbilder (Vorher/Nachher + Fallback) */
.project-main-image {
  width: 100%;
  max-height: 350px; /* 🔥 Höhe begrenzen */
  object-fit: cover; /* 🔥 nichts abschneiden */
  background: #f8f9fa; /* optional: schöner Hintergrund */
  display: block;
  border-radius: 10px;
}

/* Filter Buttons */
.filter-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 12px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f0f0f0;
}

.filter-btn.active {
  background: #000;
  color: #fff;
}

.compare-slider {
  position: relative;
  text-align: center;
}

.compare-image {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Buttons */
.compare-controls {
  margin-top: 10px;
}

.compare-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 12px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compare-btn.active {
  background: #575756;
  color: #fff;
  border: 0px;
}

.project-list {
  padding-left: 18px;
}

.project-list li {
  margin-bottom: 6px;
}

/* Buttons schöner */
.compare-btn {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #575756;
}

/* Überschriften */
.modal-body h5 {
  font-weight: 600;
}

/* Container bleibt gleich */
.gallery-img {
  width: 100%;
  height: 100px; /* 🔥 feste Höhe */
  object-fit: cover; /* 🔥 schneidet sauber zu */
  border-radius: 0px;
  display: block;
  border: 1px solid #9e9e9e;
}

/* Wrapper sorgt für einheitliches Verhältnis */
.card-img-wrapper {
  width: 100%;
  height: 220px; /* gleiche Höhe wie Galerie möglich */
  overflow: hidden;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

/* Bild wird sauber zugeschnitten */
.card-img-custom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}








@media (max-width: 768px) {
 .card-body {
    display: flex;
    flex-direction: column;
  }

  .projekt-card .btn {
    margin-top: auto;
    font-size: 0.8rem;
  }
  /* 🔹 Bilder kleiner und einheitlich */
  .card-img-custom {
    height: 140px;
    object-fit: cover;
  }
   .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
  }
  .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* max 3 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
  }
  .projekt-card .badge {
    font-size: 0.7rem;
    padding: 6px 8px;
    text-align: center;
    display: block;

    /* 🔥 verhindert komische Umbrüche */
    word-break: keep-all;
    hyphens: none;
  }
   .card-img-custom {
    height: 140px;
    object-fit: cover;
  }
.card-img-wrapper {
  height: 140px;
}
}