:root {
  --fitzek-border: #222;
  --terminal-green: rgba(255, 255, 255, 0.7);
}

.fitzek-wiki-container {
  position: relative;
  min-height: 600px;
}

/* CRT Scanline Effekt */
.eerie-scanline::before {
  content: ' ';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06)
    );
  z-index: 10;
  background-size:
    100% 4px,
    3px 100%;
  pointer-events: none;
  opacity: 0.3;
}

.terminal-meta {
  font-size: 10px;
  color: var(--terminal-green);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 2px;
}

.blink {
  animation: blinker 1s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* Filter */
.fitzek-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) 300px;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-box {
  border: 1px solid var(--cWhite);
  padding: 20px 10px;
  text-align: center;
  border-radius: var(--radius-md);
  background: #0a0a0a;
  min-height: 100px;

  transition: 0.3s;
  text-decoration: none !important;
}

.filter-box:hover,
.filter-box.active {
  border-color: #555;
  background: #151515;
}

.filter-box .label {
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.secret-fact-title-box {
  border: 1px solid var(--fitzek-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 5px;
}

/* Loader Overlay */
.wiki-loader {
  position: absolute;
  top: 250px;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-content {
  width: 300px;
  text-align: center;
  background: #000;
  padding: 20px;
  border: 1px solid var(--cRed);
  border-radius: var(--radius-md);
}

.loader-title {
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--cRed);
}

.loader-bar-wrap {
  height: 4px;
  background: #111;
  width: 100%;
  margin-bottom: 10px;
}
.loader-bar {
  height: 100%;
  background: var(--cRed);
  width: 0%;
  transition: width 0.1s;
}

.loader-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
}

/* Cards */
.fitzek-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  transition: opacity 0.3s;
}

.fitzek-card {
  background: #080808;
  border: 1px solid var(--cGrey);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: 0.3s;
}

.fitzek-card:hover,
.fitzek-card:hover * {
  border-color: var(--cRed);
}

.image-wrapper {
  height: 180px;
  background-size: cover;
  background-position: center;
  margin: 18px;
  border-radius: var(--radius-md);
  position: relative;
  filter: grayscale(0.5) contrast(1.2);
}

.fitzek-card-img {
  transition: 1s all ease;
  opacity: 0;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.fitzek-card-accent-img {
  transition: 1s all ease;
  opacity: 0;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.fitzek-card-img.loaded,
.fitzek-card-accent-img.loaded {
  opacity: 1;
}

@media (max-width: 576px) {
  .image-wrapper {
    height: 100px;
  }
}

.crime-sticker {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--cRed);
  color: #fff;
  font-size: 8px;
  padding: 3px 6px;
  font-weight: bold;
  transform: rotate(3deg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content {
  padding: 15px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-title {
  font-size: 13px;
  color: #eee;
  margin: 0 !important;
  text-align: center;
}

@media (max-width: 576px) {
  .fitzek-card .card-title {
    font-size: 1rem !important;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word; /* fallback */
  }

  .fitzek-card .card-content {
    padding: 10px;
  }
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--cGrey);
  font-size: 12px;
  color: var(--cWhite);
}

.footer-book {
  grid-column: span 2;
  font-size: 16px;
  color: var(--cGrey);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5px;
  border-bottom: 1px solid var(--cGrey);
  transition: 0.3s all ease;
}

.footer-left,
.footer-right {
  padding: 8px;
  text-align: center;
  color: var(--cGrey);
  transition: 0.3s all ease;
}

.footer-left {
  border-right: 1px solid var(--cGrey);
}

@media (max-width: 576px) {
  .card-footer {
    display: flex;
    flex-direction: column;
  }

  .footer-left {
    border-right: none;
    border-bottom: 1px solid var(--cGrey);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

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

@media (max-width: 1100px) {
  .fitzek-filter-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .fitzek-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.has-hero-bg {
  background: none !important;
}

.has-hero-bg:after {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: url('https://fwback-wp.devbs.de/wp-content/uploads/hero_news_bg_archive.webp')
    center/cover no-repeat;
  z-index: -1;
}

.weekly-quiz-wrapper {
  background: url('https://fwback-wp.devbs.de/wp-content/uploads/hero_news_bg_archive.webp')
    center/cover no-repeat;
  padding: 40px;
  text-align: center;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cGreyDark);
  border-radius: var(--radius-xl);
}
.quiz-btn {
  appearance: none !important;
  -webkit-appearance: none;
  border: none;
  padding: 12px 30px;
  min-width: 200px;
  width: 80%;
  min-height: 40px;
  transition: 0.3s all ease;
  transform: scale(1);
}

.quiz-btn:hover {
  transform: scale(1.05);
}
