/* separate link klasse */

.link {
  text-decoration: none;
  color: #2563eb;
  position: relative;
  transition: color 0.2s;
}

.link:hover {
  color: #1e40af;
}

.link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.link:hover::after {
  transform: scaleX(1);
}

/* literatursystem ab hier */


    .lit-container {
      max-width: 932px;
      margin: 0 auto;
    }

    .lit-book-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .lit-book-card {
      display: flex;
      gap: 24px;
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
      transition: all 0.2s;
      position: relative;
    }

    .lit-book-link {
      text-decoration: none;
      color: inherit;
      display: contents;  /* Changed to contents to prevent nesting issues */
    }

    .lit-book-link:hover .lit-book-title {
      color: #2563eb;
    }

    .lit-book-image-wrapper {
      width: 140px;
      height: 200px;
      flex-shrink: 0;
      cursor: zoom-in;
      position: relative;
      z-index: 1;
    }

    .lit-book-image {
      max-width: 140px;
      max-height: 200px;
      width: auto;
      height: auto;
      position: absolute;
      top: 0;
      left: 0;
      transition: all 0.3s ease;
      object-fit: contain;
      border-radius: 6px;
      transform-origin: bottom left;
      transform-box: fill-box;
    }

    .lit-book-image:hover {
      max-width: 466px;
      max-height: none;
      z-index: 2;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      transform: translateY(-100%) translateY(200px);
    }

    .lit-book-content {
      display: flex;
      flex-direction: column;
      gap: 8px;
      position: relative;
      z-index: 0;
      flex: 1;
    }

    .lit-book-title {
      font-size: 1rem;
      font-weight: 600;
      color: #1a1a1a;
      font-family: Arial, sans-serif;
      margin: 0;
      transition: color 0.2s;
    }

    .lit-book-description {
      color: #666;
      line-height: 1.5;
      font-family: Arial, sans-serif;
      font-size: 0.8rem;
      margin: 0;
    }

    .lit-book-description a {
      color: #2563eb;
      text-decoration: none;
      transition: all 0.2s;
      font-weight: 500;
      padding-bottom: 1px;
      border-bottom: 1px solid transparent;
    }

    .lit-book-description a:hover {
      border-bottom-color: #2563eb;
    }

    .lit-book-description a.reference {
      color: #059669;
      background: #ecfdf5;
      padding: 0.1em 0.4em;
      border-radius: 4px;
      border-bottom: none;
    }

    .lit-book-description a.reference:hover {
      background: #d1fae5;
    }

    .lit-book-description a.external {
      color: #7c3aed;
      border-bottom: 1px dotted #7c3aed;
      padding-bottom: 0;
    }

    .lit-book-description a.external:hover {
      color: #6d28d9;
      border-bottom-style: solid;
    }

    @media (max-width: 600px) {
      .lit-book-card {
        flex-direction: column;
        padding: 16px;
      }

      .lit-book-image-wrapper {
        width: 100%;
        height: auto;
        position: static;
        text-align: center;
      }

      .lit-book-image {
        position: static;
        max-width: 100%;
        max-height: 240px;
        margin: 0 auto;
      }

      .lit-book-image:hover {
        transform: scale(1.1);
        max-width: 100%;
      }

      .lit-book-content {
        width: 100%;
      }
    }