:root {
	--rosa: #cc99cc;
	--lila: #9999ff;
	--gelb: #ffcc99;
	--orange: #ff9900;
	--rot: #cc6666;
	--peach: #ff9966;
	--gruen: #99cc99;
}

ol, ul {
	padding-left: 1.5rem;
}

.stfc-code-panel {
	background: #2a2a2a;
	border-radius: 8px;
	padding: 1rem 1.2rem;
	font-family: monospace;
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0.5rem 0;
}

.col1,
.col2,
.col3,
.col4,
.col5 {
	min-width: 0;
	container-type: inline-size;
}

@media (max-width: 1300px) {
	.stfc-rechner-flexbox {
		grid-template-columns: 1fr;
	}
}

.stfc-rechner-testen-input {
	width: 3.5em;
}

.stfc-rechner-dock-stepper {
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
	margin-top: 0.4rem;
}

.stfc-rechner-dock-display {

	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	background: #111;
	border: 1px solid var(--rosa);
	border-left: none;
	border-right: none;
	color: white;
	font-family: inherit;
	font-size: 1rem;
	padding: 0.5rem 0.25rem;
}

.stfc-rechner-dock-arrow {
	background: #111;
	border: 1px solid var(--rosa);
	color: var(--gelb);
	cursor: pointer;
	padding: 0.5rem 0.7rem;
	font-size: 0.8rem;
}

.stfc-rechner-dock-arrow:first-child {
	border-radius: 0.5rem 0 0 0.5rem;
}

.stfc-rechner-dock-arrow:last-child {
	border-radius: 0 0.5rem 0.5rem 0;
}

.stfc-rechner-dock-arrow:hover {
	background: var(--rosa);
	color: black;
}

.stfc-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 1.2rem;
	margin: 1.5rem 0;
}

.stfc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-size: 0.85rem;
}

.stfc-card img {
	width: 90px;
	height: 90px;
	object-fit: contain;
	border-radius: 12px;
	border: 2px solid var(--rosa);
	margin-bottom: 0.4rem;
	background-color: #111;
}

.stfc-card-glow {
	box-shadow: 0 0 10px 2px var(--glow-color, transparent);
}

.stfc-card-locked {
	opacity: 0.45;
}

.stfc-card img.stfc-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	vertical-align: middle;
	display: inline-block;
	border: none;
	border-radius: 0;
	background: none;
	margin: 0 2px;
}

.stfc-card-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.stfc-card-name {
	font-weight: bold;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.stfc-card-meta {
	font-size: 0.75rem;
	color: var(--lila);
	line-height: 1.3;
}

.stfc-card-line {
	display: block;
}

.stfc-profil-choice {
	cursor: pointer;
	display: block;
}
.stfc-profil-choice input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.stfc-profil-choice input[type="radio"]:checked + .stfc-card img {
	border-color: var(--gelb);
	box-shadow: 0 0 8px 1px var(--gelb);
}

.fontsmall {
	font-size: 0.85rem;
}

.fontextrasmall {
	font-size: 0.75rem;
}

.lcars-text-bar-small {
	height: clamp(12px, 2.5vh, 26px);
	margin-block: 1.25rem;
}

.lcars-text-bar-small h2,
.lcars-text-bar-small h3,
.lcars-text-bar-small h4,
.lcars-text-bar-small span {
	height: clamp(14px, 3.5vh, 34px);
	font-size: clamp(10px, 3.5vh, 30px);
}

.stfc-search-input {
	display: block;
	width: 100%;
	max-width: 320px;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	margin: 1rem 0;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.5rem;
	color: white;
}

.stfc-search-input:focus {
	outline: none;
	border-color: var(--gelb);
}

.stfc-quicknav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.5rem;
	margin: 1rem 0;
	font-size: 0.85rem;
}

.stfc-quicknav a {
	color: var(--rosa);
}

.stfc-quicknav a:not(:last-child)::after {
	content: '·';
	margin-left: 0.5rem;
	color: var(--lila);
}

.stfc-mission-list {
	column-width: 260px;
	column-gap: 1.5rem;
	margin: 1rem 0;
}

.stfc-mission-list li {
	break-inside: avoid;
	margin-bottom: 0.4rem;
	line-height: 1.3;
}

.stfc-updates-list {
	margin: 1rem 0;
}

.stfc-updates-list li {
	margin-bottom: 0.4rem;
	line-height: 1.3;
}

.stfc-updates-steuerung {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0;
}
.stfc-updates-steuerung .stfc-battlelog-suche-feld {
	flex: 1 1 16rem;
}
.accordion-wrapper[hidden],
.stfc-updates-list li[hidden],
.stfc-updates-details[hidden] {
	display: none;
}
.stfc-updates-toggle {
	background: none;
	border: none;
	padding: 0 0 0 0.4rem;
	color: var(--lila);
	cursor: pointer;
	font-size: 0.8rem;
}
.stfc-updates-toggle:hover {
	color: var(--lila);
	text-decoration: underline;
}
.stfc-updates-list .stfc-updates-details {
	margin: 0.3rem 0 0.2rem 1.5rem;
	font-size: 0.9em;
}

.stfc-export-grid {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 1rem 0 1.5rem;
}

.stfc-export-grid label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.stfc-export-grid input[type="checkbox"] {
	accent-color: var(--gelb);
}

.stfc-export-toggle {
	margin-bottom: 0;
}

.stfc-export-toggle a {
	cursor: pointer;
}

.stfc-export-submit {
	margin-top: 1.5rem;
}

.stfc-rechner-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 1.5rem;
	font-size: 1rem;
	border: 2px solid var(--lila);
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;

	scrollbar-width: auto;
	scrollbar-color: var(--lila) rgba(153, 153, 255, 0.15);
}

.stfc-rechner-table::-webkit-scrollbar {
	height: 10px;
}

.stfc-rechner-table::-webkit-scrollbar-track {
	background: rgba(153, 153, 255, 0.15);
}

.stfc-rechner-table::-webkit-scrollbar-thumb {
	background: var(--lila);
	border-radius: 5px;
}

.stfc-rechner-table th,
.stfc-rechner-table td {
	padding: 0.6rem 1.2rem;
	text-align: right;
	border: 1px solid rgba(153, 153, 255, 0.3);

	vertical-align: top;
}

@media (max-width: 650px) {
	.stfc-rechner-table {
		font-size: 0.85rem;
	}

	.stfc-rechner-table th,
	.stfc-rechner-table td {
		padding: 0.4rem 0.6rem;
	}
}

.stfc-rechner-table th:first-child,
.stfc-rechner-table td:first-child {
	text-align: left;
}

.stfc-rechner-table .stfc-rechner-name {
	text-align: left;
}

.stfc-rechner-table .stfc-rechner-fc-cell {
	text-align: left;
}

.stfc-rechner-table th {
	background: var(--lila);
	color: black;
}

.stfc-rechner-table tr:nth-child(even) {
	background: rgba(153, 153, 255, 0.08);
}

.stfc-rechner-table tr.stfc-rechner-zeit-row {
	border-top: 2px solid var(--lila);
}

.stfc-rechner-table .stfc-rechner-base {
	color: var(--gelb);
}

.stfc-rechner-table .stfc-rechner-cost {
	color: var(--lila);
}

.stfc-rechner-table .stfc-rechner-onhand {
	color: var(--rosa);
}

.stfc-rechner-onhand-detail {
	display: block;
	font-size: 0.75em;
}

.stfc-rechner-table .stfc-rechner-needed {
	color: var(--rot);
	font-weight: bold;
}

.stfc-rechner-table .stfc-rechner-latinum {
	color: var(--peach);
	font-style: italic;
}

.stfc-rechner-list-icon {
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	vertical-align: middle;
	margin-right: 0.3em;
}

.stfc-rechner-plan-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.stfc-rechner-plan-list li {
	margin-bottom: 0.4rem;
	line-height: 1.3;
}

.stfc-rechner-hinweis {
	font-size: 0.85rem;
	opacity: 0.75;
}

.stfc-rechner-submit {
	margin-top: 1rem;
	margin-bottom: 1.5rem;
}

.rosa {
	color: var(--rosa);
}

.lila {
	color: var(--lila);
}

.gelb {
	color: var(--gelb);
}

.orange {
	color: var(--orange);
}

.rot {
	color: var(--rot);
}

.peach {
	color: var(--peach);
}

.gruen {
	color: var(--gruen);
}

.crews_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
	justify-content: center;
    margin: 15px 0 25px 0;
	width: 100%;
}

.crews_nav_item {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.crews_nav_item select {
	width: 250px;
}

@media (max-width: 768px) {
    .crews_nav_item {
        flex: 1 1 100%;
    }
}

.h2-with-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.h2-with-side h2 {
    margin: 0;
    flex: 1;
}

.h3-with-side {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.h3-with-side h3 {
    margin: 0;
}

.h4-with-side {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.h4-with-side h4 {
    margin: 0;
}

select {
	font-size: clamp(1rem, 1rem + 0.25vw, 1.25rem);
	border-radius: 100vmax;
	padding: 1rem 1.4rem 1rem 1.4rem;
	scroll-behavior: smooth;
	background-color: #000;
}

select.rosa {
	border: 4px solid var(--rosa);
	color: var(--rosa);
}

select.lila {
	border: 4px solid var(--lila);
	color: var(--lila);
}

select.gelb {
	border: 4px solid var(--gelb);
	color: var(--gelb);
}

select option {
	padding: 10px;
	transition: 0.4s;
}

select.rosa option {
	color: var(--rosa);
}

select.lila option {
	color: var(--lila);
}

select.gelb option {
	color: var(--gelb);
}

select.rosa option:checked {
	background-color: var(--rosa);
	color: #000;
}

select.lila option:checked {
	background-color: var(--lila);
	color: #000;
}

select.gelb option:checked {
	background-color: var(--gelb);
	color: #000;
}

select, ::picker(select) {
	appearance: base-select;
	border: none;
}

::picker(select) {
	position: relative;
    top: 10px !important;
	border-radius: 20px;
}

select::picker-icon {
	transition: 0.4s rotate;
}

select:open::picker-icon {
	rotate: 180deg;
}

option:first-of-type {
	border-radius: 20px 20px 0 0;
}

option:last-of-type {
	border-radius: 0 0 20px 20px;
}

option:not(option:last-of-type) {
	border-bottom: none;
}

option::checkmark {
	display: none;
}

img.icon {
	width: 50px;
	height: auto;
}

.termine-message {
	padding: 0.6rem 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1.2rem;
	font-size: 0.9rem;
}
.termine-message.success { background: rgba(153, 255, 153, 0.15); color: #99ff99; border: 1px solid #99ff99; }
.termine-message.error   { background: rgba(255, 102, 102, 0.15); color: var(--rot); border: 1px solid var(--rot); }

.termine-table {
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-top: 1rem;
}

.termine-table td {
	padding: 0.5rem 0.25rem;
	vertical-align: middle;
}

.termine-table td.left {
	width: 35%;
	text-align: right;
	padding-right: 1rem;
	color: var(--lila);
	font-size: 1rem;
}

.termine-table td.right {
	width: 65%;
}

.termine-table-info {
	width: auto;
	table-layout: auto;
}

.termine-table-info td.left {
	width: auto;
	text-align: left;
	padding-right: 1rem;
}

.termine-table-info td.right {
	width: auto;
}

.termine-table input[type="text"],
.termine-table input[type="email"],
.termine-table input[type="password"],
.termine-table textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.5rem;
	color: white;
	font-family: inherit;
	font-size: 1rem;
}

.termine-table textarea {
	min-height: 6rem;
	resize: vertical;
	border-width: 2px;
}

.termine-table > div + div {
	margin-top: 1rem;
}

.termine-table input:focus,
.termine-table textarea:focus {
	outline: none;
	border-color: var(--gelb);
}

.stfc-rechner-autocomplete {
	position: relative;
	margin-bottom: 1rem;
}

.stfc-rechner-autocomplete input[type="text"] {
	width: 50%;
}

.stfc-rechner-autocomplete-liste {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 50%;
	z-index: 20;
	max-height: 16rem;
	overflow-y: auto;
	background: #111;
	border: 1px solid var(--rosa);
	border-top: none;
	border-radius: 0 0 0.5rem 0.5rem;
}

.stfc-rechner-autocomplete-item {
	padding: 0.5rem 0.75rem;
	cursor: pointer;
	color: white;
}

.stfc-rechner-autocomplete-item:hover {
	background: var(--lila);
	color: black;
}

.stfc-rechner-testen-checkbox input[type="checkbox"],
.stfc-rechner-testen-checkbox input[type="radio"] {
	accent-color: var(--lila);
}

.stfc-rechner-fc-toggle {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	margin-right: 0.5em;
}

.stfc-rechner-fc-toggle input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.stfc-rechner-fc-toggle img {
	display: none;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
}

.stfc-rechner-fc-toggle input[type="checkbox"]:checked ~ img.icon-on {
	display: inline-block;
}

.stfc-rechner-fc-toggle input[type="checkbox"]:not(:checked) ~ img.icon-off {
	display: inline-block;
}

.stfc-rechner-fc-immer-dabei {
	font-size: 0.85em;
	font-style: italic;
	color: var(--peach);
}

.stfc-rechner-accordion-hinweis {
	position: absolute;
	left: -2.4rem;
	top: 0.6rem;
	width: 1.8rem;
	height: 1.8rem;
	margin: 0;
}

.termine-table input[type="checkbox"] {
	accent-color: var(--lila);
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

.termine-submit {
	padding: 0.6rem 1.8rem;
	border-radius: 100vmax;
	border: none;
	cursor: pointer;
	font-family: 'LCARS';
	font-size: 1.5rem;
	background: var(--gelb);
	color: black;

	max-width: 100%;
	white-space: normal;
}

.termine-submit:hover {
	background: var(--peach);
}

a.termine-submit {
	display: inline-block;
	text-decoration: none;
}

.stfc-discord-status {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.stfc-discord-avatar {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 2px solid var(--lila);
}

.stfc-discord-status p {
	margin: 0;
}

.termine-sync-btn {
	font-size: 0.8rem;
	border: 2px solid var(--gelb);
	border-radius: 0.5rem;
	background-color: black;
	color: white;
	padding: 0.3rem 0.8rem;
	cursor: pointer;
}

.subnav-desktop {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 1.5rem 0;
}

.subnavitem,
.subnavitemactive {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.6rem;
	border-radius: 100vmax;
	font-family: 'LCARS';
	text-decoration: none;
	text-transform: uppercase;
	background-color: var(--rosa);
	color: black;
}

.subnavitemactive {
	background-color: var(--gelb);
}

.subnav-mobile {
	display: none;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.subnav-mobile select {
	width: 100%;
	max-width: 400px;
	background-color: var(--gelb);
	color: black;
	font-weight: bold;
	border: none;
}

@media (max-width: 700px) {
	.subnav-desktop,
	.buttons {
		display: none;
	}
	.subnav-mobile {
		display: block;
	}
}

.inline {
	display: flex;
	flex-direction: row nowrap;
}

.crews_uebersicht {
    box-sizing: border-box;
    display: flex;
	flex-direction: column;
    width: 100%;
	align-items: center;
}

.crews_row {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
	max-width: 1500px;
    border-radius: 2.0rem;
    border: 4px solid var(--gelb);
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    position: relative;
}

.crews_brücke {
	box-sizing: border-box;
	display: flex;
	flex-flow: row wrap;
	width: 98%;
	justify-content: center;
	padding: 1.0rem;
	position: relative;
}

.crews_unterdeck {
	box-sizing: border-box;
	display: flex;
	flex-flow: row wrap;
	width: 98%;
	justify-content: center;
	gap: 0.5rem;
	padding-top: 1.0rem;
	border-top: 1px #808080 solid;
	font-size: 0.8rem;
}

.crews_infos {
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	padding: 1.0rem;
	min-width: 0;
    width: 100%;
}

.crews_infosname {
	width: 200px;
	font-size: 0.8rem;
	text-align: right;
	padding-right: 1.0rem;
}

.crews_infostext {
	width: 100%;
	font-size: 0.8rem;
}

.crews_item {
	display: flex;
	flex-flow: column nowrap;
	width: 100px;
	align-items: center;
	text-align: center;
}

img.crews_itemcaptain {
	width: 50px;
	height: 50px;
	border: 1px solid var(--gelb);
	border-radius: 0.5rem;
}

img.crews_itemoffizier {
	width: 50px;
	height: 50px;
	border: 1px solid var(--lila);
	border-radius: 0.5rem;
}

.crews_item img {
	width: 50px;
	height: 50px;
	gap: 10px;
}

.crews_unterdeck .crews_item img {
	border: 1px solid var(--rosa);
	border-radius: 0.5rem;
}

.crews_top {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	width: 100%;
	font-size: 0.8rem;
}

.infos_hidden {
	display: none;
	margin-top: 10px;
}

.infos_hidden.visible {
	display: block;
}

.toggle-btn {
	background-color: #222;
	color: #fff;
	padding: 5px 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	margin-top: 10px;
}

.toggle-btn:hover {
	background-color: #444;
}

.crews_favorit {
	position: absolute;
	top: 5px;
	left: 5px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.favorit-icon {
	cursor: pointer;
	color: var(--hellgrau);
	font-size: 1rem;
	padding: 2px 6px;
	user-select: none;
	transition: all 0.2s ease;
}

.favorit-icon.active {
	color: var(--gelb);
}

.favorit-count {
	font-size: 0.9rem;
	color: var(--gelb);
}

.crews_row_top {
    display: grid;
    grid-template-columns: 50px 400px 1fr;
    gap: 1rem;
    align-items: start;
	width: 100%;
    margin-bottom: 1.2rem;
}

.crews_favorit {
    position: static;
}

.crews_brücke {
    width: 100%;
}

.crews_unterdeck {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid #555;
    margin-bottom: 1rem;
}

.crews_details {
    display: flex;
    flex-direction: column;
	width: 100%;
    align-items: start;
    padding-top: 0.5rem;
}

.crews_details button {
    width: 100%;
}

@media (max-width: 1150px) {
    .crews_row_top {
        grid-template-columns: 50px 1fr;
    }

    .crews_infos {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .crews_row_top {
        grid-template-columns: 1fr;
    }
}

.merch-carousel {
    margin: 20px 0;
    max-width: 400px;
	min-height: 380px;
	text-align: center;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    height: 100%;
	text-align: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
	text-align: center;
}

.logbuch-bild {
    width: 400px;
    max-width: 100%;
    height: auto;
}

.home-row > .col1 > img:not([src*="button_"]),
.home-row > .col1 > a > img:not([src*="button_"]),
.home-row > .col2 > img:not([src*="button_"]),
.home-row > .col2 > a > img:not([src*="button_"]),
.home-row > .col3 > img:not([src*="button_"]),
.home-row > .col3 > a > img:not([src*="button_"]) {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.home-row .col2 {
    border-radius: 0;
}

.home-row .col3 {
    border-radius: var(--radius-col-top);
}

.home-row > .col1 > .lcars-text-bar:first-child,
.home-row > .col2 > .lcars-text-bar:first-child,
.home-row > .col3 > .lcars-text-bar:first-child {
    margin-top: 0;
}

.carousel-slide img {
    max-height: 260px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 15px auto;
    display: block;
}

.merch-info h3 {
    color: var(--rosa);
    margin: 12px 0 8px 0;
    font-size: 1.3em;
}

.price {
    color: var(--lila);
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0;
}

.merch-carousel .carousel-slide::after,
.merch-single-rotator::after,
a::after {
    content: none !important;
    display: none !important;
}

.top-crews {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.top-crew-card {
    display: block;
    border: 3px solid var(--gelb);
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    position: relative;
}

.top-crew-favcount {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--gelb);
    margin-right: 16px;
    white-space: nowrap;
}

.top-crew-card:hover {
    border-color: var(--lila);
}

.top-crew-title {
    font-weight: bold;
    color: var(--gelb);
    margin-bottom: 6px;
}

.top-crew-bridge {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.top-crew-bridge img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 0.4rem;
    border: 1px solid var(--gelb);
}

.top-crew-favcount img {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 0;
}

.top-crew-unterdeck {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #555;
}

.vorschlag-bridge-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.vorschlag-unterdeck-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.7rem;
}
.officer-slot {
    background: rgba(255,255,255,0.05);
    padding: 0.7rem;
    border-radius: 0.7rem;
    text-align: center;
    border: 1px solid #555;
}
.officer-slot .slot-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.6rem 0;
}
.officer-slot .slot-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 0.6rem;
    border: 2px solid var(--lila);
    object-fit: contain;
}
.officer-slot[data-slot="captain_id"] .slot-thumb {
    border-color: var(--gelb);
}
.officer-slot.unterdeck-slot .slot-thumb {
    border-color: var(--rosa);
}
.officer-slot .slot-name {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85em;
    min-height: 2.4em;
}
.officer-slot .slot-pick-btn,
.officer-slot .slot-clear-btn {
    display: block;
    width: 100%;
    max-width: 170px;
    margin: 0.4rem auto;
    padding: 0.55rem 0.4rem;
    border-radius: 100vmax;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(0.65rem, 0.5rem + 2.5cqw, 0.85rem);
    font-weight: bold;
    white-space: normal;
    line-height: 1.2;
}
.officer-slot .slot-pick-btn {
    border: none;
    background: var(--gelb);
    color: black;
}
.officer-slot .slot-pick-btn:hover {
    background: var(--peach);
}
.officer-slot .slot-clear-btn {
    background: transparent;
    border: 1px solid var(--lila);
    color: var(--lila);
}
.officer-slot .slot-clear-btn:hover {
    background: var(--lila);
    color: black;
}
.officer-slot[data-slot="captain_id"] .slot-clear-btn {
    border-color: var(--gelb);
    color: var(--gelb);
}
.officer-slot[data-slot="captain_id"] .slot-clear-btn:hover {
    background: var(--gelb);
    color: black;
}
.officer-slot.unterdeck-slot .slot-clear-btn {
    border-color: var(--rosa);
    color: var(--rosa);
}
.officer-slot.unterdeck-slot .slot-clear-btn:hover {
    background: var(--rosa);
    color: black;
}

.officer-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}
.officer-picker {
    background: #111;
    border: 2px solid var(--lila);
    border-radius: 1rem;
    width: 100%;
    max-width: 1000px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}
.picker-search {
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    font-size: 1em;
    background: #222;
    border: 2px solid var(--gelb);
    border-radius: 0.6rem;
    color: white;
}
.picker-results {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    padding: 0.2rem;
}
.picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    border-radius: 0.6rem;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
}
.picker-item:hover {
    background: #333;
}
.picker-item img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 0.5rem;
    margin-bottom: 0.4rem;
}
.picker-item span {
    display: block;
    font-size: 0.85em;
    line-height: 1.25;
    color: white;
}
.picker-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.8rem 0;
    gap: 0.8rem;
}
.picker-pagination .picker-page-info {
    color: white;
    font-size: 0.9rem;
}
.picker-pagination button,
button.picker-close {
    padding: 0.5rem 1.2rem;
    border-radius: 100vmax;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
}
.picker-pagination button {
    background: var(--lila);
    color: black;
}
.picker-pagination button:hover:not(:disabled) {
    background: var(--rosa);
}
.picker-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
button.picker-close {
    display: block;
    margin: 0.7rem auto 0;
    background: transparent;
    border: 1px solid var(--rot);
    color: var(--rot);
}
button.picker-close:hover {
    background: var(--rot);
    color: black;
}

.lcars-select-native {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lcars-select {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 420px;
	min-width: 0;
}

.lcars-select-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	font-family: inherit;
	font-size: clamp(1rem, 1rem + 0.25vw, 1.25rem);
	text-align: left;
	background-color: #000;
	color: var(--lila);
	border: 2px solid var(--lila);
	border-radius: 100vmax;
	padding: 0.7rem 1.2rem;
	cursor: pointer;
}
.lcars-select-trigger:hover,
.lcars-select-trigger:focus-visible {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--lila);
}
.lcars-select-trigger:focus-visible {
	outline: 2px solid var(--gelb);
	outline-offset: 2px;
}
.lcars-select-trigger:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.lcars-select-trigger.lcars-select-invalid {
	border-color: var(--rot);
	color: var(--rot);
}
.lcars-select-trigger-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	user-select: none;
}
.lcars-select-trigger-label::before {
	content: '\00a0';
	display: inline-block;
	width: 0;
	overflow: hidden;
}
.lcars-select-trigger::after {
	content: '';
	flex-shrink: 0;
	width: 0.55em;
	height: 0.55em;
	margin-top: -0.25em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}
.lcars-select-trigger--open::after {
	margin-top: 0.15em;
	transform: rotate(-135deg);
}

.lcars-select-trigger.rosa { border-color: var(--rosa); color: var(--rosa); }
.lcars-select-trigger.lila { border-color: var(--lila); color: var(--lila); }
.lcars-select-trigger.gelb { border-color: var(--gelb); color: var(--gelb); }

.subnav-mobile .lcars-select {
	max-width: 400px;
}
.subnav-mobile .lcars-select-trigger {
	background-color: var(--gelb);
	color: black;
	font-weight: bold;
	border: none;
}

.crews_nav_item .lcars-select {
	width: 250px;
	max-width: 100%;
}

.lcars-select-panel {
	position: fixed;
	z-index: 20000;
	background: #111;
	border: 2px solid var(--lila);
	border-radius: 0.8rem;
	overflow-y: auto;
	padding: 0.4rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.lcars-select-option {
	padding: 0.6rem 0.9rem;
	border-radius: 0.5rem;
	cursor: pointer;
	color: white;
	font-size: 0.95rem;
}
.lcars-select-option--active,
.lcars-select-option:hover {
	background: var(--lila);
	color: black;
}
.lcars-select-option--selected {
	font-weight: bold;
	color: var(--gelb);
}
.lcars-select-option--selected.lcars-select-option--active {
	color: black;
}
.lcars-select-option--disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}
.lcars-select-option--empty {
	opacity: 0.6;
	font-style: italic;
	pointer-events: none;
	cursor: default;
}
.lcars-select-option--empty:hover,
.lcars-select-option--empty.lcars-select-option--active,
.lcars-select-option--disabled:hover,
.lcars-select-option--disabled.lcars-select-option--active {
	background: transparent;
	color: white;
}

.top-crew-unterdeck img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0.35rem;
    border: 1px solid var(--lila);
}

.stfc-battlelog-upload-form {
	margin: 1rem 0 1.5rem;
}

.stfc-battlelog-upload-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.stfc-battlelog-upload-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.stfc-battlelog-upload-btn {
	padding: 0.6rem 1.5rem;
	border-radius: 100vmax;
	background: var(--lila);
	color: black;
	font-size: 0.9rem;
	cursor: pointer;
	white-space: nowrap;
}

.stfc-battlelog-upload-btn:hover {
	background: #222;
	color: var(--lila);
	outline: 1px solid var(--lila);
}

.stfc-battlelog-upload-submit {
	padding: 0.6rem 1.5rem;
	border-radius: 100vmax;
	border: none;
	cursor: pointer;
	font-family: 'LCARS';
	font-size: 1rem;
	background: var(--gelb);
	color: black;
}

.stfc-battlelog-upload-submit:disabled {
	background: #333;
	color: #777;
	cursor: not-allowed;
}

.stfc-battlelog-upload-filelist {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-width: 500px;
}

.stfc-battlelog-upload-fileitem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.4rem;
	padding: 0.35rem 0.6rem;
	font-size: 0.85rem;
}

.stfc-battlelog-upload-filename {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stfc-battlelog-upload-remove {
	background: transparent;
	border: 1px solid var(--rot);
	color: var(--rot);
	border-radius: 50%;
	width: 1.5rem;
	height: 1.5rem;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.stfc-battlelog-upload-remove:hover {
	background: var(--rot);
	color: black;
}

.stfc-battlelog-bulk-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.stfc-battlelog-bulk-btn {
	background: transparent;
	border: 1px solid var(--rosa);
	color: var(--rosa);
	border-radius: 100vmax;
	padding: 0.4rem 1rem;
	cursor: pointer;
	font-size: 0.85rem;
}

.stfc-battlelog-bulk-btn:hover {
	background: #292929;
	background: color-mix(in srgb, var(--rosa) 18%, #111 82%);
	color: var(--rosa);
}

.stfc-battlelog-bulk-btn-delete {
	border-color: var(--rot);
	color: var(--rot);
}

.stfc-battlelog-bulk-btn-delete:hover {
	background: #292929;
	background: color-mix(in srgb, var(--rot) 18%, #111 82%);
	color: var(--rot);
}

.stfc-battlelog-bulk-btn-download {
	border-color: #60bf47;
	color: #60bf47;
}

.stfc-battlelog-bulk-btn-download:hover {
	background: #292929;
	background: color-mix(in srgb, #60bf47 18%, #111 82%);
	color: #60bf47;
}

.stfc-battlelog-bulk-btn-favoriten {
	border-color: var(--gelb);
	color: var(--gelb);
}

.stfc-battlelog-bulk-btn-favoriten:hover {
	background: #292929;
	background: color-mix(in srgb, var(--gelb) 18%, #111 82%);
	color: var(--gelb);
}

.stfc-battlelog-bulk-btn-teilen {
	border-color: var(--rosa);
	color: var(--rosa);
}

.stfc-battlelog-bulk-btn-teilen:hover {
	background: #292929;
	background: color-mix(in srgb, var(--rosa) 18%, #111 82%);
	color: var(--rosa);
}

.stfc-battlelog-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1rem 0;
}

.stfc-battlelog-row {
	--stfc-battlelog-color: var(--rot);
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.6rem 0.9rem;
	background: #111;
	border: 2px solid var(--stfc-battlelog-color);
	border-left-width: 4px;
	border-radius: 0.5rem;
	color: white;
	font-size: 0.9rem;
}

.stfc-battlelog-row[data-detail-href] {
	cursor: pointer;
}

.stfc-battlelog-row:hover {
	background: #1a1a1a;
	background: color-mix(in srgb, var(--stfc-battlelog-color) 18%, #111 82%);
}

.stfc-battlelog-checkbox {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--rosa);
}

.stfc-battlelog-inline-form {
	margin: 0;
}

.stfc-battlelog-favorit-btn {
	background: transparent;
	border: none;
	color: var(--gelb);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.stfc-battlelog-info {
	min-width: 0;
}

.stfc-battlelog-result-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.stfc-battlelog-kategorie-icon {
	display: inline-block;
	width: 1.3rem;
	height: 1.3rem;
	flex-shrink: 0;
}

.stfc-battlelog-result {
	font-weight: bold;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: var(--stfc-battlelog-color);
}

.stfc-battlelog-row-sieg { --stfc-battlelog-color: #009a2f; }
.stfc-battlelog-row-teilweise { --stfc-battlelog-color: #ffcc99; }
.stfc-battlelog-row-niederlage { --stfc-battlelog-color: #cc6666; }

.stfc-battlelog-filename {
	font-size: 0.75rem;
	color: var(--lila);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stfc-battlelog-title {
	font-size: 0.9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stfc-battlelog-meta {
	font-size: 0.75rem;
	color: var(--peach);
	margin-top: 0.15rem;
}

.stfc-battlelog-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.stfc-battlelog-download-btn,
.stfc-battlelog-delete-btn {
	background: transparent;
	border: 1px solid var(--rosa);
	color: var(--rosa);
	border-radius: 0.4rem;
	padding: 0.3rem 0.55rem;
	cursor: pointer;
	font-size: 0.9rem;
	text-decoration: none;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.stfc-battlelog-icon {
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
}

.stfc-battlelog-icon-inline {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.15em;
}

.stfc-battlelog-bulk-btn .stfc-battlelog-icon {
	vertical-align: -0.2em;
	margin-right: 0.3rem;
}

.stfc-battlelog-download-btn:hover {
	border-color: white;
}

.stfc-battlelog-delete-btn {
	border-color: var(--rot);
	color: var(--rot);
}

.stfc-battlelog-delete-btn:hover {
	background: var(--rot);
	color: black;
}

@media (max-width: 650px) {
	.stfc-battlelog-row {
		grid-template-columns: auto auto 1fr;
		grid-template-areas:
			"checkbox favorit info"
			"actions actions actions";
	}
	.stfc-battlelog-checkbox { grid-area: checkbox; }
	.stfc-battlelog-row > .stfc-battlelog-inline-form { grid-area: favorit; }
	.stfc-battlelog-info { grid-area: info; }
	.stfc-battlelog-actions { grid-area: actions; justify-content: flex-end; margin-top: 0.4rem; }
}

.stfc-battlelog-detail-banner {
	text-align: center;
	font-size: 1.4rem;
	font-weight: bold;
	letter-spacing: 0.1em;
	padding: 0.6rem;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	color: black;
}

.stfc-battlelog-detail-standort {
	text-align: center;
	color: var(--peach);
	font-size: 0.8rem;
	margin: -0.5rem 0 1rem;
}

.stfc-battlelog-detail-banner-sieg { background: #009a2f; }
.stfc-battlelog-detail-banner-teilweise { background: #ffcc99; }
.stfc-battlelog-detail-banner-niederlage { background: #cc6666; }

.stfc-battlelog-detail-vs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem;
	align-items: stretch;
	margin-bottom: 1rem;
}

.stfc-battlelog-detail-side {
	background: #111;
	border: 1px solid var(--lila);
	border-radius: 0.5rem;
	padding: 0.8rem 1rem;
	display: flex;
	flex-direction: column;
}

.stfc-battlelog-detail-side-eigene { border-color: var(--gelb); }
.stfc-battlelog-detail-side-gegner { border-color: var(--rot); }

.stfc-battlelog-detail-officers {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
}

.stfc-battlelog-detail-officers-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.35rem;
}

.stfc-battlelog-detail-bars {
	margin-top: auto;
}

.stfc-battlelog-detail-officer {
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--lila);
	background: #222;
	flex-shrink: 0;
}

.stfc-battlelog-detail-officers-underdeck .stfc-battlelog-detail-officer {
	width: 2.1rem;
	height: 2.1rem;
	border-width: 1px;
}

.stfc-battlelog-detail-officer-captain {
	width: 3.6rem;
	height: 3.6rem;
	border-color: var(--gelb);
}

.stfc-battlelog-detail-officer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stfc-battlelog-detail-officer-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #999;
	font-size: 0.7rem;
	font-weight: bold;
}

.stfc-battlelog-detail-vs-label {
	font-weight: bold;
	font-size: 1.2rem;
	color: var(--gelb);
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stfc-battlelog-detail-vs-icon {
	display: inline-block;
	width: 3rem;
	height: 3rem;
}

.stfc-battlelog-detail-vs-icon-gespiegelt {
	transform: scaleX(-1);
}

.stfc-battlelog-detail-name {
	font-weight: bold;
	font-size: 1.05rem;
	color: white;
}

.stfc-battlelog-detail-ship {
	font-size: 0.8rem;
	color: var(--rosa);
	margin-bottom: 0.5rem;
}

.stfc-battlelog-detail-bar-label {
	font-size: 0.7rem;
	color: #ccc;
	margin-top: 0.3rem;
}

.stfc-battlelog-detail-bar {
	height: 0.6rem;
	background: #222;
	border-radius: 0.3rem;
	overflow: hidden;
}

.stfc-battlelog-detail-bar-fill {
	height: 100%;
	border-radius: 0.3rem;
}

.stfc-battlelog-detail-bar-huelle { background: var(--gelb); }
.stfc-battlelog-detail-bar-gestapelt { position: relative; }
.stfc-battlelog-detail-bar-gestapelt .stfc-battlelog-detail-bar-fill { position: absolute; top: 0; left: 0; }
.stfc-battlelog-detail-bar-huelle-vorher { background: var(--peach); }
.stfc-battlelog-detail-bar-schild-vorher { background: var(--rosa); }

.stfc-live-hinweis {
	margin: 0.8rem 0;
	padding: 0.5rem 1rem;
	background: #111;
	border: 1px solid var(--peach);
	border-radius: 0.5rem;
}
.stfc-live-hinweis[hidden] { display: none; }
.stfc-live-hinweis a { color: var(--peach); }
.stfc-battlelog-detail-bar-schild { background: var(--lila); }

.stfc-battlelog-detail-allies {
	background: #111;
	border: 1px solid var(--gelb);
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	margin-bottom: 1rem;
}
.stfc-battlelog-detail-allies-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 0.8rem;
	margin-top: 0.6rem;
}
.stfc-battlelog-detail-allies > summary {
	cursor: pointer;
	font-size: 0.8rem;
	color: var(--rosa);
	list-style: none;
}
.stfc-battlelog-detail-allies > summary::-webkit-details-marker { display: none; }
.stfc-battlelog-detail-allies > summary::before { content: "▸ "; }
.stfc-battlelog-detail-allies[open] > summary::before { content: "▾ "; }
.stfc-battlelog-detail-runde {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 1rem 0 0.4rem;
	padding: 0.25rem 0.8rem;
	background: #222;
	border-left: 4px solid var(--lila);
	color: white;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.stfc-battlelog-detail-runde-pfeil {
	display: inline-block;
	min-width: 2.2rem;
	text-align: center;
	padding: 0.05rem 0.5rem;
	border: 1px solid var(--lila);
	border-radius: 0.3rem;
	background: #111;
	color: var(--lila);
	font-size: 0.75rem;
	line-height: 1.3;
	text-decoration: none;
}
a.stfc-battlelog-detail-runde-pfeil:hover { background: var(--lila); color: #000; }
.stfc-battlelog-detail-runde-pfeil-aus { opacity: 0.25; }
.stfc-battlelog-filter {
	margin: 0 0 1rem;
}
.stfc-battlelog-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.6rem;
}
.stfc-battlelog-tab {
	display: inline-block;
	padding: 0.25rem 0.9rem;
	border: 1px solid var(--lila);
	border-radius: 1rem;
	background: #111;
	color: var(--lila);
	font-size: 0.85rem;
	text-decoration: none;
}
.stfc-battlelog-tab:hover { background: #222; }
.stfc-battlelog-tab-aktiv { background: var(--lila); color: #000; }
.stfc-battlelog-tab-anzahl { opacity: 0.7; font-size: 0.75rem; margin-left: 0.2rem; }
.stfc-battlelog-suche {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.stfc-battlelog-suche-feld {
	flex: 1 1 18rem;
	min-width: 0;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--rosa);
	border-radius: 0.5rem;
	background: #111;
	color: white;
	font-size: 0.9rem;
}
.stfc-battlelog-suche-btn {
	padding: 0.35rem 1rem;
	border: 1px solid var(--gelb);
	border-radius: 0.5rem;
	background: #111;
	color: var(--gelb);
	cursor: pointer;
}
.stfc-battlelog-suche-btn:hover { background: var(--gelb); color: #000; }
.stfc-battlelog-suche-reset { font-size: 0.85rem; }
.stfc-battlelog-teilen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0.5rem 0 1rem;
	padding: 0.4rem 0;
}
.stfc-battlelog-teilen-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.4rem;
	width: 100%;
}
.stfc-battlelog-teilen-label { flex: 1 1 100%; font-size: 0.85rem; color: var(--rosa); }
.stfc-battlelog-teilen-feld {
	flex: 1 1 22rem;
	min-width: 0;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--rosa);
	border-radius: 0.4rem;
	background: #000;
	color: #ddd;
	font-size: 0.8rem;
}
.stfc-battlelog-teilen-btn {
	display: inline-block;
	padding: 0.3rem 0.9rem;
	border: 1px solid var(--rosa);
	border-radius: 0.4rem;
	background: #111;
	color: var(--rosa);
	font-size: 0.85rem;
	text-decoration: none;
	cursor: pointer;
}
.stfc-battlelog-teilen-btn:hover { background: var(--rosa); color: #000; }
.stfc-battlelog-teilen-btn-beenden { border-color: var(--rot); color: var(--rot); }
.stfc-battlelog-teilen-btn-beenden:hover { background: var(--rot); color: #000; }
.stfc-battlelog-teilen-info { font-size: 0.8rem; color: #999; }
.stfc-battlelog-geteilt-hinweis { color: var(--rosa); font-size: 0.9rem; margin: 0.4rem 0 0.8rem; }
.stfc-battlelog-detail-aktionen {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 1rem 0 0.2rem;
}
.stfc-battlelog-detail-aktionen + .stfc-battlelog-detail-ort { margin-top: 0.9rem; }
.stfc-battlelog-detail-aktionen-fehler { font-size: 0.85rem; margin: 0 0 0.3rem; }
.stfc-battlelog-aktion-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--rosa);
	font: inherit;
}
.stfc-battlelog-aktion-text { color: var(--rosa); font-size: 1rem; }
.stfc-battlelog-aktion-icon {
	display: block;
	width: 1.8rem;
	height: 1.8rem;
	opacity: 0.85;
	transition: opacity 0.15s, transform 0.15s;
}
.stfc-battlelog-aktion-btn:hover .stfc-battlelog-aktion-icon,
.stfc-battlelog-teilen-details > summary:hover .stfc-battlelog-aktion-icon { opacity: 1; transform: scale(1.08); }
.stfc-battlelog-aktion-icon-aktiv { opacity: 1; filter: drop-shadow(0 0 5px var(--rosa)); }
.stfc-battlelog-teilen-details { width: 100%; }
.stfc-battlelog-teilen-details > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.stfc-battlelog-teilen-details > summary::-webkit-details-marker { display: none; }
.stfc-battlelog-detail-ort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 0.4rem;
	color: var(--peach);
	font-size: 1rem;
}
.stfc-battlelog-detail-ort-icon { width: 1.8rem; height: 1.8rem; display: block; }
.stfc-battlelog-detail-anomalie {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.4rem 0;
	color: var(--gelb);
	font-size: 1rem;
}
.stfc-battlelog-detail-anomalie-liste {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	font-size: 0.8rem;
	color: #ccc;
}
.stfc-battlelog-detail-anomalie-liste li { padding: 0.15rem 0; }
.stfc-battlelog-detail-unten { margin-bottom: 0.5rem; }
.stfc-battlelog-detail-unten-zwei {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
	gap: 0 2rem;
	align-items: start;
}
.stfc-battlelog-detail-unten-links, .stfc-battlelog-detail-unten-rechts { min-width: 0; }
@media (max-width: 1100px) {
	.stfc-battlelog-detail-unten-zwei { grid-template-columns: 1fr; }
}
.stfc-battlelog-zf-seite { margin-bottom: 1rem; }
.stfc-battlelog-zf-titel { color: white; font-weight: bold; margin: 0.6rem 0 0.3rem; }
.stfc-battlelog-zf-nebentitel { color: #999; font-weight: normal; font-size: 0.75rem; }
.stfc-battlelog-zf-seite-eigene .stfc-battlelog-zf-titel { border-left: 4px solid var(--gelb); padding-left: 0.5rem; }
.stfc-battlelog-zf-seite-gegner .stfc-battlelog-zf-titel { border-left: 4px solid var(--rot); padding-left: 0.5rem; }
.stfc-battlelog-zf-tabelle-wrap { overflow-x: auto; }
.stfc-battlelog-zf-tabelle {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	border: none;
}
.stfc-battlelog-zf-tabelle th {
	text-align: right;
	color: var(--rosa);
	font-weight: normal;
	font-size: 0.75rem;
	padding: 0.2rem 0.5rem;
	border: none;
	border-bottom: 1px solid #333;
}
.stfc-battlelog-zf-tabelle td {
	text-align: right;
	padding: 0.25rem 0.5rem;
	border: none;
	border-bottom: 1px solid #222;
	white-space: nowrap;
}
.stfc-battlelog-zf-tabelle th:first-child, .stfc-battlelog-zf-tabelle td:first-child { text-align: left; white-space: normal; }
.stfc-battlelog-zf-summe td { border-top: 1px solid #555; font-weight: bold; color: white; }
.stfc-battlelog-zf-anteil { min-width: 6.5rem; }
.stfc-battlelog-zf-anteil span { display: inline-block; min-width: 2.4rem; }
.stfc-battlelog-zf-balken { display: inline-block; width: 3rem; height: 0.5rem; background: #222; border-radius: 0.25rem; overflow: hidden; vertical-align: middle; margin-right: 0.3rem; }
.stfc-battlelog-zf-balken-fuell { height: 100%; border-radius: 0.25rem; }
.stfc-battlelog-zf-balken-eigene { background: var(--gelb); }
.stfc-battlelog-zf-balken-gegner { background: var(--rot); }
.stfc-battlelog-zf-erhalten { margin: 0.8rem 0; }
.stfc-battlelog-zf-erhalten .stfc-battlelog-zf-titel { border-left: none; padding-left: 0; }
.stfc-battlelog-zf-erhalten-name { color: var(--rosa); }
.stfc-battlelog-zf-kennzahlen { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; font-size: 0.85rem; color: #ccc; margin: 0.6rem 0 1rem; }
.stfc-battlelog-zf-kennzahlen strong { color: white; }
.stfc-battlelog-zf-faehigkeiten-liste { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: -0.5rem 0 1rem; }
.stfc-battlelog-zf-faehigkeiten-seite { font-size: 0.75rem; color: #999; margin-right: 0.1rem; }
.stfc-battlelog-zf-faehigkeiten-seite:not(:first-child) { margin-left: 0.6rem; }
.stfc-battlelog-zf-faehigkeit { display: inline-block; padding: 0.1rem 0.6rem; border: 1px solid var(--lila); border-radius: 1rem; background: #111; color: var(--lila); font-size: 0.75rem; }
.stfc-battlelog-detail-allies-namen { color: #999; margin-left: 0.4rem; }
.stfc-battlelog-detail-ally {
	display: flex;
	flex-direction: column;
	padding: 0.6rem 0.8rem;
	border: 1px solid #333;
	border-radius: 0.4rem;
}

.stfc-battlelog-detail-event-besitzer {
	color: white;
	margin-bottom: 0.2rem;
}

.stfc-battlelog-detail-starter {
	font-size: 0.7rem;
	font-weight: normal;
	color: var(--gelb);
	margin-left: 0.3rem;
}

.stfc-battlelog-detail-rewards {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	font-size: 0.85rem;
}

.stfc-battlelog-detail-rewards li {
	padding: 0.2rem 0;
	border-bottom: 1px solid #222;
}

.stfc-battlelog-detail-losses li {
	color: var(--rot);
}

.stfc-battlelog-detail-rounds {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.stfc-battlelog-detail-event {
	background: #111;
	border: 1px solid #333;
	border-left-width: 4px;
	border-radius: 0.4rem;
	padding: 0.5rem 0.8rem;
	font-size: 0.85rem;
}

.stfc-battlelog-detail-event-eigene { text-align: left; }
.stfc-battlelog-detail-event-gegner { text-align: right; border-left-width: 1px; border-right-width: 4px; }

.stfc-battlelog-detail-event-angriff-eigene { border-left-color: var(--gelb); }
.stfc-battlelog-detail-event-angriff-gegner { border-left-width: 1px; border-right-width: 4px; border-right-color: var(--rot); }
.stfc-battlelog-detail-event-faehigkeit { border-left-color: var(--lila); color: #ccc; }
.stfc-battlelog-detail-event-faehigkeit.stfc-battlelog-detail-event-gegner { border-right-color: var(--lila); }
.stfc-battlelog-detail-event-schild-erschoepft { border-left-color: var(--rot); color: #ccc; }
.stfc-battlelog-detail-event-schild-erschoepft.stfc-battlelog-detail-event-gegner { border-right-color: var(--rot); }
.stfc-battlelog-detail-event-vernichtet { border-left-color: var(--rot); color: #ccc; }
.stfc-battlelog-detail-event-vernichtet.stfc-battlelog-detail-event-gegner { border-right-color: var(--rot); }

.stfc-battlelog-detail-angriff-halves {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.stfc-battlelog-detail-angriff-half {
	flex: 1 1 45%;
	min-width: 180px;
	font-size: 0.8rem;
	color: #ccc;
}

.stfc-battlelog-detail-angriff-enemy { text-align: right; }

.stfc-battlelog-detail-angriff-schiff {
	font-weight: bold;
	color: white;
	margin-bottom: 0.15rem;
}

.stfc-battlelog-detail-event-beschreibung {
	font-size: 0.8rem;
	color: #ccc;
	margin-top: 0.2rem;
}

.stfc-battlelog-detail-event-icon {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	vertical-align: -0.35em;
}

.stfc-battlelog-detail-event-sitzplatz {
	color: #999;
	font-size: 0.75rem;
}

.stfc-battlelog-detail-side-crew {
	margin-top: 0.6rem;
	padding-top: 0.5rem;
	border-top: 1px solid #292929;
	font-size: 0.8rem;
	color: #ccc;
}

.stfc-battlelog-detail-event-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: bold;
	margin-bottom: 0.2rem;
}

.stfc-battlelog-detail-event-arrow {
	color: var(--gelb);
}

.stfc-battlelog-detail-event-angreifer { color: white; }
.stfc-battlelog-detail-event-ziel { color: var(--rosa); }

.stfc-battlelog-detail-event-stats {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.8rem;
	color: #ccc;
}

.stfc-battlelog-detail-event-gesamt {
	color: var(--gelb);
	font-weight: bold;
}

.stfc-battlelog-detail-event-figur {
	color: var(--lila);
	font-weight: bold;
}

@media (max-width: 650px) {
	.stfc-battlelog-detail-vs {
		grid-template-columns: 1fr;
	}
	.stfc-battlelog-detail-vs-label {
		padding: 0.2rem 0;
	}
}

.stfc-char-counter {
	display: inline-block;
	margin-left: 8px;
	font-size: 0.8rem;
	font-weight: normal;
	opacity: 0.6;
}
.stfc-char-counter.stfc-char-counter-limit {
	color: var(--rot);
	opacity: 1;
}

.stfc-standorte-liste {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}
.stfc-standorte-mission {
	border-top: 1px solid #333;
	padding-top: 0.6rem;
}
.stfc-standorte-liste .stfc-standorte-mission:first-child {
	border-top: none;
	padding-top: 0;
}
.stfc-standorte-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}
.stfc-standorte-name {
	font-weight: bold;
	color: white;
}
.stfc-standorte-badge {
	display: inline-block;
	padding: 0.1rem 0.6rem;
	border: 1px solid var(--lila);
	border-radius: 1rem;
	color: var(--lila);
	font-size: 0.75rem;
	white-space: nowrap;
}
.stfc-standorte-belohnungen {
	margin-top: 0.4rem;
	font-size: 0.85rem;
}
.stfc-standorte-belohnungen > summary {
	cursor: pointer;
	color: var(--rosa);
}
.stfc-standorte-belohnungen .stfc-mission-list {
	margin: 0.4rem 0 0;
}
.stfc-standorte-fraktionsfilter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem;
	margin: 0.6rem 0 0.9rem;
}
.stfc-standorte-fraktionsfilter label {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	cursor: pointer;
}
.stfc-standorte-fraktionsfilter input[type="checkbox"] {
	cursor: pointer;
}

.left-frame a.nav-icon-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	line-height: 1;
}
.left-frame .nav-icon {
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	flex-shrink: 0;
	object-fit: contain;
}

.panel-6a {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.3rem;
	padding: var(--left-frame-padding);
	border-bottom: var(--panel-border);
	background-color: var(--peach);
}

.panel-5 {
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.3rem;
	height: auto;
	max-height: none;
}

.panel-6 {
	height: auto;
	min-height: 140px;
	max-height: 260px;
}

@media (max-width: 950px) {
	.left-frame {
		width: 335px;
		max-width: 88vw;
	}
}

@media (min-width: 951px) and (max-width: 1500px) {
	.left-frame a {
		font-size: 17px;
	}
}
.stfc-turnier-sprache {
	margin: 0.4rem 0 0.8rem;
	font-size: 0.85rem;
}
.stfc-turnier-sprache a {
	font-size: inherit;
}
.stfc-turnier-sprache .aktuell {
	color: var(--gelb);
	font-weight: bold;
}
.stfc-turnier-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.8rem 0 0.4rem;
}
.stfc-turnier-filter .stfc-battlelog-suche-feld {
	flex: 1 1 18rem;
}
.stfc-turnier-filter .stfc-turnier-ops {
	flex: 0 1 11rem;
}
.stfc-turnier-wrap {
	overflow-x: auto;
	margin: 0.5rem 0 1rem;
	border: 2px solid var(--lila);
	border-radius: 0.5rem;
}
.stfc-turnier-tabelle {
	width: 100%;
	min-width: 46rem;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.stfc-turnier-tabelle col.titel { width: 18%; }
.stfc-turnier-tabelle col.beschr { width: 40%; }
.stfc-turnier-tabelle col.opsbereich { width: 10%; }
.stfc-turnier-tabelle col.gruppe { width: 8%; }
.stfc-turnier-tabelle col.beloh { width: 24%; }
.stfc-turnier-tabelle th {
	padding: 0.6rem 0.9rem;
	text-align: left;
	white-space: nowrap;
	color: var(--lila);
	border-bottom: 2px solid var(--lila);
}
.stfc-turnier-tabelle td {
	padding: 0.55rem 0.9rem;
	vertical-align: top;
	border-top: 1px solid rgba(153, 153, 255, 0.3);
}
.stfc-turnier-tabelle tbody tr:first-child td {
	border-top: none;
}
.stfc-turnier-tabelle tbody tr:hover td {
	background: rgba(153, 153, 255, 0.08);
}
.stfc-turnier-tabelle tbody tr[hidden] {
	display: none;
}
.stfc-turnier-tabelle td.title {
	color: var(--rosa);
	font-weight: bold;
}
.stfc-turnier-tabelle td.ops,
.stfc-turnier-tabelle td.group {
	color: var(--peach);
	white-space: nowrap;
}
.stfc-turnier-tabelle td.rewards {
	color: var(--gelb);
}

.logbuch-gruppenkopf {
	margin-bottom: 1rem;
}

@media (min-width: 951px) {
	.left-frame {
		transform: none;
	}
}
