.ffh-helfer-app {
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: #1a1a1a;
	max-width: 100%;
	box-sizing: border-box;
}

/* Theme overrides: erzwinge schwarze Schrift (Dark-Theme-Konvention) */
.ffh-helfer-app,
.ffh-helfer-app h2,
.ffh-helfer-app h3,
.ffh-helfer-app h4,
.ffh-helfer-app p,
.ffh-helfer-app label,
.ffh-helfer-app strong,
.ffh-helfer-app em,
.ffh-helfer-app td,
.ffh-helfer-app th,
.ffh-helfer-app input,
.ffh-helfer-app textarea,
.ffh-helfer-app select,
.ffh-helfer-app span,
.ffh-helfer-app div {
	color: #1a1a1a !important;
}

.ffh-helfer-app h3.ffh-helfer-day { color: #ffffff !important; }
.ffh-helfer-admin .ffh-helfer-header h2 { color: #ffffff !important; }
.ffh-helfer-muted { color: #888 !important; font-size: 12px; }
.ffh-helfer-help { color: #555 !important; font-size: 13px; margin: 6px 0 10px 0; }
.ffh-helfer-link { color: #0684C0 !important; }
.ffh-helfer-link:hover { color: #E84C03 !important; }
.ffh-helfer-err { color: #8a1d00 !important; }
.ffh-helfer-flash-ok { color: #006028 !important; }
.ffh-helfer-flash-err { color: #8a1d00 !important; }
.ffh-helfer-btn-primary { color: #fff !important; }
.ffh-helfer-btn-primary:hover { color: #fff !important; }

.ffh-helfer-intro {
	background: #f5f9fc;
	border-left: 3px solid #0684C0;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.6;
}

.ffh-helfer-flash {
	padding: 12px 16px;
	border-radius: 6px;
	margin: 12px 0;
	font-size: 14px;
}
.ffh-helfer-flash-ok  { background: #e6f7ee; border: 1px solid #008637; }
.ffh-helfer-flash-err { background: #fdecea; border: 1px solid #E84C03; }

.ffh-helfer-noaccess {
	padding: 24px;
	background: #fff3f3;
	border: 1px solid #E84C03;
	color: #800 !important;
	border-radius: 6px;
}

h3.ffh-helfer-day {
	margin: 24px 0 8px 0;
	font-size: 20px;
}

.ffh-helfer-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	background: #fff;
	border-radius: 6px;
	margin-bottom: 8px;
}

.ffh-helfer-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
}
.ffh-helfer-table th,
.ffh-helfer-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: top;
}
.ffh-helfer-table th { background: #f7f7f7; font-weight: 600; }
.ffh-helfer-timecol { white-space: nowrap; font-weight: 600; }

.ffh-helfer-app .ffh-helfer-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	color: #fff !important;
}
.ffh-helfer-app .ffh-helfer-badge-red { background: #c62828; }
.ffh-helfer-app .ffh-helfer-badge-green { background: #008637; }

/* Kalender-Ansicht (wie Kalender-App-Wochenansicht) */
.ffh-helfer-cal-block {
	margin-bottom: 24px;
	border-radius: 8px;
	overflow: hidden;
}
.ffh-helfer-app .ffh-helfer-cal-daytitle {
	background: #008637;
	color: #fff !important;
	font-weight: 700;
	font-size: 16px;
	padding: 10px 14px;
}
.ffh-helfer-cal {
	--ffh-slot-h: 40px;
	display: grid;
	background: #fff;
	padding: 8px 10px 12px 4px;
	column-gap: 8px;
	/* Bei zu wenig Platz (Spalten-Mindestbreite erreicht) horizontal scrollen. */
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}
.ffh-helfer-cal-head {
	grid-row: 1;
	font-weight: 700;
	font-size: 15px;
	padding: 6px 4px 10px 4px;
	text-align: center;
}
.ffh-helfer-cal-corner { grid-column: 1; }
.ffh-helfer-cal-time {
	font-size: 11px;
	color: #888 !important;
	text-align: right;
	padding-right: 6px;
	transform: translateY(-6px);
	pointer-events: none;
}
.ffh-helfer-cal-line {
	border-top: 1px dashed #e4e4e4;
	pointer-events: none;
}
.ffh-helfer-cal-shift {
	position: relative;
	z-index: 1;
	border-radius: 8px;
	padding: 8px 10px 8px 14px;
	margin: 2px 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	overflow: hidden;
}
.ffh-helfer-cal-shift::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 5px;
}
.ffh-helfer-posten-0 { background: #e8f3fa; }
.ffh-helfer-posten-0::before { background: #0684C0; }
.ffh-helfer-posten-1 { background: #fdf3e0; }
.ffh-helfer-posten-1::before { background: #F8A600; }
.ffh-helfer-cal-shift-time { font-weight: 700; font-size: 14px; }
.ffh-helfer-cal-shift-note { font-size: 12px; color: #555 !important; margin-top: -2px; }
.ffh-helfer-cal-shift .ffh-helfer-btn { margin-top: 2px; padding: 5px 12px; }

@media (max-width: 600px) {
	.ffh-helfer-cal { --ffh-slot-h: 46px; column-gap: 4px; }
	.ffh-helfer-cal-shift { padding: 6px 6px 6px 10px; }
	.ffh-helfer-cal-shift-time { font-size: 13px; }
	.ffh-helfer-app .ffh-helfer-badge { font-size: 11px; padding: 3px 8px; }
}

.ffh-helfer-btn {
	display: inline-block;
	padding: 7px 14px;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	background: #fff !important;
	border: 1px solid #ccc !important;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none !important;
	color: #222 !important;
	line-height: 1.2 !important;
}
.ffh-helfer-btn:hover { background: #f0f0f0 !important; color: #222 !important; }
.ffh-helfer-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.ffh-helfer-btn-primary {
	background: #0684C0 !important;
	border-color: #0684C0 !important;
}
.ffh-helfer-btn-primary:hover { background: #E84C03 !important; border-color: #E84C03 !important; }

/* Formular */
#ffh-helfer-form {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 8px 0 20px 0;
}
#ffh-helfer-form h4 { margin: 0 0 8px 0; font-size: 16px; }

.ffh-helfer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin: 10px 0;
}
@media (max-width: 600px) {
	.ffh-helfer-grid { grid-template-columns: 1fr; }
}
.ffh-helfer-grid label,
.ffh-helfer-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
}
.ffh-helfer-app input[type="text"],
.ffh-helfer-app input[type="email"],
.ffh-helfer-app input[type="number"],
.ffh-helfer-app textarea,
.ffh-helfer-app select {
	width: 100%;
	padding: 8px 10px;
	font-size: 14px;
	font-weight: 400;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	margin-top: 4px;
	background: #fff !important;
}
.ffh-helfer-app input:focus,
.ffh-helfer-app textarea:focus,
.ffh-helfer-app select:focus { outline: none; border-color: #0684C0; }

.ffh-helfer-check {
	display: block;
	margin: 10px 0;
	font-size: 14px;
	font-weight: 400 !important;
	cursor: pointer;
}
.ffh-helfer-check input { width: auto !important; margin-right: 6px; }

.ffh-helfer-person-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0;
}
.ffh-helfer-person-row .ffh-helfer-person-name { flex: 1; max-width: 260px; margin-top: 0; }
.ffh-helfer-person-row .ffh-helfer-check { margin: 0; white-space: nowrap; }
.ffh-helfer-person-remove { padding: 4px 10px !important; }

.ffh-helfer-form-actions {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #eee;
	display: flex;
	gap: 8px;
}
#ffh-helfer-form-msg { margin-top: 10px; font-size: 13px; }
#ffh-helfer-form-msg.err { color: #8a1d00 !important; }
#ffh-helfer-form-msg.ok { color: #006028 !important; }

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

/* Admin */
.ffh-helfer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 16px 0;
	gap: 16px;
	flex-wrap: wrap;
}
.ffh-helfer-header h2 { margin: 0; font-size: 22px; }
.ffh-helfer-event-select select { width: auto; }
.ffh-helfer-app .ffh-helfer-event-select label { color: #ffffff !important; }

.ffh-helfer-tabs {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	margin: 8px 0 16px 0;
	gap: 4px;
	flex-wrap: wrap;
}
.ffh-helfer-tab {
	padding: 10px 18px;
	background: transparent !important;
	border: none !important;
	border-bottom: 3px solid transparent !important;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	margin-bottom: -2px;
	color: #555 !important;
	border-radius: 0 !important;
	font-family: inherit;
}
.ffh-helfer-tab:hover { color: #0684C0 !important; }
.ffh-helfer-tab.active {
	border-bottom-color: #0684C0 !important;
	color: #0684C0 !important;
}
.ffh-helfer-tab-pane { display: none; }
.ffh-helfer-tab-pane.active { display: block; }

.ffh-helfer-admin .ffh-helfer-tab-pane {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 18px 20px;
}
.ffh-helfer-admin .ffh-helfer-tab-pane.active { display: block; }
.ffh-helfer-admin .ffh-helfer-table-wrap { border: none; }

.ffh-helfer-actions-row {
	margin-bottom: 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ffh-helfer-actions { white-space: nowrap; }
.ffh-helfer-actions .ffh-helfer-btn { margin-right: 4px; }

.ffh-helfer-add-signup { max-width: 700px; }

.ffh-helfer-app code {
	background: #fff !important;
	color: #0684C0 !important;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	border: 1px solid #d0e3f0;
}
