body::before {
    content: "";
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 1600px;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 90% 40% at top center,
            #cc284f29,
            transparent 100%
        );
      
}

.burning-logo {
  width: 50px; /* oder was du brauchst */
  animation: burn .5s infinite alternate;
  filter: drop-shadow(0 0 5px #ff6600) drop-shadow(0 0 10px #ff3300);
  transition: transform 0.1s ease;
}

@keyframes burn {
  0% {
    filter: drop-shadow(0 0 5px #ff6600) drop-shadow(0 0 120px #ff3300);
    transform: scale(1) rotate(0deg);
  }
  100% {
    filter: drop-shadow(0 0 10px #ff4800) drop-shadow(0 0 140px #ff6600);
    transform: scale(1.02) rotate(0deg);
  }
}


:root {
  --glow-color: #620a7c;
  --glow-small: 100px;
  --glow-large: 100px;
}

#RyuLogo.scale {
  animation: burn2 .5s infinite alternate;
  filter: drop-shadow(0 0 var(--glow-small) var(--glow-color)) drop-shadow(0 0 var(--glow-large) var(--glow-color)) !important;
  transition: transform 0.5s ease;
}

@keyframes burn2 {
  0% {
    filter: drop-shadow(0 0 var(--glow-small) var(--glow-color)) drop-shadow(0 0 calc(var(--glow-large) * 1.2) var(--glow-color));
    transform: scale(1,1) rotate(0deg);
  }
  100% {
    filter: drop-shadow(0 0 calc(var(--glow-small) * 2) var(--glow-color)) drop-shadow(0 0 calc(var(--glow-large) * 2.4) var(--glow-color));
    transform: scale(1.1) rotate(0deg);
  }
}


.media-gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2em;
    overflow-x: auto;
    padding: 15px 0;
    white-space: nowrap;
    scrollbar-width: thin;
    position: relative;
    z-index: 1;
  }

  .gallery-image {
   
    max-width: 195px;
    height: auto;
    flex: 0 0 auto;
    border-radius: 5px;
    border: 0.075em solid var(--card-brd);

    box-shadow: 0 0 0 0.16em #fff,
                0 0 0 0.2em var(--card-brd);
  }

  .gallery-image:hover {
     transform: scale(1.05);
  }

  .media-item p {
      margin-top: 8px;
      text-align: center;
      font-size: 1.2rem !important;
      background: var(--card-brd);
      color: white;
      border-radius: 5px;
      border: 2px solid var(--card-brd);
  }

  /*   --------------- LightBox  --------------- */

/* Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;               
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 200000;
}
.lightbox.is-open { display: flex; }
body.lb-open { overflow: hidden; }


.lb-window {
  display: flex;
  flex-direction: column;
  max-width: 90vw;
  max-height: 85vh;
  background: #16181d;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: hidden;             
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}


.lightbox__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  padding: 10px 12px;
  background: #222;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.lightbox__title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.lightbox__close {
  border: none;
  display: inline-flex;
  background: transparent;
  appearance: none;
  width: 32px;
  height: 32px;
  padding: 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-align:center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.lightbox__close:hover { 
  transform: scale(1.25);
 }


.lb-content {
  display: grid;
  place-items: center;
  background: #000;             
}


.lightbox__img {
  display: block;
  max-width: min(90vw, 1400px);
  max-height: calc(85vh - 48px);
  object-fit: contain;
}


body.lb-open { overflow: hidden; }

@media screen and (max-width: 736px) {

  /* 1. Compendium Button & Header-Abstände fixen */
  a.button {
    display: inline-block;
    max-width: 100%;
    white-space: normal; /* Erlaubt Textumbruch bei langen Buttons */
    height: auto;
    line-height: 1.4;
    padding: 0.8em 1em;
  }

  /* Abstand vor neuen Überschriften sichern */
  section.main special header.major h2,
  #second h2 {
    margin-top: 1.5em;
    clear: both;
  }

  /* 2. Media Gallery (Mobil untereinander oder flexibel umbrechen) */
  .media-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    width: 100%;
  }

  .media-item {
    width: 85%; /* Zwingt die Boxen in ein schönes, kompaktes Format */
    max-width: 280px; /* Hält sie im perfekten Verhältnis */
    margin: 0 auto;
    text-align: center;
  }

  

  .gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }


  /* 3. Chips / Tags auf Mobile in neuer Zeile & mit Abstand */
  .chip {
    display: inline-block;
    margin: 0.3em 0.15em; /* Sorgt für vertikalen & horizontalen Abstand */
    vertical-align: middle;
  }

  #second p br {
    display: block;
    width: 100%;
    content: "";
    margin-top: 0.5em; /* Abstand nach dem Text */
  }
}