/* ========================== */
/*  DOWNLOAD-BEREICH DESIGN   */
/*  angepasst an Haupt-Design */
/* ========================== */

/* Sticky Footer Setup */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #4c0640;
  color: white;
  font-family: "Poppins", sans-serif;
}

.page-wrapper {
  flex: 1 0 auto;
}

.page-footer {
  flex-shrink: 0;
}

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

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

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #ffb7ff;
  text-decoration: underline;
}
.breadcrumb span {
  color: #bbb;
}

/* Sortierbuttons */
.sort-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 0;
}

.sort-buttons .sort-btn {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #4c0640, #221122);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

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

.sort-buttons .sort-btn:hover {
  background: linear-gradient(135deg, #6a0a60, #4c0640);
  transform: translateY(-2px);
  border: 1px solid #fff;
}

.sort-buttons .sort-btn.active {
  background: linear-gradient(135deg, #ffffff22, #ffffff11);
  border: 1px solid #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Tabelle */
.table-wrapper {
  overflow-x: auto;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(240, 240, 240, 0.1);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.download-table th, .download-table td {
  padding: 14px 20px;
  vertical-align: middle;
}

.download-table thead tr {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.download-table th {
  color: #ffb7ff;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  position: sticky;
  top: 0;
  backdrop-filter: blur(5px);
}

/* Name-Spalte */
.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: #ffb7ff;
  flex-shrink: 0;
}
.download-table td.name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
.download-table td.name a:hover {
  color: #ffb7ff;
  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.08);
  transition: background-color 0.25s ease;
}
.download-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Keine Dateien */
.no-files {
  text-align: center;
  color: #ccc;
  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;}
}
