.bs-wrap-frontend {
	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
}

.bs-wrap-frontend .bs-field {
	margin-bottom: 16px;
}

.bs-wrap-frontend label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.bs-wrap-frontend select,
.bs-wrap-frontend textarea {
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
}

.bs-current-points {
	background: #f3f6f4;
	border-left: 4px solid #4a7c59;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 16px;
}

.bs-button {
	background: #4a7c59;
	color: #fff;
	border: none;
	padding: 10px 22px;
	font-size: 15px;
	cursor: pointer;
	border-radius: 3px;
}

.bs-button:disabled {
	background: #a9b8ac;
	cursor: not-allowed;
}

.bs-form-message {
	margin-left: 12px;
	font-weight: 600;
}

.bs-form-message.bs-success {
	color: #4a7c59;
}

.bs-form-message.bs-error {
	color: #b32d2e;
}

.bs-history-table,
.bs-leaderboard {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.bs-history-table th,
.bs-history-table td,
.bs-leaderboard th,
.bs-leaderboard td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
}

.bs-history-table th,
.bs-leaderboard th {
	background: #f3f6f4;
}

.bs-notice {
	padding: 12px 16px;
	border-radius: 3px;
}

.bs-notice-warning {
	background: #fff8e5;
	border-left: 4px solid #dba617;
}

/* Große Bewertungs-Buttons */
.bs-behavior-group {
	margin-bottom: 14px;
}

.bs-behavior-group-title {
	margin: 0 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bs-behavior-group-title.bs-cat-verhalten { color: #2f6b3a; }
.bs-behavior-group-title.bs-cat-bonus { color: #1d5fa8; }
.bs-behavior-group-title.bs-cat-abzug { color: #b32d2e; }

.bs-button-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	align-items: stretch;
}

.bs-behavior-btn {
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px;
	min-height: 60px;
	border: 2px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	line-height: 1.25;
}

.bs-behavior-name {
	display: block;
	width: 100%;
	font-size: 13px;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.bs-behavior-btn.bs-cat-verhalten { border-color: #bfe3c6; }
.bs-behavior-btn.bs-cat-bonus { border-color: #bcd7f2; }
.bs-behavior-btn.bs-cat-abzug { border-color: #f2c1c1; }

.bs-behavior-btn.active.bs-cat-verhalten { background: #e6f6ea; border-color: #2f6b3a; }
.bs-behavior-btn.active.bs-cat-bonus { background: #e8f1fc; border-color: #1d5fa8; }
.bs-behavior-btn.active.bs-cat-abzug { background: #fbe9e9; border-color: #b32d2e; }

.bs-behavior-points {
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.bs-button-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
}

/* Level-Badge */
.bs-level-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	color: #1f2937;
	margin-left: 8px;
}

/* Batch-Modus */
.bs-batch-toggle-field label {
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bs-batch-actions {
	margin-bottom: 6px;
	font-size: 13px;
}

.bs-batch-actions a {
	cursor: pointer;
}

.bs-batch-checkboxes {
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #ddd;
	padding: 8px;
	border-radius: 4px;
}

.bs-batch-checkbox-label {
	display: block;
	font-weight: 400;
	margin-bottom: 4px;
}

.bs-undo-link {
	color: #b32d2e;
	font-size: 12px;
}

/* Eltern-Ansicht */
.bs-parent-card {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 20px;
	background: #fff;
}

.bs-parent-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.bs-parent-card-header h3 {
	margin: 0;
}

.bs-current-points-inline {
	font-size: 18px;
	font-weight: 700;
	color: #4a7c59;
}

.bs-chart-canvas {
	width: 100%;
	max-width: 480px;
	height: 140px;
	display: block;
	margin-bottom: 10px;
}
