@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@700&display=swap");

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

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --accent: #dc2626;
  --link-color: #2563eb;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

/* Header */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  padding: 0;
  position: relative;

  overflow: hidden;
  max-height: 800px;
}

.header-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../anordnung-von-schwarzen-freitag-einkaufswagen-mit-kopienraum.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.header-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
  padding: 3rem 0;
  gap: 1.5rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.logo::before {
  content: "⚡";
  font-size: 2rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 500px;
  line-height: 1.5;
}

.header-search {
  flex: 0 1 200px;
  width: 100%;
  max-width: 450px;
}

.search-box {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 0.9375rem;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.95);
}

.search-box:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  background: white;
}

.search-box::placeholder {
  color: var(--text-secondary);
}

.trust-indicators {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-indicator::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
}

/* Navigation */
.nav {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-primary);
}

.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  margin-top: 2rem;
}

/* Article Grid */
.articles-section {
  min-width: 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Article Card */
.article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
  cursor: pointer;
}

.article:hover {
  background: var(--bg-secondary);
  margin: 0 -1.5rem;
  padding: 1.5rem;
}

.article-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-secondary);
  aspect-ratio: 16/10;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article:hover .article-image img {
  transform: scale(1.05);
}

.article-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-category {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.article-category:hover {
  text-decoration: underline;
}

.meta-separator {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.article-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}

.article-title:hover {
  color: var(--link-color);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
}

.article-readtime {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow-y: auto;
  animation: fadeIn 0.3s;
}

.modal.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-primary);
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal-body {
  padding: 2rem 3rem 3rem;
}

.modal-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.modal-text p {
  margin-bottom: 1.5rem;
}

.modal-benefits {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.modal-benefits h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-benefits ul {
  list-style: none;
}

.modal-benefits li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.modal-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.modal-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-button {
  background: var(--accent);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 60px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.trending-list {
  list-style: none;
}

.trending-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  line-height: 1.4;
}

.trending-link:hover {
  color: var(--link-color);
}

.trending-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
}

.newsletter-button {
  background: var(--text-primary);
  color: white;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-button:hover {
  background: var(--accent);
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 2rem 0;
    gap: 1rem;
  }

  .header-top {
    min-height: 240px;
  }
  /* NEU: Hintergrundbild-Anpassung */
  .header-top::before {
    background-position: center center;
    background-size: cover;
  }
  .logo {
    font-size: 2rem;
  }

  .logo::before {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .header-search {
    padding: 0 1rem;
  }

  .trust-indicators {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-image {
    aspect-ratio: 16/9;
  }

  .modal-content {
    margin: 0;
    border-radius: 0;
    height: 100%;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  /* NEU: Hintergrundbild-Anpassung für Mobile */
  .header-top {
    max-height: 300px; /* Etwas mehr Höhe für Mobile */
  }

  .header-top::before {
    background-position: 50% 30%; /* Zeigt oberen Bereich des Bilds */
    background-size: 140% auto; /* Vergrößert das Bild etwas */
  }

  /* Dunklerer Overlay für bessere Lesbarkeit auf Mobile */
  .header-top::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.7) 100%
    );
  }
  /* NEU für Modal: */
  .modal-header {
    height: 200px; /* Noch kleiner auf sehr kleinen Screens */
  }

  .modal-cta {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    margin: 0 -1.5rem -3rem;
    padding: 1.5rem;
    z-index: 10;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 1.125rem;
  }
}
