/* Blog CSS für S.M.Ö Bau */

/* Blog Container */
.blog-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  padding: 0 15px;
}

/* Blog Post Card */
.blog-post {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Blog Hero Image */
.blog-hero {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.blog-post:hover .blog-hero img {
  transform: scale(1.05);
}

/* Blog Content */
.blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-item i {
  margin-right: 5px;
  color: #d1b762;
}

/* Blog Title */
.blog-title {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

/* Blog Excerpt */
.blog-excerpt {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  flex-grow: 1;
}

/* Blog Link */
.blog-link {
  align-self: flex-start;
  display: inline-block;
  padding: 8px 0;
  color: #d1b762;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s ease;
}

.blog-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #d1b762;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: #d1b762;
}

.blog-link:hover:after {
  width: 100%;
}

/* Categories Sidebar */
.categories-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.category-links a {
  color: #d1b762;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 10px;
}

.category-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.category-links i {
  margin-right: 10px;
}

/* Popular Posts */
.popular-post {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
}

.popular-post-img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.popular-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.popular-post-content h4 a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.popular-post-content h4 a:hover {
  color: #d1b762;
}

.popular-post-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.popular-post-date i {
  margin-right: 5px;
}

/* Newsletter Form */
.newsletter-form {
  background-color: #272727;
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
}

.newsletter-form h3 {
  margin-bottom: 20px;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 15px;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 15px;
}

.form-control:focus {
  outline: none;
  border-color: #d1b762;
  box-shadow: 0 0 0 2px rgba(209, 183, 98, 0.3);
}

.btn {
  background-color: #d1b762;
  color: #272727;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: #c4a646;
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  margin-top: 15px;
}

.privacy-checkbox input {
  margin-right: 10px;
  margin-top: 5px;
}

.privacy-checkbox label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.privacy-checkbox a {
  color: #d1b762;
  text-decoration: none;
}

.privacy-checkbox a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .blog-title {
    font-size: 1.2rem;
  }
  
  .blog-meta {
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .blog-hero {
    height: 200px;
  }
  
  .blog-content {
    padding: 20px;
  }
} 