/**
 * Document List Paragraph Styles
 * 
 * Moderne Dokumenten-Liste mit Icons, Dateigrößen und Hover-Effekten
 */

/* Container */
.paragraph--type--document-list {
  padding: 0;
}

.paragraph--type--document-list .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.document-list {
  width: 100%;
}

/* Header */
.document-list-header {
  margin-bottom: 2rem;
  text-align: center;
}

.document-list-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary, #0066cc);
  margin: 0;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

/* Liste */
.document-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Einzelnes Dokument */
.document-list-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.document-list-item:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

/* Link */
.document-list-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

/* Icon Container */
.document-list-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.document-list-icon i {
  line-height: 1;
}

/* Icon Farben nach Dateityp - Microsoft Office Farben */
.document-list-icon--pdf {
  color: #F40F02;
}

.document-list-item:hover .document-list-icon--pdf {
  color: #C70D02;
}

.document-list-icon--word {
  color: #2B579A;
}

.document-list-item:hover .document-list-icon--word {
  color: #1F4175;
}

.document-list-icon--excel {
  color: #217346;
}

.document-list-item:hover .document-list-icon--excel {
  color: #185C37;
}

.document-list-icon--powerpoint {
  color: #D24726;
}

.document-list-item:hover .document-list-icon--powerpoint {
  color: #B53A1E;
}

.document-list-icon--file {
  color: #6b7280;
}

.document-list-item:hover .document-list-icon--file {
  color: #4b5563;
}

/* Datei-Informationen */
.document-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.document-list-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-list-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.document-list-size {
  font-weight: 500;
}

.document-list-type {
  padding: 0.125rem 0.375rem;
  background-color: #f3f4f6;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Download Icon */
.document-list-download-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.document-list-download-icon svg {
  width: 16px;
  height: 16px;
}

.document-list-item:hover .document-list-download-icon {
  color: #6b7280;
}

/* Footer */
.document-list-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.document-list-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.document-list-hint svg {
  flex-shrink: 0;
  color: var(--color-primary, #0066cc);
}

/* Empty State */
.document-list-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 640px) {
  .document-list {
    padding: 0 1rem;
  }

  .document-list-title {
    font-size: 1.5rem;
  }

  .document-list-link {
    padding: 0.5rem 0.75rem;
    gap: 0.625rem;
  }

  .document-list-icon {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }

  .document-list-name {
    font-size: 0.875rem;
  }

  .document-list-meta {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .document-list-download-icon {
    width: 36px;
    height: 36px;
  }

  .document-list-download-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Print Styles */
@media print {
  .document-list-item {
    break-inside: avoid;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
  }

  .document-list-item:hover {
    transform: none;
    box-shadow: none;
  }

  .document-list-download-icon {
    display: none;
  }

  .document-list-footer {
    display: none;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  .document-list-item {
    background: #1f2937;
    border-color: #374151;
  }

  .document-list-item:hover {
    background: #111827;
    border-color: var(--color-primary, #3b82f6);
  }

  .document-list-link:hover {
    background-color: #111827;
  }

  .document-list-name {
    color: #f9fafb;
  }

  .document-list-meta {
    color: #9ca3af;
  }

  .document-list-type {
    background-color: #374151;
    color: #d1d5db;
  }

  .document-list-download-icon {
    background-color: #374151;
    color: #9ca3af;
  }

  .document-list-hint {
    color: #9ca3af;
  }

  .document-list-footer {
    border-top-color: #374151;
  }
}