/* Container für horizontales Scrollen (nur aktiv, wenn Screen breiter als Mobile) */
.ver-table-wrapper {
  width: 100%;
  overflow-x: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.ver-table {
  width: 100%;
  border-collapse: collapse;
  /* min-width: 800px entfernt — Hash umbricht jetzt */
  font-size: 0.9rem;
}

.ver-table th, .ver-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.ver-table th {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ver-table tr:last-child td {
  border-bottom: none;
}

.ver-table tr {
  transition: background 0.2s ease;
}

.ver-table tr:hover {
  background: rgba(110, 231, 255, 0.05);
}

/* --- Spezifische Spalten-Styles (Desktop) --- */
.col-filename {
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  /* ÄNDERUNG: Schrift kleiner gemacht, damit Block sichtbar bleibt */
  font-size: 1rem; 
  max-width: 340px; /* Optional: begrenzt Breite extrem langer Namen */
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-hash {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  word-break: break-all;
  white-space: normal;
}

.col-block {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent-2);
  width: 1%;
  white-space: nowrap;
}

/* Copy-Button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110, 231, 255, 0.1);
  box-shadow: 0 0 8px rgba(110, 231, 255, 0.2);
}

.copy-btn.copied {
  border-color: #4ade80;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  pointer-events: none;
}

/* Schmale Spalten: Copy, Button & Block nur so breit wie ihr Inhalt */
.ver-table td:has(.copy-btn),
.ver-table td:has(.ots-btn) {
  width: 1%;
  white-space: nowrap;
}

/* Download Button Style */
.ots-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px; /* Etwas kompakter */
  border: 1px solid var(--accent-3);
  border-radius: 4px;
  background: rgba(47, 161, 255, 0.1);
  color: var(--accent-3);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ots-btn:hover {
  background: var(--accent-3);
  color: #000;
  box-shadow: 0 0 10px var(--accent-3);
  text-decoration: none;
}

.ots-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- MOBILE VERSION (Karten-Design) --- */
@media (max-width: 900px) {
  
  /* Wrapper Reset: Scrollen deaktivieren, da wir stapeln */
  .ver-table-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow-x: visible;
  }

  .ver-table {
    min-width: 100%; /* Volle Breite nutzen */
    display: block;
  }

  /* Header verstecken */
  .ver-table thead {
    display: none;
  }

  .ver-table tbody {
    display: block;
    width: 100%;
  }

  /* Die Tabellenzeile wird zur "Karte" */
  .ver-table tr {
    display: grid;
    /* Grid-Layout: 
       Zeile 1: Name (flexibel) - Button - Block
       Zeile 2: Hash (volle Breite) 
    */
    grid-template-columns: 1fr auto auto; 
    grid-template-rows: auto auto;
    gap: 10px;
    
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box; /* Wichtig damit Padding nicht die Breite sprengt */
  }

  /* Zellen-Reset für Grid-Nutzung */
  .ver-table td {
    display: block;
    padding: 0;
    border: none;
    text-align: left;
  }

  /* 1. Spalte: Dateiname (Oben Links) */
  .ver-table td:nth-child(1) { /* Name */
    grid-column: 1 / 2;
    grid-row: 1;
    font-size: 0.95rem; /* Größer auf Mobile für Lesbarkeit */
    white-space: normal; /* Umbruch erlauben */
    align-self: center;
  }

  /* 2. Spalte: Hash (Unten, volle Breite) */
  .ver-table td:nth-child(2) { /* Hash */
    grid-column: 1 / 3; /* Hash nimmt erste zwei Spalten */
    grid-row: 2;
    font-size: 0.7rem;
    word-break: break-all; /* Erzwingt Umbruch bei langen Hashes */
    opacity: 0.6;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.1); /* Visuelle Trennung */
  }

  /* 4. Spalte (mobile): .ots Button (Oben Mitte) */
  .ver-table td:nth-child(4) { /* Beweis */
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: center;
  }

  /* 3. Spalte (mobile): Copy-Button (Unten Rechts, neben Hash) */
  .ver-table td:nth-child(3) { /* Copy */
    grid-column: 3 / 4;
    grid-row: 2;
    align-self: start;
    padding-top: 10px;
    text-align: right;
  }

  /* 5. Spalte (mobile): Block (Oben Rechts) */
  .ver-table td:nth-child(5) { /* Block */
    grid-column: 3 / 4;
    grid-row: 1;
    text-align: right;
    align-self: center;
    font-size: 0.8rem;
  }
  
  /* Fügt Label "Block:" vor der Nummer hinzu (optional, nur auf Mobile) */
  .ver-table td:nth-child(5)::before {
    content: "#";
    color: rgba(255,255,255,0.4);
    margin-right: 2px;
  }
}