: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;
}

/* Icon-/Hintergrund-Auswahl im Spielerprofil (2026-08-22) - Radiobutton pro Karte, per CSS
   ausgeblendet (bleibt aber fokussierbar/funktional), Auswahl ueber den gelben Rahmen erkennbar. */
.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-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;
}

/* Div-basierte .termine-table-Formulare (Gebäude-/Schiff-Rechner) - anders als die
   <table>-Variante gibt es hier keine automatische Zeilenhöhe, darum expliziter Abstand
   zwischen gestapelten Feldgruppen nötig. */
.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;
}

.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;
}

/* Offizier-Picker (crews/crews_vorschlag.php, wiederverwendet editor_officer_picker.js) - LCARS-
   Variante der Admin-Editor-Optik (editor_style.css), da Router-Fragmente nur classic.css/own.css
   laden, nicht editor_style.css. */
/* auto-fit statt fester Spaltenzahl + @media-Breakpoints (2026-07-27 gefixt): die Karte sitzt in
   einer zweispaltigen .flexbox/.col1-Seite, ihre tatsächliche Breite hängt also vom Layout ab, nicht
   vom Viewport - @media (max-width: X) reagiert aber nur auf die Viewport-Breite. Bei einem breiten
   Bildschirm mit trotzdem schmaler .col1-Spalte blieb die volle 7-Spalten-Regel aktiv und brach aus
   der Karte aus, statt umzubrechen. auto-fit/minmax reagiert stattdessen auf die echte verfügbare
   Breite des Containers. */
.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;
    /* .col1 hat container-type:inline-size (own.css) - cqw bezieht sich also auf die tatsächlich
       verfügbare Spaltenbreite, nicht den Viewport. Ohne das blieb die Schrift bei schmalen
       Unterdeck-Karten (2026-07-28, "col1 wird sehr schmal" ab 1850px, s. .flexbox-Fix) fix bei
       1rem und lief über den Button-Rand hinaus. Obergrenze zusätzlich auf 0.85rem gesenkt
       (2026-07-28, zweiter Fund: "Auswählen" lief auf Mobilgeräten trotzdem über den Rand -
       vermutlich eine dort breiter gerenderte Systemschrift, in meiner Testumgebung mit Tahoma/
       Fallback-Sans nicht reproduzierbar, daher Sicherheitsabstand eingebaut statt exaktem Fix).
       white-space:normal als zusätzliches Sicherheitsnetz. */
    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;
}

/* Eigenes Dropdown (js/lcars_select.js, 2026-07-27) - ersetzt jedes native <select> auf der
   Seite, da native Popups auf Mobilgeräten unzuverlässig groß/abgeschnitten sind. Das echte
   <select> bleibt im DOM (für name/value/Formular-Validierung), wird aber nur noch unsichtbar
   gehalten ("lcars-select-native") statt mit display:none, damit z.B. required weiter meldet. */
.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);
	/* classic.css setzt global "button:hover { color: black; }" - das schlägt sonst unsere
	   eigene Textfarbe (2026-07-28 gefunden: Text wurde bei hover schwarz/unlesbar), da unsere
	   Basis-Regel ohne :hover eine niedrigere Spezifität hat. Hier explizit erneut setzen. */
	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';
	/* Ein geschütztes Leerzeichen, das nichts sichtbar einnimmt (width:0), aber die normale
	   Zeilenhöhe der Schrift setzt - ohne das schrumpft der Button, wenn das Label leer ist
	   (noch keine Option gewählt), da ein leerer <span> keine Zeilenhöhe beiträgt. */
	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);
}

/* Farbvarianten - übernehmen die Klasse des ursprünglichen <select class="rosa/lila/gelb"> */
.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);
}

/* Kampfprotokolle (2026-08-14) */
.stfc-battlelog-upload-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}

.stfc-battlelog-upload-label {
	font-size: 0.85rem;
	color: var(--lila);
}

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

.stfc-battlelog-row {
	display: grid;
	grid-template-columns: 140px 1fr 1fr 100px;
	gap: 0.75rem;
	align-items: center;
	padding: 0.6rem 0.9rem;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.5rem;
	color: white;
	text-decoration: none;
	font-size: 0.9rem;
}

.stfc-battlelog-row:hover {
	border-color: var(--gelb);
}

.stfc-battlelog-date {
	color: var(--lila);
	font-size: 0.8rem;
}

.stfc-battlelog-result {
	text-align: right;
	font-weight: bold;
}

.stfc-battlelog-result-sieg {
	color: var(--gruen);
}

.stfc-battlelog-result-teilweise {
	color: var(--orange);
}

.stfc-battlelog-result-niederlage {
	color: var(--rot);
}

@media (max-width: 650px) {
	.stfc-battlelog-row {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"date result"
			"opponent ship";
	}
	.stfc-battlelog-date { grid-area: date; }
	.stfc-battlelog-result { grid-area: result; }
	.stfc-battlelog-opponent { grid-area: opponent; }
	.stfc-battlelog-ship { grid-area: ship; font-size: 0.8rem; color: var(--lila); }
}

.stfc-battlelog-bars {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	margin: 1rem 0 1.5rem;
}

.stfc-battlelog-bar-label {
	font-size: 0.85rem;
	color: var(--peach);
	margin-bottom: 0.3rem;
}

.stfc-battlelog-bar-row {
	display: grid;
	grid-template-columns: 55px 1fr 110px;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.2rem;
}

.stfc-battlelog-bar-side-label {
	font-size: 0.75rem;
	color: var(--lila);
}

.stfc-battlelog-bar-track {
	position: relative;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.4rem;
	height: 0.9rem;
	overflow: hidden;
}

.stfc-battlelog-bar-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 0.4rem 0 0 0.4rem;
}

.stfc-battlelog-bar-fill-own {
	background: var(--gelb);
}

.stfc-battlelog-bar-fill-gegner {
	background: var(--rot);
}

.stfc-battlelog-bar-value {
	font-size: 0.8rem;
	text-align: right;
}

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

.stfc-battlelog-delete-button {
	background: transparent;
	border: 1px solid var(--rot);
	color: var(--rot);
	border-radius: 0.5rem;
	padding: 0.4rem 0.9rem;
	cursor: pointer;
	font-size: 0.85rem;
}

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

.stfc-battlelog-result-banner {
	text-align: center;
	font-size: 1.6rem;
	font-weight: bold;
	letter-spacing: 0.1em;
	padding: 0.6rem;
	border-radius: 0.5rem;
	margin: 1rem 0 0.3rem;
}

.stfc-battlelog-result-banner-sieg {
	background: rgba(153, 204, 153, 0.15);
	border: 1px solid var(--gruen);
	color: var(--gruen);
}

.stfc-battlelog-result-banner-teilweise {
	background: rgba(255, 153, 0, 0.15);
	border: 1px solid var(--orange);
	color: var(--orange);
}

.stfc-battlelog-result-banner-niederlage {
	background: rgba(204, 102, 102, 0.15);
	border: 1px solid var(--rot);
	color: var(--rot);
}

.stfc-battlelog-meta {
	text-align: center;
	margin-bottom: 1.2rem;
}

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

.stfc-battlelog-vs-label {
	font-weight: bold;
	color: var(--rosa);
	font-size: 1.2rem;
}

.stfc-battlelog-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.75rem;
	padding: 1rem;
}

.stfc-battlelog-ship-img {
	max-width: 100%;
	max-height: 140px;
	object-fit: contain;
	margin-bottom: 0.6rem;
}

.stfc-battlelog-side-name {
	font-weight: bold;
	font-size: 1.05rem;
}

.stfc-battlelog-level-badge {
	font-size: 0.7rem;
	color: var(--lila);
	border: 1px solid var(--lila);
	border-radius: 0.3rem;
	padding: 0.05rem 0.3rem;
	margin-left: 0.3rem;
}

.stfc-battlelog-side-ship {
	font-size: 0.8rem;
	color: var(--lila);
	margin: 0.3rem 0 0.6rem;
}

.stfc-battlelog-officers {
	display: flex;
	gap: 0.4rem;
	margin-bottom: 0.8rem;
}

.stfc-battlelog-officer-img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 50%;
	border: 1px solid var(--rosa);
	background: #000;
}

.stfc-battlelog-officer-fallback {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--rosa);
	background: #000;
	color: var(--lila);
	font-size: 0.9rem;
}

.stfc-battlelog-hp-bars {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.stfc-battlelog-hp-row {
	display: grid;
	grid-template-columns: 45px 1fr;
	align-items: center;
	gap: 0.5rem;
}

.stfc-battlelog-hp-label {
	font-size: 0.75rem;
	color: var(--peach);
	text-align: left;
}

.stfc-battlelog-hp-value {
	grid-column: 1 / -1;
	font-size: 0.7rem;
	color: white;
	text-align: right;
}

.stfc-battlelog-bar-track-hp {
	background: var(--rot);
}

.stfc-battlelog-bar-fill-huelle {
	background: var(--gelb);
}

.stfc-battlelog-bar-fill-schild {
	background: var(--lila);
}

.stfc-battlelog-bar-fill-gelb {
	background: var(--gelb);
}

.stfc-battlelog-bar-fill-orange {
	background: var(--orange);
}

@media (max-width: 700px) {
	.stfc-battlelog-vs {
		grid-template-columns: 1fr;
	}
}

.stfc-battlelog-empfehlung-liste {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0.5rem 0 1.5rem;
}

.stfc-battlelog-empfehlung-karte {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.5rem;
	padding: 0.6rem 0.9rem;
}

.stfc-battlelog-empfehlung-img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 50%;
	border: 1px solid var(--rosa);
	background: #000;
	flex-shrink: 0;
}

/* Live-Zeichenzähler ("25/35") für Formularfelder mit maxlength - z.B. users_crews_neu.php
   (Name des Setups/Anmerkung) und crews_vorschlag.php (Anmerkungen). JS: stfcInitCharCounter()
   in den jeweiligen Seiten-Scripts. */
.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-battlelog-empfehlung-name {
	font-weight: bold;
	margin-bottom: 0.2rem;
}