/* SVASS Mitarbeiterausweis - Formular und Verwaltung */
.ma {
	--ma-text: #1f2937;
	--ma-leise: #5b6472;
	--ma-rand: #d4d8de;
	--ma-flaeche: #f5f6f8;
	--ma-akzent: #1d4f91;
	--ma-akzent-dunkel: #163d70;
	--ma-ok: #1e6b3a;
	--ma-ok-flaeche: #e8f4ec;
	--ma-fehler: #a32020;
	--ma-fehler-flaeche: #fbeaea;
	--ma-warn: #8a5a00;
	color: var(--ma-text);
	font-size: 16px;
	line-height: 1.5;
	max-width: 100%;
	box-sizing: border-box;
}
.ma *, .ma *::before, .ma *::after { box-sizing: border-box; }
.ma-antrag { max-width: 720px; }
.ma-titel { margin: 0 0 .75em; font-size: 1.5em; line-height: 1.25; }
.ma-einleitung { margin: 0 0 1.25em; color: var(--ma-leise); }
.ma-klein { font-size: .875em; color: var(--ma-leise); margin: .25em 0; }
.ma-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Felder */
.ma-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ma-feld { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; min-width: 0; }
.ma-feld > span:first-child, .ma-feld > label > span { font-weight: 600; }
.ma input[type="text"], .ma input[type="email"], .ma input[type="date"], .ma input[type="search"], .ma input[type="password"], .ma input[type="number"], .ma input[type="url"], .ma select, .ma input[type="file"] {
	width: 100%;
	min-height: 44px;
	padding: .5rem .65rem;
	border: 1px solid var(--ma-rand);
	border-radius: 6px;
	background: #fff;
	color: var(--ma-text);
	font: inherit;
}
.ma input[type="file"] { padding: .45rem; }
.ma input:focus-visible, .ma select:focus-visible, .ma button:focus-visible, .ma-rahmen:focus-visible, .ma a:focus-visible {
	outline: 3px solid var(--ma-akzent);
	outline-offset: 2px;
}
.ma [aria-invalid="true"] { border-color: var(--ma-fehler); }
.ma-pflicht { color: var(--ma-fehler); font-weight: 700; }
.ma-fehler { display: block; color: var(--ma-fehler); font-size: .875em; margin-top: .2rem; }
.ma-fehler[hidden] { display: none; }
.ma-zustimmung { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0 .25rem; }
.ma-zustimmung input { width: 20px; height: 20px; margin-top: .15rem; flex: 0 0 auto; }
.ma-falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Fotozuschnitt */
.ma-zuschnitt { margin-top: .75rem; padding: .75rem; border: 1px solid var(--ma-rand); border-radius: 8px; background: var(--ma-flaeche); }
.ma-zuschnitt[hidden] { display: none; }
.ma-rahmen {
	position: relative;
	width: 210px;
	max-width: 100%;
	aspect-ratio: 35 / 45;
	overflow: hidden;
	margin: .5rem auto;
	background: #fff;
	border: 2px solid var(--ma-akzent);
	border-radius: 4px;
	cursor: grab;
	touch-action: none;
	user-select: none;
}
.ma-rahmen--zieht { cursor: grabbing; }
.ma-rahmen img { position: absolute; max-width: none; max-height: none; pointer-events: none; }
/* Hilfslinie: Kinn und Scheitel eines typischen Passfotos */
.ma-hilfslinie {
	position: absolute;
	left: 22%;
	right: 22%;
	top: 10%;
	bottom: 18%;
	border: 1px dashed rgba(255, 255, 255, .9);
	border-radius: 50% 50% 46% 46%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.ma-zoom { display: flex; align-items: center; gap: .75rem; max-width: 320px; margin: 0 auto; }
.ma-zoom input { flex: 1; min-height: 32px; }

/* Knoepfe */
.ma-leiste { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ma-knopf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .55rem 1.1rem;
	border: 1px solid var(--ma-akzent);
	border-radius: 6px;
	background: var(--ma-akzent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.ma-knopf:hover { background: var(--ma-akzent-dunkel); border-color: var(--ma-akzent-dunkel); color: #fff; }
.ma-knopf--zweit { background: #fff; color: var(--ma-akzent); }
.ma-knopf--zweit:hover { background: var(--ma-flaeche); color: var(--ma-akzent-dunkel); }
.ma-knopf--gefahr { background: #fff; color: var(--ma-fehler); border-color: var(--ma-fehler); }
.ma-knopf--gefahr:hover { background: var(--ma-fehler-flaeche); color: var(--ma-fehler); border-color: var(--ma-fehler); }
.ma-knopf--klein { min-height: 36px; padding: .3rem .7rem; font-size: .875em; }

/* Hinweise */
.ma-hinweis { padding: .75rem 1rem; margin: 0 0 1rem; border-radius: 6px; background: var(--ma-flaeche); border-left: 4px solid var(--ma-rand); }
.ma-hinweis--ok { background: var(--ma-ok-flaeche); border-left-color: var(--ma-ok); }
.ma-hinweis--fehler { background: var(--ma-fehler-flaeche); border-left-color: var(--ma-fehler); }
/* 2.25.0: fehlende Angaben fuer den Ausweis */
.ma-hinweis--warn { background: #fdf3e1; border-left-color: var(--ma-warn); color: #3d2800; }
.ma-fehlt-angaben { margin-top: .3rem; color: var(--ma-warn); font-weight: 600; overflow-wrap: anywhere; }
.ma-knopf.ma-knopf--fehlt { background: #fdf3e1; color: #5c3b00; border-color: var(--ma-warn); }
.ma-knopf.ma-knopf--fehlt:hover, .ma-knopf.ma-knopf--fehlt:focus { background: #f6e3bf; color: #3d2800; border-color: var(--ma-warn); }
.ma-warn { color: var(--ma-warn); font-weight: 600; }

/* Anmeldung */
.ma-anmeldung { max-width: 380px; }

/* Verwaltung */
.ma-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .5rem; }
.ma-kopf .ma-titel { margin: 0; }
.ma-wer { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ma-wer form { margin: 0; }
.ma-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0 .75rem; align-items: end; padding: .75rem 1rem 0; background: var(--ma-flaeche); border-radius: 8px; margin: .75rem 0 1rem; }
.ma-feld--knopf { justify-content: flex-end; }
.ma-export { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--ma-rand); border-radius: 8px; }
.ma-export--mit-dialog { padding: 0; border: 0; }
.ma-export fieldset { border: 0; margin: 0; padding: 0; }
.ma-export legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.ma-wahl { display: flex; gap: .5rem; align-items: flex-start; margin: .35rem 0; }
.ma-wahl input { width: 18px; height: 18px; margin-top: .2rem; flex: 0 0 auto; }
.ma-dialog { width: min(560px, calc(100vw - 2rem)); border: 0; border-radius: 10px; padding: 1.25rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); color: var(--ma-text); }
.ma-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.ma-zahl { margin: .25rem 0 .5rem; color: var(--ma-leise); }

.ma-tabelle-rahmen { overflow-x: auto; }
.ma-tabelle { width: 100%; border-collapse: collapse; background: #fff; font-size: .95em; }
.ma-tabelle th, .ma-tabelle td { padding: .5rem .6rem; border-bottom: 1px solid var(--ma-rand); text-align: left; vertical-align: middle; }
.ma-tabelle th { background: var(--ma-flaeche); font-weight: 600; white-space: nowrap; }
.ma-mini { display: block; width: 56px; height: 72px; object-fit: cover; border-radius: 3px; border: 1px solid var(--ma-rand); background: var(--ma-flaeche); }
.ma-aktionen { white-space: nowrap; }
.ma-aktionen form { display: inline-block; margin: 0 .25rem .25rem 0; }
.ma-aktionen > a.ma-knopf { display: inline-flex; margin: 0 .25rem .25rem 0; text-decoration: none; vertical-align: top; }
/* Seit 2.14.3: Antragsliste ohne seitliches Verschieben. Knoepfe in zwei Reihen
   (oben Ansichten, unten Aktionen); lange Knopftexte und Spaltenkoepfe brechen um. */
.ma-antrag-tabelle th { white-space: normal; }
.ma-antrag-tabelle td { hyphens: auto; }
.ma-antrag-tabelle .ma-knopf, .ma-antrag-tabelle .ma-marke { hyphens: manual; }
.ma-antrag-tabelle th, .ma-antrag-tabelle td { padding: .5rem .4rem; }
.ma-antrag-tabelle td.ma-aktionen { white-space: normal; }
.ma-aktionen-reihe { display: flex; flex-wrap: nowrap; gap: .25rem; align-items: stretch; }
.ma-aktionen-reihe + .ma-aktionen-reihe { margin-top: .25rem; }
.ma-aktionen-reihe form { display: flex; margin: 0; }
.ma-aktionen-reihe .ma-knopf--klein { margin: 0; min-height: 32px; padding: .25rem .5rem; font-size: .8em; line-height: 1.2; white-space: normal; text-align: center; text-decoration: none; }
/* Schmaler Inhaltsbereich (Container-Abfrage): Knopftexte duerfen silbengetrennt umbrechen */
.ma-antrag-rahmen { container-type: inline-size; }
@container (max-width: 1150px) {
	.ma-antrag-tabelle .ma-aktionen-reihe .ma-knopf--klein { hyphens: auto; padding: .25rem .4rem; }
}
/* Noch schmaler (etwa Tablet): Kartenansicht wie am Handy statt seitlichem Verschieben */
@container (max-width: 960px) {
	.ma-antrag-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ma-antrag-tabelle, .ma-antrag-tabelle tbody, .ma-antrag-tabelle tr, .ma-antrag-tabelle td { display: block; width: 100%; }
	.ma-antrag-tabelle tr { border: 1px solid var(--ma-rand); border-radius: 8px; margin-bottom: .75rem; padding: .5rem; }
	.ma-antrag-tabelle td { border: 0; padding: .25rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
	.ma-antrag-tabelle td::before { content: attr(data-l); font-weight: 600; color: var(--ma-leise); }
	.ma-antrag-tabelle td.ma-aktionen { display: block; }
	.ma-antrag-tabelle td.ma-aktionen::before { content: none; }
	.ma-antrag-tabelle .ma-aktionen-reihe { flex-wrap: wrap; }
	.ma-antrag-tabelle .ma-aktionen-reihe .ma-knopf--klein { min-height: 40px; padding: .3rem .7rem; font-size: .875em; hyphens: manual; }
}
/* Bearbeiten eines Antrags */
.ma-bearbeitung { max-width: 720px; }
.ma-foto-jetzt { display: flex; align-items: center; gap: .75rem; margin: .25rem 0 .75rem; }
.ma-foto-jetzt .ma-mini { width: 84px; height: 108px; }
.ma-bearbeitung .ma-leiste a.ma-knopf { text-decoration: none; }
.ma-marke { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .8em; font-weight: 600; }
.ma-marke--neu { background: #e5eefb; color: var(--ma-akzent-dunkel); }
.ma-marke--export { background: var(--ma-ok-flaeche); color: var(--ma-ok); }
/* Freigabe und vorlaeufiger Ausweis (1.5.0) */
.ma-marke--offen { background: #fdf3e1; color: var(--ma-warn); margin-top: .3rem; }
.ma-marke--frei { background: var(--ma-ok-flaeche); color: var(--ma-ok); margin-top: .3rem; }
.ma-knopf--frei { background: var(--ma-ok); border-color: var(--ma-ok); color: #fff; }
.ma-knopf--frei:hover { background: #164f2b; border-color: #164f2b; color: #fff; }
.ma-email { overflow-wrap: anywhere; max-width: 14rem; }
.ma-seiten { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0; }
.ma-seite { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; border: 1px solid var(--ma-rand); border-radius: 6px; text-decoration: none; color: var(--ma-akzent); }
.ma-seite--aktiv { background: var(--ma-akzent); color: #fff; border-color: var(--ma-akzent); }
.ma-protokoll { margin-top: 1.5rem; }
.ma-protokoll summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.ma-tabelle--klein { font-size: .875em; margin-top: .5rem; }

/* Backend */
.ma-admin { max-width: 1400px; }
.ma-admin .ma-titel { display: none; }
.ma-admin .ma-titel--bearbeiten { display: block; }
.ma-admin-tabelle { max-width: 900px; margin-bottom: 1rem; }
.ma-admin-tabelle .ma-aktionen form { display: inline-block; margin-left: .5rem; }
.ma-admin-wahl { display: inline-block; min-width: 220px; margin: 0 1rem .4rem 0; }
/* Vereinslogos im Backend, Schachbrett zeigt Transparenz */
.ma-logo-zelle { min-width: 220px; }
.ma-logo-vorschau {
	display: block;
	max-width: 120px;
	max-height: 60px;
	margin-bottom: .35rem;
	padding: 4px;
	border: 1px solid #c3c4c7;
	background-color: #fff;
	background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%), linear-gradient(-45deg, #e6e6e6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e6e6 75%), linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
	background-size: 12px 12px;
	background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.ma-logo-weg, .ma-logo-datei { display: block; margin: .15rem 0; font-size: 12px; }
.ma-logo-datei input { max-width: 210px; font-size: 12px; }
.ma-bild-hintergrund .ma-logo-vorschau { max-width: 140px; max-height: 90px; }
/* Transparenz des Hintergrundbilds (1.9.0): Vorschau auf Weiss wie auf der Karte */
.ma-logo-flaeche { display: inline-block; background: #fff; margin-bottom: .35rem; }
.ma-logo-flaeche .ma-logo-vorschau { margin-bottom: 0; }
.ma-hg-transparenz { display: flex; align-items: center; gap: .4rem; margin: .35rem 0 .1rem; font-size: 12px; }
.ma-hg-transparenz span { white-space: nowrap; }
.ma-hg-transparenz input { width: 4.5em; }
.ma-hg-hinweis { display: block; font-size: 12px; }
/* Name nicht zu schmal werden lassen, wenn viele Spalten da sind */
.ma-admin-tabelle td:first-child input[type="text"] { min-width: 180px; }
/* Funktionen je Verein */
.ma-funktionen-zelle { min-width: 200px; }
.ma-funktionen-zelle summary { cursor: pointer; }
.ma-funktionen-zelle summary.ma-warnung { color: #b32d2e; font-weight: 600; }
.ma-funktionen-liste { max-height: 220px; overflow: auto; margin-top: .35rem; }
.ma-funktionen-liste label { display: block; margin: .1rem 0; }
.ma-admin-kasten { background: #fff; border: 1px solid #c3c4c7; padding: .25rem 1rem; max-width: 900px; margin: 1rem 0; }

/* Ausweiskarte CR80: Lage in Prozent, Schrift in cqw (Breite der Karte) */
.ma-karte {
	position: relative;
	container-type: inline-size;
	width: 100%;
	max-width: 440px;
	aspect-ratio: 85.6 / 53.98;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 1px var(--ma-rand), 0 2px 8px rgba(15, 23, 42, .12);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.15;
	color: #1f2937;
	user-select: none;
	-webkit-user-select: none;
}
.ma-karte--hoch { max-width: 280px; }
.ma-k-feld { position: absolute; display: flex; align-items: center; overflow: hidden; }
.ma-k-text > span { display: block; width: 100%; white-space: pre; overflow: hidden; }
.ma-k-text--mehr > span { white-space: pre-line; overflow-wrap: anywhere; }
.ma-k-platzhalter { opacity: .45; }
.ma-karte .ma-k-bild img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ma-karte .ma-k-bild--einpassen img { object-fit: contain; }
.ma-k-leer { display: none; }
.ma-k-streifen { position: absolute; inset: 0; z-index: 9999; pointer-events: none; }
.ma-voransicht { margin: .5rem 0 1rem; }
.ma-voransicht .ma-karte { margin: .35rem 0; }
.ma-voransicht-seite { max-width: 720px; }
.ma-voransicht-seite .ma-karte { max-width: 560px; margin: .75rem 0; }
.ma-voransicht-seite .ma-karte--hoch { max-width: 340px; }

/* Reiter der Verwaltung */
.ma-reiter { display: flex; flex-wrap: wrap; gap: .25rem; margin: .5rem 0 1rem; border-bottom: 1px solid var(--ma-rand); }
.ma-reiter a, .ma-reiter span { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; text-decoration: none; color: var(--ma-akzent); margin-bottom: -1px; }
.ma-reiter span { background: #fff; border-color: var(--ma-rand); color: var(--ma-text); font-weight: 600; }

/* Gestalter */
.ma-g-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.ma-g-buehne { position: sticky; top: 1rem; padding: 1.25rem; background: var(--ma-flaeche); border-radius: 8px; }
.ma-g-karte .ma-karte { max-width: 640px; margin: 0 auto; }
.ma-g-buehne--hoch .ma-g-karte .ma-karte { max-width: 380px; }
.ma-g-leiste { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; margin-top: .75rem; }
.ma-g-leiste[hidden], .ma-g-gruppe[hidden] { display: none; }
.ma-feld--inline { flex-direction: row; align-items: center; gap: .5rem; margin: 0; }
.ma-feld--inline select { width: auto; }
.ma-g-gruppe { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid var(--ma-rand); border-radius: 8px; background: #fff; min-width: 0; }
.ma-g-gruppe legend { padding: 0 .35rem; font-weight: 600; }
.ma-g-gruppe .ma-feld { margin-bottom: .6rem; }
.ma-g-gruppe .ma-reihe { gap: 0 .6rem; }
.ma-g-gruppe input[type="color"] { width: 100%; min-height: 40px; padding: 2px; border: 1px solid var(--ma-rand); border-radius: 6px; background: #fff; }
.ma-g-neu { display: flex; gap: .5rem; align-items: flex-end; }
.ma-g-neu .ma-feld { flex: 1; margin-bottom: 0; }
.ma-g-ebenen { list-style: none; margin: .25rem 0 .5rem; padding: 0; max-height: 380px; overflow: auto; border: 1px solid var(--ma-rand); border-radius: 6px; }
.ma-g-ebenen li { margin: 0; border-bottom: 1px solid var(--ma-rand); }
.ma-g-ebenen li:last-child { border-bottom: 0; }
.ma-g-ebene { display: block; width: 100%; min-height: 36px; padding: .35rem .6rem; border: 0; background: #fff; color: var(--ma-text); font: inherit; font-size: .9em; text-align: left; cursor: pointer; }
.ma-g-ebene:hover { background: var(--ma-flaeche); }
.ma-g-ebene--aktiv, .ma-g-ebene--aktiv:hover { background: #e5eefb; color: var(--ma-akzent-dunkel); font-weight: 600; }
.ma-g-ebenen-knoepfe { display: flex; flex-wrap: wrap; gap: .35rem; }
.ma-g-ebenen-knoepfe .ma-knopf[disabled] { opacity: .45; cursor: default; }
.ma-g-kopf { margin: 0 0 .5rem; font-weight: 600; }
.ma-g-flaeche { cursor: default; touch-action: none; }
.ma-g-flaeche:focus-visible { outline: 3px solid var(--ma-akzent); outline-offset: 4px; }
.ma-g-flaeche .ma-k-feld { cursor: move; outline: 1px dashed rgba(29, 79, 145, .35); outline-offset: -1px; }
.ma-g-flaeche .ma-g-fest { pointer-events: none; outline: 0; }
.ma-g-platz { justify-content: center; background: repeating-linear-gradient(45deg, rgba(29, 79, 145, .08) 0 6px, rgba(29, 79, 145, .16) 6px 12px); color: var(--ma-akzent-dunkel); font-size: 2.4cqw; text-align: center; }
/* Platzhalter fuer feste Felder (Hintergrund) ohne Beschriftung */
.ma-g-platz.ma-g-fest > span { display: none; }
.ma-g-auswahl { position: absolute; z-index: 10000; outline: 2px solid var(--ma-akzent); cursor: move; }
.ma-g-auswahl--fest { outline-style: dashed; pointer-events: none; }
.ma-g-griff { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; border: 2px solid var(--ma-akzent); border-radius: 2px; }
.ma-g-griff--nw { left: 0; top: 0; cursor: nwse-resize; }
.ma-g-griff--n { left: 50%; top: 0; cursor: ns-resize; }
.ma-g-griff--ne { left: 100%; top: 0; cursor: nesw-resize; }
.ma-g-griff--e { left: 100%; top: 50%; cursor: ew-resize; }
.ma-g-griff--se { left: 100%; top: 100%; cursor: nwse-resize; }
.ma-g-griff--s { left: 50%; top: 100%; cursor: ns-resize; }
.ma-g-griff--sw { left: 0; top: 100%; cursor: nesw-resize; }
.ma-g-griff--w { left: 0; top: 50%; cursor: ew-resize; }
.ma-g-masse { max-width: 900px; }
.ma-admin .ma-gestalter { max-width: 1200px; }
@media (max-width: 1000px) {
	.ma-g-raster { grid-template-columns: 1fr; }
	.ma-g-buehne { position: static; padding: .75rem; }
}

/* Schmale Bildschirme: Tabelle als Karten */
@media (max-width: 820px) {
	.ma-filter { grid-template-columns: 1fr 1fr; }
	.ma-feld--knopf { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.ma-reihe, .ma-filter { grid-template-columns: 1fr; }
	.ma-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ma-tabelle, .ma-tabelle tbody, .ma-tabelle tr, .ma-tabelle td { display: block; width: 100%; }
	.ma-tabelle tr { border: 1px solid var(--ma-rand); border-radius: 8px; margin-bottom: .75rem; padding: .5rem; }
	.ma-tabelle td { border: 0; padding: .25rem .25rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
	.ma-tabelle td::before { content: attr(data-l); font-weight: 600; color: var(--ma-leise); }
	.ma-tabelle td.ma-aktionen { display: block; white-space: normal; }
	.ma-tabelle td.ma-aktionen::before { content: none; }
	.ma-aktionen-reihe { flex-wrap: wrap; }
	.ma-aktionen-reihe .ma-knopf--klein { min-height: 40px; padding: .3rem .7rem; font-size: .875em; }
	.ma-kopf { flex-direction: column; align-items: flex-start; }
}

/* Vorder- und Rueckseite nebeneinander (Voransicht) */
.ma-kartenpaar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.ma-kartenpaar__seite { margin: 0; flex: 1 1 260px; max-width: 440px; }
.ma-kartenpaar__seite figcaption { margin: 0 0 .25rem; font-weight: 600; }
.ma-kartenpaar .ma-karte { margin: 0; }
.ma-voransicht-seite .ma-kartenpaar__seite { max-width: 560px; }
.ma-kartenpaar .ma-karte--hoch { max-width: 280px; }
.ma-g-seitenwahl { display: flex; gap: .5rem; justify-content: center; margin: 0 0 .6rem; }
.ma-g-seitenwahl[hidden] { display: none; }
.ma-g-rueck-aus { text-align: center; color: #b32d2e; }
.ma-g-masse-titel { margin: .9rem 0 .35rem; font-size: 1rem; }

/* Direktdruck: eine Kartenseite je Druckseite, Masse in mm */
.ma-druckseite { margin: 0; background: #e5e7eb; }
.ma-druck-leiste { background: #fff; border-bottom: 1px solid var(--ma-rand); padding: 1rem; }
.ma-druck-leiste__innen { max-width: 760px; margin: 0 auto; }
.ma-druck-leiste .ma-titel { margin: 0 0 .75rem; font-size: 1.25rem; }
.ma-druck-leiste .ma-leiste { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.ma-druck-blaetter { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem; justify-content: center; }
.ma-druck-blatt { position: relative; flex: none; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .18); }
.ma-druck-blatt .ma-karte { max-width: none !important; margin: 0 !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; }
.ma-druck--vorn .ma-druck-blatt--rueck,
.ma-druck--rueck .ma-druck-blatt--vorn { display: none; }

@media print {
	html, body.ma-druckseite { margin: 0 !important; padding: 0 !important; background: #fff !important; }
	.ma-druckseite * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.ma-druck-leiste { display: none !important; }
	.ma-druck-blaetter { display: block; padding: 0; margin: 0; }
	.ma-druck-blatt { box-shadow: none; margin: 0; break-after: page; page-break-after: always; break-inside: avoid; page-break-inside: avoid; }
	.ma-druck-blatt.ma-druck-letzt { break-after: auto; page-break-after: auto; }
}
.ma-druck-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ma-rand); }
.ma-druck-form--dialog { margin: 0; padding: 0; border: 0; }
.ma-druck-oeffnen { margin-left: .5rem; }

/* ---------- Medien (1.8.0) ---------- */
.ma-medien-hoch { margin: 0 0 1.25rem; padding: 1rem; border: 1px solid var(--ma-rand); border-radius: 8px; background: var(--ma-flaeche); }
.ma-medien-raster { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.ma-medium { margin: 0; display: flex; flex-direction: column; gap: .4rem; padding: .6rem; border: 1px solid var(--ma-rand); border-radius: 8px; background: #fff; min-width: 0; }
.ma-medium__bild, .ma-medium-bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; border-radius: 6px; background-color: #eef0f3; background-image: linear-gradient(45deg, #e2e5ea 25%, transparent 25%, transparent 75%, #e2e5ea 75%), linear-gradient(45deg, #e2e5ea 25%, transparent 25%, transparent 75%, #e2e5ea 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; overflow: hidden; }
.ma-medium__bild img, .ma-medium-bild img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ma-medium__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ma-medium__text strong { overflow-wrap: anywhere; }
.ma-medium form { margin: auto 0 0; }
.ma-medien-dialog { width: min(820px, calc(100vw - 2rem)); }
.ma-medien-dialog__titel { margin: 0 0 .4rem; font-size: 1.2em; }
.ma-medien-dialog__text { margin: 0 0 .75rem; color: var(--ma-leise); }
.ma-medien-raster--wahl { max-height: min(55vh, 480px); overflow: auto; padding: 2px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ma-medien-raster--wahl .ma-medium { padding: 0; border: 0; background: none; }
.ma-medium-wahl { display: flex; flex-direction: column; gap: .25rem; width: 100%; padding: .4rem; border: 2px solid var(--ma-rand); border-radius: 8px; background: #fff; color: var(--ma-text); font: inherit; text-align: left; cursor: pointer; }
.ma-medium-wahl:hover { border-color: var(--ma-akzent); }
.ma-medium-wahl[aria-pressed="true"] { border-color: var(--ma-akzent); box-shadow: 0 0 0 2px var(--ma-akzent); background: #e5eefb; }
.ma-medium-wahl:focus-visible { outline: 3px solid var(--ma-akzent); outline-offset: 2px; }
.ma-medium-name { font-weight: 600; font-size: .875em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-medium-info { font-size: .8em; color: var(--ma-leise); }
.ma-medien-leer { grid-column: 1 / -1; padding: 1.5rem; text-align: center; color: var(--ma-leise); border: 1px dashed var(--ma-rand); border-radius: 8px; }
.ma-medien-status { margin: 0 0 .6rem; padding: .5rem .75rem; border-radius: 6px; background: var(--ma-ok-flaeche); color: var(--ma-ok); }
.ma-medien-status--fehler { background: var(--ma-fehler-flaeche); color: var(--ma-fehler); }
.ma-medien-dialog__leiste { margin-top: 1rem; align-items: center; }
.ma-medien-datei { position: relative; overflow: hidden; cursor: pointer; }
.ma-medien-datei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ma-medien-datei:focus-within { outline: 3px solid var(--ma-akzent); outline-offset: 2px; }
.ma-medien-verwalten { margin-left: auto; }
.ma-g-medium { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin: 0 0 .75rem; }
.ma-g-medium img { max-width: 100%; max-height: 120px; border: 1px solid var(--ma-rand); border-radius: 6px; background: #eef0f3; }
.ma-g-medium__name { margin: 0; font-size: .9em; overflow-wrap: anywhere; }
.ma-g-textarea { width: 100%; min-height: 4.5em; resize: vertical; font: inherit; line-height: 1.4; }
.ma-g-tipp { margin: -.3rem 0 .6rem; font-size: .85em; color: var(--ma-leise); }
.ma-g-abschnitt { margin: .25rem 0 .75rem; padding: .5rem .75rem .25rem; border: 1px solid var(--ma-rand); border-radius: 6px; min-width: 0; }
.ma-g-abschnitt legend { padding: 0 .3rem; font-weight: 600; font-size: .95em; }
@media (max-width: 600px) {
	.ma-medien-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ma-medien-verwalten { margin-left: 0; }
}

/* 2.0.0: Kartenarten, eigene Felder und Einstellungen auf der Website */
.ma [hidden] { display: none !important; }
.ma-reiter--unter { margin-top: 0; font-size: .9375em; }
.ma-reiter--unter a, .ma-reiter--unter span { min-height: 36px; padding: .25rem .75rem; }
.ma-g-kartenarten { margin-top: 0; }
.ma-kartenwahl { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.ma-kartenwahl a.ma-knopf { text-decoration: none; min-width: 220px; justify-content: center; }
.ma-eigene { border: 1px solid var(--ma-rand); border-radius: 6px; padding: .75rem 1rem 0; margin: 0 0 1rem; }
.ma-eigene legend { font-weight: 600; padding: 0 .35rem; }
.ma-ev { margin: 0 0 1rem; }
.ma-einst .widefat { width: 100%; border-collapse: collapse; margin: 0 0 1rem; background: #fff; }
.ma-einst .widefat th, .ma-einst .widefat td { padding: .5rem .6rem; border-bottom: 1px solid var(--ma-rand); text-align: left; vertical-align: top; }
.ma-einst .widefat thead th { background: var(--ma-flaeche); font-weight: 600; }
.ma-einst .striped > tbody > tr:nth-child(odd) { background: #fafbfc; }
.ma-einst .form-table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.ma-einst .form-table th { width: 220px; padding: .75rem 1rem .75rem 0; text-align: left; vertical-align: top; font-weight: 600; }
.ma-einst .form-table td { padding: .6rem 0; vertical-align: top; }
.ma-einst input[type="text"], .ma-einst input[type="email"], .ma-einst input[type="number"], .ma-einst input[type="url"], .ma-einst input[type="password"], .ma-einst input[type="date"], .ma-einst select, .ma-einst textarea { min-height: 40px; padding: .35rem .5rem; border: 1px solid var(--ma-rand); border-radius: 4px; font: inherit; max-width: 100%; background: #fff; color: var(--ma-text); }
.ma-einst .regular-text { width: 25em; }
.ma-einst .small-text { width: 6em; }
.ma-einst .large-text { width: 100%; }
.ma-einst .description { margin: .3rem 0 0; font-size: .875em; color: var(--ma-leise); }
.ma-einst .ma-warnung { color: var(--ma-warn); }
.ma-einst .ma-admin-wahl { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ma-einst .ma-admin-wahl label, .ma-einst label.ma-wahl { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; }
.ma-einst input[type="checkbox"] { width: 18px; height: 18px; }
.ma-einst .ma-admin-kasten { border: 1px solid var(--ma-rand); border-radius: 6px; padding: .75rem 1rem; margin: 0 0 1rem; background: #fff; }
.ma-einst .ma-tabelle-rahmen { overflow-x: auto; }
.ma-einst { overflow-x: auto; }
.ma-einst .widefat input[type="text"], .ma-einst .widefat input[type="url"] { min-width: 10em; }
.ma-einst .widefat input.small-text, .ma-einst .widefat input[type="number"] { min-width: 4.5em; width: 5em; }
.ma-einst .widefat select { min-width: 8.5em; }
.ma-einst .widefat td > code, .ma-einst .widefat td > .description { display: block; margin-top: .25rem; }
.ma-einst .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 700px) {
	.ma-einst .form-table, .ma-einst .form-table tbody, .ma-einst .form-table tr, .ma-einst .form-table th, .ma-einst .form-table td { display: block; width: 100%; }
	.ma-einst .form-table th { padding: .75rem 0 .2rem; }
	.ma-einst .regular-text, .ma-einst .large-text { width: 100%; }
	.ma-kartenwahl a.ma-knopf { width: 100%; }
	.ma-reiter--unter { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
	.ma-reiter--unter a, .ma-reiter--unter span { white-space: nowrap; flex: 0 0 auto; }
	/* Tabellen der Einstellungen bleiben Tabellen und scrollen seitlich */
	.ma-einst .ma-tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.ma-einst .ma-tabelle { display: table; width: auto; min-width: 100%; }
	.ma-einst .ma-tabelle thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
	.ma-einst .ma-tabelle tbody { display: table-row-group; width: auto; }
	.ma-einst .ma-tabelle tr { display: table-row; width: auto; border: 0; padding: 0; margin: 0; }
	.ma-einst .ma-tabelle td, .ma-einst .ma-tabelle th { display: table-cell; width: auto; padding: .4rem .5rem; border-bottom: 1px solid var(--ma-rand); }
	.ma-einst .ma-tabelle td::before { content: none; }
}

/* 2.1.0: eigene Hintergrundbilder je Kartenart in der Vereinstabelle */
.ma-hgk { margin-top: .5rem; border-top: 1px solid #dcdcde; padding-top: .4rem; }
.ma-hgk summary { cursor: pointer; font-weight: 600; font-size: 12px; }
.ma-hgk .description { display: block; margin: .3rem 0; }
.ma-hgk-eintrag { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .4rem 0; border-bottom: 1px dashed #dcdcde; }
.ma-hgk-eintrag:last-child { border-bottom: 0; }
.ma-hgk-eintrag strong { font-size: 12px; }
.ma-hgk-eintrag .ma-logo-vorschau { max-width: 140px; max-height: 90px; }

/* 2.2.0: anpassbares Antragsformular, Reihenfolge und Breite je Feld */
.ma-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ma-raster-teil { min-width: 0; }
.ma-raster-teil--ganz { grid-column: 1 / -1; }
.ma input[type="tel"], .ma textarea {
	width: 100%;
	min-height: 44px;
	padding: .5rem .65rem;
	border: 1px solid var(--ma-rand);
	border-radius: 6px;
	background: #fff;
	color: var(--ma-text);
	font: inherit;
}
.ma textarea { resize: vertical; }
.ma textarea:focus-visible { outline: 3px solid var(--ma-akzent); outline-offset: 2px; }
.ma-feld .ma-haken { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 400; }
.ma-feld .ma-haken input { width: 22px; height: 22px; margin: 0; }
.ma-formular-tabelle input.large-text { min-width: 16em; }
@media (max-width: 640px) {
	.ma-raster { grid-template-columns: 1fr; }
}

/* 2.2.1: Warnung bei doppelten Ausweisnummern */
.ma-hinweis-fehler { margin: .6rem 0 0; padding: .5rem .75rem; border-left: 4px solid var(--ma-fehler, #a32020); background: var(--ma-fehler-flaeche, #fbeaea); color: #3b0a0a; }

/* 2.3.0: Felder im Antragsformular ausblenden */
.ma-formular-tabelle tr.ma-formular-aus td { background: #f3f4f6; color: #4b5563; }
.ma-formular-tabelle tr.ma-formular-aus td:first-child strong { text-decoration: line-through; }
.ma-formular-zeigen { white-space: nowrap; }
/* 2.21.0: Standardwert eigener Auswahllisten */
.ma-formular-std { display: block; margin-top: .4rem; }
.ma-formular-std select { min-height: 44px; max-width: 100%; }
.ma-formular-std-info { display: block; margin-top: .25rem; }
.ma-formular-tabelle select { max-width: 14em; }
.ma-formular-folgen ul { margin: .4rem 0 0 1.2rem; list-style: disc; }
.ma-formular-folgen li { margin: .2rem 0; }

/* 2.4.0: Ausweisnummer je Kartenart */
.ma-nummernkreise { min-width: 52rem; }
.ma-nummernkreise td, .ma-nummernkreise th { vertical-align: top; }
.ma-nummernkreise input.regular-text { width: 100%; min-width: 12em; max-width: 22em; }
.ma-nummernkreise .description { margin: .3rem 0 0; font-size: .85em; }
.ma-nummernkreise tr.ma-nk-gemeinsam .ma-nk-praefix,
.ma-nummernkreise tr.ma-nk-gemeinsam td[data-titel="Stellen"] input,
.ma-nummernkreise tr.ma-nk-gemeinsam td[data-titel="Letzte vergebene Nummer"] input { opacity: .6; }
.ma-nk-naechste { font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
@media (max-width: 782px) {
	/* Schmal: jede Kartenart als Block, Spaltentitel vor dem Wert */
	.ma-nummernkreise { min-width: 0; }
	.ma-nummernkreise thead { position: absolute; left: -9999px; }
	.ma-nummernkreise tr, .ma-nummernkreise th, .ma-nummernkreise td { display: block; width: auto; }
	.ma-nummernkreise tr { border-bottom: 1px solid #c3c4c7; padding: .4rem 0; }
	.ma-nummernkreise td[data-titel]::before { content: attr(data-titel); display: block; font-weight: 600; margin-bottom: .2rem; }
	.ma-nummernkreise input.regular-text, .ma-nummernkreise select { width: 100%; max-width: none; min-height: 44px; }
	.ma-nummernkreise input.small-text { min-height: 44px; }
}

/* 2.6.0: Eigene Felder - breitere Spalte Art und Werteliste fuer Auswahlfelder */
.ma-admin-tabelle.ma-felder-tabelle { max-width: none; }
.ma-felder-tabelle td { vertical-align: top; }
.ma-felder-tabelle td.ma-felder-art { min-width: 22rem; width: 22rem; }
.ma-felder-tabelle td[data-l="Quelle"] select { min-width: 11.5rem; }
.ma-felder-tabelle td[data-l="Feld in easyVerein"] { min-width: 15rem; }
.ma-felder-tabelle td[data-l="Feld in easyVerein"] select, .ma-felder-tabelle td[data-l="Feld in easyVerein"] input { width: 100%; }
.ma-felder-tabelle .ma-admin-wahl { display: block; min-width: 0; margin: 0 0 .3rem; white-space: nowrap; }
.ma-felder-art select { width: 100%; max-width: none; min-height: 32px; }
.ma-optionen { margin-top: .5rem; padding: .5rem .6rem .6rem; border: 1px solid var(--ma-rand, #d4d8de); border-radius: 6px; background: var(--ma-flaeche, #f5f6f8); }
.ma-optionen[hidden] { display: none; }
.ma-optionen-titel { display: block; font-weight: 600; margin-bottom: .35rem; }
/* 2.20.0: Gruppen aus Spiele 1.Herren */
.ma-optionen-spiele { display: flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; }
.ma-optionen-spiele-info { margin: 0 0 .6rem; font-size: .9em; color: var(--ma-leise, #5b6472); }
.ma-optionen-zahl { font-weight: 400; color: var(--ma-leise, #5b6472); }
.ma-optionen-text { width: 100%; font-family: inherit; }
.ma-opt-liste { list-style: none; margin: 0 0 .5rem; padding: 0; }
.ma-opt-liste[hidden], .ma-opt-leer[hidden] { display: none; }
.ma-opt-eintrag { display: flex; align-items: center; gap: .25rem; margin: 0 0 .3rem; }
.ma-opt-eintrag input[type="text"] { flex: 1 1 auto; min-width: 6em; width: auto; }
.ma-opt-knopf.button { min-width: 32px; padding: 0 .5rem; line-height: 30px; min-height: 32px; }
.ma-opt-hoch.button, .ma-opt-runter.button { font-size: 1rem; }
.ma-opt-weg.button { color: var(--ma-fehler, #a32020); border-color: currentColor; }
.ma-opt-neu { display: flex; gap: .3rem; }
.ma-opt-neu input[type="text"] { flex: 1 1 auto; min-width: 6em; width: auto; }
.ma-opt-leiste { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; font-size: .875em; }
.ma-opt-zahl { color: var(--ma-leise, #5b6472); }
.ma-opt-leer { margin: 0 0 .4rem; font-size: .875em; color: var(--ma-leise, #5b6472); }
.ma-opt-meldung { margin: .3rem 0 0; font-size: .875em; color: var(--ma-warn, #8a5a00); }
.ma-opt-meldung:empty { display: none; }
@media (max-width: 782px) {
	.ma-felder-tabelle td.ma-felder-art, .ma-felder-tabelle td[data-l="Feld in easyVerein"] { min-width: 0; width: auto; }
	.ma-felder-tabelle td[data-l="Quelle"] select { min-width: 0; width: 100%; }
	.ma-opt-knopf.button { min-height: 44px; min-width: 44px; }
	.ma-opt-eintrag input[type="text"], .ma-opt-neu input[type="text"] { min-height: 44px; }
}
@media (max-width: 640px) {
	/* Schmal: Spaltentitel ueber dem Inhalt, damit Liste und Knoepfe die volle Breite haben */
	.ma-admin .ma-felder-tabelle td { display: block; }
	.ma-admin .ma-felder-tabelle td::before { display: block; margin-bottom: .2rem; }
	.ma-felder-tabelle td[data-l="Feld in easyVerein"] input { margin-top: .3rem; }
	.ma-opt-leiste { flex-wrap: wrap; }
	.ma-opt-eintrag input[type="text"], .ma-opt-neu input[type="text"] { min-width: 0; flex: 1 1 0; }
	.ma-opt-knopf.button { flex: 0 0 auto; padding: 0 .4rem; }
}

/* 2.7.0: easyVerein waehrend der Eingabe */
.ma-ev-status { margin: .5rem 0; padding: .45rem .7rem; border-radius: 6px; background: var(--ma-flaeche, #f3f4f6); }
.ma-ev-status--ok { background: var(--ma-ok-flaeche); color: var(--ma-ok); }
.ma-ev-status--warn { background: #fff7e6; color: var(--ma-warn); }
.ma-ev-dialog__titel { margin: 0 0 .5rem; font-size: 1.2em; }
.ma-ev-dialog__text { margin: 0 0 .75rem; line-height: 1.45; }
.ma-ev-liste { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .5rem; }
.ma-ev-wahl { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; width: 100%; padding: .6rem .8rem; border: 1px solid var(--ma-rand, #d1d5db); border-radius: 8px; background: #fff; color: var(--ma-text, #1f2937); text-align: left; font: inherit; cursor: pointer; }
.ma-ev-wahl:hover, .ma-ev-wahl:focus-visible { border-color: var(--ma-ok); background: var(--ma-ok-flaeche); outline: none; }
.ma-ev-wahl strong { grid-column: 1; overflow-wrap: anywhere; }
.ma-ev-wahl__mail { grid-column: 1; font-size: .9em; color: var(--ma-leise, #6b7280); overflow-wrap: anywhere; }
.ma-ev-wahl__prozent { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .9em; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) {
	.ma-ev-wahl { grid-template-columns: 1fr; }
	.ma-ev-wahl__prozent { grid-column: 1; grid-row: auto; }
}

/* 2.7.1: Korrektur der Schreibweise */
.ma-ev-vorschlaege {
	margin: -0.25rem 0 1rem;
}

.ma-ev-vorschlaege .ma-ev-liste {
	margin: 0;
}

.ma-ev-abw {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1rem;
	margin: 0 0 1rem;
}

.ma-ev-abw dt {
	font-weight: 600;
}

.ma-ev-abw dd {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
}

.ma-ev-abw__ist s {
	color: #8a2424;
}

.ma-ev-abw__soll strong {
	color: #1d5e2e;
}

@media (max-width: 480px) {
	.ma-ev-abw {
		grid-template-columns: 1fr;
	}

	.ma-ev-abw dd {
		flex-direction: column;
		margin-bottom: 0.4rem;
	}
}

/* 2.8.0: QR-Code zur Pruefung */
.ma-karte .ma-k-qr { justify-content: center; }
.ma-karte .ma-k-qr svg { display: block; width: 100%; height: 100%; max-width: none; }
.ma-g-flaeche .ma-k-qr--muster svg { opacity: .85; }
.ma-pruef-kasten { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #d1d5db; border-radius: 6px; background: #f9fafb; }
.ma-pruef-kasten p { margin: 0 0 .5rem; }
.ma-pruef-kasten .ma-pruef-gesperrt { color: #991b1b; font-weight: 600; }
.ma-pruef-link { word-break: break-all; }

/* 2.8.1: Antraege ohne Mitglied in easyVerein rot hinterlegen */
.ma-tabelle td.ma-ev-fehlt { background: #fde2e2; color: #7f1d1d; }
.ma-tabelle tr.ma-zeile-ohne-ev td:first-child { box-shadow: inset 4px 0 0 #b32d2e; }
.ma-ev-fehlt-text { color: #b32d2e; font-weight: 600; margin-top: .3rem; }
@media (max-width: 640px) {
	.ma-tabelle tr.ma-zeile-ohne-ev { border-color: #b32d2e; }
	.ma-tabelle tr.ma-zeile-ohne-ev td:first-child { box-shadow: none; }
	.ma-tabelle td.ma-ev-fehlt::before { color: #7f1d1d; }
	.ma-tabelle td.ma-email { max-width: none; }
}

/* 2.10.0: Eigene Pruefseite je Kartenart */
.ma-ps { margin: .75rem 0; padding: .5rem 1rem; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; }
.ma-ps > summary { cursor: pointer; padding: .4rem 0; min-height: 44px; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ma-ps-stand { font-size: .85em; color: #4b5563; }
.ma-ps h4 { margin: 1rem 0 .4rem; }
.ma-ps-zeilen, .ma-ps-stufen { max-width: 60rem; }
.ma-ps-zeilen { max-width: 80rem; }
.ma-ps-zeilen td, .ma-ps-stufen td { vertical-align: middle; }
.ma-ps-zeilen input.regular-text { width: 100%; min-width: 10em; }
.ma-ps-zeilen select { max-width: 18em; }
.ma-ps-zeilen tr.ma-ps-neu td, .ma-ps-stufen tr.ma-ps-neu td { background: #f9fafb; }
.ma-ps-stufen input[type="color"] { width: 4rem; height: 2.25rem; padding: 0 .15rem; }
.ma-ps-vorschau ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; padding: 0; list-style: none; }
.ma-ps-vorschau li { margin: 0; padding: .35rem .75rem; border-radius: 4px; font-weight: 600; border: 1px solid rgba(0, 0, 0, .15); }
@media (max-width: 782px) {
	/* Schmal: jede Zeile als Block, Spaltentitel vor dem Wert */
	.ma-ps { padding: .5rem .75rem; }
	.ma-ps-zeilen thead, .ma-ps-stufen thead { position: absolute; left: -9999px; }
	.ma-ps-zeilen tr, .ma-ps-zeilen td, .ma-ps-stufen tr, .ma-ps-stufen td { display: block; width: auto; }
	.ma-ps-zeilen tr, .ma-ps-stufen tr { border-bottom: 1px solid #c3c4c7; padding: .4rem 0; }
	.ma-ps-zeilen td[data-titel]::before, .ma-ps-stufen td[data-titel]::before { content: attr(data-titel); display: block; font-weight: 600; margin-bottom: .2rem; }
	.ma-ps-zeilen input.regular-text, .ma-ps-zeilen select { width: 100%; max-width: none; min-height: 44px; }
	.ma-ps-zeilen input.small-text, .ma-ps-stufen input.small-text { min-height: 44px; }
	.ma-ps-stufen input[type="color"] { min-height: 44px; }
}

/* 2.16.0: Reiter Spiele 1.Herren */
/* 2.19.0: eigene Gruppen */
.ma-sp-anlegen > summary .ma-sp-plus { display: inline-block; padding: .2rem .7rem; border-radius: 4px; font-weight: 700; border: 1px dashed #50575e; background: #fff; color: #1d2327; }
.ma-sp-karten { margin: .5rem 0 .75rem; padding: .5rem .75rem; border: 1px solid #dcdcde; border-radius: 4px; }
.ma-sp-karten legend { font-weight: 600; padding: 0 .25rem; }
.ma-sp-karten label { display: inline-flex; align-items: center; gap: .35rem; margin: .2rem 1.25rem .2rem 0; min-height: 32px; }
.ma-sp-loeschen { margin: .75rem 0 .25rem; color: #b32d2e; }
.ma-sp-anlegen .ma-sp-kopf input.regular-text { max-width: 20rem; }
/* 2.22.0: feste Gruppe fuer ungueltige Ausweise */
.ma-sp-fest { border-left: 4px solid #b91c1c; }
.ma-sp-fest .ma-sp-kopf input.regular-text { max-width: 20rem; }
.ma-sp-marke { display: inline-block; padding: .2rem .7rem; border-radius: 4px; font-weight: 700; border: 1px solid rgba(0, 0, 0, .15); }
.ma-sp-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.ma-sp-kopf input[type="color"], .ma-sp-regeln input[type="color"] { width: 4rem; height: 2.25rem; padding: 0 .15rem; }
.ma-einst .ma-sp-kopf input[type="number"] { width: 6rem; }
/* 2.17.0: Text mit Schriftschnitt in den Zeilen der Pruefseite */
.ma-ps-schnitt { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .35rem; }
.ma-ps-schnitt label { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; white-space: nowrap; }
.ma-ps-schnitt-fett { font-weight: 700; }
.ma-ps-schnitt-kursiv { font-style: italic; }
.ma-ps-schnitt-unter { text-decoration: underline; }
@media (max-width: 782px) {
	.ma-ps-schnitt label { min-height: 44px; }
}
.ma-sp-regeln { max-width: 70rem; }
.ma-sp-regeln td { vertical-align: middle; }
.ma-sp-regeln input.regular-text { width: 100%; min-width: 10em; }
.ma-sp-regeln tr.ma-ps-neu td { background: #f9fafb; }
@media (max-width: 782px) {
	/* Schmal: jeder Eintrag als Block, Spaltentitel vor dem Wert */
	.ma-sp-regeln thead { position: absolute; left: -9999px; }
	.ma-sp-regeln tr, .ma-sp-regeln td { display: block; width: auto; }
	.ma-sp-regeln tr { border-bottom: 1px solid #c3c4c7; padding: .4rem 0; }
	.ma-sp-regeln td[data-titel]::before { content: attr(data-titel); display: block; font-weight: 600; margin-bottom: .2rem; }
	.ma-sp-regeln input.regular-text, .ma-sp-regeln input.small-text { width: 100%; max-width: none; min-height: 44px; }
	.ma-sp-regeln input[type="color"], .ma-sp-kopf input { min-height: 44px; }
	.ma-sp-karten label, .ma-sp-loeschen label { display: flex; min-height: 44px; margin-right: 0; }
	.ma-sp-anlegen .ma-sp-kopf input.regular-text, .ma-sp-fest .ma-sp-kopf input.regular-text { max-width: none; width: 100%; }
}

/* 2.11.0: Pruefjournal */
.ma-j-filter { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.ma-j-export { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 .75rem; }
.ma-j-export .ma-j-zahl { margin: 0; }
.ma-j-tabelle td { vertical-align: top; }
.ma-j-erg { display: inline-block; padding: .1rem .5rem; border-radius: 4px; font-weight: 600; font-size: .9em; white-space: nowrap; border: 1px solid transparent; }
.ma-j-erg--gueltig { background: #ecfdf5; color: #065f46; border-color: #047857; }
.ma-j-erg--ungueltig { background: #fef2f2; color: #991b1b; border-color: #b91c1c; }
.ma-j-erg--unklar { background: #fffbeb; color: #92400e; border-color: #b45309; }
.ma-j-kasten { margin: 1rem 0; padding: .5rem 1rem; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; }
.ma-j-kasten > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.ma-j-letzte { margin: .25rem 0 .75rem; padding: 0; list-style: none; }
.ma-j-letzte li { padding: .35rem 0; border-bottom: 1px solid var(--ma-rand); }
.ma-j-letzte li:last-child { border-bottom: 0; }
.ma-j-zeit { display: inline-block; min-width: 8.5rem; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
	.ma-j-filter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	/* Schmal: Filter untereinander, Export-Knopf ueber die volle Breite */
	.ma-j-filter { grid-template-columns: 1fr; }
	.ma-j-export .ma-knopf { width: 100%; min-height: 44px; }
	.ma-j-zeit { display: block; min-width: 0; }
	.ma-j-tabelle td:empty { display: none; }
}

/* 2.12.0: Pruefseite mit Kamera */
.ma-pruefstelle { max-width: 1280px; }
.ma-scan { position: relative; }
.ma-scan-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .75rem; }
.ma-scan-wahl { display: flex; align-items: center; gap: .4rem; flex: 1 1 14rem; min-width: 0; }
.ma-scan-wahl[hidden] { display: none; }
.ma-scan-wahl select { min-height: 36px; padding: .25rem .5rem; }
.ma-scan-ton { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; cursor: pointer; }
.ma-scan-raster { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.ma-scan-erfassung, .ma-scan-ergebnis { min-width: 0; }
.ma-scan-kamera { position: relative; overflow: hidden; border-radius: 10px; background: #111827; border: 4px solid #111827; transition: border-color .15s ease; }
.ma-scan-video { display: block; width: 100%; height: 34vh; min-height: 180px; object-fit: cover; background: #111827; }
.ma-scan-kamera[hidden] { display: none; }
/* 2.14.0: Kleineres Erkennungsfenster; nur dieser Ausschnitt wird vergroessert ausgewertet */
.ma-scan-ziel { position: absolute; left: 50%; top: 50%; height: 50%; width: auto; max-width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255, 255, 255, .9); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .3); pointer-events: none; }
.ma-scan-tipp { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .35rem .75rem; font-size: .85rem; line-height: 1.3; text-align: center; color: #fff; background: rgba(17, 24, 39, .6); pointer-events: none; }
.ma-scan-kamera--aus .ma-scan-tipp { display: none; }
.ma-scan-kamera--aus .ma-scan-ziel { display: none; }
.ma-scan-kamerahinweis { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center; color: #fff; background: rgba(17, 24, 39, .88); }
.ma-scan-kamerahinweis[hidden] { display: none; }
.ma-scan-kamerahinweis br { display: none; }
.ma-scan-kamera--gueltig { border-color: #047857; }
.ma-scan-kamera--ungueltig { border-color: #b91c1c; }
.ma-scan-kamera--unklar { border-color: #b45309; }
.ma-scan--prueft .ma-scan-ziel { border-color: #fbbf24; }
.ma-scan-nummer { margin: .75rem 0 0; }
.ma-scan-nummer label { display: block; font-weight: 600; margin: 0 0 .3rem; }
.ma-scan-zeile { display: flex; gap: .5rem; }
.ma-scan-zeile input { flex: 1 1 auto; min-width: 0; font-size: 1.1em; }
.ma-scan-zeile .ma-knopf { flex: 0 0 auto; }
.ma-scan-leer { margin: 0; padding: 1.25rem 1rem; border: 2px dashed var(--ma-rand); border-radius: 10px; color: var(--ma-leise); text-align: center; }
.ma-scan-eingabe { margin: 0 0 .5rem; font-weight: 600; color: var(--ma-leise); }
.ma-scan-karte { margin: 0 0 .75rem; padding: .75rem; border-radius: 10px; border: 2px solid; background: #fff; }
.ma-scan-karte--gueltig { border-color: #047857; }
.ma-scan-karte--ungueltig { border-color: #b91c1c; }
.ma-scan-karte--unklar { border-color: #b45309; }
.ma-scan-status { display: flex; align-items: center; gap: .6rem; margin: -.75rem -.75rem .6rem; padding: .6rem .75rem; border-radius: 8px 8px 0 0; font-size: 1.6em; font-weight: 700; line-height: 1.2; }
.ma-scan-status svg { flex: 0 0 auto; width: 1.4em; height: 1.4em; }
.ma-scan-wort { flex: 1 1 auto; min-width: 0; }
.ma-scan-zeit { font-size: .55em; font-weight: 400; font-variant-numeric: tabular-nums; }
.ma-scan-karte--gueltig .ma-scan-status { background: #ecfdf5; color: #047857; }
.ma-scan-karte--ungueltig .ma-scan-status { background: #fef2f2; color: #b91c1c; }
.ma-scan-karte--unklar .ma-scan-status { background: #fffbeb; color: #b45309; }
.ma-scan-gruende { margin: 0 0 .6rem; padding-left: 1.25rem; font-weight: 600; }
.ma-scan-person { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.ma-scan-foto { flex: 0 0 auto; width: 120px; max-width: 32%; height: auto; border-radius: 6px; border: 1px solid var(--ma-rand); }
.ma-scan-daten { flex: 1 1 14rem; min-width: 0; border-collapse: collapse; }
.ma-scan-daten th, .ma-scan-daten td { padding: .3rem .5rem; border-bottom: 1px solid var(--ma-rand); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ma-scan-daten th { width: 38%; font-weight: 600; color: var(--ma-leise); overflow-wrap: break-word; hyphens: auto; }
.ma-scan-daten tr.ma-scan-farbig th { color: inherit; }
.ma-scan-daten tr.ma-scan-alter th, .ma-scan-daten tr.ma-scan-alter td { font-size: 1.3em; font-weight: 700; }
/* 2.16.0: Spiele 1.Herren, Leerfeld und Trennlinie */
.ma-scan-daten tr.ma-scan-spiele th, .ma-scan-daten tr.ma-scan-spiele td { font-size: 1.15em; font-weight: 700; }
.ma-scan-daten tr.ma-scan-abstand td { height: 1rem; padding: 0; border: 0; }
/* 2.18.0: Hinweisfenster bei ungueltigem Ausweis in der Pruefstelle */
.ma-scan-warnung { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(17, 24, 39, .6); }
.ma-scan-warnung-fenster { box-sizing: border-box; width: min(32rem, 100%); max-height: 100%; overflow: auto; padding: 1.5rem; border-radius: 12px; background: #b91c1c; color: #fff; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ma-scan-warnung-text { margin: 0 0 1.25rem; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; }
.ma-scan-warnung .ma-scan-warnung-zu { min-height: 44px; min-width: 8rem; color: #111827; background: #fff; border: 2px solid #111827; font-weight: 700; }
/* 2.18.0: Einstellungen und Vorschau des Hinweisfensters */
.ma-warn-maske { max-width: 40rem; margin-top: .75rem; }
.ma-warn-reihe { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.ma-warn-reihe input[type="color"] { width: 3.5rem; height: 2.25rem; padding: 0 2px; vertical-align: middle; }
.ma-warn-vorschau { margin-top: .75rem; padding: 1.25rem; border-radius: 12px; text-align: center; }
.ma-warn-vorschau-text { margin: 0 0 1rem; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; }
.ma-warn-vorschau-knopf { display: inline-block; min-width: 8rem; padding: .5rem 1rem; color: #111827; background: #fff; border: 2px solid #111827; border-radius: 8px; font-weight: 700; }
@media (max-width: 782px) {
	.ma-warn-reihe select, .ma-warn-reihe input[type="color"] { min-height: 44px; }
}
.ma-scan-daten .ma-scan-fett { font-weight: 700; }
.ma-scan-daten .ma-scan-kursiv { font-style: italic; }
.ma-scan-daten .ma-scan-unter { text-decoration: underline; }
.ma-scan-daten tr.ma-scan-linie td { height: 1.25rem; padding: 0; border: 0; background: linear-gradient(#6b7280, #6b7280) center / 100% 2px no-repeat; }
.ma-scan-verlauf { margin-top: 1rem; }
.ma-scan-verlauf h3 { margin: 0 0 .4rem; font-size: 1em; }
.ma-scan-verlauf ol { margin: 0; padding: 0; list-style: none; }
.ma-scan-verlauf li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; padding: .35rem 0; border-bottom: 1px solid var(--ma-rand); font-size: .9em; }
.ma-scan-v-zeit { font-variant-numeric: tabular-nums; color: var(--ma-leise); }
.ma-scan-v-wer { min-width: 0; overflow-wrap: anywhere; }
/* Handy hoch: Kamera flacher, Foto neben den Daten */
.ma-scan--hoch .ma-scan-video { height: 30vh; min-height: 170px; }
@media (max-width: 480px) {
	.ma-scan-foto { width: 84px; }
	.ma-scan-daten { flex-basis: 9rem; }
	.ma-scan-status { font-size: 1.35em; }
}

/* Quer (Rechner, Tablet quer, Handy quer): Kamera links, Daten rechts */
.ma-scan--quer .ma-scan-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ma-scan--quer .ma-scan-video { height: min(56vh, 520px); min-height: 160px; }
.ma-scan--quer .ma-scan-ergebnis { max-height: calc(100vh - 8rem); overflow-y: auto; }

/* Vollbild: nur die Pruefung, ohne Kopf und Menue der Website */
html.ma-scan-offen, html.ma-scan-offen body { overflow: hidden; }
.ma-scan--voll { position: fixed; inset: 0; z-index: 100000; margin: 0; padding: .75rem; overflow-y: auto; background: #fff; }
.ma-scan--voll.ma-scan--quer .ma-scan-video { height: calc(100vh - 11rem); max-height: none; }
.ma-scan--voll.ma-scan--quer .ma-scan-ergebnis { max-height: calc(100vh - 5rem); }
.ma-scan--voll.ma-scan--hoch .ma-scan-video { height: 32vh; }
@media (max-height: 480px) {
	/* Handy quer: wenig Hoehe, Kamera und Daten kompakter */
	.ma-scan--quer .ma-scan-video { height: calc(100vh - 9rem); min-height: 120px; }
	.ma-scan--voll.ma-scan--quer .ma-scan-video { height: calc(100vh - 8.5rem); }
	.ma-scan-status { font-size: 1.3em; }
	.ma-scan-foto { width: 84px; }
	.ma-scan-daten { flex-basis: 9rem; }
	.ma-scan-nummer .ma-klein { display: none; }
}

/* 2.13.0: Easyverein-Daten */
.ma-ev-filter { grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto auto; }
.ma-ev-haken { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-bottom: .75rem; font-weight: 600; white-space: nowrap; }
.ma-ev-haken input { width: 18px; height: 18px; margin: 0; }
.ma-ev-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .5rem; }
.ma-ev-kopf .ma-zahl { margin: 0; }
.ma-ev-wahl { width: 2.5rem; text-align: center; }
.ma-ev-wahl label { display: inline-flex; min-width: 32px; min-height: 32px; align-items: center; justify-content: center; cursor: pointer; }
.ma-ev-wahl input { width: 20px; height: 20px; margin: 0; }
.ma-ev-wahl input:disabled { cursor: not-allowed; }
.ma-ev-hat { background: #f3f7fd; }
.ma-marke--ausweis { background: #e5eefb; color: var(--ma-akzent-dunkel); }
.ma-ev-erstellen { position: sticky; bottom: 0; z-index: 2; margin-top: 1rem; padding: .75rem 1rem; background: #fff; border: 1px solid var(--ma-rand); border-radius: 8px; box-shadow: 0 -2px 8px rgba(0, 0, 0, .06); }
.ma-ev-gewaehlt { margin: 0 0 .5rem; font-weight: 600; }
.ma-ev-warnung { margin: 0 0 .5rem; padding: .5rem .75rem; border-left: 4px solid var(--ma-warn); background: #fdf3e1; color: #5c3b00; }
.ma-ev-rueckfrage { max-width: 760px; }
/* Handy: Leiste nicht festhalten, sonst verdeckt sie die halbe Liste */
@media (max-width: 600px) {
	.ma-ev-erstellen { position: static; box-shadow: none; }
}
.ma-ev-liste { list-style: none; margin: .5rem 0 1rem; padding: 0; border: 1px solid var(--ma-rand); border-radius: 8px; }
.ma-ev-liste li { padding: .5rem .75rem; border-bottom: 1px solid var(--ma-rand); }
.ma-ev-liste li:last-child { border-bottom: 0; }
.ma-ev-bild { margin: .5rem 0; padding: .5rem .75rem; border: 1px solid var(--ma-warn); border-radius: 6px; background: #fdf3e1; }
.ma-ev-bild legend { padding: 0 .25rem; font-weight: 600; }
/* 2.15.0: Profilbild aus easyVerein als Passfoto */
.ma-ev-profilbild { display: block; margin: .5rem 0; padding: .4rem .6rem; border-left: 4px solid var(--ma-ok); background: var(--ma-ok-flaeche); }
.ma-ev-profilbild-zurueck { margin: .5rem 0; }
.ma-ev-bildfrage .ma-leiste { margin-top: .5rem; }
@media (max-width: 480px) {
	.ma-ev-bildfrage .ma-leiste .ma-knopf { flex: 1 1 100%; }
}
@media (max-width: 900px) {
	.ma-ev-filter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.ma-ev-filter { grid-template-columns: 1fr; }
	.ma-ev-tabelle td.ma-ev-wahl { width: 100%; text-align: left; }
	.ma-ev-tabelle td.ma-ev-wahl label { justify-content: flex-start; }
	.ma-ev-kopf { flex-direction: column; align-items: flex-start; }
	.ma-ev-erstellen { padding: .75rem; }
}

/* Seit 2.14.0: Reiter easyVerein-Gruppen */
.ma-gruppen-abruf .ma-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ma-gruppen-tabelle input[type="text"] { width: 100%; max-width: 28rem; box-sizing: border-box; }
.ma-gruppen-tabelle td:nth-child(2) { white-space: nowrap; }
/* 2.14.0: Gruppentabelle am Handy als Karten, damit das Eingabefeld ganz sichtbar ist */
@media (max-width: 640px) {
	.ma-einst table.ma-gruppen-tabelle, .ma-einst table.ma-gruppen-tabelle tbody, .ma-einst table.ma-gruppen-tabelle tr, .ma-einst table.ma-gruppen-tabelle td { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
	.ma-einst table.ma-gruppen-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ma-einst table.ma-gruppen-tabelle tr { border: 1px solid var(--ma-rand); border-radius: 8px; margin-bottom: .75rem; padding: .5rem; }
	.ma-einst table.ma-gruppen-tabelle td { border: 0; padding: .25rem; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .5rem; align-items: center; }
	.ma-einst table.ma-gruppen-tabelle td::before { content: attr(data-l); font-weight: 600; color: var(--ma-leise); }
	.ma-einst table.ma-gruppen-tabelle td:nth-child(2) { white-space: normal; }
	.ma-gruppen-tabelle input[type="text"] { max-width: none; }
}

/* 2.14.1: Kleines Bild vor dem Nachnamen in Easyverein-Daten (Profilbild oder Platzhalter) */
.ma-ev-person { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.ma-ev-person > span { min-width: 0; overflow-wrap: anywhere; }
.ma-ev-kopfbild { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

/* Gemeinsame Bearbeitung (seit 2.21.0): Auswahl in der Antragsliste und Maske */
.ma-sammel-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .5rem 0; }
.ma-sammel-wahl .ma-knopf { min-height: 44px; }
.ma-sammel-alle, .ma-sammel-haken { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; cursor: pointer; }
.ma-sammel-alle input, .ma-sammel-haken input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
.ma-sammel-haken span { font-size: .85em; }
.ma-foto-zelle { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.ma-sammel-liste { margin: .5rem 0 1rem; }
.ma-sammel-liste summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.ma-sammel-liste ul { margin: .25rem 0 0 1.2rem; padding: 0; }
.ma-sammel select, .ma-sammel input[type="text"], .ma-sammel input[type="date"], .ma-sammel input[type="email"], .ma-sammel input[type="tel"] { min-height: 44px; max-width: 100%; box-sizing: border-box; }
.ma-sammel-feld > label:first-child { font-weight: 600; }
.ma-sammel-feld .ma-wahl { min-height: 44px; align-items: center; }
@media (max-width: 640px) {
	.ma-sammel-wahl .ma-knopf { width: 100%; }
	.ma-foto-zelle { flex-direction: row; align-items: center; gap: .75rem; }
}

/* 2.23.0: Namensliste, E-Mail-Rueckfrage und easyVerein-Felder im Formular */
.ma-ev-wahl__jahr { grid-column: 1; font-size: .9em; color: var(--ma-leise, #6b7280); }
.ma-ev-keiner { margin: 0 0 .5rem; min-height: 44px; }
.ma-ev-dialog .ma-ev-liste { max-height: 55vh; overflow-y: auto; }
.ma-ev-mail { font-size: .95em; }
/* 2.24.0: Geburtsdatum abfragen oder korrigieren */
.ma-ev-geb { font-size: .95em; }
.ma-ev-geb-text { margin: 0 0 .4rem; }
.ma-ev-geb-eingabe { margin: .5rem 0 .4rem; }
.ma-ev-geb-eingabe input[type="date"] { width: 100%; max-width: 16rem; min-height: 44px; box-sizing: border-box; font-size: 16px; }
@media (max-width: 600px) {
	.ma-ev-geb-eingabe input[type="date"] { max-width: none; }
}
.ma-ev-mail legend { overflow-wrap: anywhere; }
.ma-ev-mail .ma-wahl { min-height: 44px; align-items: center; }
.ma-feld--ev output { display: block; min-height: 2.6rem; padding: .55rem .7rem; border: 1px dashed var(--ma-rand, #d1d5db); border-radius: 6px; background: #f9fafb; color: var(--ma-text, #1f2937); overflow-wrap: anywhere; }
.ma-feld--ev .ma-ev-wert--leer { color: var(--ma-leise, #6b7280); font-style: normal; }
.ma-ev-mailfrage .ma-leiste { margin-top: .5rem; flex-wrap: wrap; }
@media (max-width: 480px) {
	.ma-ev-mailfrage .ma-leiste .ma-knopf { flex: 1 1 100%; }
}

/* 2.28.0: Reiter Export, Spaltenauswahl je Kartenart */
.ma-export-spalten { border: 1px solid var(--ma-rand, #dcdcde); border-radius: 6px; padding: .5rem 1rem; margin: 0 0 1rem; background: #fff; }
.ma-export-spalten legend { font-weight: 600; padding: 0 .35rem; }
.ma-export-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 1rem; }
.ma-export-liste li { margin: 0; }
.ma-export-liste label { display: flex; align-items: flex-start; gap: .6rem; min-height: 44px; padding: .55rem 0; cursor: pointer; }
.ma-export-liste input[type="checkbox"] { width: 20px; height: 20px; margin: .1rem 0 0; flex: 0 0 auto; }
.ma-export-text { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.ma-export-text code { white-space: nowrap; }
.ma-export-liste code { font-size: .8125em; color: var(--ma-leise, #50575e); background: #f6f7f7; padding: 0 .3rem; border-radius: 3px; }
.ma-export-stand { font-weight: 600; }
.ma-einst-reiter { margin-bottom: 1rem; }
@media (max-width: 700px) {
	.ma-export-liste { grid-template-columns: 1fr; }
	.ma-export-liste li + li { border-top: 1px solid var(--ma-rand, #dcdcde); }
}
