/* ==========================================================================
   FÖV Mitglieder-Dashboard
   Farben: #ffffff, #f4f4f4, #228541, #2b632f, #389154
   ========================================================================== */

:root {
	--foev-white: #ffffff;
	--foev-bg: #f4f4f4;
	--foev-green: #228541;
	--foev-green-dark: #2b632f;
	--foev-green-light: #389154;
	--foev-green-tint: #e9f3ec;
	--foev-text: #20312a;
	--foev-text-soft: #5f6f66;
	--foev-line: #e3e7e4;
	--foev-danger: #b3372c;
	--foev-danger-tint: #f9ece9;
	--foev-radius: 14px;
	--foev-radius-small: 9px;
	--foev-shadow: 0 1px 2px rgba(32, 49, 42, 0.05), 0 6px 20px rgba(32, 49, 42, 0.06);
	--foev-shadow-pop: 0 10px 40px rgba(32, 49, 42, 0.22);
	--foev-sidebar-width: 264px;
	--foev-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body.foev-app-body,
body.foev-login-body {
	font-family: var(--foev-font);
	background: var(--foev-bg);
	color: var(--foev-text);
	font-size: 15.5px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--foev-green);
}

h1, h2, h3 {
	margin: 0;
	line-height: 1.25;
}

.foev-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Logo & Avatare
   -------------------------------------------------------------------------- */

.foev-logo {
	display: inline-block;
	width: 46px;
	height: 46px;
	object-fit: contain;
	flex: 0 0 auto;
}

.foev-logo--small {
	width: 38px;
	height: 38px;
}

.foev-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--foev-green-tint);
	color: var(--foev-green-dark);
	font-weight: 700;
	font-size: 14px;
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.foev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
}

.foev-btn:active {
	transform: scale(0.98);
}

.foev-btn--primary {
	background: var(--foev-green);
	color: var(--foev-white);
}

.foev-btn--primary:hover {
	background: var(--foev-green-dark);
}

.foev-btn--ghost {
	background: var(--foev-white);
	border-color: var(--foev-line);
	color: var(--foev-text);
}

.foev-btn--ghost:hover {
	border-color: var(--foev-green);
	color: var(--foev-green-dark);
}

.foev-btn--danger {
	background: var(--foev-danger);
	color: var(--foev-white);
}

.foev-btn--danger:hover {
	background: #93291f;
}

.foev-btn--danger-ghost {
	background: transparent;
	border-color: var(--foev-line);
	color: var(--foev-danger);
}

.foev-btn--danger-ghost:hover {
	background: var(--foev-danger-tint);
	border-color: var(--foev-danger);
}

.foev-btn--small {
	padding: 7px 14px;
	font-size: 13.5px;
}

.foev-btn--block {
	width: 100%;
}

.foev-btn .foev-icon {
	width: 17px;
	height: 17px;
}

.foev-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--foev-line);
	border-radius: 10px;
	background: var(--foev-white);
	color: var(--foev-text-soft);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.foev-iconbtn:hover {
	border-color: var(--foev-green);
	color: var(--foev-green-dark);
}

.foev-iconbtn--danger:hover {
	border-color: var(--foev-danger);
	color: var(--foev-danger);
	background: var(--foev-danger-tint);
}

.foev-iconbtn .foev-icon {
	width: 18px;
	height: 18px;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.foev-login-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.foev-login-card {
	width: 100%;
	max-width: 410px;
	background: var(--foev-white);
	border-radius: var(--foev-radius);
	box-shadow: var(--foev-shadow);
	border-top: 5px solid var(--foev-green);
	padding: 38px 34px 30px;
}

.foev-login-brand {
	text-align: center;
	margin-bottom: 26px;
}

.foev-login-brand .foev-logo {
	width: 58px;
	height: 58px;
	margin-bottom: 14px;
}

.foev-login-brand h1 {
	font-size: 22px;
	margin-bottom: 6px;
}

.foev-login-brand p {
	margin: 0;
	color: var(--foev-text-soft);
	font-size: 13.5px;
}

.foev-login-error {
	background: var(--foev-danger-tint);
	color: var(--foev-danger);
	border-radius: var(--foev-radius-small);
	padding: 11px 14px;
	font-size: 14px;
	margin-bottom: 18px;
}

.foev-login-form label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin: 14px 0 5px;
}

.foev-login-form input[type="text"],
.foev-login-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--foev-line);
	border-radius: var(--foev-radius-small);
	font-family: inherit;
	font-size: 15px;
	background: var(--foev-bg);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.foev-login-form input:focus {
	outline: none;
	border-color: var(--foev-green);
	background: var(--foev-white);
}

.foev-remember {
	display: flex !important;
	align-items: center;
	gap: 8px;
	font-weight: 500 !important;
	margin: 16px 0 20px !important;
	cursor: pointer;
}

.foev-remember input {
	accent-color: var(--foev-green);
	width: 17px;
	height: 17px;
}

.foev-login-help {
	text-align: center;
	margin: 18px 0 0;
	font-size: 14px;
}

.foev-login-footer {
	margin-top: 22px;
	font-size: 14px;
}

.foev-login-footer a {
	color: var(--foev-text-soft);
	text-decoration: none;
}

.foev-login-footer a:hover {
	color: var(--foev-green-dark);
}

/* --------------------------------------------------------------------------
   App-Layout
   -------------------------------------------------------------------------- */

.foev-app {
	min-height: 100vh;
}

.foev-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--foev-sidebar-width);
	background: var(--foev-white);
	border-right: 1px solid var(--foev-line);
	display: flex;
	flex-direction: column;
	padding: 22px 16px;
	z-index: 20;
}

.foev-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 8px 22px;
}

.foev-sidebar__brand strong {
	display: block;
	font-size: 15px;
}

.foev-sidebar__brand small {
	color: var(--foev-text-soft);
	font-size: 12.5px;
}

.foev-sidebar__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.foev-nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 11px;
	text-decoration: none;
	color: var(--foev-text-soft);
	font-weight: 600;
	font-size: 14.5px;
	transition: background 0.15s ease, color 0.15s ease;
}

.foev-sidebar .foev-nav-link:hover {
	background: var(--foev-bg);
	color: var(--foev-text);
}

.foev-sidebar .foev-nav-link.is-active {
	background: var(--foev-green);
	color: var(--foev-white);
}

.foev-sidebar__user {
	display: flex;
	align-items: center;
	gap: 11px;
	border-top: 1px solid var(--foev-line);
	padding: 16px 8px 2px;
}

.foev-sidebar__user-meta strong {
	display: block;
	font-size: 14px;
	line-height: 1.3;
}

.foev-sidebar__user-meta a {
	font-size: 13px;
	color: var(--foev-text-soft);
	text-decoration: none;
}

.foev-sidebar__user-meta a:hover {
	color: var(--foev-green-dark);
}

.foev-topbar {
	display: none;
}

.foev-main {
	margin-left: var(--foev-sidebar-width);
	padding: 34px 38px 60px;
	max-width: 1240px;
}

.foev-bottomnav {
	display: none;
}

/* --------------------------------------------------------------------------
   Views
   -------------------------------------------------------------------------- */

.foev-view[hidden] {
	display: none;
}

.foev-view__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.foev-view__head h1 {
	font-size: 26px;
	color: var(--foev-green-dark);
}

.foev-view__intro {
	margin: 6px 0 0;
	color: var(--foev-text-soft);
	font-size: 14.5px;
	max-width: 640px;
}

/* --------------------------------------------------------------------------
   Karten & Statistiken
   -------------------------------------------------------------------------- */

.foev-card {
	background: var(--foev-white);
	border-radius: var(--foev-radius);
	box-shadow: var(--foev-shadow);
	padding: 22px 24px;
	margin-bottom: 22px;
}

.foev-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.foev-card__head h2 {
	font-size: 16.5px;
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--foev-text);
}

.foev-card__head h2 .foev-icon {
	color: var(--foev-green);
}

.foev-card__more {
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.foev-card__more:hover {
	text-decoration: underline;
}

.foev-card__empty {
	color: var(--foev-text-soft);
	margin: 6px 0;
	font-size: 14.5px;
}

.foev-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 22px;
}

.foev-stat {
	background: var(--foev-white);
	border-radius: var(--foev-radius);
	box-shadow: var(--foev-shadow);
	padding: 18px 20px;
	text-decoration: none;
	color: var(--foev-text);
	display: flex;
	flex-direction: column;
	gap: 3px;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.foev-stat:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(32, 49, 42, 0.07), 0 12px 28px rgba(32, 49, 42, 0.09);
}

.foev-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--foev-green-tint);
	color: var(--foev-green);
	margin-bottom: 8px;
}

.foev-stat__value {
	font-size: 24px;
	font-weight: 800;
	color: var(--foev-green-dark);
	line-height: 1.1;
}

.foev-stat__label {
	font-size: 13px;
	color: var(--foev-text-soft);
	font-weight: 600;
}

.foev-dash-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-bottom: 22px;
}

.foev-dash-grid .foev-card {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Mini-Listen (Dashboard)
   -------------------------------------------------------------------------- */

.foev-mini-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.foev-mini-list li + li {
	border-top: 1px solid var(--foev-line);
}

.foev-mini-list__row {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 11px;
	text-decoration: none;
	color: var(--foev-text);
	border-radius: var(--foev-radius-small);
}

a.foev-mini-list__row:hover {
	background: var(--foev-bg);
}

.foev-mini-list__meta {
	flex: 1;
	min-width: 0;
}

.foev-mini-list__meta strong {
	display: block;
	font-size: 14.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.foev-mini-list__meta small {
	color: var(--foev-text-soft);
	font-size: 12.5px;
	display: flex;
	align-items: center;
	gap: 7px;
}

.foev-datebox {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 48px;
	border-radius: 11px;
	background: var(--foev-green-tint);
	color: var(--foev-green-dark);
	flex: 0 0 auto;
}

.foev-datebox strong {
	font-size: 17px;
	line-height: 1.1;
}

.foev-datebox small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
}

.foev-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.foev-quick__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 18px;
	border: 1px dashed var(--foev-green-light);
	border-radius: var(--foev-radius-small);
	background: var(--foev-green-tint);
	color: var(--foev-green-dark);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-style 0.15s ease;
}

.foev-quick__btn:hover {
	background: #ddecE2;
	border-style: solid;
}

/* --------------------------------------------------------------------------
   Inhaltslisten (Aktivitäten, Mitgliedsfirmen)
   -------------------------------------------------------------------------- */

.foev-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.foev-list__item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--foev-white);
	border-radius: var(--foev-radius);
	box-shadow: var(--foev-shadow);
	padding: 12px 16px;
}

.foev-list__item.is-dragging {
	opacity: 0.45;
}

.foev-list__item.is-dragover {
	outline: 2px dashed var(--foev-green);
	outline-offset: 2px;
}

.foev-list__grip {
	color: #c2cac4;
	cursor: grab;
	display: inline-flex;
}

.foev-list__grip:active {
	cursor: grabbing;
}

.foev-list__thumb {
	width: 56px;
	height: 56px;
	border-radius: var(--foev-radius-small);
	background: var(--foev-green-tint) center/cover no-repeat;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.foev-list__thumb em {
	font-style: normal;
	font-weight: 700;
	color: var(--foev-green-dark);
	font-size: 15px;
}

.foev-list__meta {
	flex: 1;
	min-width: 0;
}

.foev-list__meta strong {
	display: block;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.foev-list__meta small {
	color: var(--foev-text-soft);
	font-size: 12.5px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.foev-list__actions {
	display: flex;
	gap: 8px;
}

.foev-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.foev-badge--publish {
	background: var(--foev-green-tint);
	color: var(--foev-green-dark);
}

.foev-badge--draft,
.foev-badge--pending {
	background: #f3edda;
	color: #8a6d1d;
}

.foev-badge--future {
	background: #e3edf6;
	color: #2e6291;
}

.foev-empty {
	background: var(--foev-white);
	border: 1.5px dashed var(--foev-line);
	border-radius: var(--foev-radius);
	padding: 44px 24px;
	text-align: center;
	color: var(--foev-text-soft);
}

.foev-empty p {
	margin: 0 0 14px;
	font-size: 15px;
}

.foev-empty__hint {
	font-size: 13.5px !important;
}

/* --------------------------------------------------------------------------
   Vorstand (Kartenraster)
   -------------------------------------------------------------------------- */

.foev-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.foev-person {
	background: var(--foev-white);
	border-radius: var(--foev-radius);
	box-shadow: var(--foev-shadow);
	padding: 20px 16px 18px;
	text-align: center;
}

.foev-person__photo {
	width: 110px;
	height: 110px;
	margin: 0 auto 14px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--foev-green-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid var(--foev-green-tint);
}

.foev-person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.foev-person__placeholder {
	font-weight: 800;
	font-size: 26px;
	color: var(--foev-green-dark);
}

.foev-person__name {
	font-size: 15.5px;
	margin-bottom: 3px;
}

.foev-person__titel {
	margin: 0 0 13px;
	color: var(--foev-text-soft);
	font-size: 13px;
	min-height: 1.4em;
}

.foev-person__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* --------------------------------------------------------------------------
   Kalender
   -------------------------------------------------------------------------- */

.foev-calendar-card {
	padding-bottom: 14px;
}

.foev-calendar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.foev-calendar__head h2 {
	font-size: 17.5px;
	color: var(--foev-green-dark);
}

.foev-calendar__head-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.foev-calendar__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin-bottom: 6px;
}

.foev-calendar__weekdays span {
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--foev-text-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 0;
}

.foev-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.foev-cal-day {
	min-height: 92px;
	border: 1px solid var(--foev-line);
	border-radius: var(--foev-radius-small);
	padding: 6px;
	background: var(--foev-white);
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow: hidden;
	text-align: left;
	font-family: inherit;
}

.foev-cal-day:hover {
	border-color: var(--foev-green-light);
	background: #fbfdfc;
}

.foev-cal-day--other {
	opacity: 0.42;
}

.foev-cal-day--today {
	border-color: var(--foev-green);
	background: var(--foev-green-tint);
}

.foev-cal-day__num {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--foev-text-soft);
}

.foev-cal-day--today .foev-cal-day__num {
	color: var(--foev-green-dark);
}

.foev-cal-event {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 6px;
	background: var(--foev-green);
	color: var(--foev-white);
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 7px;
	cursor: pointer;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background 0.12s ease;
}

.foev-cal-event:hover {
	background: var(--foev-green-dark);
}

.foev-cal-event--more {
	background: transparent;
	color: var(--foev-green-dark);
	padding: 1px 7px;
}

.foev-cal-event--more:hover {
	background: var(--foev-green-tint);
}

/* --------------------------------------------------------------------------
   Anstehende Termine (Liste)
   -------------------------------------------------------------------------- */

.foev-upcoming {
	display: flex;
	flex-direction: column;
}

.foev-upcoming__item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 13px 4px;
	border: 0;
	border-top: 1px solid var(--foev-line);
	background: transparent;
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	cursor: pointer;
	width: 100%;
	color: var(--foev-text);
}

.foev-upcoming__item:first-child {
	border-top: 0;
}

.foev-upcoming__item:hover {
	background: var(--foev-bg);
	border-radius: var(--foev-radius-small);
}

.foev-upcoming__meta {
	flex: 1;
	min-width: 0;
}

.foev-upcoming__meta strong {
	display: block;
	font-size: 15px;
}

.foev-upcoming__meta small {
	color: var(--foev-text-soft);
	font-size: 13px;
}

.foev-upcoming__status {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.foev-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.foev-pill--yes {
	background: var(--foev-green-tint);
	color: var(--foev-green-dark);
}

.foev-pill--no {
	background: var(--foev-danger-tint);
	color: var(--foev-danger);
}

.foev-pill--open {
	background: var(--foev-bg);
	color: var(--foev-text-soft);
}

.foev-pill .foev-icon {
	width: 13px;
	height: 13px;
}

/* --------------------------------------------------------------------------
   Termin-Details & Zu-/Absage
   -------------------------------------------------------------------------- */

.foev-termin-detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: var(--foev-text-soft);
	font-size: 14px;
	margin: 0 0 12px;
}

.foev-termin-detail__desc {
	margin: 0 0 18px;
	white-space: pre-line;
}

.foev-termin-detail__author {
	color: var(--foev-text-soft);
	font-size: 12.5px;
	margin: 16px 0 0;
}

.foev-rsvp {
	background: var(--foev-bg);
	border-radius: var(--foev-radius-small);
	padding: 16px;
	margin-bottom: 18px;
}

.foev-rsvp__question {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 14.5px;
}

.foev-rsvp__buttons {
	display: flex;
	gap: 10px;
}

.foev-rsvp__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border-radius: var(--foev-radius-small);
	border: 1.5px solid var(--foev-line);
	background: var(--foev-white);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	color: var(--foev-text-soft);
}

.foev-rsvp__btn .foev-icon {
	width: 17px;
	height: 17px;
}

.foev-rsvp__btn--yes:hover,
.foev-rsvp__btn--yes.is-active {
	border-color: var(--foev-green);
	color: var(--foev-green-dark);
	background: var(--foev-green-tint);
}

.foev-rsvp__btn--no:hover,
.foev-rsvp__btn--no.is-active {
	border-color: var(--foev-danger);
	color: var(--foev-danger);
	background: var(--foev-danger-tint);
}

.foev-rsvp__hint {
	margin: 9px 0 0;
	font-size: 12px;
	color: var(--foev-text-soft);
}

.foev-attendees {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.foev-attendees h3 {
	font-size: 13.5px;
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 6px;
}

.foev-attendees__list {
	margin: 0;
	font-size: 13.5px;
	color: var(--foev-text-soft);
}

.foev-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--foev-green);
	color: var(--foev-white);
	font-size: 11.5px;
}

.foev-count--muted {
	background: #c5ccc7;
}

/* --------------------------------------------------------------------------
   Modale
   -------------------------------------------------------------------------- */

.foev-modal {
	position: fixed;
	inset: 0;
	background: rgba(24, 38, 30, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100;
}

.foev-modal[hidden] {
	display: none;
}

.foev-modal__dialog {
	background: var(--foev-white);
	border-radius: var(--foev-radius);
	box-shadow: var(--foev-shadow-pop);
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 24px 26px;
	animation: foev-pop 0.18s ease;
}

.foev-modal__dialog--small {
	max-width: 400px;
}

@keyframes foev-pop {
	from {
		transform: translateY(10px) scale(0.98);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

.foev-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.foev-modal__head h2 {
	font-size: 19px;
	color: var(--foev-green-dark);
}

.foev-modal__close {
	border: 0;
	background: var(--foev-bg);
	border-radius: 10px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--foev-text-soft);
}

.foev-modal__close:hover {
	background: var(--foev-line);
	color: var(--foev-text);
}

.foev-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
}

.foev-modal__actions--split {
	justify-content: space-between;
}

.foev-confirm-message {
	margin: 0;
	color: var(--foev-text-soft);
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */

.foev-form label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 14px;
}

.foev-form input[type="text"],
.foev-form input[type="date"],
.foev-form input[type="time"],
.foev-form textarea {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 11px 13px;
	border: 1px solid var(--foev-line);
	border-radius: var(--foev-radius-small);
	font-family: inherit;
	font-size: 15px;
	background: var(--foev-bg);
	transition: border-color 0.15s ease, background 0.15s ease;
	resize: vertical;
}

.foev-form input:focus,
.foev-form textarea:focus {
	outline: none;
	border-color: var(--foev-green);
	background: var(--foev-white);
}

.foev-form__row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 12px;
}

.foev-image-picker {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 6px;
}

.foev-image-picker__preview {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--foev-green-tint) center/cover no-repeat;
	border: 2px dashed var(--foev-green-light);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: 0 0 auto;
}

.foev-image-picker__preview span {
	font-size: 12px;
	color: var(--foev-green-dark);
	font-weight: 600;
}

.foev-image-picker__preview.has-image {
	border-style: solid;
}

.foev-image-picker__controls small {
	display: block;
	margin-top: 7px;
	color: var(--foev-text-soft);
	font-size: 12.5px;
}

/* Breite Variante für Hero-Bilder (16:9 statt rund) */
.foev-image-picker--wide .foev-image-picker__preview {
	width: 176px;
	height: 99px;
	border-radius: var(--foev-radius-small);
}

/* --------------------------------------------------------------------------
   Schalter (Förderer)
   -------------------------------------------------------------------------- */

.foev-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	flex: 0 0 auto;
}

.foev-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.foev-switch__track {
	position: relative;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: #cdd5cf;
	transition: background 0.15s ease;
	flex: 0 0 auto;
}

.foev-switch__track::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--foev-white);
	box-shadow: 0 1px 3px rgba(32, 49, 42, 0.3);
	transition: transform 0.15s ease;
}

.foev-switch input:checked + .foev-switch__track {
	background: var(--foev-green);
}

.foev-switch input:checked + .foev-switch__track::after {
	transform: translateX(18px);
}

.foev-switch input:focus-visible + .foev-switch__track {
	outline: 2px solid var(--foev-green-light);
	outline-offset: 2px;
}

.foev-switch__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--foev-text-soft);
}

/* Medienliste (Hero Slider): breite Vorschaubilder */
.foev-list--media .foev-list__thumb {
	width: 96px;
	height: 54px;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.foev-toasts {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 200;
	pointer-events: none;
}

.foev-toast {
	background: var(--foev-green-dark);
	color: var(--foev-white);
	border-radius: 999px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--foev-shadow-pop);
	animation: foev-pop 0.2s ease;
}

.foev-toast--error {
	background: var(--foev-danger);
}

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
	.foev-sidebar {
		display: none;
	}

	.foev-topbar {
		position: sticky;
		top: 0;
		display: flex;
		align-items: center;
		gap: 12px;
		background: var(--foev-white);
		border-bottom: 1px solid var(--foev-line);
		padding: 10px 16px;
		z-index: 20;
	}

	.foev-topbar__title {
		flex: 1;
		font-size: 16px;
	}

	.foev-topbar__logout {
		color: var(--foev-text-soft);
		display: inline-flex;
		padding: 8px;
	}

	.foev-main {
		margin-left: 0;
		padding: 20px 16px 96px;
	}

	.foev-bottomnav {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		background: var(--foev-white);
		border-top: 1px solid var(--foev-line);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		z-index: 30;
	}

	.foev-bottomnav .foev-nav-link {
		flex-direction: column;
		gap: 3px;
		padding: 7px 2px;
		font-size: 10.5px;
		text-align: center;
		border-radius: 10px;
	}

	.foev-bottomnav .foev-nav-link.is-active {
		color: var(--foev-green);
	}

	.foev-stats {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.foev-dash-grid {
		grid-template-columns: 1fr;
	}

	.foev-view__head h1 {
		font-size: 21px;
	}

	.foev-form__row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.foev-cal-day {
		min-height: 58px;
		padding: 4px;
	}

	.foev-cal-event {
		font-size: 0;
		padding: 0;
		height: 7px;
		border-radius: 4px;
	}

	.foev-cal-event--more {
		display: none;
	}

	.foev-attendees {
		grid-template-columns: 1fr;
	}

	.foev-list__item {
		flex-wrap: wrap;
	}

	.foev-list__actions {
		margin-left: auto;
	}
}
