/* ================================
   Story Navigation – Instagram Style
   schulspanisch.de
================================ */

/* Wrapper */
/* Wrapper – Scrollbar verstecken */
.story-nav-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  padding: 12px 0;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none; /* Firefox */
}

.story-nav-wrapper::-webkit-scrollbar {
  display: none;
}


/* Liste */
.story-nav {
  display: flex;
  padding-left: 32px;
  padding-right: 24px;
  list-style: none;
  margin: 0;

  width: max-content;   /* 🔑 wichtig */
  box-sizing: border-box;
}



/* Item */
.story-item {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
}

/* Link */
.story-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ================================
   Story Circle (IG Ring)
================================ */
.story-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
}

.story-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}



/* ================================
   Label
================================ */
.story-label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--story-label-color, #222);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
  margin: 0 auto;
  letter-spacing: 0.01em;
  opacity: 0.85;  
}


/* Optional: „gesehen“-Style */
.story-item.seen .story-circle {
  background: linear-gradient(
    45deg,
    #ccc,
    #bbb
  );
}

/* ================================
   Dark Mode
================================ */
@media (prefers-color-scheme: dark) {
  .story-label {
    color: #e5e5e5;
  }

}

/* ================================
   Desktop
================================ */
@media (min-width: 768px) {
  .story-item {
    width: 76px;
  }

  .story-circle {
    width: 72px;
    height: 72px;
  }



  .story-circle img {
    width: 64px;
    height: 64px;
  }

  .story-label {
    font-size: 13px;
  }
}
/* ================================
   Sehr kleine Displays (iPhone SE, alte Androids)
================================ */

/* ================================
   Story Navigation – Überschrift
================================ */

.story-nav-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 10px;
  opacity: 0.8;
}

.story-nav-title h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  color: #444;
}

.story-nav-title span {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .story-nav-title h3 {
    color: #bbb;
  }

  .story-nav-title span {
    background: rgba(255, 255, 255, 0.15);
  }
}
/* ================================
   Story Navigation – Container
================================ */
.story-nav-container {
  width: 100%;
  max-width: 675px; /* Maximale Breite des Containers */
  overflow-x: hidden;
  margin: 6px auto 18px;
padding-left: 10px;
padding-right: 24px;


}
@media (min-width: 768px) and (max-width: 1024px) {
.story-nav-container {
    width: 100%;
  }


/* Optional: leicht absetzen vom restlichen Content */
.story-nav-container + * {
  margin-top: 8px;
}
.story-nav-container.is-emphasized {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

@keyframes storyImgPulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
  50% {
    opacity: 0.94;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.35);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@media (prefers-color-scheme: dark) {
  @keyframes storyImgPulse {
    0% {
      opacity: 1;
      box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
    50% {
      opacity: 0.92;
      box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.4);
    }
    100% {
      opacity: 1;
      box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
  }
}
@media (prefers-color-scheme: dark) {
  .story-nav-container.is-emphasized {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}


#popup-toggle-qr-code-aufgaben {
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#popup-toggle-qr-code-aufgaben:hover {
  opacity: 0.67;
}

#popup-toggle-qr-code-aufgaben:active {
  transform: scale(0.96);
}


html {
  scrollbar-gutter: stable;
}
.story-nav-container {
  isolation: isolate;
  contain: layout paint;
}
.story-icon {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 6px;
}
}


@media (max-width: 599px) {
  .grundwortschatz-highlight .section-head,
  .grundwortschatz-highlight .vokabeln-info-grid,
  .grundwortschatz-highlight .zusatz-hinweis {
    display: none !important;
  }
}

@media (max-width: 599px) {
  .info-bereich-mobil-aus {
    display: none !important;
  }
}

/* Default: Light Mode */
.story-icon.icon-dark {
  display: none;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .story-icon.icon-light {
    display: none;
  }
  .story-icon.icon-dark {
    display: block;
  }
}

