/* Test */

.main-content {
  margin: auto 1rem;
  background-image: url(images/newspaper.jpg);
  background-position: center;
  background-size: cover;
}
  header {
    border-bottom: 3px solid #222;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .logo {
    max-height: 60px;
  }
  .title-date {
    text-align: center;
    flex: 1 1 300px;
  }
  .title-date h1 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-size: 2.8rem;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .title-date .date {
    font-style: italic;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.1rem;
  }
  .subheadline {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #444;
    margin-top: 0.5rem;
    text-align: center;
  }

 .headline-of-the-day {
  background: url('images/deich.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 2rem 2rem;
  margin: 1rem auto 2rem;
  text-align: center;
  font-family: 'Georgia', serif;
  font-weight: bold;
  font-size: 1.8rem;
  border-radius: 8px;
  max-width: 900px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1s forwards ease-out;
  animation-delay: 0.5s;
}

.headline-of-the-day::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  z-index: -1;

}
  .headline-of-the-day {
  position: relative;
  /* rest wie oben */
}




  article.newspaper-article {
    column-count: 3;
    column-gap: 2rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
  article.newspaper-article img {
    width: 100%;
    filter: grayscale(70%) contrast(1.1);
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    break-inside: avoid;
    transition: transform 0.7s ease, filter 0.7s ease;
    transform-origin: center center;
  }
  article.newspaper-article img:hover {
    filter: none;
    transform: scale(1.05);
  }
  article.newspaper-article h2 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    column-span: all;
    border-bottom: 2px solid #222;
    padding-bottom: 0.3rem;
    break-inside: avoid;
  }
  article.newspaper-article p {
    break-inside: avoid;
    font-size: 16px;
    margin-bottom: 1rem;
  }
  .drop-cap::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 1;
    padding-right: 0.15rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    color: #111;
  }
  blockquote.quote {
    font-style: italic;
    border-left: 4px solid #888;
    margin: 1.5rem 0;
    padding-left: 1rem;
    color: #555;
    break-inside: avoid;
  }
  .byline {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.2rem;
    font-style: italic;
    break-inside: avoid;
  }

  .fade-slide {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .fade-slide.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Kategorien Sektion */
  .categories {
    display: flex;
    justify-content: space-between;
    margin: 3rem auto;
    gap: 1rem;
    max-width: 900px;
  }
  .category {
    flex: 1;
    text-align: center;
  }
  .category h3 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    letter-spacing: 1.2px;
  }
  .category img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
    filter: grayscale(60%) contrast(1.1);
    transition: filter 0.3s ease, transform 0.7s ease;
    transform-origin: center center;
  }
  .category img:hover {
    filter: none;
    transform: scale(1.05);
  }

  /* Loading Overlay */
  #loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .spinner {
    border: 5px solid #eee;
    border-top: 5px solid #222;
    border-radius: 50%;
    width: 60px; height: 60px;
    animation: spin 1.1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
  }
  @keyframes fadeSlideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Sanftes Hereinzoomen beim Laden */
  .zoom-in {
    animation: zoomIn 1s ease forwards;
  }
  @keyframes zoomIn {
    from {
      transform: scale(0.95);
      opacity: 0.8;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  @media (max-width: 720px) {
    article.newspaper-article {
      column-count: 1;
    }
    header {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    .title-date {
      flex: unset;
    }
    .categories {
      flex-direction: column;
      gap: 1.5rem;
    }
  }


