

#blog {
  position: relative; /* Wichtig für absolute positionierte Kinder */
}

#blog h2 {
  color: #1a1a1a;
  font-weight: 700;
}

.blog-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  min-height: 400px; /* Mindesthöhe für Navigation */
}

.blog-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: Calibri, sans-serif;
  max-width: calc(33% - 2rem);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: #1a1a1a;
}

.blog-card p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: #333;
}

.blog-card p.excerpt {
  font-size: 1rem;
  color: #333;
}

.blog-card p.date {
  font-size: 0.85rem;
  color: #555;
}

.blog-card p.tags {
  font-size: 0.85rem;
  color: #555;
}

.blog-card a {
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #1565c0;
  margin-top: 1rem;
  display: inline-block;
}

.blog-card-inner {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.blog-card p,
.blog-card a,
.blog-card h2 {
  font-family: inherit;
}

/* Blog Controls Container */
.blog-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  height: 60px; /* Feste Höhe für bessere Sichtbarkeit */
}

/* Scroll Navigation Buttons */
.scroll-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  background-color: #005a87;	
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.scroll-navigation:hover {
  background: rgba(0, 90, 135, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.scroll-navigation:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-prev {
  left: 30px;
}

.scroll-next {
  right: 30px; 
}

.scroll-navigation:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.3);
}

.scroll-navigation:disabled:hover {
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
}

/* Blog Counter */
.blog-counter {
  position: relative; /* Geändert von absolute zu relative */
  background: rgba(0, 51, 77, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  backdrop-filter: blur(5px);
  z-index: 200;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-controls {
    margin-bottom: 1rem;
  }
  
  .scroll-navigation {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }
  
  .blog-card {
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .blog-card {
    max-width: 100%;
  }
  
  .scroll-prev {
    left: 30px;
  }

  .scroll-next {
    right: 30px; 
  }

}