/* SMAF Kalender – bruger temaets farver, hvis de findes. */
.smaf-cal, .smaf-cal-details, .smaf-cal-signup {
	--g: var(--deep-green, #2F4B3A);
	--t: var(--terracotta, #C97B4A);
	--s: var(--sand, #EFE6D8);
}

/* ---------- Månedskalender ---------- */
.smaf-cal { max-width: 980px; margin: 0 auto; }
.smaf-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.smaf-cal-head h3 { margin: 0; color: var(--g); font-size: 1.5rem; }
.smaf-cal-nav {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--g); color: #fff !important; text-decoration: none; font-size: 1.1rem;
}
.smaf-cal-nav:hover { background: var(--t); }

.smaf-cal-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; margin: 0; }
.smaf-cal-grid th { padding: 6px 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--g); text-align: center; }
.smaf-cal-grid td { height: 92px; padding: 5px 6px; vertical-align: top; background: #fff; border-radius: 8px; border: 1px solid rgba(0,0,0,0.06); overflow: hidden; }
.smaf-cal-grid td.smaf-cal-empty { background: transparent; border-color: transparent; }
.smaf-cal-grid td.is-today { border: 2px solid var(--t); }
.smaf-cal-num { display: block; font-size: 0.8rem; font-weight: 600; color: #777; margin-bottom: 2px; }
.is-today .smaf-cal-num { color: var(--t); }
.smaf-cal-ev {
	display: block; margin-top: 2px; padding: 2px 5px;
	font-size: 0.72rem; line-height: 1.25; color: #fff !important; text-decoration: none;
	background: var(--g); border-radius: 4px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.smaf-cal-ev:hover { background: var(--t); }
.smaf-cal-more { display: block; margin-top: 2px; font-size: 0.7rem; color: #777; }

/* ---------- Liste ---------- */
.smaf-cal-listhead { margin: 34px 0 14px; color: var(--g); font-size: 1.4rem; }
.smaf-cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.smaf-cal-item {
	display: flex; align-items: center; gap: 16px;
	background: #fff; border-radius: 12px; padding: 14px 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin: 0 !important;
}
.smaf-cal-date { flex: 0 0 58px; text-align: center; background: var(--g); color: #fff; border-radius: 10px; padding: 7px 0; line-height: 1.1; }
.smaf-cal-date .d { display: block; font-size: 1.5rem; font-weight: 700; }
.smaf-cal-date .m { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #E3D8C4; }
.smaf-cal-info { flex: 1; min-width: 0; }
.smaf-cal-info .t { font-weight: 700; color: var(--g); text-decoration: none; font-size: 1.05rem; }
.smaf-cal-info .t:hover { color: var(--t); }
.smaf-cal-info .meta { font-size: 0.88rem; color: #666; }
.smaf-cal-badge { display: inline-block; margin-top: 5px; padding: 2px 9px; font-size: 0.75rem; font-weight: 600; background: var(--s); color: var(--g); border-radius: 999px; }
.smaf-cal-badge.is-full { background: #f3d9d4; color: #8a2b1d; }
.smaf-cal-go {
	flex: 0 0 auto; padding: 8px 16px; border-radius: 999px;
	background: var(--t); color: #fff !important; font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.smaf-cal-go:hover { background: var(--g); }
.smaf-cal-none { color: #666; }

/* ---------- Begivenhedsside ---------- */
.smaf-cal-details { background: var(--s); border-left: 4px solid var(--t); border-radius: 8px; padding: 14px 20px; margin: 0 0 1.6em; }
.smaf-cal-details ul { list-style: none; margin: 0; padding: 0 !important; }
.smaf-cal-details li { margin: 3px 0; }

.smaf-cal-signup { margin-top: 2.2em; background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.1); }
.smaf-cal-signup h3 { margin: 0 0 12px !important; color: var(--g); }
.smaf-cal-signup label { display: block; font-weight: 600; margin-bottom: 4px; }
.smaf-cal-signup input[type=text], .smaf-cal-signup input[type=tel] {
	width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid #cfc7b8; border-radius: 8px; background: #fff;
}
.smaf-cal-signup input:focus { outline: 2px solid var(--t); outline-offset: 1px; }
.smaf-cal-btn { padding: 11px 28px; border: 0; border-radius: 999px; background: var(--t); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; }
.smaf-cal-btn:hover { background: var(--g); }
.smaf-cal-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.smaf-cal-msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.smaf-cal-ok { background: #e1efe4; color: #1f5a31; }
.smaf-cal-err { background: #f6dcd6; color: #8a2b1d; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
	.smaf-cal-grid { border-spacing: 2px; }
	.smaf-cal-grid td { height: 64px; padding: 3px; }
	.smaf-cal-ev { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
	.smaf-cal-more { display: none; }
	.smaf-cal-item { flex-wrap: wrap; }
	.smaf-cal-go { margin-left: 74px; }
}
