*{
  box-sizing: border-box;
}


/* Grundlayout */
body {
  margin: 0;
  background: url(HINTERGRUND.JPG);
  background-size: cover;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

/* Finder-Fenster */
.finder-window {
  width: 800px;
  height: 600px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: absolute;
  top: 50px;
  left: 50px;
  overflow: hidden;
}

/* Finder-Header */
.finder-header {
  height: 38px;
  background: #f5f5f5;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: move;
  user-select: none;
}

/* Fensterkontrollen */
.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.window-controls .red { background: #ff5f57; }
.window-controls .yellow { background: #ffbd2e; }
.window-controls .green { background: #28c840; }

.finder-header .title {
  margin-left: 20px;
  font-weight: 500;
  font-size: 13px;
}


.finder-body {
  display: flex;
  height: calc(100% - 38px);
}


.sidebar {
  width: 180px;
  background: #f1f1f1;
  padding: 10px;
  font-size: 13px;
  border-right: 1px solid #ccc;

  overflow-y: auto;   /* 👈 DAS ist der wichtige Teil */
}

.sidebar h4 {
  font-size: 11px;
  color: #ccc;
  margin: 15px 0 5px;
  text-transform: uppercase;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 15;

}


.sidebar li {
  padding: 3px 0;
  cursor: default;
}

.tags li::before {
  content: "•";
  margin-right: 6px;
}

/* Main Area */
.main-area {
  flex: 1;
  background: white;
  padding: 15px;
  overflow-y: auto;
  width: 100%;      
  box-sizing: border-box;
}

.files-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file {
  width: 80px;
  text-align: center;
  font-size: 10px;
  color: #333;
  padding: 12px;
}



.file img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 1px;
  border: 3px solid white; 
  cursor: pointer;
  
  
  box-shadow: 
    0 1px 1px rgba(0,0,0,0.1),  
    0 4px 8px rgba(0,0,0,0.15);  
  background-clip: padding-box;
}

.file img:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 2px 2px rgba(0,0,0,0.15),
    0 8px 16px rgba(0,0,0,0.25);
}



.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(204, 204, 204, 0.69);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.overlay img {
  max-width: 80%;
  max-height: 80%;
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.controls {
  display: flex;
  gap: 20px;
}

.controls button,
.controls a {
  color: white;                /* Textfarbe weiß */
  background: none;            /* Kein Hintergrund */
  border: none;                /* Kein Rahmen */
  padding: 10px 20px;
  border-radius: 0;            /* Keine Rundung */
  text-decoration: none;
  font-weight: lighter;
  cursor: pointer;
}


a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;          
  text-decoration: none;   
}

#closeBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.thumb {
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: transform 0.2s;
}

.thumb:hover {
  transform: scale(1.05);
}

/* Einheitliches minimalistisches Apple-Styling für Buttons & Links */

#downloadBtn,
#prevBtn,
#nextBtn {
  all: unset; /* entfernt ALLE Standard-Stile */
  color: white !important;
  font-size: 28px;
  font-weight: 300;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  display: inline-block;
  padding: 0 10px;
  text-align: center;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Speziell für <a> (Download-Link), um blau zu verhindern */
#downloadBtn:link,
#downloadBtn:visited,
#downloadBtn:hover,
#downloadBtn:active {
  color: white !important;
  text-decoration: none !important;
}


.blur {
  filter: blur(4px); /* leichte Unschärfe */
  transition: filter 0.3s ease;
}

#fullImage.blur {
  filter: blur(20px);
}

.file div {
  margin-top: 6px;

  word-break: normal;
  overflow-wrap: break-word; /* ✅ besser für Safari */

  white-space: normal;
}

.file{
  transition: transform .15s ease;
}

.file:hover{
  transform: scale(1.03);
}