/* Grundlayout */
body {
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  color: #1f2937;
  background: #f8fafc;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container des Listings */
#indexlist, table {
  width: min(1100px, 92vw);
  margin: 48px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  overflow: hidden;
  border-collapse: collapse;
}

/* Kopfzeile */
th {
  text-align: left;
  font-weight: 600;
  padding: 14px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e5e7eb;
}

/* Zeilen */
td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* Name-Spalte wird breiter dargestellt */
td:nth-child(2) { width: 60%; }

/* Icon + Name als kompakter "Row" */
td:first-child img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  opacity: .9;
}

td:nth-child(2) a {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 8px;
}

/* Hover-Effekt pro Zeile */
tr:hover td {
  background: #f8fafc;
}

/* Breadcrumbs (vom Apache-Header kommen) */
#breadcrumb {
  width: min(1100px, 92vw);
  margin: 24px auto 0;
  font-size: 14px;
  color: #475569;
}
#breadcrumb a { color: #0ea5e9; }

/* Hint unter der Tabelle (Footer) */
#readme {
  width: min(1100px, 92vw);
  margin: 8px auto 40px;
  color: #64748b;
  font-size: 14px;
}

/* Bild-Preview Bubble */
#img-preview {
  position: fixed;
  display: none;
  top: 12px; left: 12px;
  max-width: min(20vw, 260px);
  max-height: 70vh;
  padding: 8px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 9999;
}
#img-preview img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
#img-preview .name { margin-top: 6px; font-size: 13px; color: #475569; overflow-wrap: anywhere; }

/* Mobile Tweaks */
@media (max-width: 720px) {
  td:nth-child(3), th:nth-child(3) { display: none; } /* Größe ausblenden */
  td:nth-child(4), th:nth-child(4) { display: none; } /* Datum ausblenden */
}
