.lncu-pullup-section {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 20;
    justify-content: center;
    width: 100%;
    padding: 0 0 0 1rem;
    counter-reset: materialitem; /*Für Nummerierung unter Reihe notwendig*/
}

.lncu-pullup-container {
    display: flex;
    position:relative;
    flex-wrap: nowrap;
    width: 2000px;
}

.lncu-pullup {
    display: flex;
    position: absolute;
    left: 0;
    bottom: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 420px;
    height: 90vh; /*max-height*/
    max-width: 100%;
    touch-action: none;
    pointer-events: auto;
    will-change: transform;
    overscroll-behavior: contain;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding-top: 1.2rem;
    background: linear-gradient(to top, var(--bricks-color-blue-400), var(--bricks-color-white));
    overflow: hidden;
    transform: translateY(100%); /*Initial: Nach ganz unten schieben*/
}

.lncu-pullup.is-ready {
  transition: transform 0.35s ease;
  visibility: visible;
}

.lncu-pullup::before {
    --width: 2.5rem;
    content: '';
    position: absolute;
    top: 0.75rem;
    left: calc(50% - var(--width) / 2);
    width: var(--width);
    height: 0.5rem;
    background-color: var(--bricks-color-blue-400);
    border-radius: 1rem;
}

body, html {
    overscroll-behavior-y: none;
    touch-action: auto;
}

body.no-scroll {
    overflow: hidden;
}

footer {
    padding-bottom: 6rem;
}

/*Styling bei EXPANDED*/
.lncu-pullup.expanded {
    flex-direction: column;
}

.lncu-pullup.expanded .lncu-pullup-topbar {
  display: flex;
}

.lncu-pullup.expanded .lncu-pullup-toc-container ul li a span:last-of-type {
  display: flex; /*Titel der Einträge anzeigen*/
}

.lncu-pullup.expanded .lncu-pullup-toc-container, .lncu-pullup.expanded .lncu-pullup-reihe-container {
  touch-action: pan-y;
}

.lncu-pullup.expanded .lncu-pullup-toc-container ul {
  flex-direction: column; /*Zeilenansicht im expandierten Zustand*/
}

.lncu-pullup.expanded .lncu-pullup-toc-container ul li a {
  width: 100%;
  padding: 1rem;
}

.lncu-pullup.expanded .lncu-pullup-toc-container ul li a:hover{
  outline-offset: -1px;
  outline: 2px solid var(--bricks-color-blue-200);
  filter: none;
}

.lncu-pullup-toc-container.open, .lncu-pullup-reihe-container.open {
  display: flex;
}

/*Scrollbars*/
.lncu-pullup.notouch #nav-unterrichtsreihe {
  overflow-y:scroll; /*Platz für Scrollbar reservieren auf Desktops!*/
}

.lncu-pullup.notouch *::-webkit-scrollbar {
  background-color: var(--bricks-color-blue-500);
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 1rem;
}

.lncu-pullup.notouch *::-webkit-scrollbar-thumb {
  background-color: var(--bricks-color-blue-400);
  border-radius: 1rem;
  cursor: grab;
}

.lncu-pullup.notouch *::-webkit-scrollbar-thumb:hover {
  background-color: var(--bricks-color-blue-300);
}

/*Standardwerte im kollabierten Zustand*/
.lncu-pullup-topbar {
  display: none;
  flex-direction: row;
  column-gap: 1rem;
  flex-wrap: nowrap;
  padding: 1rem;
  width: 100%;
}

.lncu-pullup-topbar svg {
  height: 20px;
}

.lncu-pullup-topbar > button {
  display: flex;
  gap: 1rem;
  min-width: 3.5rem;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lncu-pullup-close-button {
  color: var(--bricks-color-akzent-100);
  background-color: var(--bricks-color-blue-600);
}

.lncu-pullup-share-button {
  color: var(--bricks-color-blue-100);
  background-color: var(--bricks-color-blue-600);
}

.lncu-pullup-toc-button, .lncu-pullup-reihe-button {
  padding: 0 0.5rem 0 0.5rem;
  flex-grow: 1;
}

.lncu-pullup-toc-button {
  color: var(--bricks-color-violet-100);
  background-color: var(--bricks-color-violet-600);
}

.lncu-pullup-reihe-button {
  color: var(--bricks-color-green-100);
  background-color: var(--bricks-color-green-600);
}

.lncu-pullup-toc-container {
  touch-action: pan-x;
}

.lncu-pullup-toc-container, .lncu-pullup-reihe-container {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display: none;
  flex-direction: column;
}

.lncu-pullup-reihe-container {
  padding: 1rem;
  gap: 1rem;
}

.lncu-pullup-toc-container ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  width: 100%;
}

.lncu-pullup-toc-container ul li {
  display: block;
  padding: 0;
  margin: 0;
}

.lncu-pullup-toc-container ul li a {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0;
  align-items: center;
  border-radius: 1rem;
  color: var(--bricks-color-blue-100);
  background-color: var(--bricks-color-white);
  width: fit-content;
}

.lncu-pullup-toc-container ul li a:hover {
  outline: none;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.lncu-pullup-toc-container ul li a span:last-of-type {
  display: none;
}

.lncu-pullup-toc-container ul li a span svg {
  height: 20px;
}

.lncu-toc-material-reference, .lncu-toc-versuch-reference, .lncu-toc-einzelnachweise-reference, .lncu-toc-aufgaben-reference, .lncu-toc-comments-reference {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 3.5rem;
  min-height: 3.5rem;
  font-weight: bold;
  font-size: 1.7rem;
  border-radius: 1rem;
}

.lncu-toc-material-reference {
  background-color: var(--bricks-color-blue-400);
  color: var(--bricks-color-blue-100);
}

.lncu-toc-versuch-reference {
  background-color: var(--bricks-color-violet-500);
  color: var(--bricks-color-violet-100);
}

.lncu-toc-aufgaben-reference {
  background-color: var(--bricks-color-akzent-300);
  color: var(--bricks-color-white);
}

.lncu-pullup-toc-container ul li a.fakultativ .lncu-toc-aufgaben-reference {
  background-color: var(--bricks-color-green-300);
}

.lncu-pullup-toc-container ul li a.teacher .lncu-toc-aufgaben-reference {
  background-color: var(--bricks-color-violet-500);
}

.lncu-toc-einzelnachweise-reference, .lncu-toc-comments-reference {
  background-color: var(--bricks-color-blue-400);
  color: var(--bricks-color-white);
}

/*Highlighting*/
.lncu-pullup-toc-container ul li a.active span:first-child {
  box-shadow: 0 0 0 0 var(--bricks-color-akzent-100);
  animation: lncu-toc-pulse 1.7s infinite;
  outline-offset: -2px;
  outline: 2px solid var(--bricks-color-akzent-100);
}

@keyframes lncu-toc-pulse {
  100% {box-shadow: 0 0 0 7px rgba(255, 102, 0, 0);}
}

/*Media Queries*/

@media screen and (max-width: 1960px) {
    .lncu-pullup {
        box-shadow: rgba(0,0,0,0.3) 0px 3px 8px;
    }
}

@media (max-width: 478px) {
    .lncu-pullup-section {
        padding-left: 0;
    }

    .lncu-pullup {
        width: 100%;
    }
}

@media print {
  .lncu-pullup-section {
    display: none;
  }
}