/* ============================================================
   Seminar agenda  —  on-page programme (single jm_event + overview)
   Collapsible disclosure that keeps the booking CTA at the top
   while exposing the full programme to crawlers in the DOM.
   Flat brand style: navy #1e2e55 hairlines, off-white #fbfaf6,
   red #c53525 for action/hover. No radii, no grey fills.
   ============================================================ */

.dt-agenda-block {
	margin: 1.5rem 0;
}

/* The <details> disclosure ------------------------------------ */
.dt-agenda-disclosure {
	margin: 0;
}

.dt-agenda-disclosure > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	list-style: none;
	padding: .85rem 1.1rem;
	background: transparent;
	border: 1px solid #1e2e55;
	font-weight: 700;
	color: #1e2e55;
	transition: color .15s ease;
}

.dt-agenda-disclosure > summary:hover,
.dt-agenda-disclosure > summary:focus {
	background-color: #FFF;
}

.dt-agenda-disclosure > summary::-webkit-details-marker {
	display: none;
}

/* Chevron — follows the text colour (navy → red on hover). */
.dt-agenda-disclosure > summary::after {
	content: "";
	flex: 0 0 auto;
	width: .6rem;
	height: .6rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	/* translateY compensates the rotated box so the V sits on the text's
	   optical centre (down-chevron nudges up, up-chevron nudges down). */
	transform: translateY(-15%) rotate(45deg);
	transition: transform .2s ease;
}

.dt-agenda-disclosure[open] > summary::after {
	transform: translateY(15%) rotate(-135deg);
}

.dt-agenda-disclosure__label small {
	display: block;
	margin-top: .15rem;
	font-weight: 400;
	font-size: .8rem;
	color: #1e2e55;
	text-transform: none;
	letter-spacing: 0;
}

/* Open panel: holds the PDF link + the agenda content as one box -- */
.dt-agenda-disclosure__panel {
	padding: 1.25rem 1.1rem;
	border: 1px solid #1e2e55;
	border-top: none;
}

/* Body (the stored post content wrapper) ---------------------- */
.dt-agenda {
	padding: 0;
	/* Cap the reading measure (~85 chars) for legibility, even though
	   the panel itself spans the full width. */
	max-width: 85ch;
}

.dt-agenda__section {
	margin: 0 0 1.4rem;
}

.dt-agenda__section:last-child {
	margin-bottom: .6rem;
}

.dt-agenda__heading {
	margin: 0 0 .5rem;
	font-size: 1.05rem;
	color: #1e2e55;
	border-left: 3px solid #c53525;
	padding-left: .6rem;
}

.dt-agenda p {
	margin: 0 0 .6rem;
	line-height: 1.55;
}

.dt-agenda__list {
	margin: 0 0 .6rem 1.1rem;
	list-style: disc;
}

.dt-agenda__list ul {
	margin: .3rem 0 .6rem 1.1rem;
	list-style: circle;
}

.dt-agenda__list li {
	margin: 0 0 .3rem;
	line-height: 1.5;
}

/* PDF download — first item in the open panel ----------------- */
.dt-agenda__pdf {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	width: fit-content;
	margin: 0 0 1.1rem;
	font-weight: 700;
	font-size: .92rem;
	color: #1e2e55;
	background-image: none;
}

.dt-agenda__pdf:hover,
.dt-agenda__pdf:focus {
	color: #c53525;
}

.dt-agenda__pdf img {
	width: 22px;
	margin: 0;
}

/* Divider between the PDF link and the agenda content. */
.dt-agenda__pdf + .dt-agenda {
	border-top: 1px solid #1e2e55;
	padding-top: 1.1rem;
}

/* ------------------------------------------------------------
   Appointments overview — quiet, borderless toggle.
   The bookable date cards are the focus here, so the agenda is
   demoted to a plain text link under the module title (no box,
   no subline) rather than the full-width bordered panel used on
   the single appointment page.
   ------------------------------------------------------------ */
.dt-seminar__agenda-content {
	margin: -.6rem 0 1.4rem;
}

.dt-seminar__agenda-content .dt-agenda-block {
	margin: 0;
}

.dt-seminar__agenda-content .dt-agenda-disclosure > summary {
	width: fit-content;
	min-height: 40px; /* accessible hit target */
	gap: .5rem;
	padding: .25rem 0;
	border: 0;
	font-size: .95rem;
}

.dt-seminar__agenda-content .dt-agenda-disclosure > summary:hover,
.dt-seminar__agenda-content .dt-agenda-disclosure > summary:focus {
	background-color: transparent;
	color: #c53525;
}

/* Drop the subline ("Themen, Ziele, …") to cut visual noise. */
.dt-seminar__agenda-content .dt-agenda-disclosure__label small {
	display: none;
}

/* Borderless, lightly indented content panel. */
.dt-seminar__agenda-content .dt-agenda-disclosure__panel {
	margin-top: .9rem;
	padding: 0 0 0 1rem;
	border: 0;
	border-left: 2px solid #1e2e55;
}

@media print {
	.dt-agenda-disclosure > summary { display: none; }
	.dt-agenda, .dt-agenda-disclosure[open] .dt-agenda { display: block !important; }
}
