/* ── Bilderverzeichnis ──────────────────────────────── */

.bilder-wrap { padding: 4px 0; }

.bilder-breadcrumb {
	font-size: 12px;
	color: rgb(255, 255, 255);
	margin-bottom: 12px;
	padding: 6px 0;
	border-bottom: 1px solid rgb(155, 155, 155);
}

.bilder-breadcrumb a {
	color: rgb(100, 160, 230);
	text-decoration: none;
}
.bilder-breadcrumb a:hover { text-decoration: underline; }

.bilder-aktionen {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
	align-items: center;
}

.bilder-form-inline {
	display: flex;
	gap: 6px;
	align-items: center;
}

.bilder-file-input {
	font-size: 11px;
	color: rgb(255, 255, 255);
	background: none;
	border: none;
	cursor: pointer;
}

.bilder-hint {
	font-size: 11px;
	color: rgb(200, 200, 200);
}

/* ── Bilder-Dropzone ───────────────────────────────── */

.bilder-dropzone {
	border: 2px dashed rgb(170, 175, 195);
	border-radius: 6px;
	padding: 18px;
	margin-bottom: 14px;
	text-align: center;
	background-color: rgb(32, 34, 42);
	transition: border-color 0.2s, background-color 0.2s;
}

.bilder-dropzone.dragover {
	border-color: rgb(80, 140, 220);
	background-color: rgb(25, 35, 55);
}

.bilder-dropzone-text {
	font-size: 12px;
	color: rgb(220, 225, 245);
}

.bilder-dropzone-link {
	color: rgb(100, 160, 230);
	cursor: pointer;
	text-decoration: underline;
}

.bilder-dropzone-link:hover {
	color: rgb(130, 180, 240);
}

.bilder-dropzone-status {
	font-size: 11px;
	margin-top: 6px;
	min-height: 16px;
}

/* ── Verzeichnis-Liste ──────────────────────────────── */

.bilder-verz-liste {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgb(150, 150, 150);
}

.bilder-verz-item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background-color: rgb(38, 38, 38);
	border: 1px solid rgb(165, 165, 165);
	color: rgb(255, 255, 255);
	text-decoration: none;
	font-size: 12px;
}

.bilder-verz-item:hover {
	background-color: rgb(150, 150, 165);
	color: rgb(100, 170, 255);
}

.bilder-verz-icon { font-size: 14px; }

/* ── Bilder-Grid ────────────────────────────────────── */

.bilder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.bild-item {
	display: flex;
	flex-direction: column;
	background-color: rgb(38, 38, 38);
	border: 1px solid rgb(160, 160, 160);
	overflow: hidden;
}

.bild-item-vorschau {
	display: block;
	background-color: rgb(28, 28, 28);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.bild-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bild-name-zeile {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 5px;
}

.bild-name {
	display: block;
	font-size: 10px;
	color: rgb(240, 240, 240);
	padding: 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	flex: 1;
	min-width: 0;
}

.bild-name:hover {
	color: rgb(100, 170, 255);
}

.bild-checkbox {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	cursor: pointer;
	accent-color: rgb(60, 120, 200);
}

.bild-item.ausgewaehlt {
	border-color: rgb(60, 120, 200);
	background-color: rgb(30, 45, 70);
}

/* ── Massenaktions-Leiste ─────────────────────────── */

.bilder-massenaktionen {
	position: sticky;
	bottom: 0;
	z-index: 10;
	margin-top: 14px;
	padding: 10px 12px;
	background-color: rgb(30, 32, 40);
	border: 1px solid rgb(155, 160, 175);
	box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.bilder-massen-info {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: rgb(255, 255, 255);
}

.bilder-massen-alle-label {
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	font-size: 12px;
	color: rgb(255, 255, 255);
}

.bilder-massen-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bilder-massen-verschieben {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bilder-massen-verschieben select {
	min-width: 180px;
	font-size: 12px;
}

/* ── Bilderverzeichnis-Pfad-Zeile ───────────────────── */

.bilder-pfad-zeile {
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgb(155, 155, 155);
}

.bilder-pfad-label {
	font-size: 11px;
	color: rgb(220, 220, 220);
	font-family: monospace;
	letter-spacing: 0.3px;
}

/* ── Bilderbaum (linke Spalte) ──────────────────────── */

.bilder-baum-wrap {
	padding-bottom: 8px;
}

.bilder-baum-liste {
	list-style: none;
	margin: 0;
	padding-left: 16px;
	position: relative;
}

.bilder-baum-wurzel {
	padding-left: 0;
}

.bilder-baum-liste > li {
	position: relative;
}

.bilder-baum-liste:not(.bilder-baum-wurzel)::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 0;
	bottom: 10px;
	border-left: 1px dotted rgb(175, 175, 175);
}

.bilder-baum-liste:not(.bilder-baum-wurzel) > li::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 11px;
	width: 10px;
	border-top: 1px dotted rgb(175, 175, 175);
}

.bilder-baum-verz {
	display: block;
	padding: 3px 8px 3px 18px;
	font-size: 12px;
	color: rgb(255, 255, 255);
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
	user-select: none;
}

.bilder-baum-verz::before {
	content: '📁';
	position: absolute;
	left: 2px;
	font-size: 11px;
	line-height: 1.6;
}

.bilder-baum-root::before {
	content: '🗂';
}

.bilder-baum-verz:hover {
	background-color: rgb(40, 40, 40);
	color: rgb(100, 170, 255);
}

.bilder-baum-verz.aktiv {
	background-color: rgb(30, 60, 120);
	color: rgb(180, 215, 255);
}

/* ── Kopiert-Hinweis ────────────────────────────────── */

.kopiert-hint {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: rgb(40, 120, 60);
	color: rgb(200, 255, 200);
	padding: 8px 16px;
	font-size: 12px;
	z-index: 9999;
	opacity: 1;
	transition: opacity 0.5s;
}

/* ── Download-Baum (linke Spalte) ───────────────────── */

.download-baum-wrap {
	padding-bottom: 8px;
}

.download-baum-liste {
	list-style: none;
	margin: 0;
	padding-left: 16px;
	position: relative;
}

.download-baum-wurzel {
	padding-left: 0;
}

.download-baum-liste > li {
	position: relative;
}

.download-baum-liste:not(.download-baum-wurzel)::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 0;
	bottom: 10px;
	border-left: 1px dotted rgb(175, 175, 175);
}

.download-baum-liste:not(.download-baum-wurzel) > li::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 11px;
	width: 10px;
	border-top: 1px dotted rgb(175, 175, 175);
}

.download-baum-verz {
	display: block;
	padding: 3px 8px 3px 18px;
	font-size: 12px;
	color: rgb(255, 255, 255);
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
	user-select: none;
}

.download-baum-verz::before {
	content: '📂';
	position: absolute;
	left: 2px;
	font-size: 11px;
	line-height: 1.6;
}

.download-baum-root::before {
	content: '🗂';
}

.download-baum-verz:hover {
	background-color: rgb(40, 40, 40);
	color: rgb(100, 170, 255);
}

.download-baum-verz.aktiv {
	background-color: rgb(30, 60, 120);
	color: rgb(180, 215, 255);
}

/* ── Download-Dateiliste (Content-Bereich) ──────────── */

.download-liste {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	margin-top: 4px;
}

.download-liste th {
	text-align: left;
	padding: 6px 10px;
	color: rgb(220, 220, 240);
	font-weight: normal;
	border-bottom: 1px solid rgb(155, 155, 155);
	font-size: 11px;
}

.download-liste td {
	padding: 7px 10px;
	border-bottom: 1px solid rgb(42, 42, 42);
	vertical-align: middle;
}

.download-liste tr:hover td {
	background-color: rgb(35, 35, 45);
}

.download-verz-zeile td {
	color: rgb(160, 170, 200);
}

.download-verz-icon {
	margin-right: 5px;
}

.download-verz-name {
	cursor: pointer;
	color: rgb(140, 170, 220);
}

.download-verz-name:hover {
	color: rgb(100, 160, 255);
	text-decoration: underline;
}

.download-typ-icon {
	margin-right: 6px;
}

.download-datei-link {
	color: rgb(255, 255, 255);
	text-decoration: none;
}

.download-datei-link:hover {
	color: rgb(100, 170, 255);
	text-decoration: underline;
}

.download-typ {
	color: rgb(200, 200, 220);
	font-size: 11px;
	font-family: monospace;
}

.download-groesse {
	color: rgb(210, 210, 230);
	font-size: 11px;
	white-space: nowrap;
}

.download-checkbox {
	width: 14px;
	height: 14px;
	cursor: pointer;
	accent-color: rgb(60, 120, 200);
}

.download-liste tr.ausgewaehlt td {
	background-color: rgb(30, 45, 70);
}
