/**
 * Blog Styles - 2AM Connect
 * Styles für Blog-Übersicht und einzelne Blog-Posts
 */

/* ==========================================
   BLOG LISTE (blog.html)
   ========================================== */

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.blog-card-title a {
  color: #02367b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #0061fb;
}

.blog-card-caption {
  font-size: 1rem;
  color: #666;
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
  font-weight: 500;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.blog-card-date {
  font-size: 0.875rem;
  color: #666;
}

.blog-card-link {
  font-size: 0.9rem;
  color: #02367b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-card-link:hover {
  color: #0061fb;
}

/* Loading State */
.blog-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  font-size: 1.125rem;
}

/* Error State */
.blog-error {
  text-align: center;
  padding: 4rem 2rem;
  color: #dc2626;
  font-size: 1.125rem;
  background: #fee2e2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  font-size: 1.125rem;
}

/* ==========================================
   EINZELNER BLOG-POST (blog-post.html)
   ========================================== */

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #02367b;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

@media (max-width: 768px) {
  .blog-post-title {
    font-size: 2rem;
  }
}

.blog-post-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-post-date,
.blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tags */
.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.blog-tag {
  background: #f1f5f9;
  color: #02367b;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Bild */
.blog-post-image-wrapper {
  margin: 2rem 0;
}

.blog-post-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.blog-post-caption {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 0.75rem;
}

/* Content */
.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
  margin: 2.5rem 0;
}

.blog-post-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #02367b;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 2rem 0 0.75rem 0;
  line-height: 1.3;
}

.blog-post-content p {
  margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.blog-post-content a {
  color: #0061fb;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.blog-post-content a:hover {
  color: #02367b;
}

.blog-post-content strong {
  font-weight: 600;
  color: #02367b;
}

.blog-post-content blockquote {
  border-left: 4px solid #02367b;
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #475569;
}

.blog-post-content code {
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
  color: #02367b;
}

.blog-post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Zurück-Link */
.blog-back-link {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  color: #02367b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.blog-back-link:hover {
  background: #02367b;
  color: white;
}
