/* ==========================================================================
   Article Page Styles - Notverglasung24
   Emergency Theme: Red/Orange
   ========================================================================== */

/* ==========================================================================
   Base & Body Styles
   ========================================================================== */

body {
  max-width: 1920px;
  margin: 0 auto;
}

/* ==========================================================================
   Article Hero Section
   ========================================================================== */

.dw-article-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 8rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.dw-article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.dw-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.dw-breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dw-breadcrumb-link:hover {
  color: #FF6B35;
}

.dw-breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
}

.dw-breadcrumb-current {
  color: #E63946;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   Container
   ========================================================================== */

.dw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Article Main Content
   ========================================================================== */

.dw-article-main {
  padding: 4rem 0;
  background: #f8f9fa;
}

.dw-article {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ==========================================================================
   Article Header
   ========================================================================== */

.dw-article-header {
  padding: 3rem 3rem 2rem 3rem;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-bottom: 3px solid #E63946;
}

.dw-article-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #212529;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.dw-article-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.dw-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.dw-meta-item img {
  filter: brightness(0) saturate(100%) invert(52%) sepia(5%) saturate(470%) hue-rotate(169deg) brightness(91%) contrast(85%);
}

/* ==========================================================================
   Featured Image
   ========================================================================== */

.dw-article-featured-image {
  position: relative;
  width: 100%;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dw-article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.dw-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: #fff;
  padding: 2rem 3rem 1rem 3rem;
  font-size: 0.85rem;
  font-style: italic;
}

/* ==========================================================================
   Article Intro
   ========================================================================== */

.dw-article-intro {
  padding: 3rem 3rem 2rem 3rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.03) 0%, rgba(255, 107, 53, 0.02) 100%);
  border-left: 4px solid #E63946;
  margin: 0;
}

.dw-article-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #495057;
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   Article Content
   ========================================================================== */

.dw-article-content {
  padding: 3rem;
  color: #212529;
  line-height: 1.8;
}

.dw-article-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #212529;
  margin: 2.5rem 0 1.25rem 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 0.75rem;
}

.dw-article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #E63946 0%, #FF6B35 100%);
}

.dw-article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #212529;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

.dw-article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1.5rem;
}

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

.dw-article-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 0.75rem;
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.dw-article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #E63946 0%, #FF6B35 100%);
  border-radius: 50%;
}

.dw-article-content ol {
  counter-reset: article-counter;
}

.dw-article-content ol li {
  counter-increment: article-counter;
}

.dw-article-content ol li::before {
  content: counter(article-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: #E63946;
  font-weight: 700;
  font-size: 1.05rem;
}

.dw-article-content strong {
  color: #212529;
  font-weight: 700;
}

.dw-article-content em {
  color: #6c757d;
  font-style: italic;
}

.dw-article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(255, 107, 53, 0.03) 100%);
  border-left: 4px solid #E63946;
  font-size: 1.1rem;
  font-style: italic;
  color: #495057;
}

.dw-article-content a {
  color: #E63946;
  font-weight: 600;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.dw-article-content a:hover {
  color: #FF6B35;
}

.dw-article-content code {
  background: #f8f9fa;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #E63946;
}

.dw-article-content pre {
  background: #2d2d2d;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.dw-article-content pre code {
  background: none;
  color: #fff;
  padding: 0;
}

/* ==========================================================================
   Article Conclusion
   ========================================================================== */

.dw-article-conclusion {
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 2px solid #e9ecef;
}

.dw-article-conclusion h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #212529;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.dw-article-conclusion p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 1rem;
}

.dw-article-conclusion a {
  color: #E63946;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #E63946;
  transition: all 0.3s ease;
}

.dw-article-conclusion a:hover {
  color: #FF6B35;
  border-bottom-color: #FF6B35;
}

/* ==========================================================================
   Article Tags
   ========================================================================== */

.dw-article-tags {
  padding: 2rem 3rem 3rem 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.dw-article-tags img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(73%) saturate(2837%) hue-rotate(336deg) brightness(94%) contrast(92%);
}

/* ==========================================================================
   Related Articles Section
   ========================================================================== */

.dw-related-articles {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dw-related-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #212529;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.dw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dw-related-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dw-related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #E63946 0%, #FF6B35 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.dw-related-card:hover::before {
  transform: scaleX(1);
}

.dw-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.15);
}

.dw-related-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.dw-related-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dw-related-card:hover .dw-related-icon {
  background: linear-gradient(135deg, #E63946 0%, #FF6B35 100%);
}

.dw-related-icon img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(73%) saturate(2837%) hue-rotate(336deg) brightness(94%) contrast(92%);
  transition: all 0.3s ease;
}

.dw-related-card:hover .dw-related-icon img {
  filter: brightness(0) invert(1);
}

.dw-related-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.4;
  flex: 1;
  transition: all 0.3s ease;
}

.dw-related-card:hover .dw-related-card-title {
  color: #E63946;
}

.dw-related-arrow {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.3s ease;
}

.dw-related-card:hover .dw-related-arrow {
  background: #E63946;
  transform: translateX(5px);
}

.dw-related-arrow img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(73%) saturate(2837%) hue-rotate(336deg) brightness(94%) contrast(92%);
  transition: all 0.3s ease;
}

.dw-related-card:hover .dw-related-arrow img {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet: max-width 1024px */
@media (max-width: 1024px) {
  .dw-article-hero {
    padding: 8rem 0 2rem 0;
  }

  .dw-article-main {
    padding: 3.5rem 0;
  }

  .dw-article-header {
    padding: 2.5rem 2.5rem 1.75rem 2.5rem;
  }

  .dw-article-title {
    font-size: 2rem;
  }

  .dw-article-featured-image {
    min-height: 350px;
    max-height: 500px;
  }

  .dw-article-featured-image img {
    max-height: 500px;
  }

  .dw-article-intro,
  .dw-article-content,
  .dw-article-conclusion {
    padding: 2.5rem;
  }

  .dw-article-tags {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
  }

  .dw-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .dw-related-articles {
    padding: 2.5rem;
  }
}

/* Mobile: max-width 768px */
@media (max-width: 768px) {
  .dw-container {
    padding: 0 1rem;
  }

  .dw-article-hero {
    padding: 7rem 0 1.5rem 0;
  }

  .dw-article-main {
    padding: 3rem 0;
  }

  .dw-article-header {
    padding: 2rem;
  }

  .dw-article-title {
    font-size: 1.75rem;
  }

  .dw-article-meta {
    gap: 1rem;
  }

  .dw-article-featured-image {
    min-height: 280px;
    max-height: 400px;
  }

  .dw-article-featured-image img {
    max-height: 400px;
  }

  .dw-image-caption {
    padding: 1.5rem 2rem 0.75rem 2rem;
    font-size: 0.8rem;
  }

  .dw-article-intro,
  .dw-article-content,
  .dw-article-conclusion {
    padding: 2rem;
  }

  .dw-article-content h2 {
    font-size: 1.5rem;
  }

  .dw-article-content h3 {
    font-size: 1.25rem;
  }

  .dw-article-content p,
  .dw-article-content li {
    font-size: 1rem;
  }

  .dw-article-content ul,
  .dw-article-content ol {
    padding-left: 1.5rem;
  }

  .dw-article-tags {
    padding: 1.5rem 2rem 2rem 2rem;
  }

  .dw-related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dw-related-articles {
    padding: 2rem;
  }

  .dw-related-title {
    font-size: 1.5rem;
  }
}

/* Small Mobile: max-width 480px */
@media (max-width: 480px) {
  .dw-container {
    padding: 0 0.75rem;
  }

  .dw-article-hero {
    padding: 6rem 0 1.25rem 0;
  }

  .dw-article-main {
    padding: 2.5rem 0;
  }

  .dw-article-header {
    padding: 1.75rem;
  }

  .dw-article-title {
    font-size: 1.5rem;
  }

  .dw-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .dw-article-featured-image {
    min-height: 220px;
    max-height: 350px;
  }

  .dw-article-featured-image img {
    max-height: 350px;
  }

  .dw-image-caption {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
  }

  .dw-article-intro,
  .dw-article-content,
  .dw-article-conclusion {
    padding: 1.5rem;
  }

  .dw-article-intro p {
    font-size: 1.05rem;
  }

  .dw-article-content h2 {
    font-size: 1.35rem;
  }

  .dw-article-content h3 {
    font-size: 1.15rem;
  }

  .dw-article-content p,
  .dw-article-content li {
    font-size: 0.95rem;
  }

  .dw-article-content ul,
  .dw-article-content ol {
    padding-left: 1.25rem;
  }

  .dw-article-tags {
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
  }

  .dw-related-articles {
    padding: 1.5rem;
  }

  .dw-related-card {
    padding: 1.5rem;
  }
}

/* Very Small Mobile: max-width 375px */
@media (max-width: 375px) {
  .dw-container {
    padding: 0 0.5rem;
  }

  .dw-article-hero {
    padding: 5.5rem 0 1rem 0;
  }

  .dw-article-main {
    padding: 2rem 0;
  }

  .dw-article-title {
    font-size: 1.35rem;
  }

  .dw-article-featured-image {
    min-height: 200px;
    max-height: 300px;
  }

  .dw-article-featured-image img {
    max-height: 300px;
  }

  .dw-article-intro p {
    font-size: 1rem;
  }

  .dw-article-content h2 {
    font-size: 1.25rem;
  }

  .dw-article-content ul,
  .dw-article-content ol {
    padding-left: 1rem;
  }

  .dw-related-title {
    font-size: 1.35rem;
  }
}
