/* =========================================
   Reset / Grundlayout
========================================= */
* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
}

body, table {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #e5e7eb;
}

body {
	margin: 0 !important;
	padding: 0 !important;
	background: #111827 !important;
	color: #e5e7eb;
}

/* =========================================
   Typografie
========================================= */
h1, h2, h3, h4 {
	font-family: Arial, Helvetica, sans-serif;
	color: #f9fafb;
	margin-top: 0;
}

h1 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 20px 0;
	text-align: left;
}

h2 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
}

h3 {
	font-size: 15px;
	font-weight: 700;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid #374151;
	width: 100%;
	color: #f3f4f6;
}

h4 {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #f3f4f6;
}

/* =========================================
   Links
========================================= */
a, a:hover, a:visited {
	color: #60a5fa;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	background: transparent;
}

a:hover {
	color: #93c5fd;
	text-decoration: underline;
}

/* =========================================
   Hauptcontainer
========================================= */
#site {
	width: 100% !important;
	max-width: none !important;
	min-height: 100vh !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #111827 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: hidden;
}

/* =========================================
   Topbar / obere Navigation
========================================= */
.logout {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 64px;
	padding: 14px 24px;
	margin: 0 !important;
	background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
	border-bottom: 1px solid #374151;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	position: sticky;
	top: 0;
	z-index: 50;
}

.logout a,
.logout a:hover,
.logout a:visited {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	color: #d1d5db;
	font-weight: 600;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.04);
	transition: all 0.2s ease;
}

.logout a:hover {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
}

/* =========================================
   Dashboard-Grundstruktur
   Vorbereitung für Sidebar + Content
========================================= */
.layout {
	display: flex;
	width: 100%;
	min-height: calc(100vh - 64px);
	margin: 0;
	padding: 0;
}

.sidebar {
	width: 280px;
	min-width: 280px;
	background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
	border-right: 1px solid #374151;
	padding: 22px 18px;
}

.content {
	flex: 1;
	width: 100%;
	min-width: 0;
	padding: 28px;
	background: #111827;
}

/* =========================================
   Sidebar Elemente
========================================= */
.sidebar-title {
	font-size: 20px;
	font-weight: 700;
	color: #f9fafb;
	margin-bottom: 20px;
}

.sidebar-section {
	margin-bottom: 28px;
}

.sidebar-section-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9ca3af;
	margin-bottom: 10px;
}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sidebar-nav a,
.sidebar-nav a:hover,
.sidebar-nav a:visited {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	border-radius: 12px;
	color: #d1d5db;
	background: transparent;
	font-weight: 600;
	transition: all 0.2s ease;
}

.sidebar-nav a:hover {
	background: rgba(37, 99, 235, 0.18);
	color: #ffffff;
	text-decoration: none;
}

.sidebar-nav a.active {
	background: #2563eb;
	color: #ffffff;
}

/* =========================================
   Dashboard Header / Intro
========================================= */
.page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.page-subtitle {
	color: #9ca3af;
	font-size: 14px;
	margin-top: 6px;
}

/* =========================================
   Grid / Cards
========================================= */
.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 20px;
}

.card {
	background: linear-gradient(180deg, #1f2937 0%, #18212f 100%);
	border: 1px solid #374151;
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.card h3 {
	margin-bottom: 16px;
}

.card.full {
	grid-column: span 12;
}

.card.half {
	grid-column: span 6;
}

.card.third {
	grid-column: span 4;
}

.card.two-third {
	grid-column: span 8;
}

/* =========================================
   Buttons / Inputs
========================================= */
input, select, textarea {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 18px;
	padding: 10px 12px;
	border: 1px solid #4b5563;
	border-radius: 10px;
	background: #0f172a;
	color: #f9fafb;
	outline: none;
	transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

input[type="checkbox"] {
	width: 16px;
	height: 16px;
	padding: 0;
	border-radius: 4px;
	vertical-align: middle;
}

button,
input[type="submit"],
input[type="button"] {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 16px;
	border: 1px solid #4b5563;
	border-radius: 10px;
	background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
	color: #f9fafb;
	cursor: pointer;
	transition: all 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

/* =========================================
   Login / Startseite
========================================= */
.starttext {
	display: block;
	text-align: center;
	margin: 20px auto 16px auto;
	color: #9ca3af;
	font-size: 14px;
	max-width: 720px;
	padding: 0 20px;
}

.starttext a,
.starttext a:hover,
.starttext a:visited {
	color: #60a5fa;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	background: transparent;
}

.starttext a:hover {
	text-decoration: underline;
}

.form {
	position: relative;
	top: auto;
	left: auto;
	margin: 40px auto;
	padding: 28px;
	width: 460px;
	max-width: calc(100% - 30px);
	min-height: 120px;
	border: 1px solid #374151;
	border-radius: 18px;
	text-align: center;
	background: linear-gradient(180deg, #1f2937 0%, #18212f 100%);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
	color: #e5e7eb;
}

.form .label {
	font-weight: 600;
	display: block;
	float: left;
	width: 90px;
	margin-left: 20px;
	text-align: left;
	color: #d1d5db;
	padding-top: 10px;
}

.form .login {
	margin: 0;
}

.form input[type="text"],
.form input[type="password"] {
	width: 240px;
	margin-bottom: 12px;
}

.form.register {
	min-height: 160px;
}

/* =========================================
   Labels / Standard
========================================= */
.label {
	font-weight: 600;
	display: block;
	float: left;
	width: 200px;
	margin-left: 40px;
	text-align: left;
	color: #d1d5db;
	padding-top: 8px;
}

.login {
	margin-left: 240px;
}

/* =========================================
   Discord Button
========================================= */
.discord-btn,
.discord-btn:hover,
.discord-btn:visited {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: 10px;
	background: #5865F2;
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	border: 0;
	transition: all 0.2s ease;
	box-shadow: 0 6px 14px rgba(88, 101, 242, 0.25);
}

.discord-btn:hover {
	background: #4752C4;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(71, 82, 196, 0.3);
}

.discord-btn:active {
	transform: translateY(0);
}

.login-divider {
	margin: 14px 0 8px 0;
	font-size: 11px;
	color: #9ca3af;
	text-align: center;
}

/* =========================================
   Meldungen / Fehler
========================================= */
.msg {
	color: #fca5a5;
	margin-left: 10px;
	font-weight: 600;
}

.error {
	margin: 20px auto;
	width: 50%;
	max-width: 760px;
	padding: 16px 18px;
	border: 1px solid #7f1d1d;
	border-radius: 12px;
	background: rgba(127, 29, 29, 0.18);
	color: #fecaca;
}

.error h3 {
	border-bottom: 0;
	margin-bottom: 10px;
	color: #fecaca;
}

/* =========================================
   Fahrzeugliste / auswählbare Elemente
========================================= */
.choose,
.choose:hover,
.choose:visited {
	display: inline-block;
	color: #e5e7eb;
	text-decoration: none;
	border: 1px solid #4b5563;
	background: #1f2937;
	padding: 8px 14px;
	border-radius: 10px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.choose:hover {
	text-decoration: none;
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

/* =========================================
   Leitstelle Tabelle
========================================= */
.check {
	width: 20px;
}

.lst.table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	text-align: center;
	min-height: 300px;
	background: #1f2937;
	border: 1px solid #374151;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.lst.table td {
	font-size: 12px;
	padding: 14px 10px;
	border-right: 1px solid #374151;
	border-bottom: 1px solid #374151;
	background: #111827;
	vertical-align: middle;
	color: #e5e7eb;
}

.lst.table tr:last-child td {
	border-bottom: 0;
}

.lst.table td:last-child,
.lst.table th:last-child {
	border-right: 0;
}

.lst.table th,
.lst.title {
	background: linear-gradient(180deg, #243041 0%, #1f2937 100%);
	font-size: 13px;
	font-weight: 700;
	color: #f9fafb;
	padding: 14px 10px;
	border-right: 1px solid #4b5563;
	border-bottom: 1px solid #4b5563;
}

.lst.title {
	width: 200px;
}

.lst.hiorg {
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	background: #1f2937 !important;
	color: #f9fafb;
	padding: 12px 14px !important;
}

.lst.hiorg input {
	margin-right: 10px;
}

/* =========================================
   Verlauf / Log
========================================= */
#verlauf {
	vertical-align: top;
	text-align: left;
	font-family: Consolas, "Courier New", monospace;
	font-size: 12px;
	line-height: 1.5;
	color: #d1d5db;
	overflow-y: auto;
	height: 100%;
	max-height: 500px;
	background: #020617;
	border: 1px solid #1f2937;
	border-radius: 12px;
	padding: 10px;
	box-sizing: border-box;
}

.verlauf {
	width: 230px;
	vertical-align: top;
	background: #111827 !important;
	padding: 10px !important;
}

.time {
	font-weight: 700;
	color: #60a5fa;
}

#message {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	width: 100%;
	margin: 0 0 10px 0;
	padding: 10px 12px;
	background: #0f172a;
	border: 1px solid #374151;
	border-radius: 10px;
	box-sizing: border-box;
	resize: vertical;
	min-height: 50px;
	color: #f9fafb;
}

.car {
	font-style: italic;
	color: #4ade80;
	font-weight: 700;
}

.online a,
.online a:hover,
.online a:visited {
	color: #e5e7eb;
	font-weight: 500;
	text-decoration: none;
	border: 0;
	background: transparent;
}

.online a:hover {
	text-decoration: underline;
	color: #60a5fa;
}

/* =========================================
   Tabellen / Verwaltung
========================================= */
.car_form {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #374151;
	margin: 10px 0;
	text-align: center;
	border-radius: 14px;
	overflow: hidden;
	background: #1f2937;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.car_form th {
	background: #243041;
	padding: 10px;
	color: #f9fafb;
	font-weight: 700;
	border-bottom: 1px solid #374151;
}

.car_form td {
	padding: 8px;
	border-bottom: 1px solid #374151;
	color: #e5e7eb;
}

.car_form input {
	width: 80px;
	text-align: center;
}

.car_form .hiorg {
	width: 120px;
}

.car_form .funk_id {
	width: 100px;
}

.car_form .location {
	width: 100px;
}

.level {
	text-align: center;
	width: 170px;
}

/* =========================================
   Statusfarben
========================================= */
.status,
.offline,
.online_status,
.busy,
.available {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.offline {
	background: rgba(185, 28, 28, 0.20);
	color: #fca5a5;
}

.online_status {
	background: rgba(22, 101, 52, 0.20);
	color: #86efac;
}

.busy {
	background: rgba(146, 64, 14, 0.20);
	color: #fcd34d;
}

.available {
	background: rgba(29, 78, 216, 0.20);
	color: #93c5fd;
}

.einsatz-layout {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.einsatz-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-field label {
	font-size: 12px;
	font-weight: 700;
	color: #d1d5db;
}

.field-span-2 {
	grid-column: span 2;
}

.btn-red {
	background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
	color: #fff;
	border: 1px solid #dc2626;
	padding: 11px 18px;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
}

.btn-red:hover {
	background: #991b1b;
	border-color: #991b1b;
}

.success-box {
	background: rgba(6, 95, 70, 0.25);
	border: 1px solid #065f46;
	color: #d1fae5;
	margin-bottom: 20px;
}

.alarmmonitor {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 620px;
	overflow-y: auto;
	padding-right: 4px;
}

.alarmmonitor-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.alarmmonitor-title {
	font-weight: 700;
	font-size: 13px;
	color: #93c5fd;
	padding-bottom: 4px;
	border-bottom: 1px solid #374151;
}

.alarmmonitor-row {
	display: grid;
	grid-template-columns: 1.2fr 1fr 44px;
	gap: 10px;
	align-items: center;
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
	border-radius: 10px;
	padding: 8px 10px;
}

.alarmmonitor-funk {
	font-weight: 700;
	color: #f9fafb;
}

.alarmmonitor-type {
	color: #cbd5e1;
}


.schleifen-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.schleifen-group {
	background: rgba(255,255,255,0.02);
	border: 1px solid #2b3647;
	border-radius: 14px;
	padding: 14px;
}

.schleifen-title {
	font-size: 13px;
	font-weight: 700;
	color: #93c5fd;
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid #374151;
}

.schleifen-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.schleife {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255,255,255,0.03);
	border: 1px solid transparent;
	cursor: pointer;
}

.schleife:hover {
	border-color: #3b82f6;
	background: rgba(59,130,246,0.08);
}

.schleife input[type="checkbox"] {
	margin: 0;
}

@media (max-width: 1200px) {
	.einsatz-layout {
		grid-template-columns: 1fr;
	}

	.schleifen-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.einsatz-form-grid {
		grid-template-columns: 1fr;
	}

	.field-span-2 {
		grid-column: span 1;
	}

	.schleifen-grid {
		grid-template-columns: 1fr;
	}
}

.monitor-list {
	max-height: 500px;
	overflow-y: auto;
}

.monitor-group {
	margin-top: 10px;
	font-weight: bold;
	color: #60a5fa;
}

.monitor-item {
	display: flex;
	justify-content: space-between;
	padding: 6px 10px;
	background: #1f2937;
	border-radius: 6px;
	margin-bottom: 5px;
}

.success {
	background: #065f46;
	color: #d1fae5;
	padding: 10px;
	border-radius: 10px;
}

/* =========================================
   Copyright
========================================= */
.form .copy {
	font-size: 10px;
	text-align: center;
	display: block;
	color: #9ca3af;
	margin-top: 12px;
}

.copy {
	font-size: 10px;
	text-align: right;
	display: block;
	color: #9ca3af;
	margin: 16px 16px 0 16px;
}

.copy a,
.copy a:hover,
.copy a:visited {
	color: #60a5fa;
	font-weight: 500;
	text-decoration: none;
	border: 0;
	background: transparent;
}

.copy a:hover {
	text-decoration: underline;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 1200px) {
	.dashboard-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.card.full,
	.card.half,
	.card.third,
	.card.two-third {
		grid-column: span 6;
	}

	.sidebar {
		width: 240px;
		min-width: 240px;
	}
}

@media (max-width: 900px) {
	.layout {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		min-width: 100%;
		border-right: 0;
		border-bottom: 1px solid #374151;
	}

	.content {
		padding: 20px;
	}

	.logout {
		flex-wrap: wrap;
	}

	.form {
		width: calc(100% - 24px);
		margin: 20px auto;
	}

	.form .label {
		float: none;
		display: block;
		width: auto;
		margin: 0 0 6px 0;
		text-align: left;
		padding-top: 0;
	}

	.form input[type="text"],
	.form input[type="password"] {
		width: 100%;
	}
}
.einsatzliste-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.einsatz-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 18px;
}

.einsatznummer {
	font-size: 18px;
	font-weight: 700;
	color: #f9fafb;
	margin-bottom: 4px;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.badge-open {
    background: rgba(220, 38, 38, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.5);
}

.badge-progress {
	background: rgba(245, 158, 11, 0.18);
	color: #fcd34d;
	border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-done {
	background: rgba(22, 163, 74, 0.18);
	color: #86efac;
	border: 1px solid rgba(22, 163, 74, 0.35);
}

.einsatz-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.einsatz-meta-box {
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
	border-radius: 12px;
	padding: 12px 14px;
}

.einsatz-meta-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9ca3af;
	margin-bottom: 6px;
}

.einsatz-description {
	margin-bottom: 18px;
}

.einsatz-description-box {
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
	border-radius: 12px;
	padding: 14px;
	color: #d1d5db;
	line-height: 1.5;
	min-height: 70px;
}

.einsatz-actions {
	display: flex;
	justify-content: flex-end;
}

.einsatz-status-form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.einsatz-status-form select {
	min-width: 210px;
}

@media (max-width: 1000px) {
	.einsatz-card-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.einsatz-meta-grid {
		grid-template-columns: 1fr;
	}

	.einsatz-actions {
		justify-content: flex-start;
	}

	.einsatz-status-form {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.einsatz-status-form select,
	.einsatz-status-form button {
		width: 100%;
	}
}
.admin-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.admin-form-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.schleife-inline-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #d1d5db;
}

.admin-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.admin-list-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
	border-radius: 14px;
}

.admin-list-main {
	flex: 1;
	min-width: 0;
}

.admin-list-title {
	font-size: 16px;
	font-weight: 700;
	color: #f9fafb;
	margin-bottom: 6px;
}

.admin-list-description {
	margin-top: 10px;
	color: #d1d5db;
	line-height: 1.45;
}

.admin-list-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	min-width: 130px;
}

@media (max-width: 900px) {
	.admin-list-row {
		flex-direction: column;
	}

	.admin-list-side {
		align-items: flex-start;
		min-width: 0;
	}
}

.color-preview {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.15);
}

.stichwort-layout .third {
	align-self: start;
}

.compact-card {
	padding: 18px;
}

.compact-form {
	gap: 12px;
}

.compact-list {
	gap: 12px;
}

.compact-row {
	padding: 12px 14px;
	min-height: 0;
}

.compact-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	margin-bottom: 4px;
}

.compact-subtitle {
	font-size: 13px;
}

.compact-side {
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	gap: 10px;
	flex-wrap: wrap;
}

.stichwort-inline-color {
	font-size: 12px;
	font-weight: 600;
	color: #9ca3af;
}

.inline-delete-form {
	margin: 0;
}

.btn-delete-small {
	background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
	color: #fff;
	border: 1px solid #dc2626;
	padding: 8px 12px;
	border-radius: 10px;
	font-weight: 700;
	cursor: pointer;
}

.btn-delete-small:hover {
	background: #991b1b;
	border-color: #991b1b;
}

@media (max-width: 900px) {
	.compact-side {
		justify-content: flex-start;
	}
}

.fahrzeuggruppen {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fahrzeuggruppe {
    overflow: hidden;
}

.fahrzeugliste {
    display: block;
    padding: 10px 0;
}
.fahrzeuggruppe-header.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fahrzeuggruppe-header.accordion-toggle h3 {
    margin: 0;
}

.accordion-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.fahrzeuggruppe-header.accordion-toggle:not(.active) .accordion-icon {
    transform: rotate(-90deg);
}

.fahrzeug-row {
	display: grid;
	grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 1fr) minmax(180px, 0.9fr) 120px;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
}

.fahrzeug-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fahrzeug-funk {
	font-size: 16px;
	font-weight: 700;
	color: #f9fafb;
}

.fahrzeug-type {
	color: #cbd5e1;
	font-size: 13px;
}

.fahrzeug-standort {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fahrzeug-status-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fahrzeug-status-text {
	font-size: 13px;
	color: #d1d5db;
}

.fahrzeug-zustand {
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 1100px) {
	.fahrzeug-row {
		grid-template-columns: 1fr;
	}

	.fahrzeug-zustand {
		justify-content: flex-start;
	}
}

.fahrzeuggruppe-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.modern-row {
	grid-template-columns: 120px minmax(220px, 1.1fr) minmax(180px, 0.9fr) minmax(220px, 1fr) minmax(180px, 0.8fr);
	gap: 16px;
}

.fahrzeug-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.fahrzeug-image {
	width: 100px;
	height: 70px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid #2b3647;
	background: #0f172a;
}

.fahrzeug-image-placeholder {
	width: 100px;
	height: 70px;
	border-radius: 12px;
	border: 1px dashed #3b475c;
	background: rgba(255,255,255,0.03);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #94a3b8;
	text-align: center;
	padding: 6px;
}

.fahrzeug-action {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.fahrzeug-action-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.inline-action-form {
	margin: 0;
}

.fms-box {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
	background: #475569;
	border: 1px solid rgba(255,255,255,0.12);
}

/* Statusfarben angelehnt an dein Beispiel */
.fms-0 { background: #7e22ce; }
.fms-1 { background: #7CFC00; color: #111827; }
.fms-2 { background: #4CAF50; }
.fms-3 { background: #facc15; color: #111827; }
.fms-4 { background: #f59e0b; color: #111827; }
.fms-5 { background: #c026d3; }
.fms-6 { background: #111111; }
.fms-7 { background: #67e8f9; color: #111827; }
.fms-8 { background: #4338ca; }
.fms-9 { background: #d1d5db; color: #111827; }

@media (max-width: 1250px) {
	.modern-row {
		grid-template-columns: 1fr;
	}

	.fahrzeug-action {
		align-items: flex-start;
	}

	.fahrzeug-action-buttons {
		justify-content: flex-start;
	}
}
.fahrzeug-inline-type {
	font-size: 13px;
	font-weight: 600;
	color: #9ca3af;
	margin-left: 8px;
}

.monitor-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.monitor-groups {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.monitor-group-card {
	padding: 16px;
}

.monitor-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.monitor-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.monitor-row {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(220px, 1fr) 110px 140px 170px;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
}

.monitor-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.monitor-funk {
	font-size: 16px;
	font-weight: 700;
	color: #f9fafb;
}

.monitor-type {
	color: #cbd5e1;
	font-size: 13px;
}

.monitor-standort {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.monitor-fms {
	display: flex;
	align-items: center;
	gap: 10px;
}

.monitor-fms-text {
	font-size: 13px;
	color: #d1d5db;
}

.monitor-online-box,
.monitor-user {
	font-size: 13px;
	color: #d1d5db;
}

.monitor-online {
	color: #4ade80;
	font-weight: 700;
}

.monitor-offline {
	color: #f87171;
	font-weight: 700;
}

.monitor-action {
	display: flex;
	justify-content: flex-end;
}

.monitor-alarm-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #d1d5db;
}

.monitor-wait {
	display: inline-block;
	font-size: 12px;
	color: #fca5a5;
	line-height: 1.4;
}

.monitor-log-wrap {
	margin-top: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
	border-radius: 12px;
	padding: 12px;
	min-height: 480px;
	max-height: 620px;
	overflow: auto;
}


@media (max-width: 1400px) {
	.monitor-row {
		grid-template-columns: 1fr;
	}
	.monitor-action {
		justify-content: flex-start;
	}
}

.leitstelle-layout {
	display: grid;
	grid-template-columns: 1.6fr 0.8fr;
	gap: 20px;
	align-items: start;
}

.leitstelle-monitor {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.leitstelle-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid #2b3647;
	border-radius: 16px;
	background: rgba(255,255,255,0.02);
}

.leitstelle-group-title {
	font-size: 20px;
	font-weight: 700;
	color: #f9fafb;
	padding-bottom: 8px;
	border-bottom: 1px solid #374151;
}

.leitstelle-row {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) 180px 230px 100px 120px;
	gap: 16px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	border: 1px solid #2b3647;
}

.leitstelle-funkblock {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.leitstelle-funk {
	font-size: 18px;
	font-weight: 700;
	color: #f9fafb;
}

.leitstelle-type {
	font-size: 13px;
	color: #cbd5e1;
}

.leitstelle-standort {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.leitstelle-status {
	display: flex;
	align-items: center;
	gap: 10px;
}

.leitstelle-status-text {
	font-size: 13px;
	color: #d1d5db;
}

.leitstelle-online,
.leitstelle-user {
	font-size: 13px;
	color: #d1d5db;
}

.leitstelle-log-card {
	min-height: 620px;
}

.leitstelle-log-wrap {
	border: 1px solid #2b3647;
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	padding: 14px;
	min-height: 520px;
}


@media (max-width: 1350px) {
	.leitstelle-layout {
		grid-template-columns: 1fr;
	}

	.leitstelle-row {
		grid-template-columns: 1fr;
	}
}

.leitstelle-modern-grid {
	display: grid;
	grid-template-columns: 1.5fr 0.7fr;
	gap: 20px;
	align-items: start;
}

.leitstelle-monitor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	align-items: start;
}

.leitstelle-station-card {
	background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
	border: 1px solid #2b3647;
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.leitstelle-station-title {
	font-size: 26px;
	font-weight: 700;
	color: #f8fafc;
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	text-align: center;
}

.leitstelle-station-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.leitstelle-station-row {
	display: grid;
	grid-template-columns: 44px 1fr 84px;
	gap: 10px;
	align-items: center;
	background: rgba(255,255,255,0.04);
	border: 1px solid #334155;
	border-radius: 10px;
	padding: 8px 10px;
}

.leitstelle-station-badge-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.leitstelle-station-badge {
	width: 34px;
	height: 34px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.leitstelle-station-main {
	min-width: 0;
}

.leitstelle-station-funk {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.1;
}

.leitstelle-station-type {
	font-size: 14px;
	color: #d1d5db;
	margin-top: 2px;
}

.leitstelle-station-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.leitstelle-station-image {
	width: 74px;
	height: 50px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #334155;
	background: #0f172a;
}

.leitstelle-station-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: flex-end;
	text-align: right;
}

.leitstelle-station-location {
	font-size: 13px;
	color: #cbd5e1;
	font-weight: 600;
}

.leitstelle-station-status {
	font-size: 12px;
	color: #e5e7eb;
}

.leitstelle-station-online {
	font-size: 12px;
	font-weight: 700;
}

.leitstelle-log-side {
	min-height: 640px;
}

@media (max-width: 1350px) {
	.leitstelle-modern-grid {
		grid-template-columns: 1fr;
	}

	.leitstelle-monitor-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
}

.topbar-modern {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: 82px;
	padding: 8px 18px;
	column-gap: 14px;
}

.topbar-left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 100%;
	min-width: 220px;
	margin: 0;
	padding: 0;
}

.topbar-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.topbar-center {
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	color: #f8fafc;
	letter-spacing: 0.3px;
}

.sidebar-nav a,
.sidebar-subnav a {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-icon {
	width: 20px;
	min-width: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.sidebar-subgroup {
	margin-top: 12px;
	padding: 10px;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	background: rgba(255,255,255,0.02);
}

.sidebar-subgroup-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	color: #cbd5e1;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.sidebar-subgroup-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: #cbd5e1;
	text-align: left;
	box-shadow: none;
}
.sidebar-subgroup-arrow {
	font-size: 14px;
	color: #94a3b8;
	transition: transform 0.2s ease;
}
.sidebar-subgroup-toggle:hover {
	background: transparent;
	border: 0;
	color: #ffffff;
}
.sidebar-subgroup.open .sidebar-subgroup-arrow {
	transform: rotate(180deg);
}

.sidebar-subnav {
	display: none;
	flex-direction: column;
	gap: 6px;
	padding-left: 4px;
	margin-top: 10px;
}
.sidebar-subgroup.open .sidebar-subnav {
	display: flex;
}

.sidebar-subnav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	text-decoration: none;
	color: #e5e7eb;
	font-weight: 600;
	transition: all 0.2s ease;
}

.sidebar-subnav a:hover {
	background: rgba(255,255,255,0.06);
}

.sidebar-subnav a.active {
	background: linear-gradient(90deg, #4f46e5 0%, #5b6cff 100%);
	color: #ffffff;
}

@media (max-width: 900px) {
	.topbar-modern {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.topbar-left,
	.topbar-right,
	.topbar-center {
		justify-content: center;
		text-align: center;
	}
}
.dashboard-news-block {
	padding: 18px;
}

.dashboard-block-header {
	margin-bottom: 16px;
}

.dashboard-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.dashboard-news-card {
	border: 1px solid #334155;
	border-radius: 14px;
	padding: 14px;
	background: rgba(255,255,255,0.03);
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	max-height: 320px;
	overflow: hidden;
}

.dashboard-news-title-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.dashboard-news-title {
	font-size: 16px;
	font-weight: 700;
	color: #f8fafc;
	line-height: 1.25;
}

.dashboard-news-date {
	font-size: 12px;
	color: #94a3b8;
	white-space: nowrap;
}

.dashboard-news-content {
	font-size: 13px;
	color: #d1d5db;
	line-height: 1.5;
	overflow: hidden;
}

.dashboard-news-author {
	font-size: 12px;
	color: #9ca3af;
	padding-top: 8px;
	border-top: 1px solid rgba(255,255,255,0.08);
	margin-top: auto;
}

.dashboard-lower-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

.dashboard-einsatz-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.news-preview-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 12;
	-webkit-box-orient: vertical;
	overflow-y: auto;
	max-height: 190px;
	padding-right: 6px;
}

.dashboard-einsatz-item {
	border: 1px solid #334155;
	border-radius: 12px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.03);
}

.dashboard-einsatz-title {
	font-size: 15px;
	font-weight: 700;
	color: #f8fafc;
	margin-bottom: 4px;
}

.dashboard-einsatz-subtitle {
	font-size: 13px;
	color: #cbd5e1;
}

.dashboard-einsatz-date {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 6px;
}

.dashboard-user-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.dashboard-user-card {
	border: 1px solid #334155;
	border-radius: 12px;
	padding: 12px;
	background: rgba(255,255,255,0.03);
	text-align: center;
}

.dashboard-user-avatar {
	font-size: 28px;
	margin-bottom: 8px;
}

.dashboard-user-name {
	font-size: 14px;
	font-weight: 700;
	color: #f8fafc;
	margin-bottom: 6px;
	word-break: break-word;
}

.dashboard-user-time {
	font-size: 12px;
	color: #94a3b8;
}

.dashboard-empty-box,
.dashboard-info-box {
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 13px;
	font-weight: 600;
}

.dashboard-empty-box {
	background: rgba(255,255,255,0.04);
	border: 1px solid #334155;
	color: #cbd5e1;
}

.dashboard-info-box {
	background: rgba(56, 189, 248, 0.14);
	border: 1px solid rgba(56, 189, 248, 0.28);
	color: #bae6fd;
}

@media (max-width: 1400px) {
	.dashboard-news-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-user-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1000px) {
	.dashboard-lower-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-user-grid {
		grid-template-columns: 1fr;
	}
}
.news-preview-text {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #cbd5e1;
}
.news-tag {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2px;
	margin-right: 6px;
	margin-bottom: 3px;
}

.news-tag-new {
	background: rgba(34, 197, 94, 0.18);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #86efac;
}

.news-tag-fix {
	background: rgba(239, 68, 68, 0.18);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fca5a5;
}

.news-tag-change {
	background: rgba(245, 158, 11, 0.18);
	border: 1px solid rgba(245, 158, 11, 0.35);
	color: #fcd34d;
}

.news-tag-info {
	background: rgba(59, 130, 246, 0.18);
	border: 1px solid rgba(59, 130, 246, 0.35);
	color: #93c5fd;
}
.einsatz-details-layout {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
	align-items: start;
}

.einsatz-details-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.einsatz-details-layout .einsatz-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #d1d5db;
}

.einsatz-details-layout .einsatz-description-box {
	padding: 14px;
	border: 1px solid #334155;
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	margin-bottom: 16px;
	color: #d1d5db;
	line-height: 1.5;
}

.einsatz-status-form,
.einsatz-add-vehicle-form,
.einsatz-log-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.einsatz-vehicle-list,
.einsatz-log-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.einsatz-vehicle-item,
.einsatz-log-item {
	padding: 12px 14px;
	border: 1px solid #334155;
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
}

.einsatz-vehicle-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.einsatz-vehicle-title {
	font-size: 15px;
	font-weight: 700;
	color: #f8fafc;
}

.einsatz-log-meta {
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 6px;
}

.einsatz-log-message {
	font-size: 13px;
	color: #d1d5db;
	line-height: 1.5;
}

.section-divider {
	border: 0;
	border-top: 1px solid rgba(255,255,255,0.08);
	margin: 18px 0;
}

.badge-neutral {
	background: rgba(148, 163, 184, 0.2);
	color: #cbd5e1;
	border: 1px solid rgba(148, 163, 184, 0.3);
}

@media (max-width: 1300px) {
	.einsatz-details-layout {
		grid-template-columns: 1fr;
	}
}

.einsatz-actions-split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.einsatz-actions-left,
.einsatz-actions-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.einsatz-nachalarm-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.einsatz-nachalarm-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nav-icon-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	min-width: 18px;
}

.nav-icon-svg svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	opacity: 0.92;
}

.einsatz-schleifen-group {
	border: 1px solid #334155;
	border-radius: 12px;
	padding: 12px;
	background: rgba(255,255,255,0.03);
}

.einsatz-schleifen-title {
	font-size: 14px;
	font-weight: 700;
	color: #f8fafc;
	margin-bottom: 10px;
}

.einsatz-schleifen-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dashboard-news-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

.news-read-more {
	font-size: 12px;
	font-weight: 700;
	color: #93c5fd;
	text-decoration: none;
	white-space: nowrap;
}

.news-read-more:hover {
	color: #bfdbfe;
	text-decoration: underline;
}


.news-detail-card {
	padding: 20px;
}

.news-detail-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.news-detail-content {
	font-size: 14px;
	line-height: 1.7;
	color: #d1d5db;
}

.news-detail-actions {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

.einsatz-filter-tabs {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.einsatz-filter-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid #334155;
	background: rgba(255,255,255,0.03);
	color: #d1d5db;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
}

.einsatz-filter-tab:hover {
	background: rgba(79, 70, 229, 0.16);
	border-color: #4f46e5;
	color: #ffffff;
	text-decoration: none;
}

.einsatz-filter-tab.active {
	background: linear-gradient(90deg, #4f46e5 0%, #5b6cff 100%);
	border-color: #5b6cff;
	color: #ffffff;
}

.einsatz-filter-info {
	margin-bottom: 18px;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
}

.einsatz-collapsible-card {
	padding: 0;
	overflow: hidden;
}

.einsatz-collapse-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	box-shadow: none;
}

.einsatz-collapse-toggle:hover {
	background: rgba(255,255,255,0.02);
	border: 0;
}

.einsatz-collapse-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.einsatz-collapse-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.einsatz-collapse-icon {
	font-size: 16px;
	color: #94a3b8;
	transition: transform 0.2s ease;
}

.einsatz-collapse-toggle.active .einsatz-collapse-icon {
	transform: rotate(180deg);
}

.einsatz-collapse-content {
	padding: 0 20px 20px 20px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
	.einsatz-collapse-toggle {
		flex-direction: column;
		align-items: flex-start;
	}

	.einsatz-collapse-right {
		width: 100%;
		justify-content: space-between;
	}
}
/* Pulsierender Effekt für offene Einsätze */
@keyframes einsatzPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
        border-color: rgba(220, 38, 38, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
        border-color: rgba(220, 38, 38, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
        border-color: rgba(220, 38, 38, 0.6);
    }
}

/* Klasse für offene Einsätze */
.einsatz-offen-pulse {
    animation: einsatzPulse 2s infinite;
    border: 1px solid rgba(220, 38, 38, 0.6);
}

.topbar-discord-btn {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: 1px solid #334155;
	background: rgba(255,255,255,0.04);
	color: #e5e7eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.2s ease;
}

.topbar-discord-btn:hover {
	background: rgba(88, 101, 242, 0.18);
	border-color: #5865F2;
	color: #ffffff;
	text-decoration: none;
}

.topbar-discord-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.topbar-discord-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.einsatz-alert-btn {
	position: relative;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: 1px solid #334155;
	background: rgba(255,255,255,0.04);
	color: #f8fafc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: none;
}

.einsatz-alert-btn:hover {
	background: rgba(79, 70, 229, 0.16);
	border-color: #5b6cff;
}

.einsatz-alert-icon {
	font-size: 19px;
	line-height: 1;
}

.einsatz-alert-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #1e293b;
	border: 1px solid #475569;
	color: #e5e7eb;
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.einsatz-alert-btn.has-alert {
	background: rgba(220, 38, 38, 0.16);
	border-color: rgba(220, 38, 38, 0.6);
	color: #fecaca;
	animation: einsatzHeaderPulse 1.5s infinite;
}

.einsatz-alert-btn.has-alert .einsatz-alert-count {
	background: #dc2626;
	border-color: #dc2626;
	color: #ffffff;
}

@keyframes einsatzHeaderPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
		transform: scale(1.04);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
		transform: scale(1);
	}
}


/* Logo Link */
.topbar-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Hover Effekt */
.topbar-logo:hover {
    transform: scale(1.05);
}

/* ===== Topbar Logo Fix ===== */


.logout a.topbar-logo-link,
.logout a.topbar-logo-link:hover,
.logout a.topbar-logo-link:visited {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.logout a.topbar-logo-link:hover {
	background: transparent;
	transform: none;
}

.topbar-logo-link {
	height: 64px;
}

.topbar-logo {
	display: block;
	height: 60px;
	width: auto;
	max-height: none;
	object-fit: contain;
}

/* Optional: mittleren Titel etwas ruhiger halten */
.topbar-center {
	font-size: 18px;
}

.topbar-feedback-btn {
    position: relative;
}

.topbar-feedback-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
}

.sidebar-rank-text {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f59e0b;
}

.sidebar-rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-rank-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}