/* ============================= */
/* ✅ SCHRIFTROLLE IM PERGAMENT-STIL MIT VERBRANNTEN RÄNDERN */
/* ============================= */

#news-container {
  max-width: 100%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Uncial Antiqua', cursive;
  perspective: 1500px; /* Für den 3D-Kippeffekt */
}

/* 🗞️ SCHRIFTROLLEN-STIL */
.news-item {
  background: #f3e5ab; /* Grundfarbe: Pergament */
  padding: 20px;
  border-radius: 15px;
  position: relative;
  border: 2px solid #8B4513;
  overflow: hidden;
  max-height: 180px;
  transition: max-height 1s ease, box-shadow 0.4s ease, transform 0.8s ease;
  cursor: pointer;
  transform: rotateX(10deg) rotateY(-5deg);
  transform-origin: top center;

  /* 📜 PERGAMENT-TEXTUR */
  background-image: 
    radial-gradient(ellipse at center, rgba(0,0,0,0.1), transparent 70%),
    linear-gradient(145deg, rgba(255,255,255,0.05), transparent),
    linear-gradient(to bottom, #f9f1c8, #e4d7a1);
  background-blend-mode: multiply;

  /* Verbrannte Kanten */
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.5),  /* Dunkler Schatten innen */
    0 6px 15px rgba(0, 0, 0, 0.6);      /* Schatten für Tiefe */
}

/* ✨ HOVER-EFFEKT – ENTRÖLLEN */
.news-item:hover,
.news-item.expanded {
  max-height: 1000px;
  transform: rotateX(0deg) rotateY(0deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* 📜 OBERER UND UNTERER RAND (ROLLE) */
.news-item::before,
.news-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, #8B4513, #deb887);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.8s ease;
  opacity: 0.9;
}

/* 🔽 OBERES ENDE */
.news-item::before {
  top: -10px;
  transform: scaleY(1);
}

/* 🔼 UNTERES ENDE */
.news-item::after {
  bottom: -10px;
  transform: scaleY(1);
  transform-origin: bottom;
}

/* BEIM ENROLLEN „EINZIEHEN“ */
.news-item:hover::before,
.news-item.expanded::before,
.news-item:hover::after,
.news-item.expanded::after {
  transform: scaleY(0.5);
  opacity: 0.7;
}

/* 🖋️ ÜBERSCHRIFT */
.news-item h3 {
  color: #8B0000;
  font-size: 20px;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  transition: text-shadow 0.3s ease;
  z-index: 2;
  position: relative;
}

/* ✨ HOVER-GLANZ FÜR TEXT */
.news-item h3:hover {
  text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
}

/* 📜 TEXT */
.news-item p {
  max-height: 100px;
  overflow: hidden;
  transition: max-height 1s ease, opacity 0.8s ease;
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0;
  color: #4b3621;
  padding: 0 10px;
  opacity: 0.9;

  /* FLECKEN-EFFEKT */
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,0.05) 2px, transparent 2px);
  background-size: 5px 5px, 15px 15px;
  background-blend-mode: multiply;
  mix-blend-mode: multiply;
}

/* ✅ SICHTBAR BEIM ENROLLEN */
.news-item:hover p,
.news-item.expanded p {
  max-height: 1000px;
  opacity: 1;
}

/* ➖ VERBLASSTE TRENNLINIE */
.news-item hr {
  width: 50%;
  margin: 10px auto;
  border: none;
  border-top: 1px dashed rgba(139, 69, 19, 0.5);
  opacity: 0.4;
  transition: opacity 0.8s ease;
}

.news-item:hover hr,
.news-item.expanded hr {
  opacity: 1;
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 768px) {
  #news-container {
    max-width: 90%;
  }

  .news-item {
    max-height: 150px;
    transform: rotateX(10deg) rotateY(-5deg);
  }

  .news-item:hover,
  .news-item.expanded {
    max-height: 800px;
  }
}


