        
        .h1 span {
            font-weight: normal;
        }
        .h1 span {
            font-weight: normal;
        }
        /* Wichtig: damit das Ribbon korrekt "oben drauf" sitzt */
/* Wrapper */
.button-wrapper{
  position: relative;
  overflow: hidden;
}

/* Ribbon – links, rot, dezent */
.button-wrapper .ribbon{
  position: absolute;
  top: 14px;
  left: -48px;
  transform: rotate(-35deg);
  z-index: 3;

  padding: 6px 54px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;

  border-radius: 9px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: rgba(255, 255, 255, .95);
  background: rgba(220, 38, 38, .85); /* ruhig, nicht knallig */
  border: 1px solid rgba(220, 38, 38, .95);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* Dark Mode */
@media (prefers-color-scheme: dark){
  .button-wrapper .ribbon{
    background: rgba(239, 68, 68, .75);
    border: 1px solid rgba(239, 68, 68, .9);
    box-shadow: 0 12px 26px rgba(0,0,0,.35);
  }


/* Kachel-Ribbon nur anzeigen, wenn has-ribbon gesetzt ist */
.button-wrapper:not(.has-ribbon) .ribbon{
  display: none;
}
  .category-button-mit-herz .subtitle{
    color:#cbd5f5 !important; /* hell, ruhig, gut lesbar */
  }
}

/* ================================
   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;
}
}



/* 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;
  }
}


/* ===============================
   HERO – Grundwortschatz (UX)
================================ */

.grundwortschatz-highlight, 
.highlight-section {
    background-color: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 50px rgba(0,0,0,.1);
    padding: 32px 18px 28px 28px; /* ⬅️ mehr links */
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-radius: 25px;
    max-width: 850px;
  }

  .container-yellow {
    border-radius: 25px;
    box-shadow: 0 18px 50px rgba(0,0,0,.2);
    
  }

.highlight-text {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 18px;
}

.highlight-text h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 14px;
  font-weight: 700;
  color: #111;
}

.highlight-text h2 mark {
  background: #ffe066;
  padding: 0 6px;
  border-radius: 6px;
}

.highlight-text p {
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 18px;
}

/* ===== Primary CTA ===== */
.highlight-text > a,
.highlight-text .cta-start {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 22px;
  background: #e53935;
  color: #fff;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.highlight-text > a:hover,
.highlight-text .cta-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

/* ===== Secondary CTA (Video) ===== */
.highlight-text .cta-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .95rem;
  color: #555;
  cursor: pointer;
  text-decoration: underline;
}

.highlight-text .cta-video:hover {
  color: #111;
}

/* ===== Benefits ===== */
.zusatz-hinweis {
  margin-top: 18px;
  color: #666;
  font-size: .85rem;
}

/* ===============================
   VIDEO SECTION (sekundär!)
================================ */

.hero-video {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.hero-media {
  overflow: hidden;
  
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}



/* ===============================
   Apple Liquid Glass – Info Card
================================ */

.info-card {
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.35),
      rgba(255,255,255,0.15)
    );

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  border-radius: 26px;
  padding: 18px 20px;
  margin-top: 14px;

  /* Glass edge + depth */
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 14px 36px rgba(0,0,0,0.18);
}

/* Headline */
.info-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.25px;
  margin-bottom: 6px;
  color: rgba(25,25,25,0.95);
}

/* Text */
.info-card p {
  font-size: .95rem;
  line-height: 1.45;
  color: rgba(40,40,40,0.75);
  margin-bottom: 14px;
}

/* Button inside glass */
.info-card .btn-primary {
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.6)
    );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(20,20,20,0.95);

  padding: 11px 18px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.6);

  font-weight: 500;
  letter-spacing: -0.2px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 6px 16px rgba(0,0,0,0.18);

  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.info-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 10px 26px rgba(0,0,0,0.22);
}

.info-card .btn-primary:active {
  transform: translateY(0) scale(0.97);
}


/* ===============================
   DARK MODE
================================ */

@media (prefers-color-scheme: dark) {

  .grundwortschatz-highlight {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .highlight-text h2 {
    color: #f8fafc;
  }

  .highlight-text p {
    color: #cbd5f5;
  }

  .highlight-text h2 mark {
    background: #facc15;
    color: #111;
  }

  .highlight-text .cta-video {
    color: #cbd5f5;
  }

  .zusatz-hinweis {
    color: #94a3b8;
  }



  .info-card {
    background: rgba(15,23,42,.50);
    color: #f1f5f9;
  }

  .info-card h2 {
    color: #f8fafc;
  }

  .info-card p {
    color: #cbd5f5;
  }

  .info-card .btn-primary {
    background: rgba(255,255,255,.2);
    color: #f8fafc;
  }

  .info-card .btn-primary:hover {
    background: rgba(255,255,255,.35);
  }
}

/* ===============================
   DESKTOP (dezent!)
================================ */

@media (min-width: 900px) {
  .highlight-text h2 {
    font-size: 2rem;
  }

  .hero-video {
    margin-top: 42px;
  }


}
html {
  scroll-behavior: smooth;
}
#grundwortschatz {
  scroll-margin-top: 100px; /* Höhe deiner Fixed-Bar + Luft */
}


/* Mobile: Kurz erklärt über dem Video platzieren */

/* ===============================
   MOBILE OVERLAP – NUR MEDIA
================================ */

@media (max-width: 768px) {
  .info-card {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .hero-video {
    position: relative;
  }

.hero-video::after {
  content: "▶︎ Erklärvideo ansehen";
  position: absolute;
  bottom: 19%;
  right: 29px;
  z-index: 20;

  padding: 14px 20px;
  font-size: 18px;
  font-weight: 600;              /* etwas ruhiger */
  letter-spacing: -0.25px;

  color: rgba(25,25,25,0.95);

  /* Glass */
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.35),
      rgba(255,255,255,0.1)
    );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  /* Edge highlight */
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);

  /* Apple-like depth */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 10px 30px rgba(0,0,0,0.18);

  /* Interaction */
  pointer-events: none;
  user-select: none;
}


  .hero-media {
    cursor: pointer;
  }


    .grundwortschatz-highlight, 
.highlight-section {
    padding: 15px 18px 15px 12px; /* ⬅️ mehr links */

  }
}

@media (max-width: 768px) {
  .hero-media {
    cursor: pointer;
  }
    .hero-video:active::after {
    transform: scale(0.96);
  }
}

@media (prefers-color-scheme: dark) {
  .hero-video::after {
    content: "▶︎ Erklärvideo ansehen";
    position: absolute;
    bottom: 19%;
    right: 29px;
    z-index: 20;

    padding: 14px 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.25px;

    color: rgba(255,255,255,0.92);

    /* Dark Glass */
    background:
      linear-gradient(
        to bottom,
        rgba(30,30,30,0.4),
        rgba(30,30,30,0.2)
      );

    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);

    /* Glass edge */
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);

    /* Depth */
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.12),
      0 10px 30px rgba(0,0,0,0.6);

    /* Interaction */
    pointer-events: none;
    user-select: none;
  }
}

@media (prefers-color-scheme: dark) and (min-width: 768px) {
  .hero-video::after {
    content: none;
  }
}
