/* =====================================================
   FRONTEND: Blog Footer Cards
===================================================== */
.blog-footer-card {
  display: block;
  border: 1px solid #dddddd;
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
  line-height: 0;
}

.blog-footer-card:hover {
  background-color: #fafafa;
}

.blog-footer-card-image-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  margin-bottom: 0;
  display: block;
}

.blog-footer-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border: none;
  vertical-align: bottom;
}

.blog-footer-kachel-1 .blog-footer-card-image,
.blog-footer-kachel-2 .blog-footer-card-image {
  object-fit: contain;
}

.blog-footer-banner {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.blog-footer-banner .blog-footer-card-image-wrap {
  flex: 0 0 320px;
  height: 280px;
}

.blog-footer-card-content {
  padding: 20px;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.5;
}

/* KORRIGIERTER TITEL: Bricht jetzt um (max 2 Zeilen) */
.bfc-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2; /* Zeigt maximal 2 Zeilen */
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important; /* Erlaubt Umbruch */
  word-wrap: break-word !important;
  line-height: 1.25 !important;
  height: 2.5em !important; /* 2 Zeilen x 1.25 line-height */
  margin: 0 0 10px 0 !important;
  color: var(--title-color, #002233) !important;
  font-size: 1.25rem;
  font-weight: bold;
}

/* KORRIGIERTER TEXT: Bricht jetzt um (max 3 Zeilen) */
.bfc-text {
  display: -webkit-box !important;
  -webkit-line-clamp: 3; /* Zeigt maximal 3 Zeilen */
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important; /* Erlaubt Umbruch */
  word-wrap: break-word !important;
  line-height: 1.25 !important;
  height: 3.75em !important; /* 3 Zeilen x 1.25 line-height */
  margin: 0 !important;
  color: var(--text-color, #333333) !important;
}

.blog-footer-banner.is-fullwidth {
  flex-direction: column;
}

.blog-footer-banner.is-fullwidth .blog-footer-card-image-wrap {
  width: 100%;
  flex: 0 0 100%;
  height: 280px;
}

@media (max-width: 768px) {
  .blog-footer-banner {
    flex-direction: column;
  }
  .blog-footer-banner .blog-footer-card-image-wrap {
    width: 100%;
    height: 250px;
  }
}

/* =====================================================
   ADMIN (Unverändert)
===================================================== */
.bfc-admin-page .postbox {
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid #c3c4c7;
}
.bfc-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.bfc-input-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bfc-input-row label {
  font-weight: 600;
  color: #1d2327;
}
.bfc-input-row input.regular-text,
.bfc-input-row textarea {
  width: 100%;
  max-width: 600px;
  margin: 0;
}
.bfc-modern-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  padding: 15px;
  background: #f0f0f1;
  border-radius: 6px;
}
.bfc-color-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bfc-swatch-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #8c8f94;
  overflow: hidden;
  background: #fff;
}
.bfc-swatch-wrapper input[type="color"] {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border: none;
  padding: 0;
}
.bfc-image-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0 !important;
}
.bfc-image-preview img {
  max-width: 300px;
  height: auto;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
}
