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

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

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

.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"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	background: #111;
	border: 1px solid var(--rosa);
	border-radius: 0.5rem;
	color: white;
}

.termine-table input: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"] {
	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-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;
}

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