/* --- 1. DESIGN SYSTEM & VARIABLEN --- */
:root {
	--bg: #f5f5f7;
	--card: #ffffff;
	--text: #1d1d1f;
	--text-light: #86868b;
	--accent: #0071e3;
	--border: #d2d2d7;
	--shadow: 0 10px 30px rgba(0,0,0,0.1);
	--input-bg: #ffffff;
	--danger: #dc3545;
	/* Rot */
	--gray: #6c757d;
	/* Grau */
	--success: #34c759;
	/* Grün */
	--warning: #ffcc00;
	/* Gelb/Sterne */
}
body.dark-mode {
	--bg: #000000;
	--card: #1c1c1e;
	--text: #f5f5f7;
	--text-light: #86868b;
	--accent: #0a84ff;
	--border: #38383a;
	--shadow: 0 10px 30px rgba(0,0,0,0.5);
	--input-bg: #2c2c2e;
	--danger: #ff453a;
	--gray: #8e8e93;
}
* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
body, .card, h1, h2, h3, p, a, input, select, button, .sort-bar {
	transition: 0.3s;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 1600px;
	margin: 20px auto;
	background: var(--bg);
	color: var(--text);
	padding: 0 20px;
}
/* --- 2. HEADER & LOGO --- */
.logo-retro {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	margin-bottom: 25px;
}
.logo-svg {
	width: 48px;
	height: 48px;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
	transition: transform 0.3s;
}
.logo-retro:hover .logo-svg {
	transform: rotate(-5deg) scale(1.1);
}
.logo-font {
	font-size: 28px;
	font-weight: 800;
	color: var(--text);
	font-family: 'Courier New', monospace;
	letter-spacing: -1.5px;
}
/* --- 3. SUCHBOX & FILTER --- */
.search-box {
	background: var(--card);
	padding: 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	border: 1px solid var(--border);
	box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 15px;
	flex-wrap: wrap;
	gap: 10px;
}
.user-info {
	font-size: 13px;
	color: var(--text-light);
}
.user-info strong {
	color: var(--text);
}
.user-actions {
	display: flex;
	gap: 8px;
}
.search-row {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}
.search-input {
	flex-grow: 1;
	font-size: 16px;
}
.filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 10px;
}
.filter-reset {
	margin-top: 10px;
	text-align: right;
}
.reset-link {
	color: var(--danger);
	font-size: 14px;
	text-decoration: none;
}
.reset-link:hover {
	text-decoration: underline;
}
/* --- 4. BUTTONS & INPUTS --- */
input, select, textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--input-bg);
	color: var(--text);
	font-size: 14px;
	box-sizing: border-box;
}
.btn, button {
	background: var(--accent);
	color: white;
	padding: 10px 15px;
	text-decoration: none;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.btn:hover, button:hover {
	opacity: 0.9;
}
/* Spezielle Button Farben */
.btn-admin {
	background: var(--gray);
	font-size: 13px;
	padding: 8px 12px;
}
.btn-logout {
	background: var(--danger);
	font-size: 13px;
	padding: 8px 12px;
}
.btn-login {
	background: var(--accent);
	font-size: 13px;
	padding: 8px 12px;
}
.btn-new, .btn-add {
	background: #28a745;
}
.btn-save {
	background: #007bff;
}
.btn-cancel {
	background: var(--gray);
}
.btn-back {
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--border);
}
.btn-del {
	background: #ffebee;
	color: #c62828;
	padding: 5px 8px;
	border-radius: 4px;
}
.btn-del:hover {
	background: #c62828;
	color: white;
}
.btn-edit {
	background: #e9ecef;
	color: #333;
	padding: 5px 8px;
	border-radius: 4px;
}
.btn-edit:hover {
	background: #0071e3;
	color: white;
}
.action-link {
	text-decoration: none;
	color: var(--text-light);
	font-size: 13px;
	padding: 5px;
	font-weight: 500;
}
.action-link:hover {
	color: var(--accent);
}
.delete-link:hover {
	color: var(--danger);
}
/* --- 5. GRID & KACHELN --- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin-top: 20px;
}
.grid, .stats-grid, .container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}
.card, .box {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.1);
	border-color: var(--accent);
}
/* --- 6. INDEX KACHEL DETAILS --- */
.card-image {
	height: 300px;
	width: 100%;
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--border);
	position: relative;
	overflow: hidden;
}
.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card-image-link {
	display: block;
	width: 100%;
	height: 100%;
}
.no-cover {
	font-size: 50px;
	color: var(--text-light);
	opacity: 0.3;
}
.card-content {
	padding: 15px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.card-serie {
	font-size: 11px;
	color: var(--text-light);
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 4px;
}
.single-title {
	opacity: 0.5;
}
.card-titel-link {
	text-decoration: none;
	color: inherit;
}
.card-titel {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 5px 0;
	color: var(--text);
	line-height: 1.3;
}
.card-meta {
	font-size: 13px;
	color: var(--text-light);
	margin-bottom: 15px;
	line-height: 1.5;
}
.meta-tag {
	display: inline-block;
	color: var(--text-light);
	font-size: 0.9em;
	margin-right: 5px;
}
/* Status & Rating */
.status-container {
	margin-top: 8px;
}
.status-badge {
	text-decoration: none;
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 0.9em;
	transition: 0.2s;
	border: 1px solid transparent;
}
.status-heard {
	background: rgba(52, 199, 89, 0.1);
	color: var(--success);
	border-color: var(--success);
}
.status-unheard {
	background: rgba(255, 59, 48, 0.1);
	color: var(--danger);
	border-color: var(--danger);
}
.rating-container {
	margin-top: 5px;
}
.rating-stars {
	color: var(--warning);
	font-size: 1.5em;
	letter-spacing: 2px;
}
.card-actions {
	margin-top: auto;
	border-top: 1px solid var(--border);
	padding-top: 10px;
	display: flex;
	justify-content: space-between;
}
.no-entries {
	grid-column: 1/-1;
	text-align: center;
	padding: 40px;
	color: var(--text-light);
}
/* --- 7. PAGINATION --- */
.sort-bar {
	background: var(--card);
	padding: 12px 15px;
	border-radius: 10px;
	margin-bottom: 20px;
	border: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-light);
	display: flex;
	align-items: center;
	gap: 15px;
}
.sort-bar a {
	text-decoration: none;
	color: var(--accent);
	display: flex;
	align-items: center;
	gap: 2px;
	font-weight: bold;
}
.pagination-container {
	margin-top: 20px;
	text-align: center;
}
.page-info {
	color: var(--text-light);
}
.pagination {
	margin-top: 10px;
}
.pagination-link {
	text-decoration: none;
	padding: 8px 12px;
	border: 1px solid var(--border);
	margin: 0 2px;
	border-radius: 6px;
	color: var(--text);
	background: var(--card);
	display: inline-block;
}
.pagination-link.active {
	background-color: var(--accent);
	color: white !important;
	border-color: var(--accent) !important;
}
.pagination-link:hover:not(.active) {
	opacity: 0.8;
}
/* --- 8. BADGES --- */
.format-badge, .badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0,0,0,0.6);
	color: white;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	z-index: 10;
	backdrop-filter: blur(5px);
}
.cat-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(255,255,255,0.9);
	color: #333;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	z-index: 10;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
body.dark-mode .cat-badge {
	background: rgba(0,0,0,0.8);
	color: #fff;
}
.badge-cd {
	background: #0071e3;
}
.badge-kassette {
	background: #ff9500;
}
.badge-vinyl {
	background: #1d1d1f;
	border: 1px solid #333;
}
.badge-mp3 {
	background: #34c759;
}
.badge-box-set {
	background: #af52de;
}
.badge-mp3-cd {
	background: #20c997;
}
.badge-dvd {
	background: #dc3545;
}
.badge-blu-ray {
	background: #0056b3;
}
.badge-digital {
	background: #30b0c7;
}
.badge-stream {
	background: #5856d6;
}
.badge-download {
	background: #34c759;
}
.badge-usb {
	background: #ff2d55;
}
.badge-minidisc {
	background: #8e8e93;
}
.badge-hs {
	background: #e3f2fd;
	color: #0d47a1;
	position: static;
	display: inline-block;
	padding: 3px 8px;
	border-radius: 10px;
	font-size: 10px;
}
.badge-hb {
	background: #fff3cd;
	color: #856404;
	position: static;
	display: inline-block;
	padding: 3px 8px;
	border-radius: 10px;
	font-size: 10px;
}
/* --- 9. DETAIL SEITE --- */
.detail-container {
	max-width: 1000px;
	margin: 40px auto;
	background: var(--card);
	border-radius: 18px;
	box-shadow: var(--shadow);
	display: flex;
	gap: 40px;
	padding: 40px;
	position: relative;
}
.detail-image {
	flex: 0 0 350px;
	text-align: center;
}
.detail-image img {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.15);
	transition: transform 0.2s;
}
.detail-content {
	flex: 1;
}
.meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 25px 0;
}
.meta-item {
	border-bottom: 1px solid var(--border);
	padding-bottom: 10px;
}
.meta-label {
	font-size: 12px;
	text-transform: uppercase;
	color: var(--text-light);
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}
.meta-value {
	font-size: 16px;
	font-weight: 500;
}
.notiz-box {
	background: rgba(0,113,227,0.05);
	border-radius: 12px;
	padding: 20px;
	margin-top: 20px;
	line-height: 1.6;
}
.actions {
	margin-top: 30px;
	display: flex;
	gap: 10px;
}
/* --- 10. LOGIN, ADMIN & FOOTER --- */
.login-box {
	background: var(--card);
	padding: 40px;
	border-radius: 12px;
	box-shadow: var(--shadow);
	width: 300px;
	text-align: center;
	margin: 100px auto;
	border: 1px solid var(--border);
}
.msg {
	padding: 10px;
	border-radius: 6px;
	margin-bottom: 20px;
	text-align: center;
	border: 1px solid transparent;
}
.msg.success, .msg-success {
	background: var(--success-bg);
	color: var(--success-text);
	border-color: var(--success-bg);
}
.msg.error, .msg-error {
	background: var(--error-bg);
	color: var(--error-text);
	border-color: var(--error-bg);
}
.grid .card {
	padding: 30px;
	text-align: center;
	color: inherit;
	text-decoration: none;
	justify-content: center;
	height: 160px;
}
.card .icon {
	font-size: 40px;
	margin-bottom: 10px;
	display: block;
}
.card .title {
	font-weight: bold;
	font-size: 18px;
}
.card .desc {
	font-size: 13px;
	color: #888;
	margin-top: 5px;
}
#theme-toggle {
	position:fixed;
	bottom:20px;
	right:20px;
	z-index:200;
	width:40px;
	height:40px;
	border-radius:50%;
	background:var(--card);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	border: 1px solid var(--border);
}
.mobile-header {
	display: none;
}
/* Footer */
.site-footer {
	margin-top: 60px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 13px;
	color: var(--text-light);
	padding-bottom: 40px;
	/* Reduziert, da kein Top-Button mehr da ist */
}
.footer-links {
	margin-bottom: 10px;
}
.footer-links a {
	color: var(--text-light);
	text-decoration: none;
	margin: 0 8px;
	transition: color 0.2s;
}
.footer-links a:hover {
	color: var(--accent);
	text-decoration: underline;
}
.sep {
	color: var(--border);
}
.footer-copy {
	opacity: 0.6;
	font-size: 12px;
}
@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	.detail-container {
		margin: 0;
		padding: 0;
		box-shadow: none;
		border-radius: 0;
		flex-direction: column;
		gap: 0;
		background: transparent;
	}
	.detail-image {
		width: 100%;
		padding: 40px 40px 20px 40px;
		background: linear-gradient(to bottom, var(--bg) 0%, var(--card) 100%);
	}
	.detail-content {
		padding: 20px 24px 100px 24px;
		background: var(--card);
	}
	.meta-grid {
		display: flex;
		flex-direction: column;
		gap: 0;
		background: var(--bg);
		border-radius: 12px;
		overflow: hidden;
		margin: 0 0 30px 0;
	}
	.meta-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 16px;
		border-bottom: 1px solid var(--border);
		margin: 0;
	}
	.mobile-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		z-index: 100;
		background: rgba(255,255,255,0.9);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid var(--border);
		padding: 15px 20px;
		height: 60px;
		margin: 0 -20px;
	}
	body.dark-mode .mobile-header {
		background: rgba(28,28,30,0.9);
	}
	.mobile-back {
		text-decoration: none;
		color: var(--accent);
		font-weight: 600;
		font-size: 17px;
	}
	.mobile-title {
		font-weight: 600;
		font-size: 17px;
		opacity: 0;
		transition: 0.3s;
	}
	.show-title .mobile-title {
		opacity: 1;
	}
	.actions {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: var(--card);
		border-top: 1px solid var(--border);
		padding: 15px 20px;
		margin: 0;
		z-index: 100;
		padding-bottom: max(15px, env(safe-area-inset-bottom));
	}
	.actions .btn {
		width: 100%;
		height: 50px;
		font-size: 17px;
	}
	.btn-back {
		display: none;
	}
	.site-footer {
		padding-bottom: 100px;
	}
}
@media print {
	.search-box, .sort-bar, .btn, .card-actions, #theme-toggle, .mobile-header, .actions {
		display: none !important;
	}
	.detail-container {
		box-shadow: none;
		border: none;
		margin: 0;
	}
	body {
		background: white;
		color: black;
	}
}
/* --- FOOTER STYLES --- */
.site-footer {
	margin-top: 60px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 13px;
	color: var(--text-light);
	padding-bottom: 80px;
	/* Extra Platz unten, damit der "Nach oben" Button nichts verdeckt */
}
.footer-links {
	margin-bottom: 10px;
}
.footer-links a {
	color: var(--text-light);
	text-decoration: none;
	margin: 0 8px;
	transition: color 0.2s;
}
.footer-links a:hover {
	color: var(--accent);
	text-decoration: underline;
}
.sep {
	color: var(--border);
}
.footer-copy {
	opacity: 0.6;
	font-size: 12px;
}
/* Anpassung für Mobile */
@media (max-width: 768px) {
	.site-footer {
		padding-bottom: 100px;
		/* Mehr Platz wegen der fixierten Mobile Action Bar */
	}
}
/* --- FOOTER STYLES --- */
.site-footer {
	margin-top: 60px;
	padding-top: 30px;
	padding-bottom: 40px;
	border-top: 1px solid var(--border);
	font-size: 14px;
	color: var(--text-light);
	background: var(--bg);
	/* Passt sich dem Theme an */
}
/* Flex Container für die obere Zeile (Links vs Icons) */
.footer-content {
	display: flex;
	justify-content: space-between;
	/* Schiebt Inhalte nach Außen */
	align-items: center;
	max-width: 1000px;
	/* Breite begrenzen wie der Content */
	margin: 0 auto 20px auto;
	/* Zentrieren & Abstand nach unten */
	padding: 0 10px;
}
/* Linker Bereich */
.footer-legal a {
	color: var(--text-light);
	text-decoration: none;
	margin-right: 10px;
	transition: color 0.2s;
}
.footer-legal a:hover {
	color: var(--accent);
	text-decoration: underline;
}
.footer-legal .sep {
	margin-right: 10px;
	color: var(--border);
}
/* Rechter Bereich: Social Icons */
.footer-social {
	display: flex;
	gap: 15px;
	/* Abstand zwischen den Icons */
}
.social-icon {
	fill: var(--text-light);
	transition: all 0.2s ease;
}
.footer-social a:hover .social-icon {
	fill: var(--accent);
	/* Färbt sich im Design-Blau */
	transform: scale(1.15);
	/* Leichter Zoom-Effekt */
}
/* Unterer Bereich: Copyright */
.footer-copy {
	text-align: center;
	opacity: 0.5;
	font-size: 12px;
	border-top: 1px solid var(--border);
	/* Feine Linie zum Abtrennen */
	padding-top: 15px;
	max-width: 1000px;
	margin: 0 auto;
}
/* Mobile Anpassung: Untereinander statt nebeneinander */
@media (max-width: 600px) {
	.footer-content {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
	.site-footer {
		padding-bottom: 100px;
	}
}
/* --- VIEW SWITCHER (Grid/List) --- */
.view-options {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	/* Schiebt es nach rechts */
}
.view-btn {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-light);
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	transition: all 0.2s;
}
.view-btn:hover {
	background: var(--bg);
	color: var(--text);
}
.view-btn.active {
	background: var(--accent);
	color: white;
	border-color: var(--accent);
}
/* Tabellen-Anpassungen fürs Frontend */
.frontend-table {
	width: 100%;
	background: var(--card);
	border-radius: 12px;
	border: 1px solid var(--border);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.frontend-table th {
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 15px;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--text-light);
}
.frontend-table td {
	padding: 12px 15px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}
.frontend-table tr:last-child td {
	border-bottom: none;
}
.mini-cover {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	border: 1px solid var(--border);
}
/* Mobile Tabelle: Verstecke unwichtige Spalten */
@media (max-width: 768px) {
	.hide-mobile {
		display: none;
	}
	.frontend-table th, .frontend-table td {
		padding: 10px;
	}
	.sort-bar {
		flex-wrap: wrap;
		gap: 10px;
	}
}
/* --- Hinzugefügte Klassen für strikte CSP (Ohne Inline-Styles) --- */
.theme-toggle-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text);
}
.theme-icon-img {
	width: 1.5rem;
	height: 1.5rem;
	vertical-align: middle;
}
.custom-logo-img {
	max-height: 40px;
	width: auto;
	object-fit: contain;
}
.logo-font-margin {
	margin-left: 10px;
}
.status-icon {
	width: 1.1em;
	height: 1.1em;
	vertical-align: middle;
}
.filter-green {
	filter: brightness(0) saturate(100%) invert(26%) sepia(35%) saturate(836%) hue-rotate(86deg) brightness(97%) contrast(89%);
}
.filter-red {
	filter: brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(3620%) hue-rotate(325deg) brightness(95%) contrast(98%);
}
.footer-social-wrapper {
	font-size: 1.3rem;
}
.footer-version-info {
	margin-top: 5px;
	font-size: 0.85em;
	opacity: 0.7;
}
.footer-stage-badge {
	background: #ffc107;
	color: #212529;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 0.8em;
	margin-left: 5px;
}
/* =========================================CSP-STRICT CLASSES (Ohne Inline-Styles)========================================= */
/* Allgemein & Helfer */
.flex-center-gap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.flex-center-gap-4 {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.filter-invert {
	filter: invert(1);
}
.status-heard {
	background: #d4edda !important;
	color: #155724 !important;
}
.status-unheard {
	background: #f8d7da !important;
	color: #721c24 !important;
}
.status-loading {
	opacity: 0.5;
	pointer-events: none;
}
.btn-action-main {
	background: var(--accent);
	color: white;
	border: none;
	padding: 12px;
	border-radius: 8px;
	font-weight: bold;
	cursor: pointer;
	text-align: center;
}
.btn-action-main:hover {
	opacity: 0.9;
}
/* Ratings / Sterne */
.rating-value-detail {
	color: #ffc107;
	font-size: 1.5em;
	letter-spacing: 2px;
}
.rating-option {
	color: #ffc107;
	font-weight: bold;
	font-size: 1.2em;
}
.rating-stars-table {
	font-size: 1em;
	color: #ffc107;
}
.star-icon-detail {
	width: 1.2em;
	filter: invert(75%) sepia(91%) saturate(382%) hue-rotate(3deg) brightness(105%) contrast(101%);
}
.star-icon-list {
	width: 1.1em;
	filter: invert(75%) sepia(91%) saturate(382%) hue-rotate(3deg) brightness(105%) contrast(101%);
}
.star-icon-table {
	width: 1em;
	filter: invert(75%) sepia(91%) saturate(382%) hue-rotate(3deg) brightness(105%) contrast(101%);
}
/* Index / Listenansicht */
.filter-grid {
	display: none;
}
.filter-grid.show-filters {
	display: grid;
	animation: fadeIn 0.3s ease-in-out;
}
@media (max-width: 768px) {
	.filter-grid.show-filters {
		grid-template-columns: 1fr;
	}
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.sort-controls {
	display: flex;
	align-items: center;
	gap: 15px;
}
.tr-clickable {
	cursor: pointer;
}
.no-cover-mini {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eee;
	color: #ccc;
}
.no-cover-icon-mini {
	width: 1.5rem;
	opacity: 0.3;
}
.table-title-link {
	font-weight: bold;
	color: var(--text);
	text-decoration: none;
	display: block;
}
.table-subtitle {
	font-size: 0.85em;
	color: var(--text-light);
}
.table-badges {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.badge-table {
	position: static;
	display: inline-block;
	margin: 0;
	padding: 2px 6px;
	font-size: 0.8em;
}
.status-badge-table {
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.8em;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	cursor: default;
}
a.status-badge-table {
	cursor: pointer;
}
.td-right {
	text-align: right;
}
.btn-edit-table {
	padding: 4px 8px;
	text-decoration: none;
	display: inline-block;
}
.pagination-disabled {
	opacity: 0.5;
	cursor: default;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.pagination-dots {
	border: none;
	background: transparent;
	cursor: default;
}
/* Detailansicht */
.search-box-detail {
	margin-bottom: 20px;
}
.top-bar-detail {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}
.detail-h1 {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
}
.btn-back {
	background: var(--card-bg);
	color: var(--text);
	border: 1px solid var(--border);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	border-radius: 4px;
}
.btn-edit-main {
	background: var(--accent);
	color: white;
	border: none;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	border-radius: 4px;
}
.format-badges-container {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 10;
	max-width: 60%;
}
.badge-detail {
	position: static;
	margin: 0;
	display: inline-block;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	text-decoration: none;
}
.detail-cover-img {
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.no-cover-large {
	font-size: 80px;
	color: var(--border);
	padding: 40px;
	border: 2px dashed var(--border);
	border-radius: 12px;
	text-align: center;
}
.no-cover-icon-large {
	width: 80px;
	opacity: 0.3;
}
.detail-h2 {
	margin-bottom: 25px;
}
.status-badge-detail {
	padding: 5px 10px;
	border-radius: 5px;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	cursor: default;
}
a.status-badge-detail {
	cursor: pointer;
}
.meta-value-right {
	text-align: right;
}
.meta-value-accent {
	color: var(--accent);
	font-weight: 700;
}
.card-format-badges {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-end;
	max-width: 60%;
}
.format-badge-card {
	position: relative;
	top: auto;
	right: auto;
	margin: 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.no-cover-icon {
	width: 2.5rem;
	opacity: 0.3;
}
.yt-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background-color: #000;
	background-image: linear-gradient(45deg, #1a1a1a 25%, #2a2a2a 25%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 75%, #2a2a2a 75%, #2a2a2a 100%);
	background-size: 20px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 15px;
}
.yt-consent-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: white;
	background: rgba(0,0,0,0.6);
	transition: background 0.3s;
}
.yt-wrapper:hover .yt-consent-overlay {
	background: rgba(0,0,0,0.4);
}
.yt-btn {
	background: #c4302b;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
}
.yt-text {
	font-size: 0.9rem;
	color: #ddd;
	padding: 0 20px;
}
.yt-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}
.video-container {
	max-width: 600px;
	margin: 0 auto;
}
.btn-yt-link {
	background: #c4302b;
	color: white;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	border-radius: 4px;
	font-weight: bold;
}
.yt-icon-red {
	filter: brightness(0) saturate(100%) invert(14%) sepia(85%) saturate(7406%) hue-rotate(3deg) brightness(101%) contrast(116%);
}
.notes-content {
	line-height: 1.6;
	color: var(--text);
	padding: 5px 0;
	word-wrap: break-word;
}
.notes-link {
	color: var(--accent);
	text-decoration: underline;
}
.alert-success {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-weight: bold;
	border: 1px solid #c3e6cb;
}
.alert-error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-weight: bold;
	border: 1px solid #f5c6cb;
}
.comment-form-box {
	background: rgba(0,0,0,0.02);
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 12px;
	margin-bottom: 30px;
}
.hidden-input {
	display: none;
}
.honeypot-field {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	height: 0;
	width: 0;
	z-index: -1;
}
.form-instruction {
	font-weight: bold;
	margin-bottom: 15px;
	font-size: 1.1em;
}
.form-group {
	margin-bottom: 15px;
}
.form-input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--card-bg);
	color: var(--text);
	font-family: inherit;
	box-sizing: border-box;
}
.form-textarea {
	resize: vertical;
}
.btn-submit {
	background: var(--accent);
	color: white;
	border: none;
	cursor: pointer;
	padding: 10px 20px;
	font-weight: bold;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.comment-article {
	margin-bottom: 15px;
	padding: 20px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
}
.comment-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	align-items: flex-start;
}
.comment-author {
	font-size: 1.1em;
	color: var(--text);
	margin-right: 10px;
	font-weight: bold;
}
.comment-time {
	color: var(--text-light);
	font-size: 0.85em;
	background: rgba(0,0,0,0.05);
	padding: 2px 8px;
	border-radius: 4px;
	white-space: nowrap;
}
.comment-text {
	line-height: 1.6;
	color: var(--text);
	white-space: pre-wrap;
}
.no-comments {
	color: var(--text-light);
	font-style: italic;
	padding: 30px;
	text-align: center;
	border: 2px dashed var(--border);
	border-radius: 12px;
	opacity: 0.7;
}
.copy-success {
	background: #28a745 !important;
}
.copy-default {
	background: #6c757d;
}
@media (max-width: 768px) {
	#main-title {
		padding-right: 0 !important;
		margin-top: 40px !important;
	}
	.frontend-table {
		display: block;
		width: 100%;
		border-collapse: collapse;
	}
	.frontend-table thead {
		display: none;
	}
	.frontend-table tbody {
		display: block;
		width: 100%;
	}
	.frontend-table tr {
		display: grid;
		grid-template-columns: 60px 1fr auto;
		grid-template-areas: "cover title title" "cover status rating";
		gap: 8px 12px;
		padding: 15px 10px;
		border-bottom: 1px solid var(--border);
		position: relative;
	}
	.frontend-table td {
		display: block;
		padding: 0 !important;
		border-bottom: none !important;
		text-align: left !important;
	}
	.td-cover {
		grid-area: cover;
	}
	.td-title {
		grid-area: title;
		padding-right: 35px !important;
	}
	.td-status {
		grid-area: status;
		align-self: center;
	}
	.td-rating {
		grid-area: rating;
		align-self: center;
		text-align: right !important;
	}
	.td-actions {
		position: absolute;
		right: 15px;
		top: 15px;
	}
	.frontend-table .mini-cover {
		width: 60px;
		height: 60px;
		border-radius: 6px;
		object-fit: cover;
	}
	.td-title a {
		font-size: 1.05em;
		line-height: 1.3;
		margin-bottom: 4px;
		display: block;
	}
	.td-title div {
		font-size: 0.85em;
		line-height: 1.4;
	}
	.td-status .status-badge-table {
		font-size: 0.75em;
		padding: 4px 8px;
	}
	.td-rating .rating-stars-table {
		font-size: 0.95em;
	}
	.hide-mobile {
		display: none !important;
	}
}
/* --- Random Tip Strict-CSP --- */
.rt-container {
	background: linear-gradient(135deg, var(--accent) 0%, #0056b3 100%);
	color: white;
	border: none;
	overflow: hidden;
	position: relative;
	margin-bottom: 20px;
	transition: opacity 0.3s ease;
}
.rt-bg-icon-wrapper {
	position: absolute;
	right: -20px;
	bottom: -40px;
	font-size: 160px;
	opacity: 0.15;
	transform: rotate(-15deg);
	pointer-events: none;
}
.rt-flex {
	display: flex;
	gap: 20px;
	align-items: center;
	position: relative;
	z-index: 2;
	min-height: 200px;
}
.rt-img-box {
	flex-shrink: 0;
	width: 200px;
	height: 200px;
}
.rt-text-box {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.rt-actions {
	margin-top: 15px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.rt-link-overlay {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}
.rt-img-cover {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid rgba(255,255,255,0.3);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	box-sizing: border-box;
}
.rt-no-cover {
	display: flex;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.1);
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	font-size: 60px;
	border: 2px solid rgba(255,255,255,0.3);
	box-sizing: border-box;
	color: rgba(255,255,255,0.5);
}
.rt-label {
	text-transform: uppercase;
	font-size: 0.8em;
	font-weight: bold;
	opacity: 0.8;
	letter-spacing: 1px;
	margin-bottom: 5px;
}
.rt-title-link {
	color: white;
	text-decoration: none;
	display: block;
}
.rt-title {
	margin: 0;
	font-size: 1.6rem;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
}
.rt-subtitle {
	margin-top: 5px;
	opacity: 0.95;
	font-size: 0.95em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 1.2em;
}
.rt-btn-view {
	background: white;
	color: var(--accent);
	border: none;
	font-size: 0.85em;
	padding: 6px 12px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.rt-btn-reload {
	background: rgba(255,255,255,0.2);
	color: white;
	border: none;
	font-size: 0.85em;
	padding: 6px 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
@media (max-width: 768px) {
	.rt-flex {
		flex-direction: column;
		text-align: center;
		gap: 15px;
		padding: 10px 0;
	}
	.rt-img-box {
		width: 200px;
		height: 200px;
		margin: 0 auto;
	}
	.rt-actions {
		justify-content: center;
	}
	.rt-bg-icon-wrapper {
		display: none;
	}
}
/* --- Login & Register CSP-Strict --- */
.msg-locked {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
	padding: 10px;
	border-radius: 5px;
	margin-bottom: 15px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.msg-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 10px;
	border-radius: 5px;
	margin-bottom: 15px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.msg-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 10px;
	border-radius: 5px;
	margin-bottom: 15px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.honeypot-container {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	height: 0;
	width: 0;
	z-index: -1;
	overflow: hidden;
}
.login-input {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--bg);
	color: var(--text);
}
.locked-input {
	cursor: not-allowed;
	opacity: 0.6;
	background: rgba(0,0,0,0.05);
}
.btn-login-submit {
	width: 100%;
	margin-top: 10px;
	background: var(--accent);
	color: white;
	border: none;
	padding: 12px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 1rem;
}
.locked-btn {
	background: #6c757d;
	cursor: not-allowed;
}
.login-links-container {
	margin-top: 25px;
	border-top: 1px solid var(--border);
	padding-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}
.login-link-accent {
	color: var(--accent);
	text-decoration: none;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.login-link-muted {
	color: var(--text-light);
	text-decoration: none;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.register-box {
	max-width: 400px;
	margin: 50px auto;
}
.mt-20 {
	margin-top: 20px;
}
.mb-15 {
	margin-bottom: 15px;
}
.mt-15 {
	margin-top: 15px;
}
.btn-full {
	width: 100%;
}
.flex-center-gap-center {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}
.text-center {
	text-align: center;
}
.local-icon-inline {
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}
/* --- Rechtliches (Datenschutz & Impressum) CSP-Strict --- */
.legal-content-wrapper {
	width: 100%;
}
.legal-notiz-box {
	background: var(--card, var(--bg));
	border: 1px solid var(--border);
}
html {
	overflow-y: scroll !important;
}
body, .hidden-scroll {
	padding-right: 0 !important;
	overflow: visible !important;
}
.yt-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background-color: #000;
	background-image: linear-gradient(45deg, #1a1a1a 25%, #2a2a2a 25%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 75%, #2a2a2a 75%, #2a2a2a 100%);
	background-size: 20px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 15px;
}
.yt-consent-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: white;
	background: rgba(0,0,0,0.6);
	transition: background 0.3s;
}
.yt-wrapper:hover .yt-consent-overlay {
	background: rgba(0,0,0,0.4);
}
.yt-btn {
	background: #c4302b;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
}
.yt-text {
	font-size: 0.9rem;
	color: #ddd;
	padding: 0 20px;
}
.yt-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}
.search-box {
	max-width: 100% !important;
}
.custom-share-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 10px;
}
.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 15px;
	border-radius: 5px;
	color: white;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	min-width: 130px;
	transition: transform 0.2s, opacity 0.2s;
	cursor: pointer;
	border: none;
}
.share-btn:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}
.btn-fb {
	background: #1877F2;
}
.btn-x {
	background: #000000;
}
.btn-wa {
	background: #25D366;
}
.btn-tg {
	background: #0088cc;
}
.btn-mastodon {
	background: #6364ff;
}
.btn-bluesky {
	background: #0085ff;
}
.btn-pin {
	background: #E60023;
}
.btn-reddit {
	background: #FF4500;
}
.btn-copy {
	background: #6c757d;
}
.btn-mail {
	background: var(--accent);
}
.series-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.series-link:hover {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.detail-wrapper {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 25px;
}
.content-box {
	background: var(--card-bg, var(--bg));
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	width: 100%;
	box-sizing: border-box;
	position: relative;
}
.main-detail-flex {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}
.detail-content {
	flex: 1;
	min-width: 300px;
	margin: 0 !important;
	padding: 0 !important;
}
.box-title {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.4rem;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 15px;
}
.local-icon {
	width: 1.1em;
	height: 1.1em;
	vertical-align: middle;
}
@media (max-width: 768px) {
	.content-box {
		padding: 20px;
	}
	.main-detail-flex {
		gap: 25px;
		flex-direction: column;
	}
	.detail-image {
		margin: 0 auto;
		max-width: 300px;
	}
	h1 {
		padding-right: 0 !important;
		margin-top: 40px !important;
	}
}
