/**
 * Styles für das Frontend-Dashboard der Vereinsverwaltung.
 */

.av-dashboard {
	--av-border: #e3e3e3;
	--av-muted: #6b7280;
	--av-accent: #c0392b;
	max-width: 900px;
	margin: 0 auto;
}

.av-dashboard__header h2 { margin: 0 0 .15rem; }
.av-dashboard__sub { color: var(--av-muted); margin: 0 0 1.25rem; font-size: .9rem; }
.av-dashboard__sub a { color: var(--av-accent); }

/* Tabs */
.av-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	border-bottom: 2px solid var(--av-border);
	margin-bottom: 1.5rem;
}
.av-tabs__link {
	padding: .6rem 1.1rem;
	text-decoration: none;
	color: inherit;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	font-weight: 600;
}
.av-tabs__link.is-active {
	border-bottom-color: var(--av-accent);
	color: var(--av-accent);
}

/* Meldungen */
.av-notice {
	padding: .75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1rem;
	background: #f3f4f6;
}
.av-notice--success { background: #eafaf0; color: #1f7a47; }
.av-notice--error { background: #fdecec; color: #b3261e; }

/* Toolbar / Buttons */
.av-toolbar { margin-bottom: 1rem; }
.av-btn {
	display: inline-block;
	padding: .5rem 1rem;
	border: 1px solid var(--av-border);
	border-radius: 6px;
	background: #f7f7f7;
	color: #222;
	text-decoration: none;
	cursor: pointer;
	font-size: .95rem;
}
.av-btn:hover { background: #efefef; }
.av-btn--primary {
	background: var(--av-accent);
	border-color: var(--av-accent);
	color: #fff;
}
.av-btn--primary:hover { filter: brightness(1.05); }

/* Listen */
.av-list {
	width: 100%;
	border-collapse: collapse;
}
.av-list th,
.av-list td {
	text-align: left;
	padding: .6rem .5rem;
	border-bottom: 1px solid var(--av-border);
	vertical-align: middle;
}
.av-list th { color: var(--av-muted); font-size: .85rem; text-transform: uppercase; }
.av-list__actions a { text-decoration: none; }
.av-list__actions .av-delete { color: #b3261e; }

/* Formulare */
.av-form { max-width: 720px; }
.av-field { display: block; margin-bottom: 1.1rem; }
.av-field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.av-field input[type="text"],
.av-field input[type="email"],
.av-field input[type="url"],
.av-field input[type="date"],
.av-field input[type="time"],
.av-field textarea {
	width: 100%;
	padding: .55rem .65rem;
	border: 1px solid var(--av-border);
	border-radius: 6px;
	font: inherit;
}
.av-field-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}
.av-field-row .av-field { flex: 1 1 200px; }
.av-form__actions {
	display: flex;
	gap: .75rem;
	margin-top: 1.5rem;
}

/* Medienfelder */
.av-media-field { margin-bottom: 1.5rem; }
.av-media-preview { margin: .5rem 0; }
.av-media-preview img {
	max-width: 200px;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--av-border);
}
.av-gallery-preview {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .5rem 0;
}
.av-gallery-item {
	position: relative;
	display: inline-block;
	cursor: grab;
}
.av-gallery-item.is-dragging { opacity: .4; }
.av-gallery-item img {
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--av-border);
	display: block;
	pointer-events: none;
}
.av-gallery-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 0;
	background: #b3261e;
	color: #fff;
	cursor: pointer;
	line-height: 1;
}
.description { color: var(--av-muted); font-size: .85rem; }
