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

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

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

.bilder-breadcrumb a {
	color: rgb(25, 85, 155);
	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(75, 75, 75);
	background: none;
	border: none;
	cursor: pointer;
}

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

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

.bilder-dropzone {
	border: 2px dashed rgb(160, 165, 185);
	border-radius: 6px;
	padding: 18px;
	margin-bottom: 14px;
	text-align: center;
	background-color: rgb(213, 215, 223);
	transition: border-color 0.2s, background-color 0.2s;
}

.bilder-dropzone.dragover {
	border-color: rgb(35, 95, 175);
	background-color: rgb(200, 210, 230);
}

.bilder-dropzone-text {
	font-size: 12px;
	color: rgb(110, 115, 135);
}

.bilder-dropzone-link {
	color: rgb(25, 85, 155);
	cursor: pointer;
	text-decoration: underline;
}

.bilder-dropzone-link:hover {
	color: rgb(15, 65, 125);
}

.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(205, 205, 205);
}

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

.bilder-verz-item:hover {
	background-color: rgb(190, 190, 205);
	color: rgb(0, 70, 155);
}

.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(217, 217, 217);
	border: 1px solid rgb(195, 195, 195);
	overflow: hidden;
}

.bild-item-vorschau {
	display: block;
	background-color: rgb(227, 227, 227);
	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(115, 115, 115);
	padding: 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	flex: 1;
	min-width: 0;
}

.bild-name:hover {
	color: rgb(0, 70, 155);
}

.bild-checkbox {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	cursor: pointer;
	accent-color: rgb(55, 115, 195);
}

.bild-item.ausgewaehlt {
	border-color: rgb(55, 115, 195);
	background-color: rgb(185, 200, 225);
}

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

.bilder-massenaktionen {
	position: sticky;
	bottom: 0;
	z-index: 10;
	margin-top: 14px;
	padding: 10px 12px;
	background-color: rgb(215, 217, 225);
	border: 1px solid rgb(180, 185, 200);
	box-shadow: 0 -6px 12px rgba(255, 255, 255, 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(75, 80, 95);
}

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

.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(200, 200, 200);
}

.bilder-pfad-label {
	font-size: 11px;
	color: rgb(135, 135, 135);
	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(180, 180, 180);
}

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

.bilder-baum-verz {
	display: block;
	padding: 3px 8px 3px 18px;
	font-size: 12px;
	color: rgb(65, 65, 65);
	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(215, 215, 215);
	color: rgb(0, 70, 155);
}

.bilder-baum-verz.aktiv {
	background-color: rgb(135, 165, 225);
	color: rgb(0, 35, 75);
}

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

.kopiert-hint {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: rgb(135, 215, 155);
	color: rgb(0, 55, 0);
	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(180, 180, 180);
}

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

.download-baum-verz {
	display: block;
	padding: 3px 8px 3px 18px;
	font-size: 12px;
	color: rgb(65, 65, 65);
	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(215, 215, 215);
	color: rgb(0, 70, 155);
}

.download-baum-verz.aktiv {
	background-color: rgb(135, 165, 225);
	color: rgb(0, 35, 75);
}

/* ── 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(115, 115, 135);
	font-weight: normal;
	border-bottom: 1px solid rgb(200, 200, 200);
	font-size: 11px;
}

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

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

.download-verz-zeile td {
	color: rgb(55, 65, 95);
}

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

.download-verz-name {
	cursor: pointer;
	color: rgb(35, 65, 115);
}

.download-verz-name:hover {
	color: rgb(0, 60, 155);
	text-decoration: underline;
}

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

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

.download-datei-link:hover {
	color: rgb(0, 70, 155);
	text-decoration: underline;
}

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

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

.download-checkbox {
	width: 14px;
	height: 14px;
	cursor: pointer;
	accent-color: rgb(55, 115, 195);
}

.download-liste tr.ausgewaehlt td {
	background-color: rgb(185, 200, 225);
}
