.po-cal {
	--blue: #71c7fc;
	--ink: #272726;
	--bg: #f4f7f9;
	--card: #ffffff;
	--muted: #8a8d8c;
	--line: #ececec;
	--r: 40px;
	font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	max-width: 1000px;
	margin: 0 auto;
	box-sizing: border-box;
}

.po-cal *,
.po-cal *::before,
.po-cal *::after {
	box-sizing: border-box;
}

/* ===== Dark Mode (Umschalter) ===== */
.po-cal.po-dark {
	--ink: #ffffff;
	--bg: #3a3a38;
	--card: #272726;
	--muted: #b8b8b3;
	--line: #4a4a47;
}

.po-cal.po-dark .po-widget {
	box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.po-cal.po-dark .po-ev.soon .po-date .d,
.po-cal.po-dark .po-ev.soon .po-date .wd {
	color: #272726;
}

.po-widget {
	background: var(--card);
	border-radius: var(--r);
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(39, 39, 38, .06);
}

.po-nav {
	padding: 22px 24px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.po-month {
	font-size: 16px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-align: center;
	flex: 1;
}

.po-month span {
	color: var(--blue);
}

.po-month .yr {
	display: block;
	font-size: 11px;
	color: var(--muted);
	letter-spacing: .08em;
	margin-top: 2px;
}

.po-arrow {
	width: 42px;
	height: 42px;
	border: none;
	flex-shrink: 0;
	background: var(--bg);
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	font-weight: 900;
	color: var(--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease;
}

.po-arrow:hover:not(:disabled) {
	background: var(--blue);
	color: #fff;
}

.po-arrow:disabled {
	opacity: .3;
	cursor: default;
}

.po-body {
	padding: 0 16px 20px;
	min-height: 120px;
	display: grid;
	grid-template-columns: 1fr 1fr;   /* 2 Spalten – auch mobil */
	gap: 4px 16px;
	align-items: start;
}

.po-body .po-state {
	grid-column: 1 / -1;
}

/* Tablet/Mobil: eine Spalte untereinander */
@media (max-width: 768px) {
	.po-body { grid-template-columns: 1fr; }
}

/* sehr schmale Geräte: Innenabstände reduzieren */
@media (max-width: 480px) {
	.po-cal { --r: 28px; }
	.po-body { gap: 2px 8px; padding: 0 10px 16px; }
	.po-ev { grid-template-columns: 46px 1fr; gap: 8px; padding: 8px; }
	.po-date { border-radius: 14px; padding: 7px 2px; }
	.po-date .d { font-size: 16px; }
	.po-et { font-size: 13px; }
	.po-em, .po-desc { font-size: 11.5px; }
}

/* Mehr-anzeigen */
.po-ev.po-hidden { display: none; }

.po-more {
	grid-column: 1 / -1;
	margin: 10px auto 2px;
	border: none;
	background: var(--bg);
	color: var(--ink);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 12px;
	padding: 12px 26px;
	border-radius: 30px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.po-more:hover {
	background: var(--blue);
	color: #fff;
}

.po-ev {
	display: grid;
	grid-template-columns: 62px 1fr;
	gap: 14px;
	padding: 12px;
	align-items: start;
	border-radius: 26px;
	transition: background .15s ease;
}

.po-ev:hover {
	background: var(--bg);
}

.po-date {
	text-align: center;
	background: var(--bg);
	border-radius: 20px;
	padding: 10px 4px;
	line-height: 1.05;
}

.po-date .d {
	font-size: 20px;
	font-weight: 900;
	display: block;
}

.po-date .wd {
	font-size: 10px;
	color: var(--muted);
	text-transform: uppercase;
	font-weight: 700;
}

.po-ev.soon .po-date {
	background: var(--blue);
}

.po-ev.soon .po-date .d,
.po-ev.soon .po-date .wd {
	color: #fff;
}

.po-ev.past {
	opacity: .5;
}

.po-ev.past .po-date {
	background: var(--bg);
}

.po-ev.past .po-tag {
	color: var(--muted) !important;
	background: var(--line) !important;
}

.po-et {
	font-size: 15px;
	font-weight: 800;
	margin: 0;
}

.po-em {
	font-size: 12.5px;
	color: var(--muted);
	margin: 3px 0 0;
}

.po-desc {
	font-size: 12.5px;
	color: var(--muted);
	margin: 6px 0 0;
	line-height: 1.4;
}

.po-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 3px 9px;
	border-radius: 20px;
	margin-bottom: 5px;
}

.po-state {
	padding: 36px 26px;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
}
