/* Cockpit-Theme: fluider Rahmen ueber das ganze Fenster.
   Desktop 100 % Breite/Hoehe, Handy 100dvh (dynamische Viewport-Hoehe) statt 100vh.
   Stufen wie im klassischen Layout: Desktop ab 1280 px, Tablet 768-1279 px, Handy darunter. */
html.cockpit-theme,
html.cockpit-theme body.cockpit {
	height: 100%;
	margin: 0;
	background: #03060C;
	color: #E6F3FA;
}

.cockpit .ck-shell {
	position: relative;
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr) 236px;
	grid-template-rows: auto clamp(150px, 24dvh, 280px) minmax(0, 1fr);
	gap: 12px;
	height: 100dvh;
	box-sizing: border-box;
	padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
	overflow: hidden;
	background: transparent;
}

.cockpit .ck-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.cockpit .ck-shell > :where(:not(.ck-bg, .modal, .ck-toast, .ck-nav-toggle)) { position: relative; z-index: 1; }
.cockpit .ck-nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.cockpit .ck-bar,
.cockpit .ck-menu,
.cockpit .ck-main,
.cockpit .ck-side,
.cockpit .ck-quick {
	background: linear-gradient(180deg, #071322EB, #050E19DB);
	box-shadow: inset 0 0 0 1px #6FE7FF40, 0 0 30px #6FE7FF14;
	backdrop-filter: blur(5px);
}

/* ---- Kopfleiste ---- */
.cockpit .ck-bar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 6px 18px; }
.cockpit .ck-brand { display: flex; align-items: center; gap: 9px; color: #E6F3FA; text-decoration: none; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.cockpit .ck-chips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cockpit .ck-chips::-webkit-scrollbar { display: none; }
.cockpit .ck-chip { position: relative; flex: 1 0 auto; min-width: 104px; max-width: 220px; padding: 4px 12px 4px 16px; background: #6FE7FF12; box-shadow: inset 0 0 0 1px #6FE7FF2E; border-radius: 6px; }
.cockpit .ck-chip i { position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; }
.cockpit .ck-chip .l { display: block; font-size: 12px; color: #9BB1C3; line-height: 1.2; }
.cockpit .ck-chip .v { display: block; font-weight: 600; font-size: 17px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cockpit .ck-chip .v.is-low { color: #FF8A94; }
.cockpit .ck-user { margin-left: auto; font-size: 12.5px; line-height: 1.45; text-align: right; color: #9BB1C3; white-space: nowrap; }
.cockpit .ck-user a { color: #C4D6E4; text-decoration: none; }
.cockpit .ck-user a:hover { text-decoration: underline; }
.cockpit .ck-user .ck-profile-link { color: #fff; font-weight: 600; }
.cockpit .ck-badge { margin-left: 4px; padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 16px; border-radius: 9px; background: #FF5D6C; color: #1E0709; display: inline-block; }
.cockpit .ck-online { opacity: .7; }
.cockpit .ck-fleetpill { display: none; align-items: center; gap: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; background: #FF5D6C22; color: #FFC4C9; box-shadow: inset 0 0 0 1px #FF5D6C77; border-radius: 14px; text-decoration: none; }
.cockpit .ck-nav-button { display: none; }

/* ---- Menue ---- */
.cockpit .ck-menu { grid-column: 1; grid-row: 2 / 4; overflow-y: auto; padding: 14px 0 8px; }
.cockpit .ck-menu-title { display: flex; justify-content: space-between; align-items: center; margin: 0 18px 4px; font-weight: 600; font-size: 16px; color: #6FE7FF; }
.cockpit .ck-menu-close { display: none; cursor: pointer; font-size: 26px; line-height: 1; color: #C4D6E4; padding: 0 6px; }
.cockpit .ck-menu h6 { margin: 10px 18px 2px; font-size: 12.5px; font-weight: 500; color: #7C95A9; }
.cockpit .ck-menu a { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; padding: 4px 14px 4px 18px; color: #C4D6E4; text-decoration: none; font-weight: 500; font-size: 15.5px; line-height: 20px; }
.cockpit .ck-menu a:hover { color: #fff; }
.cockpit .ck-menu a.on { color: #fff; background: linear-gradient(90deg, #6FE7FF30, transparent); }
.cockpit .ck-menu a.on::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; background: #6FE7FF; box-shadow: 0 0 10px #6FE7FF; }
.cockpit .ck-menu .q { font-size: 12px; font-weight: 600; color: #6FE7FF; background: #6FE7FF1C; padding: 0 6px; line-height: 18px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.cockpit .ck-menu .q.hot { color: #FFB04A; background: #FFB04A24; }
.cockpit .ck-menu .q.is-over { opacity: .5; }
.cockpit .ck-menu-mobile-user { display: none; margin-top: 10px; padding-top: 6px; border-top: 1px solid #6FE7FF26; }
.cockpit .ck-scrim { display: none; }

/* ---- Schnellleiste (nur Tablet und Handy) ---- */
.cockpit .ck-quick { display: none; }
.cockpit .ck-quick a, .cockpit .ck-quick label { position: relative; display: flex; align-items: center; justify-content: center; color: #9BB1C3; text-decoration: none; cursor: pointer; }
.cockpit .ck-quick svg { width: 22px; height: 22px; }
.cockpit .ck-quick a.on { color: #6FE7FF; }
.cockpit .ck-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #FFB04A; box-shadow: 0 0 6px #FFB04A; }
.cockpit .ck-dot.is-hot { background: #FF5D6C; box-shadow: 0 0 6px #FF5D6C; }

/* ---- Planetenfenster ---- */
.cockpit .ck-window { position: relative; z-index: 4 !important; grid-column: 2; grid-row: 2; overflow: visible; border-radius: 4px; box-shadow: inset 0 0 0 1px #6FE7FF40; background: #02060C; min-height: 0; }
.cockpit .ck-planet-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; }
.cockpit .ck-planet-gl, .cockpit .ck-planet-css { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } 
.cockpit .ck-planet-css { border-radius: 50%; inset: auto; left: 50%; top: 22%; width: 120%; padding-top: 120%; height: 0; transform: translateX(-50%); background: radial-gradient(circle at 60% 12%, #8FC8E8 0, #2E6A8A 25%, #0A2236 60%, #02060C 100%); box-shadow: 0 -4px 30px 2px #6FC4FF88; }
.cockpit .ck-window-title { position: absolute; left: 22px; bottom: 14px; text-shadow: 0 2px 12px #000; }
.cockpit .ck-window-title .h { font-weight: 700; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.05; }
/* Der Titel darf nicht unter die Auftragsringe laufen (drei Ringe + Abstaende ~ 500 px) */
@media (min-width: 768px) { .cockpit .ck-window-title { max-width: calc(100% - 520px); } }
.cockpit .ck-window-title .s { margin-top: 4px; color: #B4C8D8; font-size: 15px; }

/* ---- Auftraege ---- */
.cockpit .ck-orders { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; z-index: 2; display: flex; gap: 8px; margin: 0 14px 12px 0; }
.cockpit .ck-order { --ck-color: #6FE7FF; display: flex; align-items: center; gap: 8px; box-sizing: border-box; width: 150px; padding: 6px 10px; color: #E6F3FA; text-decoration: none; background: #071322E6; box-shadow: inset 0 0 0 1px #6FE7FF45; border-radius: 6px; }
.cockpit a.ck-order:hover { box-shadow: inset 0 0 0 1px var(--ck-color); }
.cockpit .ck-order svg { width: 38px; height: 38px; flex: none; }
.cockpit .ck-order .ring-bg { fill: none; stroke: var(--ck-color); stroke-opacity: .16; stroke-width: 9; }
.cockpit .ck-order .ring-fg { fill: none; stroke: var(--ck-color); stroke-width: 9; transition: stroke-dasharray .9s linear; }
.cockpit .ck-order .txt { display: flex; flex-direction: column; min-width: 0; }
.cockpit .ck-order .k { font-size: 11.5px; color: #9BB1C3; line-height: 1.15; }
.cockpit .ck-order .c { font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--ck-color); font-variant-numeric: tabular-nums; }
.cockpit .ck-order .n { font-size: 11px; color: #B4C8D8; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cockpit .ck-order.is-idle { opacity: .6; }
.cockpit .ck-order.is-idle .c { color: #9BB1C3; font-weight: 500; }
.cockpit .ck-order.is-done { box-shadow: inset 0 0 0 1px #8FE3A5; animation: ck-pulse 1.4s ease-in-out 3; }
.cockpit .ck-order.is-done .c { color: #8FE3A5; }
@keyframes ck-pulse { 50% { opacity: .55; } }

/* ---- Rechtes Panel ---- */
.cockpit .ck-side { grid-column: 3; grid-row: 2 / 4; overflow-y: auto; padding: 14px 16px; }
.cockpit .ck-side h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; color: #6FE7FF; }
.cockpit .ck-side h3:not(:first-child) { margin-top: 18px; }
.cockpit .ck-scope { position: relative; width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: repeating-radial-gradient(circle, transparent 0 22px, #6FE7FF30 22px 23px), #06121C; box-shadow: 0 0 0 2px #2A3C54, 0 0 18px #6FE7FF33; }
.cockpit .ck-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #6FE7FF66, #6FE7FF00 28%, transparent); animation: ck-sweep 6s linear infinite; }
.cockpit .ck-pt { position: absolute; width: 6px; height: 6px; border-radius: 50%; }
@keyframes ck-sweep { to { transform: rotate(360deg); } }
.cockpit .ck-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.5; }
.cockpit .ck-row .t { font-variant-numeric: tabular-nums; color: #A9BECF; }
.cockpit .ck-mv.is-attack > span:first-child { color: #FF8A94; }
.cockpit .ck-mv.is-spy > span:first-child { color: #FFB04A; }
.cockpit .ck-mv.is-own > span:first-child, .cockpit .ck-mv.is-transport > span:first-child { color: #6FE7FF; }
.cockpit .ck-mv.is-return > span:first-child { color: #8FE3A5; }
.cockpit .ck-mv.is-expedition > span:first-child { color: #C79BFF; }
.cockpit .ck-empty { font-size: 13.5px; color: #7C95A9; }
.cockpit .ck-planets { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cockpit .ck-mini { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex: none; text-decoration: none; background: radial-gradient(circle at 35% 30%, #8FD2E8, #2E6A8A 55%, #0A2236); overflow: hidden; }
.cockpit .ck-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.cockpit .ck-mini:hover:not(.on) { box-shadow: 0 0 0 2px #6FE7FF88; }
.cockpit .ck-mini.v1 { background: radial-gradient(circle at 35% 30%, #E0B27A, #8A5A3A 55%, #2A160C); }
.cockpit .ck-mini.v2 { background: radial-gradient(circle at 35% 30%, #B7A2F0, #5B4A9A 55%, #1B1438); }
.cockpit .ck-mini.v3 { background: radial-gradient(circle at 35% 30%, #A8E0B0, #3E8A58 55%, #0F2A1A); }
.cockpit .ck-mini.is-moon { background: radial-gradient(circle at 35% 30%, #E6E6E6, #7A7F86 55%, #23262B); }
.cockpit .ck-mini.on { box-shadow: 0 0 0 2px #07121E, 0 0 0 4px #6FE7FF; }
.cockpit .ck-mini:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cockpit .ck-log { font-size: 13.5px; line-height: 1.5; color: #A9BECF; }
.cockpit .ck-log-row { display: block; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cockpit .ck-log-row .ts { color: #6FE7FF; font-variant-numeric: tabular-nums; margin-right: 4px; }
.cockpit a.ck-log-row:hover { color: #6FE7FF; text-decoration: underline; }
.cockpit .ck-log-row.is-unread { color: #E6F3FA; font-weight: 600; }

/* ---- Meldung nach Fertigstellung ---- */
.cockpit .ck-toast { position: fixed; z-index: 1100; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); padding: 10px 14px; background: #071322F5; box-shadow: inset 0 0 0 1px #8FE3A5, 0 6px 30px #000A; border-radius: 6px; font-size: 14.5px; }
.cockpit .ck-toast[hidden] { display: none; }
.cockpit .ck-toast button { border: 0; border-radius: 4px; cursor: pointer; font-weight: 600; background: #6FE7FF26; color: #E6F3FA; min-height: 36px; padding: 0 12px; }
.cockpit .ck-toast .ck-toast-close { background: transparent; font-size: 20px; padding: 0 8px; }

/* ---- Hauptpanel ---- */
.cockpit .ck-main { grid-column: 2; grid-row: 3; overflow: auto; min-height: 0; padding: 16px 22px; }
/* Ohne Planet (z. B. Spezialisierung waehlen): nur Kopfleiste und Hauptpanel */
.cockpit .ck-shell:not(:has(.ck-menu)) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.cockpit .ck-shell:not(:has(.ck-menu)) .ck-main { grid-column: 1; grid-row: 2; }

/* Fallback fuer noch nicht umgebaute (klassische) Seiten im Panel */
.cockpit .ck-main a { color: #6FE7FF; }
.cockpit .ck-main .card,
.cockpit .ck-main .modal-content { background: #0A1828CC; color: #E6F3FA; border-color: #6FE7FF40; }
.cockpit .ck-main .table { --bs-table-bg: transparent; --bs-table-color: #E6F3FA; --bs-table-striped-bg: #6FE7FF0C; --bs-table-border-color: #6FE7FF1F; color: #E6F3FA; }
.cockpit .ck-main .form-control,
.cockpit .ck-main .form-select { background: #02080F; color: #E6F3FA; border-color: #2A4A5C; }
.cockpit .ck-main #content .container-fluid > .row > .col-lg-2 { display: none; }
.cockpit .ck-main #content .container-fluid > .row > .col-lg-10 { flex: 0 0 100%; max-width: 100%; }
.cockpit .modal-content { background: #0A1828; color: #E6F3FA; }

/* ---- Tablet: Symbolleiste statt Menue, kein rechtes Panel ---- */
@media (max-width: 1279px) {
	.cockpit .ck-shell { grid-template-columns: 64px minmax(0, 1fr); }
	.cockpit .ck-side { display: none; }
	.cockpit .ck-fleetpill { display: inline-flex; }
	.cockpit .ck-user .ck-online { display: none; }
	.cockpit .ck-quick { display: flex; flex-direction: column; align-items: center; gap: 2px; grid-column: 1; grid-row: 2 / 4; padding: 8px 0; overflow-y: auto; }
	.cockpit .ck-quick a, .cockpit .ck-quick label { width: 48px; height: 46px; border-radius: 6px; flex: none; }
	.cockpit .ck-quick a span, .cockpit .ck-quick label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cockpit .ck-quick a.on { background: linear-gradient(90deg, #6FE7FF30, #6FE7FF10); }
	.cockpit .ck-quick a.on::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 3px; background: #6FE7FF; box-shadow: 0 0 10px #6FE7FF; }
	.cockpit .ck-quick-more { margin-top: auto; }

	/* Menue als Schublade von links, geoeffnet ueber "Mehr" */
	.cockpit .ck-menu { display: none; position: fixed; z-index: 1000; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); grid-column: auto; grid-row: auto; padding-top: max(14px, env(safe-area-inset-top)); }
	.cockpit .ck-menu-close { display: block; }
	.cockpit .ck-nav-toggle:checked ~ .ck-menu { display: block; }
	.cockpit .ck-nav-toggle:checked ~ .ck-scrim { display: block; position: fixed; inset: 0; z-index: 999; background: #02060CB8; }
	.cockpit .ck-menu a { min-height: 40px; }
}

/* ---- Handy: eine Spalte, Schnellleiste unten, Hauptpanel scrollt innen ---- */
@media (max-width: 767px) {
	.cockpit .ck-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto clamp(110px, 17dvh, 150px) auto minmax(0, 1fr) auto; gap: 8px; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
	.cockpit .ck-bar { padding: 6px 10px; gap: 10px; min-height: 52px; }
	.cockpit .ck-brand span { display: none; }
	.cockpit .ck-user { display: none; }
	.cockpit .ck-chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.cockpit .ck-chip { min-width: 92px; }
	.cockpit .ck-chip .v { font-size: 15.5px; }
	.cockpit .ck-window { grid-column: 1; grid-row: 2; }
	.cockpit .ck-window-title { left: 16px; bottom: 10px; }
	.cockpit .ck-orders { grid-column: 1; grid-row: 3; align-self: stretch; justify-self: stretch; margin: 0; gap: 6px; }
	.cockpit .ck-order { flex: 1 1 0; width: auto; min-width: 0; padding: 5px 7px; gap: 6px; }
	.cockpit .ck-order svg { width: 26px; height: 26px; }
	.cockpit .ck-order .k { font-size: 10.5px; }
	.cockpit .ck-order .c { font-size: 12.5px; }
	.cockpit .ck-order .n { display: none; }
	.cockpit .ck-main { grid-column: 1; grid-row: 4; padding: 12px; }
	.cockpit .ck-shell:not(:has(.ck-menu)) .ck-main { grid-row: 2; }
	.cockpit .ck-quick { grid-column: 1; grid-row: 5; flex-direction: row; justify-content: space-around; align-items: stretch; padding: 0 4px; overflow: visible; min-height: 56px; }
	.cockpit .ck-quick a, .cockpit .ck-quick label { flex: 1; width: auto; height: auto; flex-direction: column; gap: 2px; font-size: 11px; font-weight: 600; }
	.cockpit .ck-quick a span, .cockpit .ck-quick label span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.cockpit .ck-quick a.on::before { left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 3px; }
	.cockpit .ck-quick .ck-quick-extra { display: none; }
	.cockpit .ck-quick-more { margin-top: 0; }
	.cockpit .ck-dot { top: 4px; right: calc(50% - 20px); }
	.cockpit .ck-menu a { min-height: 44px; }
	.cockpit .ck-menu-mobile-user { display: block; }
	.cockpit .ck-toast { bottom: calc(max(8px, env(safe-area-inset-bottom)) + 66px); }
}

@media (prefers-reduced-motion: reduce) {
	.cockpit * { scroll-behavior: auto !important; }
	.cockpit .ck-sweep, .cockpit .ck-order.is-done { animation: none; }
	.cockpit .ck-order .ring-fg { transition: none; }
}

/* ---- Bausteine der Cockpit-Seiten ---- */
.cockpit .ck-page-head h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.1; color: #E6F3FA; }
.cockpit .ck-page-head p { margin: 4px 0 14px; color: #B4C8D8; }
.cockpit .ck-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cockpit .ck-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cockpit .ck-card { padding: 14px 16px; background: #6FE7FF0A; box-shadow: inset 0 0 0 1px #6FE7FF2E; border-radius: 6px; }
.cockpit .ck-card h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: #6FE7FF; }
.cockpit .ck-hint { font-size: 13px; line-height: 1.5; color: #9BB1C3; }
.cockpit .ck-card > .ck-hint:first-of-type { margin: 0 0 10px; }
.cockpit .ck-beta { display: inline-block; padding: 1px 7px; font-size: 11.5px; font-weight: 700; border-radius: 3px; background: #FFB04A; color: #1B1204; margin-left: 6px; vertical-align: middle; }
.cockpit .ck-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; font-size: 14.5px; }
.cockpit .ck-kv dt { color: #9BB1C3; font-weight: 400; }
.cockpit .ck-kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cockpit .ck-label { font-size: 12.5px; color: #9BB1C3; margin-bottom: 3px; }
.cockpit .ck-field { min-height: 36px; display: flex; align-items: center; padding: 0 10px; background: #02080F; border: 1px solid #2A4A5C; border-radius: 4px; }
.cockpit .ck-field.is-readonly { background: #6FE7FF0C; border-color: #6FE7FF30; color: #C4D6E4; }

.cockpit .ck-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cockpit .ck-tile-wrap { position: relative; }
.cockpit .ck-tile-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cockpit .ck-tile { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 10px; border-radius: 6px; cursor: pointer; background: #6FE7FF0A; box-shadow: inset 0 0 0 1px #6FE7FF33; }
.cockpit .ck-tile.is-cockpit { background: #FFB04A0A; }
.cockpit .ck-tile-title { font-size: 17px; font-weight: 600; color: #E6F3FA; }
.cockpit .ck-tile-state { margin-top: auto; padding: 4px 10px; width: max-content; font-size: 13px; font-weight: 600; border-radius: 4px; background: #6FE7FF12; color: #C4D6E4; box-shadow: inset 0 0 0 1px #6FE7FF33; }
.cockpit .ck-tile-input:checked + .ck-tile { box-shadow: inset 0 0 0 2px #6FE7FF; }
.cockpit .ck-tile-input:checked + .ck-tile.is-cockpit { box-shadow: inset 0 0 0 2px #FFB04A; }
.cockpit .ck-tile-input:checked + .ck-tile .ck-tile-state { background: #6FE7FF; color: #06121C; box-shadow: none; }
.cockpit .ck-tile-input:checked + .ck-tile.is-cockpit .ck-tile-state { background: #FFB04A; color: #1B1204; }
.cockpit .ck-tile-input:checked + .ck-tile .ck-tile-state::after { content: " ✓"; }
.cockpit .ck-tile-input:focus-visible + .ck-tile { outline: 2px solid #fff; outline-offset: 2px; }
.cockpit .ck-tile-preview { position: relative; display: block; height: 84px; border-radius: 4px; overflow: hidden; background: #0E1626; box-shadow: inset 0 0 0 1px #2A3C54; }
.cockpit .ck-tile-preview span { position: absolute; display: block; background: #1B2A44; }
.cockpit .ck-tile-preview .p-bar { left: 0; right: 0; top: 0; height: 12px; }
.cockpit .ck-tile-preview .p-menu { left: 0; top: 12px; bottom: 0; width: 26px; background: #16223A; }
.cockpit .ck-tile-preview .p-main { left: 32px; right: 6px; top: 18px; height: 22px; border-radius: 3px; }
.cockpit .ck-tile-preview .p-card { left: 32px; top: 46px; width: 50px; height: 30px; border-radius: 3px; }
.cockpit .ck-tile-preview .p-card2 { left: 88px; right: 6px; top: 46px; height: 30px; border-radius: 3px; }
.cockpit .ck-tile-preview.is-cockpit { background: radial-gradient(circle at 50% 120%, #8FC8E8 0, #2E6A8A 22%, #0A2236 45%, #03060C 70%); box-shadow: inset 0 0 0 1px #6FE7FF55; }
.cockpit .ck-tile-preview.is-cockpit span { background: #071322E0; box-shadow: inset 0 0 0 1px #6FE7FF55; }
.cockpit .ck-tile-preview.is-cockpit .p-planet { display: none; }
.cockpit .ck-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.cockpit .ck-btn { min-height: 40px; padding: 0 28px; border: 0; font-weight: 700; color: #1B1204; background: #FFB04A; cursor: pointer; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cockpit .ck-main .invalid-feedback, .cockpit .ck-main ul.form-errors, .cockpit .ck-card ul { color: #FF8A94; }

@media (max-width: 1023px) {
	.cockpit .ck-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.cockpit .ck-tiles { grid-template-columns: minmax(0, 1fr); }
	.cockpit .ck-btn { width: 100%; min-height: 44px; }
}

/* Flug abbrechen im rechten Panel */
.cockpit .ck-mv-right { display: inline-flex; align-items: center; gap: 6px; }
.cockpit .ck-mv-cancel { margin: 0; display: inline-flex; }
.cockpit .ck-mv-cancel button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; color: #FFC4C9; background: #FF5D6C1F; box-shadow: inset 0 0 0 1px #FF5D6C66; }
.cockpit .ck-mv-cancel button:hover { background: #FF5D6C55; color: #fff; }
.cockpit .ck-mv-cancel button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cockpit .ck-brand { position: relative; z-index: 6; }
.cockpit .ck-brand-logo { display: block; height: 116px; width: auto; margin: -4px 0 -40px; object-fit: contain; transform: perspective(600px) rotateY(-9deg) rotateX(3deg); transform-origin: 30% 60%; transition: transform .35s ease, filter .35s ease; filter: drop-shadow(0 10px 8px #000C) drop-shadow(0 2px 2px #000) drop-shadow(0 0 16px #6FE7FF40); }
.cockpit .ck-brand:hover .ck-brand-logo, .cockpit .ck-brand:focus-visible .ck-brand-logo { transform: perspective(600px) rotateY(0) rotateX(0) scale(1.04); filter: drop-shadow(0 14px 10px #000D) drop-shadow(0 2px 2px #000) drop-shadow(0 0 22px #FFB04A66); }
@media (prefers-reduced-motion: reduce) { .cockpit .ck-brand-logo { transition: none; } }
@media (max-width: 767px) { .cockpit .ck-brand-logo { height: 62px; margin: -4px 0 -14px; } }
/* Lagerfuellung: schmaler Streifen unter dem Wert, gruen -> gelb -> rot (--fill-pct/--fill-hue setzt resource-updater.js) */
.cockpit .ck-chip { overflow: hidden; }
.cockpit .ck-chip[style*="--fill-pct"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #FFFFFF14; }
.cockpit .ck-chip[style*="--fill-pct"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--fill-pct, 0%); background: hsl(var(--fill-hue, 120) 80% 52%); box-shadow: 0 0 6px hsl(var(--fill-hue, 120) 80% 52% / .6); transition: width .3s ease; }
/* Planetensteckbrief im Planetenfenster (links oben): Typ und Eckdaten, aufklappbar mit Beschreibung */
.cockpit .ck-pinfo { position: absolute; left: 14px; top: 12px; z-index: 6; max-width: min(360px, calc(100% - 28px)); color: #E6F3FA; text-shadow: 0 1px 6px #000; }
.cockpit .ck-pinfo summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; background: #02080FA6; border-radius: 6px; box-shadow: inset 0 0 0 1px #6FE7FF33; }
.cockpit .ck-pinfo summary::-webkit-details-marker { display: none; }
.cockpit .ck-pinfo summary:hover { box-shadow: inset 0 0 0 1px #6FE7FF88; }
.cockpit .ck-pinfo summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cockpit .ck-pinfo .t { font-weight: 700; font-size: 14.5px; }
.cockpit .ck-pinfo .d { font-size: 12.5px; color: #B4C8D8; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cockpit .ck-pinfo .body { margin-top: 6px; padding: 10px 12px; background: #040D18F0; border-radius: 6px; box-shadow: inset 0 0 0 1px #6FE7FF33; font-size: 13.5px; line-height: 1.45; }
.cockpit .ck-pinfo .body p { margin: 0 0 8px; color: #D2E1EC; }
.cockpit .ck-pinfo dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.cockpit .ck-pinfo dt { color: #9BB1C3; }
.cockpit .ck-pinfo dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .cockpit .ck-pinfo { left: 8px; top: 8px; } .cockpit .ck-pinfo .d { display: none; } }
/* Ohne WebGL: Bild des Planettyps (planets/planet-N.jpg) als Fenstergrund, sonst bleibt die CSS-Kugel */
.cockpit .ck-window.has-fallback-img { background: #02060C var(--ck-planet-img) center 35% / cover no-repeat; }
.cockpit .ck-window.has-fallback-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #02060Cd0 0, #02060C00 55%); pointer-events: none; }
.cockpit .ck-window.is-fallback .ck-planet-gl { display: none; }
.cockpit .ck-window.has-fallback-img .ck-planet-css { display: none; }
.cockpit .ck-window-title { z-index: 1; }
/* Ressourcenleiste mittig in der Kopfleiste (nicht links am Logo klebend) */
@media (min-width: 768px) {
	.cockpit .ck-chips { justify-content: center; }
	.cockpit .ck-chip { flex: 0 1 168px; }
}
.cockpit .ck-bar { position: relative; z-index: 20; }

/* ---- Kopfzeile: Symbole statt Textlinks ---- */
.cockpit .ck-user-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cockpit .ck-ally-tag { color: #9BB1C3; margin-left: -6px; }
.cockpit .ck-iconbtn { position: relative; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; color: #C4D6E4; border-radius: 6px; }
.cockpit .ck-iconbtn:hover { color: #6FE7FF; background: #6FE7FF1A; text-decoration: none; }
.cockpit .ck-iconbtn svg { width: 19px; height: 19px; }
.cockpit .ck-iconbtn .ck-badge { position: absolute; top: -5px; right: -7px; margin: 0; padding: 0 5px; font-size: 11px; line-height: 15px; }
.cockpit .ck-clock { font-variant-numeric: tabular-nums; }

/* ---- Gaeste: Seitenleiste oben statt Hauptmenue ---- */
.cockpit .ck-guestnav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: flex-end; font-size: 14px; }
.cockpit .ck-guestnav a { color: #C4D6E4; text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
.cockpit .ck-guestnav a:hover, .cockpit .ck-guestnav a.on { color: #6FE7FF; border-bottom-color: #6FE7FF; }
.cockpit .ck-guestnav .ck-guestnav-cta { padding: 4px 12px; border: 1px solid #6FE7FF88; border-radius: 6px; border-bottom-width: 1px; }
@media (max-width: 767px) { .cockpit .ck-user:has(.ck-guestnav) { display: block; white-space: normal; } .cockpit .ck-bar:has(.ck-guestnav) { flex-wrap: wrap; } }

/* ---- Gaeste: Inhalt mittig mit begrenzter Breite (wie die Startseite) ---- */
.cockpit .ck-shell:not(:has(.ck-menu)) .ck-main > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.cockpit .ck-shell:not(:has(.ck-menu)) .ck-main .row > .col-lg-2:empty { display: none; }
.cockpit .ck-shell:not(:has(.ck-menu)) .ck-main .row > .col-lg-10 { flex: 0 0 100%; max-width: 100%; }

/* ---- Fusszeile immer am unteren Rand des Panels, auch bei wenig Inhalt ---- */
.cockpit .ck-main { display: flex; flex-direction: column; }
.cockpit .ck-main > * { flex-shrink: 0; box-sizing: border-box; }
.cockpit .ck-main > .ck-footer { margin-top: auto; }
.cockpit .ck-shell:not(:has(.ck-menu)) .ck-main > * { width: 100%; }
.cockpit .ck-main > .ck-footer { padding-top: 12px; }
.cockpit .ck-main > :has(+ .ck-footer) { margin-bottom: 24px; }
