/* ============================================
   Blog Styles
   Nutzt Original-Variablen: --text, --bg, --green, --red, --gradient, --font-size
   ============================================ */

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* --- Blog Card --- */
.blog-card {
  background: #FFF;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, #e6f7f5 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-image svg {
  width: 64px;
  height: 64px;
  color: var(--green);
  opacity: 0.5;
}

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 1rem;
  background: var(--green);
  color: #FFF;
  font-size: calc(var(--font-size) - 0.25rem);
  font-weight: 600;
  border-radius: 10rem;
}

.blog-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: calc(var(--font-size) - 0.25rem);
  color: #9ca3af;
}

.blog-card-title {
  font-size: calc(var(--font-size) + 0.125rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--green);
  text-decoration: none;
}

.blog-card-excerpt {
  font-size: calc(var(--font-size) - 0.15rem);
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.blog-card-link {
  font-size: calc(var(--font-size) - 0.15rem);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-link:hover {
  text-decoration: none;
  gap: 0.5rem;
  color: var(--red);
}

/* --- Blog Article --- */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.blog-article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.blog-article-category {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: #e6f7f5;
  color: var(--green);
  font-size: calc(var(--font-size) - 0.25rem);
  font-weight: 600;
  border-radius: 10rem;
  margin-bottom: 1rem;
}

.blog-article-header h1 {
  font-size: calc(var(--font-size) + 1.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #6b7280;
  font-size: calc(var(--font-size) - 0.15rem);
  flex-wrap: wrap;
}

.blog-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-article-meta svg {
  width: 16px;
  height: 16px;
}

/* Article Content Styles */
.blog-content h2 {
  font-size: calc(var(--font-size) + 0.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 1rem;
  scroll-margin-top: 5rem;
}

.blog-content h3 {
  font-size: calc(var(--font-size) + 0.25rem);
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 1rem;
}

.blog-content h4 {
  font-size: calc(var(--font-size) + 0.125rem);
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.blog-content p {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.blog-content ul {
  list-style: disc;
}

.blog-content ol {
  list-style: decimal;
}

.blog-content li {
  margin-bottom: 0.5rem;
  color: #374151;
  line-height: 1.7;
}

.blog-content li::before {
  display: none;
}

.blog-content blockquote {
  border-left: 4px solid var(--green);
  padding: 1rem 2rem;
  margin: 2rem 0;
  background: var(--bg);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #4b5563;
  font-style: italic;
}

.blog-content strong {
  color: var(--text);
  font-weight: 700;
}

.blog-content a {
  color: var(--green);
  text-decoration: underline;
}

.blog-content a:hover {
  color: var(--red);
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: calc(var(--font-size) - 0.15rem);
}

.blog-content table th {
  background: var(--bg);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.blog-content table td {
  padding: 1rem;
  border-bottom: 1px solid var(--bg);
}

/* --- Related Articles --- */
.related-articles {
  border-top: 1px solid #e5e7eb;
  padding-top: 3rem;
  margin-top: 3rem;
}

.related-articles h2 {
  font-size: calc(var(--font-size) + 0.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

/* --- Blog Filter --- */
.blog-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.blog-filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 10rem;
  background: #FFF;
  color: #4b5563;
  font-size: calc(var(--font-size) - 0.15rem);
  font-family: var(--font-fliesstext);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--green);
  color: #FFF;
  border-color: var(--green);
}

/* --- Share Buttons --- */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  align-items: center;
}

.share-buttons span {
  font-size: calc(var(--font-size) - 0.15rem);
  font-weight: 600;
  color: #374151;
  margin-right: 0.5rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  color: #FFF;
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn--twitter { background: #1da1f2; }
.share-btn--linkedin { background: #0077b5; }
.share-btn--facebook { background: #1877f2; }
.share-btn--email { background: #4b5563; }

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* --- Blog Navigation --- */
.blog-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.blog-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.15s;
  max-width: 48%;
}

.blog-nav a:hover {
  border-color: var(--green);
  background: #e6f7f5;
  text-decoration: none;
}

.blog-nav-label {
  font-size: calc(var(--font-size) - 0.25rem);
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-nav-title {
  font-size: calc(var(--font-size) - 0.15rem);
  font-weight: 600;
  color: var(--text);
}

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

  .blog-article-header h1 {
    font-size: calc(var(--font-size) + 0.5rem);
  }

  .blog-nav {
    flex-direction: column;
  }

  .blog-nav a {
    max-width: 100%;
  }
}
