/* ================================
   NEWS / NEUIGKEITEN
   ================================ */

/* Light Mode Overrides */
body.theme-light .news-card-image {
  background-color: #e9ecef !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-light .news-card-placeholder {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
}

.news-section {
  padding: 3rem 0;
}

/* News Grid Layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

/* News Card */
.news-card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--line);
}

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

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* News Card Image */
.news-card-image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
  position: relative;
  overflow: hidden;
}

.news-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
}

.news-card-placeholder i {
  font-size: 4rem;
  color: var(--text-dim);
  opacity: 0.3;
}

/* News Card Content */
.news-card-content {
  padding: 1.5rem;
}

.news-card-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card-date i {
  color: var(--primary);
}

.news-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.news-card-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.news-card:hover .news-card-read-more {
  gap: 0.75rem;
}

.news-card-read-more i {
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-read-more i {
  transform: translateX(4px);
}

/* ================================
   NEWS DETAIL PAGE
   ================================ */

/* News Detail Hero */
.news-detail-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
}

.news-hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
}

.news-detail-hero .page-hero-inner {
  position: relative;
  z-index: 2;
}

.news-detail-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.news-hero-meta {
  font-size: 0.95rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-hero-meta i {
  color: var(--primary);
}

.news-detail-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.8);
}

.news-detail-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.news-detail-hero .breadcrumb span:not(.link) {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .news-detail-hero {
    min-height: 400px;
  }
  
  .news-detail-hero h1 {
    font-size: 2rem;
  }
}

.news-detail-section {
  padding: 3rem 0;
}

.news-detail-article {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid var(--line);
}

@media (max-width: 768px) {
  .news-detail-article {
    padding: 1.5rem;
  }
}

/* Body Content */
.news-detail-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.news-detail-body h1 {
  font-size: 2rem;
}

.news-detail-body h2 {
  font-size: 1.75rem;
}

.news-detail-body h3 {
  font-size: 1.5rem;
}

.news-detail-body h4 {
  font-size: 1.25rem;
}

.news-detail-body p {
  margin-bottom: 1.25rem;
}

.news-detail-body ul,
.news-detail-body ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.news-detail-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.news-detail-body ul li {
  list-style-type: disc;
}

.news-detail-body ol li {
  list-style-type: decimal;
}

.news-detail-body a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.news-detail-body a:hover {
  color: var(--primary-hover);
}

.news-detail-body strong {
  font-weight: 700;
  color: var(--text);
}

.news-detail-body em {
  font-style: italic;
}

.news-detail-body code {
  background: var(--bg-2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.news-detail-body pre {
  background: var(--bg-2);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.news-detail-body pre code {
  background: transparent;
  padding: 0;
}

.news-detail-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-dim);
}

.news-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.news-detail-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* Small Hero for Detail Page */
.page-hero-small {
  padding: 2rem 0;
  min-height: auto;
}

.page-hero-small .page-hero-inner {
  text-align: left;
}

.page-hero-small .breadcrumb {
  margin: 0;
}

/* Theme Light Adjustments */
.theme-light .news-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

.theme-light .news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.theme-light .news-card-placeholder {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.theme-light .news-detail-article {
  background: #ffffff;
  border-color: #e5e7eb;
}

.theme-light .news-detail-body code {
  background: #f3f4f6;
}

.theme-light .news-detail-body pre {
  background: #f3f4f6;
}
