/*
 * SGB Kursportal – Teilnehmerportal Design V3.3 (0.7.20.286).
 * Grundlage: freigegebener Prototyp prototypes/teilnehmerportal-v32 (V3.3 final).
 * Hellblaugrauer Hintergrund, weisse Flächen mit feinem Rahmen, hellblaue Abschnittsköpfe,
 * Status als Pillen, SGB-Blau nur für Navigation, wichtige Aktionen, Auswahl und Fokus.
 *
 * Geladen NACH portal.css und teacher.css. Jede Regel ist auf
 * .sgb-kp-portal-shell--participant beschränkt: Lehrer- und Adminportal, Checkout und
 * öffentliche Website bleiben unverändert. Reine Darstellung, keine Logik.
 */

.sgb-kp .sgb-kp-portal-shell--participant {
	--v33-blue: #0057b8;
	--v33-deep: #00468f;
	--v33-wash: #eaf2fb;
	--v33-wash-line: #d5e3f3;
	--v33-line: #dfe6ee;
	--v33-bg: #f1f5f9;
	--v33-ink: #16212c;
	--v33-ink-2: #3b4856;
	--v33-muted: #5b6b7b;
	--v33-ok: #17673e;
	--v33-ok-bg: #edf7f1;
	--v33-ok-line: #cfe8d9;
	--v33-warn: #7a4f00;
	--v33-warn-bg: #fdf3dd;
	--v33-warn-line: #f0dca8;
	--v33-done-bg: #f2f4f6;
	--sgb-background: var(--v33-bg);
	background: var(--v33-bg);
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__content { background: var(--v33-bg); }

/* ---------- Rahmen (0.7.20.288): wie im Adminportal links neben der Seitenleiste beginnend,
   nutzt die verfügbare Breite bis 1680 px; Textzeilen begrenzen die Bausteine selbst. ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main {
	width: 100%;
	max-width: 1680px;
	margin: 0;
	padding: 8px clamp(24px, 3vw, 48px) 48px;
	color: var(--v33-ink);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main > * { margin-top: 0; margin-bottom: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main :focus-visible {
	outline: 2px solid var(--v33-blue);
	outline-offset: 2px;
}

/* Seitentitel und Einleitung einheitlich */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__h1,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-part-dash__hello,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__welcome h2 {
	margin: 0;
	color: var(--v33-ink);
	font-size: 1.75rem;
	line-height: 1.25;
	font-weight: 650;
	letter-spacing: -0.01em;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__lead,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-part-dash__lead {
	margin: -10px 0 0;
	max-width: 52rem;
	color: var(--v33-ink-2);
	font-size: .95rem;
	line-height: 1.5;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__welcome { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-empty {
	margin: 0;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	color: var(--v33-ink-2);
	text-align: left;
	box-shadow: none;
}

/* ---------- Bausteine ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel {
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	overflow: hidden;
	min-width: 0;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__head,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__title,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending__title,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models__title,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-layout__h2,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card > h2,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-sec__title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 8px 20px;
	box-sizing: border-box;
	background: var(--v33-wash);
	border-bottom: 1px solid var(--v33-wash-line);
	color: var(--v33-deep);
	font-size: .875rem;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__count {
	margin-left: auto;
	padding: 0 8px;
	border: 1px solid var(--v33-wash-line);
	border-radius: 999px;
	background: #fff;
	color: var(--v33-deep);
	font-size: .75rem;
	line-height: 20px;
	font-weight: 600;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel--open { border-color: #ecd9ab; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel--open .sgb-kp-v33-panel__head { background: #fdf6e7; border-bottom-color: #f1e2bd; color: var(--v33-warn); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel--open .sgb-kp-v33-panel__count { border-color: #f1e2bd; color: var(--v33-warn); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__info {
	margin: 0;
	padding: 12px 20px;
	border-bottom: 1px solid var(--v33-line);
	color: var(--v33-ink-2);
	font-size: .875rem;
	line-height: 1.5;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__foot {
	margin: 0;
	padding: 10px 20px;
	border-top: 1px solid var(--v33-line);
	color: var(--v33-muted);
	font-size: .8125rem;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-empty {
	margin: 0;
	padding: 16px 20px;
	color: var(--v33-ink-2);
	font-size: .9375rem;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-empty span { display: block; margin-top: 2px; color: var(--v33-muted); font-size: .875rem; }

/* Zeilenliste */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-rows { list-style: none; margin: 0; padding: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 14px 20px;
	border-top: 1px solid var(--v33-line);
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row:first-child { border-top: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row__title { color: var(--v33-ink); font-size: .9375rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row__meta { color: var(--v33-ink-2); font-size: .875rem; overflow-wrap: anywhere; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row__side { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

/* Status-Pillen */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pill,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-status,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-badge,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-badge--status,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card__state {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	width: auto;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--v33-line);
	border-radius: 999px;
	background: var(--v33-done-bg);
	color: var(--v33-muted);
	font-size: .8125rem;
	line-height: 24px;
	font-weight: 600;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pill::before,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-status::before,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-badge::before,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-badge--status::before,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card__state::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pill--ok,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-status--ok,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-badge--active,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card__state { background: var(--v33-ok-bg); border-color: var(--v33-ok-line); color: var(--v33-ok); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pill--warn,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-status--warn,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-badge--pending { background: var(--v33-warn-bg); border-color: var(--v33-warn-line); color: var(--v33-warn); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pill--action,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-status--action,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-badge--available { background: var(--v33-wash); border-color: var(--v33-wash-line); color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-status::before { flex-basis: 6px; width: 6px; height: 6px; background: currentColor; }

/* Schaltflächen und Links */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	cursor: pointer;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-btn--primary { background: var(--v33-blue); color: #fff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-btn--primary:hover { background: var(--v33-deep); color: #fff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-btn--secondary { background: #fff; border-color: var(--v33-wash-line); color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-btn--secondary:hover { background: var(--v33-wash); border-color: var(--v33-blue); color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-link {
	color: var(--v33-blue);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-link:hover { text-decoration: underline; }
/* Ausreichend grosse Klickfläche für Textlinks ausserhalb von Fliesstext (min. 32 px). */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row .sgb-kp-v33-link,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__foot .sgb-kp-v33-link,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-links a { display: inline-flex; align-items: center; min-height: 32px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-muted { color: var(--v33-muted); font-size: .8125rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tag {
	display: inline-block;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--v33-warn-bg);
	color: var(--v33-warn);
	font-size: .75rem;
	line-height: 20px;
	font-weight: 600;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-fine { margin: 0; color: var(--v33-muted); font-size: .8125rem; line-height: 1.5; }

/* Bestehende Portal-Schaltflächen ruhiger (gleiche Funktion, V3.3-Optik) */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-btn {
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: .875rem;
	font-weight: 600;
	box-shadow: none;
	width: auto;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-btn--primary,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main button.sgb-kp-btn:not(.sgb-kp-btn--ghost) { background: var(--v33-blue); border-color: var(--v33-blue); color: #fff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-btn--primary:hover,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main button.sgb-kp-btn:not(.sgb-kp-btn--ghost):hover { background: var(--v33-deep); border-color: var(--v33-deep); color: #fff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-btn--ghost { background: #fff; border: 1px solid var(--v33-wash-line); color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-btn--ghost:hover { background: var(--v33-wash); border-color: var(--v33-blue); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-btn[disabled],
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-btn[aria-disabled="true"] { background: #f6f8fa; border-color: var(--v33-line); color: var(--v33-muted); cursor: default; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .is-busy { opacity: .7; cursor: progress; }

/* Nur für Bildschirmleser (falls das Theme die Klasse nicht definiert) */
.sgb-kp .sgb-kp-portal-shell--participant .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hinweise / Meldungen */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-notice,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-notice { margin: 0; border-radius: 10px; }

/* ---------- 1. Übersicht ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash { display: flex; flex-direction: column; gap: 16px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash .sgb-kp-part-dash__head { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash .sgb-kp-part-dash__lead { margin-top: 4px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 16px;
	align-items: start;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash__main,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next__when { display: flex; flex-direction: column; margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next__date { color: var(--v33-muted); font-size: .875rem; text-transform: capitalize; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next__time { color: var(--v33-ink); font-size: 1.5rem; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next__main { min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next__name { margin: 0; color: var(--v33-ink); font-size: 1.0625rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next__meta,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next__sku { margin: 2px 0 0; color: var(--v33-ink-2); font-size: .875rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-notice--payment .sgb-kp-v33-row__title { color: var(--v33-warn); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-glance,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-quick { list-style: none; margin: 0; padding: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-glance a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 11px 20px;
	border-top: 1px solid var(--v33-line);
	color: var(--v33-ink);
	font-size: .875rem;
	text-decoration: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-glance li:first-child a,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-quick li:first-child a { border-top: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-glance a:hover,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-quick a:hover { background: #f7fafd; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-glance span { color: var(--v33-ink-2); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-glance strong { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-quick a {
	display: flex;
	flex-direction: column;
	padding: 11px 20px;
	border-top: 1px solid var(--v33-line);
	color: var(--v33-deep);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-quick span { color: var(--v33-muted); font-size: .8125rem; font-weight: 400; }

/* Neueinteilungs-Karte (bestehender Hook, Inhalt unverändert): ruhige V3.3-Fläche */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-card {
	margin: 0;
	padding: 16px 20px;
	background: var(--v33-wash);
	border: 1px solid var(--v33-wash-line);
	border-left: 3px solid var(--v33-blue);
	border-radius: 12px;
	box-shadow: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-card--info { background: #fff; border-color: var(--v33-line); border-left-color: #cdd5dd; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-card__eyebrow { color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-card__title { color: var(--v33-ink); font-size: 1.125rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-card__text { color: var(--v33-ink-2); font-size: .9375rem; }

/* ---------- 2. Meine Kurse (Struktur 0.7.20.285, V3.3-Optik) ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk { max-width: none; gap: 16px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk__lead { margin-top: 4px; color: var(--v33-ink-2); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-sec,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-past .sgb-kp-mk-list { border-color: var(--v33-line); border-radius: 12px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-row { border-top-color: var(--v33-line); padding-left: 20px; padding-right: 20px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-sec__title + .sgb-kp-mk-list > .sgb-kp-mk-row:first-child { border-top: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-note { border-left-color: var(--v33-blue); background: var(--v33-wash); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-note--warn { border-left-color: #c58a00; background: #fdf6e7; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-note--quiet { border-left-color: #cdd5dd; background: #f6f8fa; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-extra { background: #fff; border-color: #e2c98a; border-radius: 12px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-past__toggle { color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk-link { color: var(--v33-blue); }

/* ---------- 3. Kurse finden ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-find { display: flex; flex-direction: column; gap: 16px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-find > * { margin-top: 0; margin-bottom: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paidnote {
	margin: -6px 0 0;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-left: 3px solid #c58a00;
	border-radius: 8px;
	color: var(--v33-ink-2);
	font-size: .875rem;
	line-height: 1.5;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paidnote .sgb-kp-v33-link { white-space: normal; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-find__external { margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-angebot-picker { gap: 16px; margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-angebot-card {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	box-shadow: none;
	text-align: left;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-angebot-card:hover,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-angebot-card:focus-within { border-color: var(--v33-blue); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-angebot-card__title { margin: 0 0 4px; color: var(--v33-ink); font-size: 1.25rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-angebot-card__hint { margin: 0 0 14px; color: var(--v33-ink-2); font-size: .9375rem; }

/* ---------- 4. Mitgliedschaft ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models {
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending { border-color: #ecd9ab; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending__title { background: #fdf6e7; border-bottom-color: #f1e2bd; color: var(--v33-warn); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__card,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 18px 20px 20px;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__empty { margin: 0; padding: 16px 20px; color: var(--v33-ink-2); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 24px;
	margin: 0;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__row { display: block; margin: 0; padding: 0; border: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__row dt { margin: 0; color: var(--v33-muted); font-size: .8125rem; font-weight: 400; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__row dd { margin: 2px 0 0; color: var(--v33-ink); font-size: .9375rem; overflow-wrap: anywhere; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__row dd a { color: var(--v33-blue); font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending__hint { margin: 0; color: var(--v33-ink-2); font-size: .875rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models__lead { margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--v33-line); color: var(--v33-ink-2); font-size: .875rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models > .sgb-kp-empty { margin: 16px 20px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 20px;
}
/* Modelle neutral; Blau nur für die aktive Auswahl (Fokus/Hover) bzw. das aktuelle Modell. */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 10px;
	box-shadow: none;
	transform: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model:hover,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model:focus-within { border-color: var(--v33-blue); box-shadow: 0 0 0 1px var(--v33-blue); transform: none; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model--current { background: #f7fbff; border-color: var(--v33-wash-line); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model .sgb-kp-mem-badge--available { display: none; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-membership-model__title { margin: 2px 0 0; color: var(--v33-ink); font-size: 1.0625rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-membership-model__price { order: 2; margin: 2px 0 0; color: var(--v33-ink); font-size: 1.375rem; line-height: 1.35; font-weight: 600; font-variant-numeric: tabular-nums; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model__duration,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model__hint,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-membership-model__detail { order: 3; margin: 0; color: var(--v33-ink-2); font-size: .875rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model__hint { color: var(--v33-muted); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model .sgb-kp-btn,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model__form { order: 4; align-self: flex-start; margin-top: auto; padding-top: 10px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model__form .sgb-kp-btn { padding-top: 8px; margin-top: 0; }
/* Auswahl-Schaltflächen sekundär: das Modell wird erst mit der Wahl hervorgehoben. */
/* frontend.css sichert .sgb-kp-btn--primary mit !important ab; hier eng begrenzt übersteuert. */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-mem-model .sgb-kp-btn--primary,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-mem-model .sgb-kp-btn--primary:link,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-mem-model .sgb-kp-btn--primary:visited { background: #fff !important; border: 1px solid var(--v33-wash-line); color: var(--v33-deep) !important; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-mem-model .sgb-kp-btn--primary:hover,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-mem-model .sgb-kp-btn--primary:focus { background: var(--v33-wash) !important; border-color: var(--v33-blue); color: var(--v33-deep) !important; }
/* Konfiguration (Altersgruppe/Hallenbad) */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-configure {
	display: grid;
	gap: 14px;
	max-width: 640px;
	margin: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--v33-blue);
	border-radius: 12px;
	box-shadow: 0 0 0 1px var(--v33-blue);
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-configure__row { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-configure label,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-configure__label { color: var(--v33-ink-2); font-size: .875rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-configure__price { font-size: 1.25rem; color: var(--v33-ink); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-configure__actions { margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-back { color: var(--v33-blue); font-weight: 600; text-decoration: none; }

/* ---------- 5. Zahlungen ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 110px 170px 290px;
	align-items: center;
	column-gap: 20px;
	row-gap: 6px;
	padding: 14px 20px;
	border-top: 1px solid var(--v33-line);
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row:first-child { border-top: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--head {
	padding-top: 10px;
	padding-bottom: 10px;
	background: #fafbfc;
	color: var(--v33-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--head .sgb-kp-v33-paytable__last { text-align: right; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--open { background: #fffdf8; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--muted .sgb-kp-v33-pt-order strong,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--muted .sgb-kp-v33-pt-amount { color: var(--v33-muted); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-num { text-align: right; font-variant-numeric: tabular-nums; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-date { color: var(--v33-ink-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-order { display: flex; flex-direction: column; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-order strong { color: var(--v33-ink); font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-sub { color: var(--v33-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: -2px; margin-bottom: -6px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-links a { color: var(--v33-blue); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-links a:hover { text-decoration: underline; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-amount { color: var(--v33-ink); font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pt-action { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-receipt {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid var(--v33-wash-line);
	border-radius: 8px;
	background: #fff;
	color: var(--v33-deep);
	font-size: .8125rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-receipt:hover { background: var(--v33-wash); border-color: var(--v33-blue); }

/* ---------- 6. Nachrichten ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-badge-line { margin: -6px 0 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	margin: 0;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-layout__list,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-layout__compose {
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
	min-width: 0;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-layout__list > .sgb-kp-empty { border: 0; border-radius: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-cards { display: block; list-style: none; margin: 0; padding: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 16px;
	margin: 0;
	padding: 12px 20px;
	background: none;
	border: 0;
	border-top: 1px solid var(--v33-line);
	border-radius: 0;
	box-shadow: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card:first-child { border-top: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card.is-unread { box-shadow: inset 3px 0 0 var(--v33-blue); background: #f7fbff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card__top { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card__id { color: var(--v33-muted); font-size: .8125rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card__subject { grid-column: 1; margin: 0; color: var(--v33-ink); font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card__actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-badge--read.is-unread { background: var(--v33-blue); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; line-height: 20px; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-form,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-reply { display: grid; gap: 12px; margin: 0; padding: 16px 20px 20px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-form p { margin: 0; }

/* Formularfelder im Teilnehmerportal (Nachrichten, Profil, Mitgliedschaft) */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main label { color: var(--v33-ink-2); font-size: .875rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main input[type="text"],
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main input[type="email"],
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main input[type="tel"],
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main input[type="date"],
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main input[type="password"],
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main select,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid #cdd5dd;
	border-radius: 8px;
	background: #fff;
	color: var(--v33-ink);
	font-size: 1rem;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main textarea { min-height: 120px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main input:focus,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main select:focus,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main textarea:focus { border-color: var(--v33-blue); outline: 2px solid var(--v33-blue); outline-offset: 0; }

/* ---------- 7. Dokumente: nutzt Panel und Zeilenliste ---------- */

/* ---------- 8. Umfragen ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-list { display: flex; flex-direction: column; gap: 16px; max-width: 960px; margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card {
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card > h2 { font-size: .9375rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card__intro { margin: 0; padding: 14px 20px 0; color: var(--v33-ink-2); font-size: .9375rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card > .sgb-kp-survey-card__state { margin: 14px 20px 16px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-form { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 16px 20px 20px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-question { margin: 0; padding: 0; border: 0; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-question legend { margin: 0 0 8px; padding: 0; color: var(--v33-ink); font-size: .9375rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card__hint { margin: -4px 0 8px; color: var(--v33-muted); font-size: .8125rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-options { display: grid; gap: 8px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	box-sizing: border-box;
	border: 1px solid var(--v33-line);
	border-radius: 10px;
	background: #fff;
	color: var(--v33-ink);
	font-size: .9375rem;
	font-weight: 400;
	cursor: pointer;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-option:hover { border-color: var(--v33-wash-line); background: #f7fafd; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-option:has(input:checked) { border-color: var(--v33-blue); background: var(--v33-wash); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-option:focus-within { outline: 2px solid var(--v33-blue); outline-offset: 1px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--v33-blue); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-form > .sgb-kp-btn { align-self: flex-start; }

/* ---------- 9. Mein Profil ---------- */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__welcome,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tabs,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main > .sgb-kp-notice { width: 100%; max-width: none; box-sizing: border-box; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile { width: 100%; max-width: 1320px; box-sizing: border-box; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tabs {
	display: flex;
	gap: 4px;
	margin: -4px 0 0;
	border-bottom: 1px solid var(--v33-line);
	overflow-x: auto;
	scrollbar-width: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tabs__tab {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	color: var(--v33-ink-2);
	font-size: .9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tabs__tab:hover { color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tabs__tab.is-on { border-bottom-color: var(--v33-blue); color: var(--v33-deep); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile {
	margin: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	box-shadow: none;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile--read { display: flex; flex-direction: column; gap: 18px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilephoto { margin: 0; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--v33-line); border-radius: 0; background: none; box-shadow: none; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilelist {
	border: 0;
	border-radius: 0;
	overflow: visible;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 24px;
	margin: 0;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilelist--readonly { padding-top: 16px; border-top: 1px solid var(--v33-line); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilerow { display: block; margin: 0; padding: 0; border: 0; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilerow dt { margin: 0; color: var(--v33-muted); font-size: .8125rem; font-weight: 400; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilerow dd { margin: 2px 0 0; color: var(--v33-ink); font-size: .9375rem; overflow-wrap: anywhere; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profileactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--v33-line); }

/* ---------- Tablet ---------- */
@media (max-width: 1280px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row { grid-template-columns: 96px minmax(0, 1fr) 110px 170px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row .sgb-kp-v33-pt-action { grid-column: 2 / -1; justify-content: flex-start; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--head .sgb-kp-v33-paytable__last { display: none; }
}
@media (max-width: 1100px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main { padding-left: 24px; padding-right: 24px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash__grid { grid-template-columns: minmax(0, 1fr); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash__side .sgb-kp-v33-fine { grid-column: 1 / -1; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__list,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilelist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main { padding: 4px 12px 32px; gap: 14px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__h1,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-part-dash__hello,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__welcome h2 { font-size: 1.5rem; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__head,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__title,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending__title,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models__title,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-layout__h2,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card > h2,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-sec__title { padding: 8px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row { flex-wrap: wrap; padding: 12px 16px; gap: 8px 12px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-row__side { width: 100%; justify-content: space-between; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__info,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-panel__foot,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-empty { padding-left: 16px; padding-right: 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-dash__side { grid-template-columns: minmax(0, 1fr); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-next .sgb-kp-v33-btn { justify-self: start; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-glance a,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-quick a { padding: 11px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mk .sgb-kp-mk-row { padding-left: 16px; padding-right: 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__card,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-pending__card { padding: 14px 16px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__list,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilelist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models__grid { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-models__lead { padding: 12px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-configure { padding: 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-support-card { padding: 12px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-msg-form { padding: 14px 16px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card__intro { padding: 12px 16px 0; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-form { padding: 14px 16px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-survey-card > .sgb-kp-survey-card__state { margin: 12px 16px 14px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile { padding: 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: visible; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-tabs__tab { justify-content: center; padding: 6px 4px; white-space: normal; text-align: center; font-size: .875rem; line-height: 1.25; }
	/* Zahlungen: gestapelt, nichts abgeschnitten */
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--head { display: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row .sgb-kp-v33-pt-order { grid-column: 1 / -1; grid-row: 1; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row .sgb-kp-v33-pt-date { grid-column: 1; grid-row: 2; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row .sgb-kp-v33-pt-amount { grid-column: 2; grid-row: 2; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row .sgb-kp-v33-pt-status { grid-column: 1 / -1; grid-row: 3; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row .sgb-kp-v33-pt-action { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-paytable__row--open .sgb-kp-v33-pt-action .sgb-kp-v33-btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-current__list,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilelist { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-mem-model { transition: none; }
}

/* =====================================================================
 * 0.7.20.288 – Nachrichten als Messenger (nur Teilnehmer-Shell)
 * Links Unterhaltungen, rechts Verlauf. Eigene Nachrichten rechts (hellblau),
 * Nachrichten der SGB-Administration links (weiss). Mobile: Liste ODER Verlauf.
 * ===================================================================== */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pill--done { background: var(--v33-done-bg); border-color: var(--v33-line); color: var(--v33-muted); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pill--neutral { background: #fff; border-color: var(--v33-line); color: var(--v33-ink-2); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat {
	display: grid;
	grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
	height: clamp(560px, calc(100vh - 230px), 880px);
	background: #fff;
	border: 1px solid var(--v33-line);
	border-radius: 12px;
	overflow: hidden;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__list {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	border-right: 1px solid var(--v33-line);
	background: #fbfcfe;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__listhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 12px 16px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--v33-line);
	background: var(--v33-wash);
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__listhead h2 { margin: 0; color: var(--v33-deep); font-size: .9375rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__threads { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__threads li { margin: 0; padding: 0; border-bottom: 1px solid var(--v33-line); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread {
	display: grid;
	gap: 3px;
	padding: 12px 16px 12px 18px;
	color: var(--v33-ink);
	text-decoration: none;
	box-shadow: inset 3px 0 0 transparent;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread:hover { background: #f3f7fc; color: var(--v33-ink); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-active { background: var(--v33-wash); box-shadow: inset 3px 0 0 var(--v33-blue); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread:focus-visible { outline: 2px solid var(--v33-blue); outline-offset: -2px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__trow { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__tsubject { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__twhen { flex: 0 0 auto; color: var(--v33-muted); font-size: .75rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__tcat { color: var(--v33-deep); font-size: .75rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-closed .sgb-kp-v33-chat__tcat { color: var(--v33-muted); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__tpreview { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--v33-ink-2); font-size: .8125rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-unread .sgb-kp-v33-chat__tpreview { color: var(--v33-ink); font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-unread .sgb-kp-v33-chat__twhen { color: var(--v33-blue); font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__tunread {
	flex: 0 0 auto;
	min-width: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--v33-blue);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-sizing: border-box;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__empty { margin: 0; padding: 20px 16px; color: var(--v33-ink-2); font-size: .9375rem; line-height: 1.5; }

.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 64px;
	padding: 12px 24px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--v33-line);
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__back { display: none; align-self: flex-start; min-height: 32px; align-items: center; gap: 6px; color: var(--v33-blue); font-size: .875rem; font-weight: 600; text-decoration: none; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__title { margin: 0; color: var(--v33-ink); font-size: 1.0625rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--v33-muted); font-size: .8125rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__log {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 24px;
	background: #f6f8fb;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__log:focus-visible { outline: 2px solid var(--v33-blue); outline-offset: -2px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__day { display: flex; justify-content: center; margin: 6px 0 2px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__day span { padding: 2px 10px; border: 1px solid var(--v33-line); border-radius: 999px; background: #fff; color: var(--v33-muted); font-size: .75rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__msg { display: flex; flex-direction: column; max-width: min(72%, 640px); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__msg.is-mine { align-self: flex-end; align-items: flex-end; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__msg.is-theirs { align-self: flex-start; align-items: flex-start; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__from { margin: 0 0 3px 4px; color: var(--v33-muted); font-size: .75rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__bubble {
	padding: 10px 14px;
	border: 1px solid var(--v33-line);
	border-radius: 14px 14px 14px 4px;
	background: #fff;
	color: var(--v33-ink);
	font-size: .9375rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__msg.is-mine .sgb-kp-v33-chat__bubble { border-color: #cfe0f4; border-radius: 14px 14px 4px 14px; background: #e3eefb; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__time { margin: 3px 6px 0; color: var(--v33-muted); font-size: .75rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__composer {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	margin: 0;
	padding: 12px 24px 6px;
	border-top: 1px solid var(--v33-line);
	background: #fff;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__main .sgb-kp-v33-chat__composer textarea { flex: 1 1 auto; min-height: 44px; max-height: 200px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__composer .sgb-kp-v33-btn { min-height: 44px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__hint { margin: 0; padding: 0 24px 10px; color: var(--v33-muted); font-size: .75rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__closed { margin: 0; padding: 14px 24px; border-top: 1px solid var(--v33-line); background: var(--v33-done-bg); color: var(--v33-ink-2); font-size: .875rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__placeholder { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; color: var(--v33-ink-2); text-align: center; background: #f6f8fb; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__placeholder p { margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newform { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px 24px; overflow-y: auto; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newform p { margin: 0; max-width: 820px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newform label { display: block; margin: 0 0 6px; color: var(--v33-ink); font-size: .875rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newgrid { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 14px 16px; max-width: 820px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newactions { display: flex; flex-wrap: wrap; gap: 8px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newform .sgb-kp-v33-chat__hint { padding: 0; }

@media (max-width: 860px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat { grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__list { border-right: 0; border-radius: 12px; overflow: hidden; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__pane { border-radius: 12px; overflow: hidden; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat.is-list .sgb-kp-v33-chat__pane,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat.is-thread .sgb-kp-v33-chat__list,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat.is-compose .sgb-kp-v33-chat__list { display: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__back { display: inline-flex; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__threads { overflow: visible; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__threads li:last-child { border-bottom: 0; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__log { overflow: visible; min-height: 240px; }
}
@media (max-width: 640px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__listhead,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__head { padding: 10px 14px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread { padding: 12px 14px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__log { padding: 14px 12px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__msg { max-width: 88%; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__composer { position: sticky; bottom: 0; padding: 10px 12px 4px; z-index: 2; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__hint { padding: 0 12px 10px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__closed { padding: 12px 14px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newform { padding: 14px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__newgrid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
 * 0.7.20.288 – Mein Profil: Abschnitte, Profilbild rechts, Formular zweispaltig
 * ===================================================================== */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile--read.sgb-kp-v33-profile {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 16px;
	padding: 0;
	background: none;
	border: 0;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__group .sgb-kp-portal__profilelist { padding: 16px 20px 18px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profilerow--wide { grid-column: 1 / -1; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__health { margin: 0; border-top: 1px solid var(--v33-line); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__health > summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	color: var(--v33-blue);
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__health > summary:focus-visible { outline: 2px solid var(--v33-blue); outline-offset: -2px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__health[open] > summary { border-bottom: 1px solid var(--v33-line); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile .sgb-kp-portal__profileactions { padding-top: 0; border-top: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__photo .sgb-kp-portal__profilephoto { padding: 0; border: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__photo .sgb-kp-portal__profilephoto-title {
	min-height: 44px;
	margin: 0;
	padding: 12px 20px;
	box-sizing: border-box;
	background: var(--v33-wash);
	border-bottom: 1px solid var(--v33-wash-line);
	color: var(--v33-deep);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.4;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__photo .sgb-kp-portal__profilephoto-content { justify-content: center; padding: 20px; }
/* Bearbeiten: Gruppen mit Überschrift, Felder nebeneinander */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile:not(.sgb-kp-portal__profile--read) { max-width: 1120px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile fieldset.sgb-kp-v33-pfgroup { margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--v33-line); min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile fieldset.sgb-kp-v33-pfgroup + fieldset.sgb-kp-v33-pfgroup { margin-top: 20px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile fieldset.sgb-kp-v33-pfgroup legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: var(--v33-deep); font-size: .9375rem; font-weight: 650; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile fieldset.sgb-kp-v33-pfgroup legend + * { clear: both; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgrid > p { margin: 0; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgrid > .sgb-kp-v33-pfgrid__wide { grid-column: 1 / -1; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgrid label,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgroup--health label { display: block; margin: 0 0 6px; color: var(--v33-ink); font-size: .875rem; font-weight: 600; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgroup--health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgroup--health > p { margin: 0; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgroup--health > .sgb-kp-portal__hint,
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgroup--health > .sgb-kp-portal__consent { grid-column: 1 / -1; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgroup--health .sgb-kp-portal__hint { display: block; margin-top: 4px; color: var(--v33-muted); font-size: .8125rem; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile:not(.sgb-kp-portal__profile--read) .sgb-kp-portal__profileactions { margin-top: 20px; }
@media (max-width: 1100px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-portal__profile--read.sgb-kp-v33-profile { grid-template-columns: minmax(0, 1fr); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__photo { order: -1; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__photo .sgb-kp-portal__profilephoto-content { justify-content: flex-start; padding: 16px 20px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__group .sgb-kp-portal__profilelist { padding: 14px 16px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__health > summary { padding: 0 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-profile__photo .sgb-kp-portal__profilephoto-title { padding: 12px 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgrid,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-pfgroup--health { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
 * 0.7.20.288 – Meine Kurse: Neueinteilungsauswahl responsiv
 * Desktop: Tabelle scrollt bei Bedarf in ihrem eigenen Rahmen.
 * Smartphone: jede Zeile als Karte (Spaltenreihenfolge fest aus render_participant_select()).
 * ===================================================================== */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal { margin: 0; padding: 20px; border-radius: 12px; border-color: var(--v33-wash-line); border-left-color: var(--v33-blue); background: var(--v33-wash); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-sel__title { color: var(--v33-ink); font-size: 1.125rem; font-weight: 650; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-sel__text { color: var(--v33-ink-2); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-sel__subtitle { color: var(--v33-deep); font-size: .9375rem; font-weight: 650; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-tablewrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--v33-line); border-radius: 10px; background: #fff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table { width: 100%; margin: 0; border-collapse: collapse; border-radius: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table th { padding: 10px 12px; background: #f6f8fb; color: var(--v33-muted); font-size: .8125rem; font-weight: 600; text-align: left; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td { padding: 10px 12px; border-top: 1px solid var(--v33-line); color: var(--v33-ink); font-size: .9375rem; vertical-align: middle; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table tr:has(input:checked) td { background: var(--v33-wash); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:first-child label { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; cursor: pointer; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--v33-blue); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table select { min-width: 160px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(4) { white-space: nowrap; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal__form > p { margin: 14px 0 0; }
@media (max-width: 640px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal { padding: 16px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-tablewrap { overflow: visible; border: 0; background: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table,
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table tbody { display: block; background: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table thead { display: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table tr {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 2px 8px;
		margin: 0 0 10px;
		padding: 12px 14px 14px 8px;
		border: 1px solid var(--v33-line);
		border-radius: 10px;
		background: #fff;
	}
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table tr:has(input:checked) { border-color: var(--v33-blue); background: var(--v33-wash); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table tr:has(input:checked) td { background: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td { display: block; grid-column: 2; padding: 0; border: 0; font-size: .875rem; white-space: normal; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:first-child { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(2) { font-size: .9375rem; font-weight: 600; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(3)::before { content: "Wochentag: "; color: var(--v33-muted); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(4)::before { content: "Zeit: "; color: var(--v33-muted); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(5)::before { content: "Niveau: "; color: var(--v33-muted); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(6)::before { content: "Freie Plätze: "; color: var(--v33-muted); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(7) { margin-top: 8px; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table td:nth-child(7)::before { content: "Einstiegsdatum"; display: block; margin-bottom: 4px; color: var(--v33-muted); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal .sgb-kp-table select { width: 100%; min-width: 0; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-reassign-portal__form .sgb-kp-btn { width: 100%; }
}

/* =====================================================================
 * 0.7.20.288 – Mitgliedschaft: Gruppen Mitgliedschaft / Kosten / Zahlung
 * ===================================================================== */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgrid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup { min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--v33-line); border-radius: 10px; background: #fff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup__title { margin: 0 0 12px; color: var(--v33-deep); font-size: .875rem; font-weight: 650; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup .sgb-kp-mem-current__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup:first-child .sgb-kp-mem-current__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup--costs { background: #f7fbff; border-color: var(--v33-wash-line); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memprice dd { color: var(--v33-ink); font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup--costs .sgb-kp-mem-current__row--aquafem-costs { margin: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup--costs .sgb-kp-mem-aquafem-costs__row--total { font-size: 1.125rem; }
@media (max-width: 1100px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgrid { grid-template-columns: minmax(0, 1fr); }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-memgroup:first-child .sgb-kp-mem-current__list { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 0.7.20.289: Nachrichten – automatische Auswahl, Ungelesen-Hervorhebung, Menü-Zähler ===== */
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-shell__link .sgb-kp-shell__link-text { flex: 1 1 auto; min-width: 0; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-nav-badge {
	flex: 0 0 auto;
	min-width: 22px;
	margin-left: auto;
	padding: 0 7px;
	border-radius: 999px;
	background: #fff;
	color: var(--sgb-primary, #0057B8);
	font-size: .75rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-sizing: border-box;
}
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-unread { background: #eef5ff; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-unread:not(.is-active) { box-shadow: inset 3px 0 0 #7fb2ea; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-unread .sgb-kp-v33-chat__tsubject { font-weight: 750; }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__thread.is-active.is-unread { background: var(--v33-wash); }
.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat__tnew {
	flex: 0 0 auto;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--v33-blue);
	color: #fff;
	font-size: .6875rem;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: .02em;
}
@media (max-width: 860px) {
	/* Automatische Auswahl: auf dem Smartphone zuerst die Liste (Unterhaltung öffnet erst per Tipp). */
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat.is-thread.is-auto .sgb-kp-v33-chat__list { display: flex; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat.is-thread.is-auto .sgb-kp-v33-chat__pane { display: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat.is-auto .sgb-kp-v33-chat__thread.is-active:not(.is-unread) { background: transparent; box-shadow: none; }
	.sgb-kp .sgb-kp-portal-shell--participant .sgb-kp-v33-chat.is-auto .sgb-kp-v33-chat__thread.is-active.is-unread { background: #eef5ff; box-shadow: inset 3px 0 0 #7fb2ea; }
}

/* =====================================================================
 * 0.7.20.300 – Theme-Neutralisierung (Blocksy): button[type=submit] { width: 100% } machte
 * «Senden» im Messenger zeilenbreit (Eingabefeld halbiert). Spezifität (0,2,0) über dem Theme (0,1,1):
 * eigene Breitenregeln (z. B. Umfragen/Neueinteilung mobil 100 %) gewinnen weiterhin.
 * ===================================================================== */
.sgb-kp .sgb-kp-portal-shell--participant :where(button[type="submit"]) { width: auto; }
/* Theme: 8 px Aussenabstand nur bei Text-/Datumsfeldern (nicht bei Auswahlfeldern) – Felder in einer
 * Zeile standen versetzt (z. B. «Kategorie» neben «Betreff»). Knapp über dem Theme, unter eigenen Regeln. */
.sgb-kp .sgb-kp-portal-shell--participant :where(input[type="text"]),
.sgb-kp .sgb-kp-portal-shell--participant :where(input[type="email"]),
.sgb-kp .sgb-kp-portal-shell--participant :where(input[type="date"]),
.sgb-kp .sgb-kp-portal-shell--participant :where(input[type="tel"]),
.sgb-kp .sgb-kp-portal-shell--participant :where(textarea) { margin-top: 0; margin-bottom: 0; }
