/* Jubiläumsdarstellung – bewusst separat geladen, damit ältere CSS-Caches sie nicht überlagern. */

.anniversary-lockup,
.anniversary-mark {
  overflow: visible !important;
}

.anniversary-mark {
  padding-top: 14px !important;
  padding-left: 8px !important;
}

.anniversary-mark > strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.08em 0.09em 0.12em 0.05em;
  margin: -0.08em -0.09em -0.12em -0.05em;
  font-size: clamp(5.4rem, 9.5vw, 8.1rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.055em !important;
  color: #f7c449 !important;
  background: linear-gradient(115deg, #8d5705 0%, #f4bd38 24%, #fff4ae 44%, #d89516 64%, #ffdc68 82%, #9b6107 100%) !important;
  background-size: 180% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 3px 0 rgba(91, 50, 0, 0.78)) drop-shadow(0 0 18px rgba(255, 191, 41, 0.64));
  transform-origin: 50% 62%;
  will-change: transform, filter, background-position;
  animation: anniversaryGoldSpotlight 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

.anniversary-mark::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 4%;
  left: 5%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff9cf;
  box-shadow: 0 0 7px 3px #fff0a1, 0 0 18px 8px rgba(255, 188, 39, 0.72);
  pointer-events: none;
  opacity: 0;
  animation: anniversarySparkle 2.8s ease-in-out infinite;
}

.anniversary-mark::after {
  background-size: 220% 100% !important;
  animation: anniversaryGoldLine 2.8s ease-in-out infinite;
}

.anniversary-mark > span {
  border-left-color: #e3a924 !important;
}

.anniversary-mark b:first-child {
  position: relative;
  display: inline-block;
  color: #ffd35e;
  text-shadow: 0 0 14px rgba(255, 190, 39, 0.62);
  transform-origin: left center;
  animation: anniversaryGoldLabelPop 2.8s ease-in-out infinite !important;
}

.anniversary-mark b:first-child::after {
  content: "✦";
  position: absolute;
  top: -0.85em;
  right: -0.8em;
  color: #fff4ad;
  font-size: 0.8em;
  text-shadow: 0 0 8px #ffd65f, 0 0 16px #e49b0f;
  opacity: 0;
  transform: scale(0.2) rotate(-35deg);
  animation: anniversaryStarFlash 2.8s ease-in-out infinite;
}

@keyframes anniversaryGoldSpotlight {
  0%, 100% {
    background-position: 100% center;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 3px 0 rgba(91, 50, 0, 0.78)) drop-shadow(0 0 14px rgba(255, 191, 41, 0.5));
  }

  42% {
    background-position: 0 center;
    transform: scale(1.065) rotate(-0.6deg);
    filter: drop-shadow(0 3px 0 rgba(91, 50, 0, 0.78)) drop-shadow(0 0 34px rgba(255, 218, 104, 0.98));
  }

  58% {
    transform: scale(1.04) rotate(0.5deg);
  }
}

@keyframes anniversaryGoldLabelPop {
  0%, 30%, 100% {
    color: #f4bd38;
    transform: translateX(0) scale(1);
    text-shadow: 0 0 10px rgba(255, 190, 39, 0.42);
  }

  45% {
    color: #fff3a9;
    transform: translateX(4px) scale(1.12);
    text-shadow: 0 0 25px rgba(255, 215, 92, 0.95);
  }
}

@keyframes anniversarySparkle {
  0%, 18%, 72%, 100% {
    left: 5%;
    opacity: 0;
    transform: scale(0.25);
  }

  32% {
    opacity: 1;
  }

  58% {
    left: 45%;
    opacity: 0.95;
    transform: scale(1.15);
  }

  70% {
    left: 60%;
    opacity: 0;
    transform: scale(0.35);
  }
}

@keyframes anniversaryStarFlash {
  0%, 36%, 72%, 100% {
    opacity: 0;
    transform: scale(0.2) rotate(-35deg);
  }

  48% {
    opacity: 1;
    transform: scale(1.35) rotate(8deg);
  }

  62% {
    opacity: 0.55;
    transform: scale(0.8) rotate(25deg);
  }
}

@keyframes anniversaryGoldLine {
  0%, 100% {
    background-position: 100% center;
    opacity: 0.6;
  }

  50% {
    background-position: 0 center;
    opacity: 1;
    box-shadow: 0 0 24px rgba(255, 208, 82, 0.95);
  }
}

.news-panel {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  width: min(860px, calc(100vw - 32px)) !important;
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px) !important;
  overflow: hidden !important;
}

.news-header {
  flex: 0 0 auto;
}

.news-content {
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-x: hidden;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-gutter: stable;
  padding-right: 10px;
}

.news-content::-webkit-scrollbar {
  width: 9px;
}

.news-content::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.news-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(#ffe28a, #c88612);
}

.news-card--featured {
  grid-template-columns: 190px minmax(0, 1fr) !important;
  min-height: 340px;
  padding: 18px !important;
}

.news-card--featured .news-image {
  width: auto !important;
  max-width: 100% !important;
  height: 310px !important;
  max-height: 310px !important;
  margin: 0 auto;
  object-fit: contain !important;
}

@media (max-width: 620px) {
  .anniversary-mark {
    padding-top: 10px !important;
    padding-left: 5px !important;
  }

  .anniversary-mark > strong {
    font-size: clamp(4rem, 20vw, 5rem) !important;
  }

  .news-panel {
    width: calc(100vw - 20px) !important;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px) !important;
    padding: 16px !important;
  }

  .news-header {
    margin-bottom: 12px;
  }

  .news-header h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .news-content {
    padding-right: 6px;
  }

  .news-card--featured {
    grid-template-columns: 1fr !important;
    min-height: auto;
    gap: 16px !important;
  }

  .news-card--featured .news-image {
    height: min(36dvh, 300px) !important;
    max-height: min(36dvh, 300px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anniversary-mark::before,
  .anniversary-mark::after,
  .anniversary-mark > strong,
  .anniversary-mark b:first-child,
  .anniversary-mark b:first-child::after {
    animation: none !important;
  }
}
