/* Flugplatz-Melder – Frontend */
.fm-box {
	--fm-red: #d93025;
	--fm-green: #1e8e3e;
	--fm-grey: #9aa0a6;
	--fm-border: rgba(0, 0, 0, .15);
	--fm-accent: #1a5fb4;
	--fm-accent-soft: rgba(26, 95, 180, .08);
	max-width: 480px;
	padding: 20px;
	border: 1px solid var(--fm-border);
	border-radius: 10px;
	background: #fff;
	color: #1f1f1f;
	box-sizing: border-box;
}
.fm-box *, .fm-box *::before, .fm-box *::after { box-sizing: border-box; }

.fm-indicator {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 18px;
	border-radius: 8px;
	background: rgba(0, 0, 0, .04);
	font-weight: 600;
}
.fm-dot {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--fm-grey);
	transition: background-color .3s, box-shadow .3s;
}
.fm-ready .fm-dot { background: var(--fm-red); box-shadow: 0 0 0 4px rgba(217, 48, 37, .18); }
.fm-ready.fm-sent .fm-dot { background: var(--fm-green); box-shadow: 0 0 0 4px rgba(30, 142, 62, .18); }

.fm-indicator-body { display: flex; flex-direction: column; gap: 2px; }
.fm-indicator-sites { font-weight: 400; font-size: .9em; }
.fm-indicator-sites:empty { display: none; }

.fm-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.fm-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fm-label { font-weight: 600; padding: 0; }
.fm-required { color: var(--fm-red); }
.fm-hint { font-size: .85em; opacity: .75; }

.fm-input,
.fm-select {
	width: 100%;
	padding: 10px 12px;
	font-size: 16px; /* verhindert Zoom auf iOS */
	font-family: inherit;
	border: 1px solid var(--fm-border);
	border-radius: 6px;
	background: #fff;
}
.fm-select { padding: 6px; }
.fm-select option { padding: 6px 8px; border-radius: 4px; }
.fm-textarea { resize: vertical; min-height: 80px; }
.fm-input[aria-invalid="true"] { border-color: var(--fm-red); outline-color: var(--fm-red); }

/* Startplatz-Liste zum Antippen */
.fm-picklist {
	border: 1px solid var(--fm-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.fm-sites[aria-invalid="true"] .fm-picklist { border-color: var(--fm-red); box-shadow: 0 0 0 1px var(--fm-red); }

.fm-pick {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	margin: 0 !important;
	padding: 10px 14px;
	text-align: left;
	font-weight: 400;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}
.fm-pick + .fm-pick { border-top: 1px solid var(--fm-border); }

/* Natives Häkchen bleibt für Tastatur & Screenreader erhalten, ist aber unsichtbar */
.fm-pick-input {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	pointer-events: none;
}
.fm-pick-box {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border: 2px solid #b0b4b8;
	border-radius: 50%;
	background: #fff;
	transition: background-color .15s, border-color .15s;
}
.fm-pick-input:checked + .fm-pick-box {
	border-color: var(--fm-accent);
	background: var(--fm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.fm-pick-input:focus-visible + .fm-pick-box { outline: 2px solid var(--fm-accent); outline-offset: 2px; }
.fm-pick.is-checked { background: var(--fm-accent-soft); }
.fm-pick-text { flex: 1 1 auto; }
.fm-pick-note { display: block; font-size: .8em; line-height: 1.3; opacity: .85; }
.fm-pick-note:empty { display: none; }
.fm-pick.is-locked { cursor: not-allowed; background: rgba(0, 0, 0, .04); }
.fm-pick.is-locked .fm-pick-text { color: #6b7075; }
.fm-pick.is-locked .fm-pick-box { border-style: dashed; background: #f1f1f1; }

.fm-button {
	margin-top: 6px;
	padding: 12px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #1a5fb4;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.fm-button:hover { background: #154c91; }
.fm-button:disabled { opacity: .6; cursor: wait; }

.fm-message { min-height: 1.4em; margin: 4px 0 0; }

/* Außerhalb der Sendezeit */
.fm-closed-hint {
	margin: 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: rgba(217, 48, 37, .08);
	color: #8a1c14;
	font-weight: 600;
}
.fm-closed-hint[hidden] { display: none; }
.fm-closed .fm-button,
.fm-closed .fm-button:hover { background: #9aa0a6 !important; color: #fff !important; cursor: not-allowed; opacity: .7 !important; }
.fm-message--ok { color: var(--fm-green); }
.fm-message--err { color: var(--fm-red); }

/* Honeypot unsichtbar */
.fm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
