/* Grundlayout */

/* Sticky Footer Setup */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1 0 auto; /* Inhalt wächst, Footer unten */
}

.page-footer {
  flex-shrink: 0; /* Footer bleibt unten */
}

/* Download-Bereich */
#downloadSection {
  width: 80%;
  max-width: 960px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: #2575fc;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumb a {
  color: #2575fc;
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: white;
  text-decoration: underline;
}
.breadcrumb span {
  color: #666;
}

/* Sortierbuttons über der Tabelle (Gradient-Style) */
.sort-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 0;
}

.sort-buttons .sort-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-family: "Michroma", sans-serif;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: 0.3s;
}

.sort-buttons .sort-btn::before {
  content: "⇵ ";
  margin-right: 5px;
}

.sort-buttons .sort-btn:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: translateY(-2px);
  font-weight: 600;
}

.sort-buttons .sort-btn.active {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  font-weight: 600;
}

/* Tabelle */
.table-wrapper {
  overflow-x: auto;
}
.download-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(40, 40, 40, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.download-table th, .download-table td {
  padding: 14px 20px;
  vertical-align: middle;
}
.download-table thead tr {
  background: rgba(191,121,255,0.12);
  border-bottom: 2px solid rgba(191,121,255,0.12);
}
.download-table th {
  color: #2575fc;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  position: sticky;
  top: 0;
  backdrop-filter: blur(5px);
}

/* Name-Spalte: Icon + Name linksbündig */
.download-table th.name,
.download-table td.name {
  text-align: left;
}
.download-table td.name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.download-table td.name .icon {
  font-size: 22px;
  color: #2575fc;
  flex-shrink: 0;
}
.download-table td.name a {
  color: #2575fc;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
.download-table td.name a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Size & Date Spalten */
.download-table th.size,
.download-table td.size {
  text-align: right;
  width: 100px;
}
.download-table th.date,
.download-table td.date {
  text-align: right;
  width: 140px;
}

/* Zeilen Hover */
.download-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background-color 0.25s ease;
}
.download-table tbody tr:hover {
  background-color: rgba(191,121,255,0.06);
}

/* Keine Dateien */
.no-files {
  text-align: center;
  color: #999;
  padding: 50px 20px;
  font-size: 16px;
}

/* Responsive */
@media(max-width:768px){
  #downloadSection{width:95%;padding:18px;}
  .download-table th.size,.download-table td.size,
  .download-table th.date,.download-table td.date{display:none;}
  .sort-buttons{gap:10px;flex-wrap:wrap;}
  .sort-btn{padding:7px 12px;font-size:12px;}
}
@media(max-width:480px){
  .breadcrumb{font-size:11px;}
  .sort-buttons{gap:8px;justify-content:center;}
  .sort-btn{padding:6px 10px;margin:3px 2px;font-size:11px;flex:1 1 auto;min-width:fit-content;}
}