/*
 * AGM Termine – Gestaltung nach Mockup V28 (fs.andreaslucke.de/#/termine).
 * Alles hängt an .agmt bzw. agmt-Klassen, damit Theme und Plugin sich nicht stören.
 * Einige !important sind nötig, weil Avada Überschriften und Suchfelder sehr bestimmt gestaltet.
 */

/* ---------- Grundwerte ---------- */
.agmt {
	--agmt-magenta: #9E1B61;
	--agmt-magenta-d: #7C1249;
	--agmt-rose-50: #FBEAF1;
	--agmt-rose-bg: #FCF1F6;
	--agmt-peach-50: #FDF0E6;
	--agmt-ink: #2A2229;
	--agmt-ink-2: #5E5560;
	--agmt-ink-3: #6E646B;
	--agmt-tinte: #3A2433;
	--agmt-line: #EDE5DE;
	--agmt-line-2: #E1D7CE;
	--agmt-ui-border: #8A7F77;
	--agmt-paper: #FBF8F4;
	--agmt-schatten: 0 18px 40px -30px rgb(124 18 73 / .2);
	--agmt-blatt-schatten: 0 24px 60px -34px rgb(124 18 73 / .22);
	--agmt-c: var(--agmt-magenta);
	--agmt-cink: var(--agmt-magenta);
	/* Formen und Gewichte – werden von der Gestaltung „aktuelle Website“ überschrieben */
	--agmt-r-pill: 999px;
	--agmt-r-input: 999px;
	--agmt-r-card: 18px;
	--agmt-r-blatt: 28px;
	--agmt-r-small: 14px;
	--agmt-fw-btn: 700;
	--agmt-fw-pill: 650;
	--agmt-fs: 18px;
	--agmt-h-color: var(--agmt-magenta);
	--agmt-h-weight: 800;
	--agmt-sec-alt: var(--agmt-rose-bg);
	color: var(--agmt-ink);
	font-family: var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	font-size: var(--agmt-fs);
	font-weight: 400;
	line-height: 1.7;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.agmt-t-praev { --agmt-c: #309CAE; --agmt-cink: #227A8B; }
.agmt-t-melde { --agmt-c: #00A7D6; --agmt-cink: #00739A; }
.agmt-t-ansprech { --agmt-c: #166C79; --agmt-cink: #166C79; }
.agmt-t-mag { --agmt-c: #9E1B61; --agmt-cink: #9E1B61; }

/* ---------- Gestaltung „aktuelle Website“ (Avada: Noto Sans, Magenta #af3275, Petrol, 4 px Ecken) ----------
 * Schalter unter Einstellungen → AGM Termine → Gestaltung. Schriften kommen dann aus dem Theme. */
.agmt--aktuell {
	--agmt-magenta: #af3275;
	--agmt-magenta-d: #8e2760;
	--agmt-rose-50: #f7eaf1;
	--agmt-rose-bg: #f9f9fb;
	--agmt-peach-50: #f9f9fb;
	--agmt-ink: #000;
	--agmt-ink-2: #333;
	--agmt-ink-3: #595959;
	--agmt-tinte: #1e5c63;
	--agmt-line: #e2ded5;
	--agmt-line-2: #e2ded5;
	--agmt-ui-border: #b9b2a6;
	--agmt-paper: #fff;
	--agmt-schatten: none;
	--agmt-blatt-schatten: 0 1px 4px rgb(0 0 0 / .06);
	--agmt-f-body: var(--body_typography-font-family, "Noto Sans", Arial, Helvetica, sans-serif);
	--agmt-f-head: var(--h2_typography-font-family, var(--body_typography-font-family, "Noto Sans", Arial, Helvetica, sans-serif));
	--agmt-r-pill: 4px;
	--agmt-r-input: 6px;
	--agmt-r-card: 6px;
	--agmt-r-blatt: 8px;
	--agmt-r-small: 4px;
	--agmt-fw-btn: 500;
	--agmt-fw-pill: 500;
	--agmt-fs: 16px;
	--agmt-h-color: #000;
	--agmt-h-weight: 300;
	--agmt-sec-alt: #f9f9fb;
	letter-spacing: .015em;
}
.agmt--aktuell .agmt-t-praev { --agmt-c: #27a0b0; --agmt-cink: #1d7c88; }
.agmt--aktuell .agmt-t-melde { --agmt-c: #1e5c63; --agmt-cink: #1e5c63; }
.agmt--aktuell .agmt-t-ansprech { --agmt-c: #b0a345; --agmt-cink: #6f6728; }
.agmt--aktuell .agmt-t-mag { --agmt-c: #af3275; --agmt-cink: #af3275; }
.agmt--aktuell.agmt-kopf { background: #f9f9fb; }
.agmt--aktuell .agmt-h2 { font-size: clamp(28px, 3.4vw, 40px) !important; letter-spacing: 0; }
.agmt--aktuell .agmt-h1 { letter-spacing: 0; }
.agmt--aktuell .agmt-drawer,
.agmt--aktuell .agmt-modal { background: #fff; }
.agmt--aktuell .agmt-drawer__body .agmt-blatt { background: #f9f9fb; box-shadow: none; }

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

.agmt h1, .agmt h2, .agmt h3, .agmt h4,
.agmt p, .agmt dl, .agmt dt, .agmt dd,
.agmt ul, .agmt ol, .agmt li, .agmt figure {
	margin: 0;
	padding: 0;
	text-transform: none;
	letter-spacing: normal;
}
.agmt ul, .agmt ol, .agmt li { list-style: none; }
.agmt li::marker { content: none; }
.agmt h1, .agmt h2, .agmt h3, .agmt h4 {
	color: var(--agmt-ink);
	font-family: var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	font-weight: 700;
}
.agmt b, .agmt strong { font-weight: 700; color: var(--agmt-ink); }
.agmt a { color: var(--agmt-magenta); text-decoration: underline solid rgb(158 27 97 / .4); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.agmt a.agmt-btn, .agmt a.agmt-pill { text-decoration: none; }
.agmt a:hover { color: var(--agmt-magenta-d); }
.agmt button { font: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; }
.agmt [hidden] { display: none !important; }
.agmt :focus-visible { outline: 3px solid var(--agmt-magenta); outline-offset: 2px; }

.agmt-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.agmt-ic {
	width: 22px; height: 22px;
	flex: none;
	display: inline-block;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.agmt-ic--zurueck { transform: rotate(180deg); }

/* ---------- Abschnitte ---------- */
.agmt-sec {
	background: var(--agmt-paper);
	padding: clamp(52px, 6.5vw, 92px) 0;
}
.agmt-sec--rose { background: var(--agmt-sec-alt); }
.agmt-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 32px);
}
.agmt .agmt-h2 {
	color: var(--agmt-h-color);
	font-family: var(--agmt-f-head, "Nunito", "Segoe UI", system-ui, sans-serif);
	font-size: clamp(26px, 3vw, 34px) !important;
	font-weight: var(--agmt-h-weight);
	line-height: 1.15 !important;
	letter-spacing: -.01em;
}
.agmt-sh { margin-bottom: 18px; }
.agmt-sh > p { max-width: 600px; }
.agmt .agmt-neu,
.agmt .agmt-anmelde {
	color: var(--agmt-ink-2);
	font-size: 18px;
	line-height: 1.6;
}
.agmt .agmt-neu { margin: 0 0 6px; }
.agmt .agmt-anmelde { margin: 12px 0 0; }
.agmt .agmt-sh__intro {
	margin-top: 14px;
	max-width: 640px;
	color: var(--agmt-ink-2);
	font-size: 20px;
	line-height: 1.55;
}
.agmt-sep { color: var(--agmt-magenta); font-weight: 750; }

/* ---------- Pillen ---------- */
.agmt .agmt-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.agmt span.agmt-pills { margin-top: 10px; }
.agmt p + .agmt-pills { margin-top: 14px; }
.agmt .agmt-pill {
	--p-fg: var(--agmt-ink);
	--p-bd: var(--agmt-line-2);
	--p-bg: #fff;
	--p-ic: var(--agmt-magenta);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 16px;
	border: 1.5px solid var(--p-bd);
	border-radius: var(--agmt-r-pill);
	background: var(--p-bg);
	color: var(--p-fg);
	font: var(--agmt-fw-pill) 15px/1.3 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	text-decoration: none;
	cursor: pointer;
}
.agmt .agmt-pill:hover { --p-fg: var(--agmt-magenta); --p-bd: var(--agmt-magenta); --p-bg: var(--agmt-rose-50); }
.agmt-inline { display: inline-block; margin: 4px 6px 4px 0; vertical-align: middle; }
.agmt .agmt-pill__ic { width: 16px; height: 16px; color: var(--p-ic); stroke-width: 2.1; }
.agmt .agmt-pill--anker .agmt-pill__ic { transform: rotate(90deg); }
.agmt .agmt-pill--hoch .agmt-pill__ic { transform: rotate(-90deg); }

/* ---------- Knöpfe ---------- */
.agmt .agmt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 14px 24px;
	border: 2px solid var(--agmt-magenta);
	border-radius: var(--agmt-r-pill);
	background: var(--agmt-magenta);
	color: #fff;
	font: var(--agmt-fw-btn) 16px/1.2 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.agmt .agmt-btn:hover { background: var(--agmt-magenta-d); border-color: var(--agmt-magenta-d); color: #fff; }
.agmt .agmt-btn--ghost { background: #fff; border-color: var(--agmt-ui-border); color: var(--agmt-ink); }
.agmt .agmt-btn--ghost:hover { background: var(--agmt-rose-50); border-color: var(--agmt-ink); color: var(--agmt-ink); }
.agmt .agmt-btn--sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.agmt .agmt-btn--block { width: 100%; }
.agmt .agmt-btn .agmt-ic { width: 18px; height: 18px; }
.agmt-xbtn {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--agmt-ui-border);
	border-radius: 50%;
	background: #fff;
	color: var(--agmt-ink);
	cursor: pointer;
}
.agmt-xbtn:hover { background: var(--agmt-rose-50); }
.agmt-xbtn .agmt-ic { width: 18px; height: 18px; }

/* ---------- Filter ---------- */
.agmt-filterbar { padding: 10px 0; background: var(--agmt-paper); }
.agmt:not(.agmt-js) .agmt-filterbar { display: none; }
.agmt .agmt-filterbox > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 18px;
	border: 1px solid var(--agmt-ui-border);
	border-radius: var(--agmt-r-pill);
	background: #fff;
	font: var(--agmt-fw-btn) 16px/1.2 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	cursor: pointer;
	list-style: none;
}
.agmt .agmt-filterbox > summary::-webkit-details-marker { display: none; }
.agmt-filterbox__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "suche schalter" "formate formate";
	align-items: center;
	gap: 12px 24px;
}
.agmt-search { grid-area: suche; position: relative; display: flex; align-items: center; }
.agmt-fchips--tog { grid-area: schalter; justify-content: flex-end; }
[data-agmt-formats] { grid-area: formate; }
.agmt .agmt-search .agmt-ic { position: absolute; left: 18px; color: var(--agmt-ink-3); pointer-events: none; }
.agmt .agmt-search input[type="search"] {
	width: 100% !important;
	height: auto !important;
	min-height: 52px;
	margin: 0 !important;
	padding: 14px 20px 14px 50px !important;
	border: 1px solid var(--agmt-ui-border) !important;
	border-radius: var(--agmt-r-input) !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--agmt-ink) !important;
	font: 400 16px/1.7 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif) !important;
	-webkit-appearance: none;
	appearance: none;
}
.agmt .agmt-search input[type="search"]::placeholder { color: var(--agmt-ink-3); opacity: 1; }
.agmt .agmt-search input[type="search"]:focus { outline: 3px solid var(--agmt-magenta); outline-offset: 2px; }
.agmt .agmt-fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.agmt .agmt-fchip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	margin: 0;
	padding: 8px 15px;
	border: 1px solid var(--agmt-ui-border);
	border-radius: var(--agmt-r-pill);
	background: #fff;
	color: var(--agmt-ink);
	font: var(--agmt-fw-btn) 15px/1.7 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	cursor: pointer;
	box-shadow: none;
}
.agmt .agmt-fchip:hover { border-color: var(--agmt-ink); }
.agmt .agmt-fchip[aria-pressed="true"] { background: var(--agmt-magenta); border-color: var(--agmt-magenta); color: #fff; }
.agmt .agmt-n { font-size: 14px; font-weight: 600; color: inherit; }

/* ---------- Liste ---------- */
.agmt .agmt-count {
	margin: 18px 0 4px;
	color: var(--agmt-ink-2);
	font: 600 15px/1.4 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
}
.agmt .agmt-month {
	margin: 34px 0 6px;
	color: var(--agmt-ink);
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	letter-spacing: -.005em;
}
.agmt .agmt-monat:first-child .agmt-month { margin-top: 0; }
.agmt-evlist { display: grid; grid-template-columns: minmax(0, 1fr); }
.agmt .agmt-ev {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 22px;
	align-items: start;
	margin-top: 12px;
	padding: 18px clamp(16px, 2vw, 24px);
	border: 1px solid var(--agmt-line);
	border-radius: var(--agmt-r-card);
	background: #fff;
	box-shadow: var(--agmt-schatten);
}
.agmt .agmt-ev__date { color: var(--agmt-tinte); line-height: 1.05; }
.agmt .agmt-ev__date b {
	display: block;
	color: var(--agmt-tinte);
	font: 750 32px/1 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	font-variant-numeric: tabular-nums;
}
.agmt .agmt-ev__date span {
	display: block;
	margin-top: 6px;
	color: var(--agmt-ink-2);
	font: 600 15px/1.3 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	white-space: nowrap;
}
.agmt .agmt-meta {
	margin: 6px 0 0;
	color: var(--agmt-ink-2);
	font: 600 15px/1.45 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
}
.agmt .agmt-meta--fb { margin: 0; }
.agmt .agmt-meta--fb::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--agmt-c);
	vertical-align: .08em;
}
.agmt .agmt-ev__title {
	margin: 0;
	color: var(--agmt-magenta) !important;
	font-size: 21px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	letter-spacing: -.005em;
	overflow-wrap: break-word;
}
.agmt .agmt-ev__for {
	margin: 4px 0 0;
	color: var(--agmt-ink-2);
	font-size: 15px;
	line-height: 1.45;
}
.agmt .agmt-ev__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	min-width: 170px;
}
/* Zielgruppe als Pille links unter dem Text (Farbe über .agmt-t-mag; ohne color-mix: weiß mit farbigem Rand). */
.agmt .agmt-zg {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	margin-top: 10px;
	padding: 4px 12px;
	border: 1px solid var(--agmt-c);
	border: 1px solid color-mix(in srgb, var(--agmt-c) 45%, #fff);
	/* Einzeilig rund wie eine Pille, bei Umbruch ein abgerundetes Kästchen (auch in der Gestaltung „aktuell“). */
	border-radius: 1.4em;
	/* Lange Wörter („Leitungsverantwortliche“ bei großer Schrift) trennen statt überlaufen. */
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	background: #fff;
	background: color-mix(in srgb, var(--agmt-c) 12%, #fff);
	color: var(--agmt-cink);
	font: 650 14px/1.35 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
}
/* Freigabe für alle: deutlich, gefüllt in Magenta mit Haken. */
.agmt .agmt-zg--frei {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-color: var(--agmt-magenta);
	background: var(--agmt-magenta);
	color: #fff;
	font-weight: 700;
}
.agmt .agmt-zg--frei .agmt-ic { width: 16px; height: 16px; stroke-width: 2.6; }
.agmt .agmt-hinweis--frei { border-left: 4px solid var(--agmt-magenta); }
.agmt .agmt-hinweis--frei b { display: block; margin-bottom: 2px; color: var(--agmt-magenta); }

/* [agm_basis_offen] – Kasten für die Startseite */
.agmt.agmt-freigabe { margin: 0 0 24px; }
.agmt .agmt-freigabe__in {
	padding: 20px clamp(16px, 3vw, 28px);
	border: 1px solid var(--agmt-line);
	border-left: 5px solid var(--agmt-magenta);
	border-radius: var(--agmt-r-card);
	background: #fff;
	box-shadow: var(--agmt-schatten);
}
.agmt .agmt-freigabe__t {
	margin: 12px 0 6px;
	color: var(--agmt-magenta) !important;
	font-size: 22px !important;
	font-weight: 700;
	line-height: 1.25 !important;
}
.agmt .agmt-freigabe__text { margin: 0 0 12px; color: var(--agmt-ink-2); font-size: 16px; line-height: 1.5; }
.agmt .agmt-freigabe__liste { margin: 0; padding: 0; list-style: none; }
.agmt .agmt-freigabe__liste > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 10px 0;
	border-top: 1px solid var(--agmt-line);
}
.agmt .agmt-freigabe__wann { flex: 1 1 260px; font-size: 16px; line-height: 1.4; }
.agmt .agmt-freigabe__wann b { margin-right: 6px; }
.agmt .agmt-freigabe__mehr { margin: 10px 0 0; font-size: 15px; }
.agmt .agmt-seats {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--agmt-ink-2);
	font: 600 15px/1.3 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	white-space: nowrap;
}
.agmt .agmt-bar {
	position: relative;
	display: block;
	flex: none;
	width: 64px;
	height: 6px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--agmt-line);
}
.agmt .agmt-bar::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: 50%;
	border-radius: inherit;
	background: var(--agmt-magenta);
}
.agmt-p-0::after { width: 0 !important; }
.agmt-p-5::after { width: 5% !important; }
.agmt-p-10::after { width: 10% !important; }
.agmt-p-15::after { width: 15% !important; }
.agmt-p-20::after { width: 20% !important; }
.agmt-p-25::after { width: 25% !important; }
.agmt-p-30::after { width: 30% !important; }
.agmt-p-35::after { width: 35% !important; }
.agmt-p-40::after { width: 40% !important; }
.agmt-p-45::after { width: 45% !important; }
.agmt-p-50::after { width: 50% !important; }
.agmt-p-55::after { width: 55% !important; }
.agmt-p-60::after { width: 60% !important; }
.agmt-p-65::after { width: 65% !important; }
.agmt-p-70::after { width: 70% !important; }
.agmt-p-75::after { width: 75% !important; }
.agmt-p-80::after { width: 80% !important; }
.agmt-p-85::after { width: 85% !important; }
.agmt-p-90::after { width: 90% !important; }
.agmt-p-95::after { width: 95% !important; }
.agmt-p-100::after { width: 100% !important; }

.agmt .agmt-mehr { margin: 24px 0 0; text-align: center; }
.agmt .agmt-leer { padding: 28px 12px; color: var(--agmt-ink-2); text-align: center; }
.agmt .agmt-leer .agmt-pills { justify-content: center; margin-top: 14px; }
.agmt .agmt-quelle { margin-top: 18px; color: var(--agmt-ink-3); font-size: 13.5px; line-height: 1.5; }

/* ---------- Seitenkopf ---------- */
.agmt-kopf {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(32px, 4vw, 56px) 0 clamp(44px, 6vw, 84px);
	background:
		radial-gradient(ellipse 45% 75% at 0% 100%, rgb(203 231 234 / .85) 0%, rgb(203 231 234 / 0) 70%),
		radial-gradient(ellipse 55% 65% at 52% 60%, rgb(248 217 196 / .55) 0%, rgb(248 217 196 / 0) 70%),
		radial-gradient(ellipse 55% 80% at 100% 0%, rgb(244 211 226 / .75) 0%, rgb(244 211 226 / 0) 70%),
		var(--agmt-paper);
}
.agmt-kopf__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 40px;
	align-items: start;
}
.agmt .agmt-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.agmt .agmt-crumbs li { color: var(--agmt-ink-2); font: 600 15px/1.7 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif); }
.agmt .agmt-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--agmt-ink-3); }
.agmt .agmt-crumbs a { color: var(--agmt-ink-2); text-decoration: none; }
.agmt .agmt-crumbs a:hover { color: var(--agmt-magenta); text-decoration: underline; }
.agmt .agmt-crumbs [aria-current] { color: var(--agmt-ink); }
.agmt .agmt-h1 {
	max-width: 12em;
	color: var(--agmt-h-color);
	font-family: var(--agmt-f-head, "Nunito", "Segoe UI", system-ui, sans-serif);
	font-size: clamp(34px, 4.3vw, 56px) !important;
	font-weight: var(--agmt-h-weight);
	line-height: 1.1 !important;
	letter-spacing: -.01em;
}
.agmt .agmt-lead {
	max-width: 26em;
	margin: 18px 0 20px;
	color: var(--agmt-ink-2);
	font-size: 20px;
	line-height: 1.55;
}
.agmt .agmt-onpage__t {
	margin: 0 0 10px;
	color: var(--agmt-ink-2);
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.4 !important;
}
.agmt .agmt-blatt {
	position: relative;
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--agmt-line);
	border-radius: var(--agmt-r-blatt);
	background: #fff;
	box-shadow: var(--agmt-blatt-schatten);
}
.agmt .agmt-blatt--werkzeug { justify-self: end; width: 100%; max-width: 420px; }
.agmt .agmt-blatt__titel {
	color: var(--agmt-ink);
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.3 !important;
}
.agmt .agmt-blatt--werkzeug p { margin-top: 12px; color: var(--agmt-ink-2); font-size: 17px; line-height: 1.55; }
.agmt .agmt-blatt--werkzeug .agmt-btn { margin-top: 18px; }
.agmt-finder-solo .agmt-blatt--werkzeug { justify-self: auto; }

/* ---------- Formate ---------- */
.agmt .agmt-acc-gruppe {
	margin-top: 8px;
	padding: 6px clamp(16px, 2vw, 24px);
	border: 1px solid var(--agmt-line);
	border-radius: var(--agmt-r-card);
	background: #fff;
	box-shadow: var(--agmt-schatten);
}
.agmt .agmt-acc + .agmt-acc { border-top: 1px solid var(--agmt-line-2); }
.agmt .agmt-acc > summary {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) 24px;
	gap: 6px 32px;
	align-items: center;
	padding: 20px 2px;
	color: var(--agmt-ink);
	font: 700 17px/1.4 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	cursor: pointer;
	list-style: none;
}
.agmt .agmt-acc > summary::-webkit-details-marker { display: none; }
.agmt .agmt-acc__kopf { position: relative; display: block; padding-left: 22px; }
.agmt .agmt-acc__kopf::before {
	content: "";
	position: absolute;
	top: .45em;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--agmt-c);
}
.agmt .agmt-acc__n { font-size: 18px; font-weight: 700; }
.agmt .agmt-acc__alt { color: var(--agmt-ink-2); font-size: 15px; font-weight: 600; }
.agmt .agmt-acc__fuer { display: block; margin-top: 4px; color: var(--agmt-ink-2); font-size: 16px; font-weight: 500; line-height: 1.5; }
.agmt .agmt-acc__fakten { color: var(--agmt-ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.agmt .agmt-acc__sep { color: var(--agmt-ink-3); }
.agmt .agmt-acc__wdh { display: block; margin-top: 2px; color: var(--agmt-cink); font-weight: 700; }
.agmt .agmt-pm { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.agmt .agmt-pm::before,
.agmt .agmt-pm::after {
	content: "";
	grid-area: 1 / 1;
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--agmt-magenta);
}
.agmt .agmt-pm::after { transform: rotate(90deg); transition: transform .2s; }
.agmt .agmt-acc[open] .agmt-pm::after { transform: rotate(0deg); }
.agmt .agmt-acc__body { max-width: 720px; padding: 0 2px 22px 22px; color: var(--agmt-ink-2); }
.agmt .agmt-acc__body p { margin: 0 0 12px; line-height: 1.65; }
.agmt .agmt-acc__body h3 { margin: 22px 0 6px; font-size: 17px !important; line-height: 1.3 !important; }
.agmt .agmt-acc__body dl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 4px 24px; padding: 10px 0; border-top: 1px solid var(--agmt-line-2); }
.agmt .agmt-acc__body dt { color: var(--agmt-ink); font-weight: 700; line-height: 1.45; }
.agmt .agmt-acc__body dd { line-height: 1.55; }
.agmt .agmt-formate__text { margin-top: 22px; color: var(--agmt-ink-2); font-size: 16px; line-height: 1.6; }
.agmt .agmt-formate__text p { max-width: 640px; }
.agmt .agmt-formate__text p + p { margin-top: 14px; }
.agmt-notiz {
	max-width: 760px;
	padding: 16px 20px;
	border-radius: var(--agmt-r-small);
	background: var(--agmt-peach-50);
	color: var(--agmt-ink-2);
	font-size: 16px;
	line-height: 1.6;
}

/* ---------- Panel ---------- */
.agmt-layer { font-size: 18px; }
.agmt .agmt-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgb(42 34 41 / .22);
}
.agmt .agmt-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	/* Die Hälfte des Bildschirms, mindestens 480 px, auf schmalen Geräten ganze Breite. */
	width: min(100vw, max(480px, 50vw));
	background: var(--agmt-paper);
	box-shadow: -24px 0 60px rgb(0 0 0 / .16);
}
.agmt .agmt-drawer[hidden] { display: none !important; }
.agmt .agmt-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--agmt-line);
	background: #fff;
}
.agmt .agmt-drawer__t,
.agmt .agmt-modal__t {
	color: var(--agmt-ink);
	font-size: 18.5px !important;
	font-weight: 800;
	line-height: 1.15 !important;
	letter-spacing: -.005em;
}
.agmt .agmt-drawer__body { flex: 1; overflow: auto; padding: 22px; overscroll-behavior: contain; container-type: inline-size; }
.agmt .agmt-drawer__body > * + * { margin-top: 14px; }
/* Kopf des Panels: dieselbe Karte wie in der Liste, nur ohne Knopf. */
.agmt .agmt-ev--kopf { margin-top: 0; }
.agmt .agmt-ev--kopf .agmt-ev__side { min-width: 0; }
@container (max-width: 640px) {
	/* Schmales Panel: Platzanzeige unter den Text statt daneben. */
	.agmt .agmt-ev--kopf { grid-template-columns: 84px minmax(0, 1fr); gap: 8px 16px; }
	.agmt .agmt-ev--kopf .agmt-ev__side { grid-column: 2; align-items: flex-start; }
	.agmt .agmt-ev--kopf .agmt-ev__title { font-size: 19px !important; hyphens: auto; -webkit-hyphens: auto; }
}
@container (max-width: 480px) {
	/* Sehr schmal (Handy): wie die Karten in der Liste – Datum als Zeile über dem Text. */
	.agmt .agmt-ev--kopf { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.agmt .agmt-ev--kopf .agmt-ev__side { grid-column: 1 / -1; }
	.agmt .agmt-ev--kopf .agmt-ev__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
	.agmt .agmt-ev--kopf .agmt-ev__date b { display: inline; font-size: 24px; }
	.agmt .agmt-ev--kopf .agmt-ev__date span { margin-top: 0; }
}
.agmt .agmt-blatt__t { margin-top: 12px; font-size: 20px !important; line-height: 1.3 !important; }
.agmt .agmt-blatt .agmt-meta + .agmt-seats { margin-top: 12px; }
.agmt .agmt-blatt .agmt-meta { margin-top: 12px; }
.agmt .agmt-blatt .agmt-meta--fb { margin-top: 0; }
.agmt .agmt-kurz,
.agmt .agmt-hinweis {
	padding: 14px 16px;
	border-radius: var(--agmt-r-small);
	background: var(--agmt-peach-50);
	color: var(--agmt-ink);
	font-size: 15px;
	line-height: 1.55;
}
.agmt .agmt-hinweis { background: var(--agmt-rose-50); }
.agmt .agmt-facts { padding: 4px 18px; border: 1px solid var(--agmt-line); border-radius: var(--agmt-r-card); background: #fff; }
.agmt .agmt-facts > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 15px; line-height: 1.5; }
.agmt .agmt-facts > div + div { border-top: 1px solid var(--agmt-line); }
.agmt .agmt-facts dt { color: var(--agmt-ink); font-weight: 700; }
.agmt .agmt-facts dd { color: var(--agmt-ink-2); overflow-wrap: anywhere; }
.agmt .agmt-desc__t { margin-bottom: 6px; font-size: 16px !important; line-height: 1.3 !important; }
.agmt .agmt-desc p { color: var(--agmt-ink-2); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.agmt .agmt-desc p + p { margin-top: 10px; }
.agmt .agmt-reg { margin-top: 18px; }
.agmt .agmt-hint { margin-top: 12px; color: var(--agmt-ink-3); font-size: 13.5px; line-height: 1.5; text-align: center; }
.agmt .agmt-hint--oben { margin: 0 0 10px; text-align: left; }
.agmt .agmt-embed { overflow: hidden; border: 1px solid var(--agmt-line); border-radius: var(--agmt-r-small); background: #fff; }
.agmt .agmt-iframe { display: block; width: 100%; height: min(70vh, 900px); min-height: 520px; border: 0; }
.agmt .agmt-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; }
.agmt .agmt-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.agmt .agmt-links a:hover { text-decoration: underline; }
.agmt .agmt-links .agmt-ic { width: 17px; height: 17px; }

/* ---------- Schulungs-Finder ---------- */
.agmt .agmt-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100001;
	width: min(660px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	overflow: auto;
	transform: translate(-50%, -50%);
	border-radius: var(--agmt-r-blatt);
	background: var(--agmt-paper);
	box-shadow: 0 28px 70px rgb(60 20 45 / .2);
	overscroll-behavior: contain;
}
.agmt .agmt-modal[hidden] { display: none !important; }
.agmt .agmt-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.agmt .agmt-modal__body { padding: 18px 24px 24px; }
.agmt .agmt-wiz__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agmt .agmt-wiz__top .agmt-meta { margin: 0; white-space: nowrap; }
.agmt .agmt-wiz__prog { flex: 1; height: 6px; overflow: hidden; border-radius: 6px; background: var(--agmt-line); }
.agmt .agmt-wiz__fill { display: block; height: 100%; border-radius: 6px; background: var(--agmt-magenta); transition: width .3s; }
.agmt .agmt-wiz__fill--1 { width: 12%; }
.agmt .agmt-wiz__fill--2 { width: 56%; }
.agmt .agmt-wiz__fill--3 { width: 100%; }
.agmt .agmt-wiz__q { margin: 0 0 14px; color: var(--agmt-ink); font-size: 20px; font-weight: 700; line-height: 1.35; }
.agmt .agmt-opts { display: grid; gap: 10px; }
.agmt .agmt-opt {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 15px 18px;
	border: 1px solid var(--agmt-ui-border);
	border-radius: var(--agmt-r-small);
	background: #fff;
	color: var(--agmt-ink);
	font: 650 16px/1.5 var(--agmt-f-body, "Source Sans 3", "Segoe UI", system-ui, sans-serif);
	text-align: left;
	cursor: pointer;
}
.agmt .agmt-opt:hover { border-color: var(--agmt-magenta); background: var(--agmt-rose-50); }
.agmt .agmt-opt small { display: block; margin-top: 1px; color: var(--agmt-ink-2); font-size: 14px; font-weight: 500; line-height: 1.5; }
.agmt .agmt-opt .agmt-go { margin-left: auto; color: var(--agmt-ink-3); }
.agmt .agmt-res { overflow: hidden; border: 1px solid var(--agmt-line); border-radius: var(--agmt-r-card); background: #fff; }
.agmt .agmt-res__head { padding: 22px 24px 4px; }
.agmt .agmt-res__head small { display: block; margin-bottom: 6px; color: var(--agmt-cink); font-size: 15px; font-weight: 650; line-height: 1.3; }
.agmt .agmt-res__head h3 { font-size: 21.5px !important; line-height: 1.25 !important; }
.agmt .agmt-res__body { display: grid; gap: 14px; padding: 14px 24px 24px; }
.agmt .agmt-res__why { color: var(--agmt-ink); font-size: 17px; line-height: 1.6; }
.agmt .agmt-res__body > .agmt-meta { margin: 0; }
.agmt .agmt-res__nt { display: block; margin-bottom: 8px; }
.agmt .agmt-nextdates { margin-top: 6px; }
.agmt .agmt-nd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--agmt-line); font-size: 15px; line-height: 1.6; }
.agmt .agmt-nd b { min-width: 64px; font-weight: 800; }
.agmt .agmt-nd span { flex: 1 1 180px; color: var(--agmt-ink-2); }
.agmt .agmt-res__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.agmt .agmt-kontakt { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.agmt .agmt-kontakt a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.agmt .agmt-kontakt .agmt-ic { width: 18px; height: 18px; }

/* Seite hinter Panel/Dialog nicht scrollen */
html.agmt-offen,
html.agmt-offen body { overflow: hidden !important; }

/* ---------- Schmale Bildschirme ---------- */
@media (min-width: 901px) {
	.agmt .agmt-filterbox[open] > summary { display: none; }
}
@media (max-width: 900px) {
	.agmt-filterbox__in {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "suche" "formate" "schalter";
		margin-top: 12px;
	}
	.agmt-fchips--tog { justify-content: flex-start; }
	.agmt-kopf__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.agmt .agmt-blatt--werkzeug { justify-self: stretch; max-width: none; }
	.agmt .agmt-acc > summary { grid-template-columns: minmax(0, 1fr) 24px; }
	.agmt .agmt-acc__fakten { grid-column: 1; padding-left: 22px; }
	.agmt .agmt-pm { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
	.agmt { font-size: 17px; }
	/* Handy: Datum als Zeile über dem Text, damit Titel, Angaben und Pille die ganze Breite haben. */
	.agmt .agmt-ev { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
	.agmt .agmt-ev__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
	.agmt .agmt-ev__date b { display: inline; font-size: 24px; }
	.agmt .agmt-ev__date span { margin-top: 0; }
	.agmt .agmt-ev__title { font-size: 19px !important; hyphens: auto; -webkit-hyphens: auto; }
	.agmt .agmt-ev__side {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 8px 12px;
		min-width: 0;
	}
	.agmt .agmt-seats { white-space: normal; }
	.agmt .agmt-btn { white-space: normal; text-align: center; }
	.agmt .agmt-lead { font-size: 18px; }
	.agmt .agmt-modal { border-radius: var(--agmt-r-card); }
	.agmt .agmt-modal__head { padding: 16px 16px 0; }
	.agmt .agmt-modal__body { padding: 14px 16px 18px; }
	.agmt .agmt-drawer__body { padding: 16px; }
	.agmt .agmt-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- Kontrast, Druck, Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	.agmt *, .agmt *::before, .agmt *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
	.agmt .agmt-pill, .agmt .agmt-fchip, .agmt .agmt-btn, .agmt .agmt-opt { border: 2px solid ButtonText; }
	.agmt .agmt-zg { border: 1px solid CanvasText; }
	.agmt .agmt-fchip[aria-pressed="true"] { outline: 3px solid Highlight; }
	.agmt .agmt-bar { border: 1px solid CanvasText; }
	.agmt .agmt-bar::after { background: CanvasText; }
}
@media print {
	.agmt-filterbar, .agmt-mehr, .agmt-layer, .agmt .agmt-btn { display: none !important; }
	.agmt .agmt-ev { box-shadow: none; break-inside: avoid; }
}
