/* ==========================================================================
   DachPro Reinigung - Article Page Styles
   ========================================================================== */

/* CSS Variables - Matching main.css */
:root {
  /* Primary Colors */
  --primary-color: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #60A5FA;

  /* Accent Colors */
  --accent-color: #F97316;
  --accent-dark: #EA580C;
  --accent-light: #FB923C;

  /* Neutral Colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-light: #6B7280;
  --text-white: #FFFFFF;

  /* Background Colors */
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-gray: #F3F4F6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.df-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 16px 0;
}

.df-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.df-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.df-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.df-logo-desktop {
  display: block;
}

.df-logo-mobile {
  display: none;
}

.df-nav {
  display: flex;
  align-items: center;
}

.df-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.df-nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
}

.df-nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.df-nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
}

.df-nav-list a:hover {
  color: var(--primary-color);
}

.df-nav-blog {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: var(--text-white) !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.df-nav-blog:hover {
  background: var(--primary-dark);
}

.df-nav-blog img {
  filter: brightness(0) invert(1);
}

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

.df-article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.df-article {
  background: var(--bg-white);
}

/* Article Title */
.df-article h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* Article Meta */
.df-article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
}

.df-article-author,
.df-article-date {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.df-article-author::before {
  content: "👤";
}

.df-article-date::before {
  content: "📅";
}

/* Featured Image */
.df-featured-image {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.df-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.df-featured-image figcaption {
  padding: 12px 16px;
  background: var(--gray-100);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

/* Article Intro */
.df-article-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  padding: 24px;
  background: var(--gray-50);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
}

/* Article Content */
.df-article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.df-article-content h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
}

.df-article-content h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
}

.df-article-content h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.df-article-content p {
  margin-bottom: 20px;
}

.df-article-content ul,
.df-article-content ol {
  margin-bottom: 20px;
  padding-left: 28px;
}

.df-article-content li {
  margin-bottom: 10px;
}

.df-article-content strong {
  font-weight: 600;
  color: var(--primary-color);
}

.df-article-content em {
  font-style: italic;
  color: var(--text-secondary);
}

.df-article-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color var(--transition-normal);
}

.df-article-content a:hover {
  color: var(--primary-dark);
}

.df-article-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--gray-50);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--text-secondary);
}

.df-article-content code {
  padding: 2px 6px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--accent-color);
}

.df-article-content pre {
  margin: 24px 0;
  padding: 20px;
  background: var(--gray-800);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.df-article-content pre code {
  background: none;
  color: var(--text-white);
  padding: 0;
}

.df-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

/* Article Conclusion */
.df-article-conclusion {
  margin-top: 48px;
  padding: 32px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
}

.df-article-conclusion h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.df-article-conclusion p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.df-article-conclusion a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition-normal);
}

.df-article-conclusion a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.df-related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid var(--gray-200);
}

.df-related-posts-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
}

.df-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.df-related-post-card {
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.df-related-post-card:hover {
  background: var(--bg-white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.df-related-post-link {
  text-decoration: none;
  display: block;
}

.df-related-post-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color var(--transition-normal);
}

.df-related-post-card:hover h3 {
  color: var(--primary-color);
}

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

/* Tablet */
@media (max-width: 1024px) {
  .df-article-container {
    padding: 100px 20px 60px;
  }

  .df-article h1 {
    font-size: 36px;
  }

  .df-article-content h2 {
    font-size: 28px;
  }

  .df-article-content h3 {
    font-size: 22px;
  }

  .df-related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .df-logo-desktop {
    display: none;
  }

  .df-logo-mobile {
    display: block;
  }

  .df-nav-toggle {
    display: flex;
  }

  .df-nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    gap: 16px;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  .df-nav-list.active {
    transform: translateX(0);
  }

  .df-article-container {
    padding: 90px 16px 40px;
  }

  .df-article h1 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .df-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .df-featured-image {
    margin-bottom: 32px;
  }

  .df-article-intro {
    font-size: 16px;
    padding: 20px;
    margin-bottom: 32px;
  }

  .df-article-content {
    font-size: 16px;
  }

  .df-article-content h2 {
    font-size: 26px;
    margin-top: 36px;
  }

  .df-article-content h3 {
    font-size: 20px;
    margin-top: 28px;
  }

  .df-article-conclusion {
    padding: 24px;
  }

  .df-article-conclusion h2 {
    font-size: 24px;
  }

  .df-related-posts {
    margin-top: 48px;
    padding-top: 36px;
  }

  .df-related-posts-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .df-related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .df-related-post-card {
    padding: 20px;
  }

  .df-related-post-card h3 {
    font-size: 17px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .df-article-container {
    padding: 80px 12px 32px;
  }

  .df-article h1 {
    font-size: 26px;
  }

  .df-article-intro {
    font-size: 15px;
    padding: 16px;
  }

  .df-article-content {
    font-size: 15px;
  }

  .df-article-content h2 {
    font-size: 22px;
  }

  .df-article-content h3 {
    font-size: 18px;
  }

  .df-article-conclusion {
    padding: 20px;
  }

  .df-article-conclusion h2 {
    font-size: 20px;
  }

  .df-related-posts-title {
    font-size: 22px;
  }
}
