/* Flying Circus – Servorechner. Nutzt die Vereinsfarben des Themes (mit Fallbacks). */
.fc-sv {
	--sv-gruen: var(--fc-gruen, #00ba00);
	--sv-gelb: var(--fc-gelb, #ebf2d1);
	--sv-rot: var(--fc-rot, #f11000);
	--sv-titel: var(--fc-titel, #dedede);
	--sv-nav: var(--fc-nav, 'Montserrat', 'Open Sans', Arial, sans-serif);
	font-size: 14px;
}
.fc-sv p { font-size: 14px; }

/* Umschalter Nur Servo / Mit Ruderanlenkung */
.fc-sv-modus { display: inline-flex; margin: 0 0 1.2em; border: 1px solid #b5b5b5; border-radius: 3px; overflow: hidden; }
.fc-sv-modus label { margin: 0; cursor: pointer; }
.fc-sv-modus input { position: absolute; opacity: 0; pointer-events: none; }
.fc-sv-modus span {
	display: block;
	padding: .5em 1.1em;
	background: #fff;
	font-family: var(--sv-nav);
	font-size: 15px;
}
.fc-sv-modus label + label span { border-left: 1px solid #b5b5b5; }
.fc-sv-modus input:checked + span { background: var(--sv-gruen); color: #fff; }
.fc-sv-modus input:focus-visible + span { outline: 2px solid #000; outline-offset: -3px; }

.fc-sv fieldset {
	margin: 0 0 1.2em;
	padding: 0 0 1em;
	border: 0;
	border-bottom: 1px solid var(--sv-titel);
}
.fc-sv fieldset[hidden] { display: none; }
.fc-sv legend {
	padding: 0;
	margin-bottom: .7em;
	font-family: var(--sv-nav);
	font-size: 16px;
	font-weight: 700;
}

.fc-sv-raster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 20px;
}
.fc-sv-feld label { display: block; font-weight: 700; margin-bottom: 4px; }
.fc-sv-eingabe { display: flex; }
.fc-sv-eingabe input {
	flex: 1;
	min-width: 0;
	padding: 7px 9px;
	border: 1px solid #b5b5b5;
	border-right: 0;
	background: #fff;
	font: inherit;
	font-size: 15px;
	text-align: right;
}
.fc-sv-eingabe input:focus { outline: 2px solid var(--sv-gruen); outline-offset: -1px; }
.fc-sv-eingabe input.fc-sv-fehler { border-color: var(--sv-rot); background: #fff3f2; }
.fc-sv-einheit {
	min-width: 58px;
	padding: 7px 9px;
	border: 1px solid #b5b5b5;
	background: var(--sv-gelb);
	text-align: center;
	white-space: nowrap;
}
.fc-sv-feld small { display: block; margin-top: 3px; font-size: 12px; color: #555; line-height: 1.35; }

.fc-sv-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6em; }
.fc-sv-btn {
	border: 0;
	border-radius: 3px;
	padding: .55em 1.2em;
	background: var(--sv-gruen);
	color: #fff;
	font-family: var(--sv-nav);
	font-size: 15px;
	cursor: pointer;
}
.fc-sv-btn:hover, .fc-sv-btn:focus-visible { background: #009600; }
.fc-sv-btn-hell { background: var(--sv-titel); color: #000; }
.fc-sv-btn-hell:hover, .fc-sv-btn-hell:focus-visible { background: #c8c8c8; }

.fc-sv-auswertung {
	background: #fff;
	border: 1px solid var(--sv-titel);
	padding: 0 20px 16px;
}
.fc-sv-auswertung h3 {
	margin: 0 -20px 16px;
	padding: .5em;
	background: var(--sv-titel);
	text-align: center;
	font-size: 1.17em;
}
.fc-sv-info { color: #555; text-align: center; }

.fc-sv-status {
	margin-bottom: 1em;
	padding: 12px 16px;
	font-size: 17px;
	text-align: center;
	background: #e3f6e3;
	border-left: 6px solid var(--sv-gruen);
}
.fc-sv-status span { color: #555; font-size: 15px; }

.fc-sv-tabelle { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: 14px; }
.fc-sv-tabelle th, .fc-sv-tabelle td { padding: 7px 8px; border-bottom: 1px solid #e6e6e6; text-align: left; vertical-align: top; }
.fc-sv-tabelle th { font-weight: 400; width: 34%; }
.fc-sv-tabelle td:nth-child(2) { font-weight: 700; white-space: nowrap; text-align: right; width: 22%; }
.fc-sv-hint { color: #555; }
.fc-sv-merke { margin: 0 0 1em; padding: 8px 12px; background: var(--sv-gelb); font-size: 13px !important; }

.fc-sv-zwischen { margin: 1.2em 0 .4em; font-size: 15px; }
.fc-sv-scroll { overflow-x: auto; }
.fc-sv-vergleich { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 1em; }
.fc-sv-vergleich th, .fc-sv-vergleich td { padding: 5px 8px; border-bottom: 1px solid #e6e6e6; text-align: right; white-space: nowrap; }
.fc-sv-vergleich th { font-weight: 700; background: #f5f5f5; }
.fc-sv-vergleich th:first-child, .fc-sv-vergleich td:first-child { text-align: left; }
.fc-sv-vergleich tr.fc-sv-aktiv td { background: #e3f6e3; font-weight: 700; }

/* Skizze */
.fc-sv-skizze { display: block; width: 100%; max-width: 760px; height: auto; margin: .5em auto 1em; }
.fc-sv:not(.fc-sv-ist-ruder) .fc-sv-skizze { max-width: 420px; }
.fc-sv-servo { fill: #3a3a3a; }
.fc-sv-achse { fill: #fff; stroke: #3a3a3a; stroke-width: 3; }
.fc-sv-horn { stroke: #111; stroke-width: 7; stroke-linecap: round; }
.fc-sv-loch { fill: #fff; stroke: #111; stroke-width: 1.5; }
.fc-sv-weg { stroke: #999; stroke-width: 2; stroke-dasharray: 4 4; }
.fc-sv-gestaenge { stroke: #0057b8; stroke-width: 3; }
.fc-sv-flosse { fill: #d9c7a3; stroke: #8a7350; }
.fc-sv-ruder { fill: #e8d8b5; stroke: #8a7350; }
.fc-sv-ruder-weg { fill: none; stroke: #8a7350; stroke-dasharray: 4 4; }
.fc-sv-mass { stroke: #555; stroke-width: 1; }
.fc-sv-kraft { stroke: var(--sv-rot); stroke-width: 3; }
.fc-sv-pfeilspitze { fill: #555; }
.fc-sv-kraftspitze { fill: var(--sv-rot); }
.fc-sv-label {
	font: 700 var(--sv-fs, 13px) 'Open Sans', Arial, sans-serif;
	text-anchor: middle;
	fill: #000;
	paint-order: stroke;
	stroke: #fff;
	stroke-width: 4px;
	stroke-linejoin: round;
}
.fc-sv-label.fc-sv-rechts { text-anchor: end; }
.fc-sv-label.fc-sv-links { text-anchor: start; }
.fc-sv-label.fc-sv-klein { font-weight: 400; fill: #555; }
.fc-sv-label.fc-sv-hell { fill: #fff; stroke: none; font-weight: 400; }
.fc-sv-label.fc-sv-akzent { fill: var(--sv-rot); }

.fc-sv-quelle { margin: 1.2em 0 0; font-size: 12px !important; color: #555; }

@media (max-width: 640px) {
	.fc-sv-raster { grid-template-columns: 1fr; }
	.fc-sv-modus { display: flex; }
	.fc-sv-modus label { flex: 1; text-align: center; }
	.fc-sv-auswertung { padding: 0 12px 12px; }
	.fc-sv-auswertung h3 { margin: 0 -12px 12px; }
	.fc-sv-tabelle tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid #e6e6e6; }
	.fc-sv-tabelle th, .fc-sv-tabelle td { border: 0; width: auto !important; }
	.fc-sv-tabelle .fc-sv-hint { grid-column: 1 / -1; padding-top: 0; font-size: 12px; }
	.fc-sv-tabelle .fc-sv-hint:empty { display: none; }
}
