.ha-task-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 640px;
}

.ha-task {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	background: #fff;
}

.ha-task-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.ha-task-title {
	margin: 0;
	font-size: 1.2rem;
}

.ha-task-description {
	margin: 0.5rem 0 1rem;
	color: #444;
}

.ha-no-slots {
	color: #888;
	font-style: italic;
}

.ha-slot-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.ha-slot {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 0.75rem 1rem;
	background: #fafafa;
}

.ha-slot-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.ha-slot-label {
	font-weight: 600;
}

.ha-slot-progress {
	font-size: 0.9rem;
	color: #555;
}

.ha-slot-names {
	list-style: disc;
	margin: 0.5rem 0 0.25rem 1.25rem;
	padding: 0;
	color: #333;
	font-size: 0.95rem;
}

.ha-slot-full {
	color: #a33;
	font-weight: 600;
	margin: 0.5rem 0 0;
}

.ha-signup-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.ha-name-field {
	flex: 1 1 200px;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
}

.ha-submit-button {
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 5px;
	background: #2271b1;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
}

.ha-submit-button:hover {
	background: #135e96;
}

.ha-submit-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.ha-form-message {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
}

.ha-form-message.ha-success {
	color: #1e7c1e;
}

.ha-form-message.ha-error {
	color: #a33;
}

/* Honeypot-Feld: für Menschen unsichtbar, für Bots sichtbar */
.ha-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ha-no-tasks {
	color: #666;
}
