/* Krypto-Verkaufsrechner (Krypto_Sell_Calculator) – baut auf kb-ui.css und explainer.css auf. */

.ksc-controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
}

.ksc-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
	color: var(--kb-muted);
}

.ksc-field input,
.ksc-field select {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--kb-border);
	border-radius: var(--kb-radius-sm);
	font: inherit;
	font-size: 1rem;
	color: var(--kb-text);
	background: #fff;
}

.ksc-value {
	margin: 14px 0 10px;
	font-weight: 700;
}

.ksc-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksc-item {
	padding: 14px 16px;
	border: 1px solid var(--kb-border);
	border-radius: var(--kb-radius);
	background: #fff;
}

.ksc-item--best {
	border-color: #f59e0b;
	box-shadow: 0 0 0 1px #f59e0b inset;
}

.ksc-item--incomplete {
	background: var(--kb-bg-soft);
}

.ksc-item-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ksc-item-head img {
	flex: none;
	border-radius: 8px;
}

.ksc-name {
	font-weight: 700;
	font-size: 1.05rem;
}

.ksc-net {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-left: auto;
	text-align: right;
}

.ksc-net small {
	color: var(--kb-muted);
	font-size: 0.75rem;
}

.ksc-net strong {
	font-size: 1.3rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ksc-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
	gap: 8px;
	margin: 12px 0 0;
}

.ksc-facts > div:nth-child(4) {
	grid-column: 1 / -1;
}

.ksc-facts > div {
	padding: 8px 10px;
	border-radius: var(--kb-radius-sm);
	background: var(--kb-bg-soft);
}

.ksc-item--incomplete .ksc-facts > div {
	background: #fff;
}

.ksc-facts dt {
	color: var(--kb-muted);
	font-size: 0.75rem;
}

.ksc-facts dd {
	margin: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ksc-facts small {
	color: var(--kb-muted);
	font-weight: 400;
}

.ksc-notes {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: var(--kb-muted);
}

.ksc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 12px;
}

.ksc-gap {
	margin: 14px 0 0;
	font-weight: 700;
}

.ksc-profit {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: var(--kb-radius-sm);
	background: var(--kb-bg-soft);
}

.ksc-profit p {
	margin: 0 0 8px;
}

.ksc-sources {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 0.9rem;
}

.ksc-page .kgd-rank {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--kb-bg-soft);
	font-weight: 700;
	font-size: 0.85rem;
}

.ksc-item--best .kgd-rank {
	background: #f59e0b;
	color: #fff;
}

/* Handy: Betrag unter den Namen, damit Namen („justTRADE“, „Crypto.com“) nie mitten im Wort umbrechen */
@media (max-width: 560px) {
	.ksc-item-head {
		flex-wrap: wrap;
	}

	.ksc-net {
		flex-basis: 100%;
		align-items: flex-start;
		margin-left: 0;
		text-align: left;
	}
}
