
.hhg-tg-generator {
	--hhg-main: var(--hhg-brand-main, #DCA54A);
	--hhg-accent: var(--hhg-brand-accent, #F3E3C7);
	--hhg-edge: var(--hhg-brand-border, #B1843A);
	--hhg-ink: var(--hhg-brand-text, #000000);
	--hhg-border: color-mix(in srgb, var(--hhg-edge) 42%, #ffffff);
	--hhg-soft: color-mix(in srgb, var(--hhg-accent) 42%, #ffffff);
	--hhg-text-soft: color-mix(in srgb, var(--hhg-ink) 62%, #ffffff);
	color: var(--hhg-ink);
	max-width: 1050px;
	margin: 28px auto;
	font-family: inherit;
}
.hhg-tg-generator * { box-sizing: border-box; }
.hhg-tg-header { margin-bottom: 22px; }
.hhg-tg-header h2 { margin-bottom: 6px; }
.hhg-tg-header p { margin: 0; color: var(--hhg-text-soft); }
.hhg-tg-steps {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}
.hhg-tg-steps li {
	display: flex;
	align-items: center;
	min-height: 58px;
	padding: 10px;
	border: 1px solid var(--hhg-border);
	border-radius: 10px;
	background: var(--hhg-soft);
	font-size: 13px;
	line-height: 1.25;
}
.hhg-tg-steps li span {
	display: inline-flex;
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	margin-right: 7px;
	background: #e5e5e5;
}
.hhg-tg-steps li.is-active {
	background: #fff;
	border-color: #999;
	font-weight: 700;
}
.hhg-tg-card {
	margin-bottom: 18px;
	padding: 22px;
	border: 1px solid var(--hhg-border);
	border-radius: 12px;
	background: #fff;
}
.hhg-tg-card h3 { margin-top: 0; margin-bottom: 18px; }
.hhg-tg-card-head {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 18px;
}
.hhg-tg-card-head h3 { margin: 0 0 4px; }
.hhg-tg-card-head p { margin: 0; color: var(--hhg-text-soft); }
.hhg-tg-save-state {
	white-space: nowrap;
	font-size: 13px;
	color: var(--hhg-text-soft);
}
.hhg-tg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.hhg-tg-field-wide { grid-column: 1 / -1; }
.hhg-tg-field label {
	display: block;
	font-weight: 650;
	margin-bottom: 6px;
}
.hhg-tg-field label span { color: #a00; }
.hhg-tg-field input,
.hhg-tg-field select,
.hhg-tg-field textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 9px 11px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}
.hhg-tg-field textarea { min-height: 90px; resize: vertical; }
.hhg-tg-field input:focus,
.hhg-tg-field select:focus,
.hhg-tg-field textarea:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}
.hhg-tg-field small {
	display: block;
	margin-top: 6px;
	color: var(--hhg-text-soft);
}
.hhg-tg-field.is-invalid input,
.hhg-tg-field.is-invalid select,
.hhg-tg-field.is-invalid textarea {
	border-color: #b42318;
}
.hhg-tg-logo-preview {
	margin-top: 10px;
	padding: 10px;
	border: 1px dashed var(--hhg-border);
	border-radius: 8px;
}
.hhg-tg-logo-preview img {
	display: block;
	max-width: 180px;
	max-height: 100px;
	object-fit: contain;
	margin-bottom: 8px;
}
.hhg-tg-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}
.hhg-tg-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}
.hhg-tg-primary,
.hhg-tg-secondary {
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 8px;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}
.hhg-tg-primary {
	border: 1px solid #222;
	background: #222;
	color: #fff;
}
.hhg-tg-secondary {
	border: 1px solid #bbb;
	background: #fff;
	color: inherit;
}
.hhg-tg-message {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #f6f6f6;
}
.hhg-tg-message.is-error {
	background: #fff1f0;
	color: #8a1c16;
}
.hhg-tg-message.is-success {
	background: #f0f7f1;
	color: #245b2d;
}
@media (max-width: 800px) {
	.hhg-tg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hhg-tg-grid { grid-template-columns: 1fr; }
	.hhg-tg-field-wide { grid-column: auto; }
	.hhg-tg-card-head { display: block; }
	.hhg-tg-save-state { display: block; margin-top: 8px; }
}
@media (max-width: 520px) {
	.hhg-tg-steps { grid-template-columns: 1fr; }
	.hhg-tg-actions { flex-direction: column-reverse; }
	.hhg-tg-primary, .hhg-tg-secondary { width: 100%; }
}

.hhg-tg-step-panel[hidden] { display: none !important; }
.hhg-tg-choice-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.hhg-tg-choice {
	display: block;
	padding: 16px;
	border: 1px solid var(--hhg-border);
	border-radius: 10px;
	cursor: pointer;
}
.hhg-tg-choice:has(input:checked) { border-color: #555; background: var(--hhg-soft); }
.hhg-tg-choice input { margin-right: 7px; }
.hhg-tg-choice strong { display: inline; }
.hhg-tg-choice small { display: block; margin: 7px 0 0 24px; color: var(--hhg-text-soft); }
.hhg-tg-age-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}
.hhg-tg-check {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	padding: 12px;
	border: 1px solid var(--hhg-border);
	border-radius: 9px;
}
.hhg-tg-check input { margin-top: 3px; }
.hhg-tg-check small { display: block; color: var(--hhg-text-soft); margin-top: 2px; }
.hhg-tg-help { color: var(--hhg-text-soft); margin-top: -8px; }
.hhg-tg-toggle-list { margin-top: 16px; }
.hhg-tg-info-card { background: var(--hhg-soft); }
.hhg-tg-rule-legend p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
	.hhg-tg-choice-grid { grid-template-columns: 1fr; }
	.hhg-tg-age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hhg-tg-empty {
	padding: 26px;
	border: 1px dashed var(--hhg-border);
	border-radius: 10px;
	text-align: center;
	color: var(--hhg-text-soft);
}
.hhg-tg-empty p { margin-bottom: 0; }
.hhg-tg-competition-list { display: grid; gap: 10px; }
.hhg-tg-competition-item {
	display: grid;
	grid-template-columns: 36px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--hhg-border);
	border-radius: 10px;
	background: #fff;
}
.hhg-tg-drag {
	cursor: grab;
	user-select: none;
	font-size: 20px;
	text-align: center;
	color: var(--hhg-text-soft);
}
.hhg-tg-competition-title { font-weight: 700; margin-bottom: 4px; }
.hhg-tg-competition-meta { font-size: 13px; color: var(--hhg-text-soft); }
.hhg-tg-competition-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hhg-tg-small-button {
	padding: 7px 9px;
	border: 1px solid #bbb;
	border-radius: 7px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
}
.hhg-tg-small-button.is-danger { color: #9f1d16; }
.hhg-tg-modal[hidden] { display: none !important; }
.hhg-tg-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.hhg-tg-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.48);
}
.hhg-tg-modal-dialog {
	position: relative;
	width: min(900px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.hhg-tg-modal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}
.hhg-tg-modal-head h3 { margin: 0; }
.hhg-tg-modal-close {
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.hhg-tg-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}
.hhg-tg-competition-item.is-dragging { opacity: .45; }
.hhg-tg-rule-warning {
	margin-top: 6px;
	color: #8a5a00;
	font-size: 13px;
}
@media (max-width: 700px) {
	.hhg-tg-competition-item { grid-template-columns: 30px 1fr; }
	.hhg-tg-competition-actions { grid-column: 1 / -1; justify-content: flex-start; }
	.hhg-tg-modal { padding: 8px; }
	.hhg-tg-modal-dialog { padding: 16px; max-height: 96vh; }
}

.hhg-tg-step-panel[data-step="4"] .hhg-tg-choice-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
	.hhg-tg-step-panel[data-step="4"] .hhg-tg-choice-grid {
		grid-template-columns: 1fr;
	}
}

.hhg-tg-provision-list {
	display: grid;
	gap: 14px;
}
.hhg-tg-provision {
	padding: 16px;
	border: 1px solid var(--hhg-border);
	border-radius: 10px;
	background: #fff;
}
.hhg-tg-provision-toggle {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin-bottom: 10px;
	cursor: pointer;
}
.hhg-tg-provision-toggle input {
	margin-top: 4px;
}
.hhg-tg-provision textarea {
	width: 100%;
	min-height: 95px;
	padding: 10px 11px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	font: inherit;
	resize: vertical;
}
.hhg-tg-provision small {
	display: block;
	margin-top: 7px;
	color: var(--hhg-text-soft);
}
.hhg-tg-provision.is-disabled {
	opacity: .58;
	background: var(--hhg-soft);
}
.hhg-tg-custom-provision {
	margin-bottom: 14px;
	padding: 16px;
	border: 1px solid var(--hhg-border);
	border-radius: 10px;
}
.hhg-tg-custom-provision-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.hhg-tg-custom-provision .hhg-tg-field + .hhg-tg-field {
	margin-top: 12px;
}

.hhg-tg-document-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.hhg-tg-doc-note {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--hhg-border);
	border-radius: 8px;
	background: var(--hhg-soft);
}
.hhg-tg-document-shell {
	margin-top: 20px;
	padding: 24px;
	background: #e8e8e8;
	border-radius: 12px;
}
.hhg-tg-document-preview {
	box-sizing: border-box;
	width: min(210mm, 100%);
	min-height: 297mm;
	margin: 0 auto;
	padding: 18mm 17mm;
	background: #fff;
	color: #222;
	box-shadow: 0 4px 20px rgba(0,0,0,.12);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11pt;
	line-height: 1.48;
}
.hhg-doc-header {
	text-align: center;
	padding-bottom: 18px;
	border-bottom: 2px solid #333;
	margin-bottom: 24px;
}
.hhg-doc-logo {
	display: block;
	max-width: 160px;
	max-height: 90px;
	object-fit: contain;
	margin: 0 auto 14px;
}
.hhg-doc-kicker {
	font-size: 10pt;
	text-transform: uppercase;
	letter-spacing: .12em;
}
.hhg-doc-header h1 {
	margin: 5px 0 7px;
	font-size: 24pt;
	line-height: 1.15;
}
.hhg-doc-organizer, .hhg-doc-lead { margin: 4px 0; }
.hhg-doc-section {
	margin: 0 0 25px;
	break-inside: auto;
}
.hhg-doc-section > h2 {
	font-size: 15pt;
	border-bottom: 1px solid #999;
	padding-bottom: 5px;
	margin: 0 0 12px;
}
.hhg-doc-section h3 {
	font-size: 11.5pt;
	margin: 13px 0 5px;
}
.hhg-doc-info { margin: 0; }
.hhg-doc-info-row {
	display: grid;
	grid-template-columns: 165px 1fr;
	gap: 12px;
	padding: 5px 0;
	border-bottom: 1px solid #eee;
}
.hhg-doc-info-row dt { font-weight: 700; }
.hhg-doc-info-row dd { margin: 0; }
.hhg-doc-competition {
	padding: 10px 0 13px;
	border-bottom: 1px solid #ddd;
	break-inside: avoid;
}
.hhg-doc-competition:first-child { padding-top: 0; }
.hhg-doc-competition h3 { margin-top: 0; }
.hhg-doc-competition-rule { color: #555; margin-top: -2px; }
.hhg-doc-competition ul { margin: 7px 0; }
.hhg-doc-provision { break-inside: avoid; }
.hhg-doc-provision p { margin-top: 4px; }
.hhg-doc-nomination-table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0 20px;
}
.hhg-doc-nomination-table th,
.hhg-doc-nomination-table td {
	border: 1px solid #888;
	padding: 7px;
	text-align: left;
}
.hhg-doc-nomination-table th:first-child,
.hhg-doc-nomination-table td:first-child { width: 25px; text-align: center; }
.hhg-doc-nomination-table th:nth-child(2),
.hhg-doc-nomination-table td:nth-child(2) { width: 35px; text-align: center; }
.hhg-doc-footer {
	margin-top: 35px;
	padding-top: 10px;
	border-top: 1px solid #aaa;
	font-size: 9pt;
	color: #666;
	text-align: center;
}
@media (max-width: 700px) {
	.hhg-tg-document-shell { padding: 7px; }
	.hhg-tg-document-preview { min-height: 0; padding: 18px 14px; font-size: 10pt; }
	.hhg-doc-info-row { grid-template-columns: 1fr; gap: 2px; }
}
@media print {
	body * { visibility: hidden !important; }
	#hhg-tg-document-preview,
	#hhg-tg-document-preview * { visibility: visible !important; }
	#hhg-tg-document-preview {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		min-height: 0;
		margin: 0;
		padding: 12mm 14mm;
		box-shadow: none;
		font-size: 10.5pt;
	}
	.hhg-tg-no-print { display: none !important; }
	@page { size: A4; margin: 0; }
}

/* V0.8 – dokumentnahe Vorschau */
.hhg-tg-document-shell { padding: 18px; }
.hhg-tg-document-preview {
	width: min(210mm, 100%);
	padding: 16mm 16mm 18mm;
	font-size: 10.5pt;
	line-height: 1.48;
}
.hhg-doc-overview-wrap { overflow-x:auto; }
.hhg-doc-overview { width:100%; border-collapse:collapse; font-size:9pt; }
.hhg-doc-overview th,.hhg-doc-overview td { border:1px solid #aaa; padding:6px; vertical-align:top; }
.hhg-doc-competition-detail {
	margin-top: 34px;
	padding-top: 24px;
	border-top: 3px solid #ececec;
}
.hhg-doc-competition-heading {
	display:flex;
	justify-content:space-between;
	gap:20px;
	align-items:flex-end;
	border-bottom:1px solid #999;
	margin-bottom:16px;
}
.hhg-doc-competition-heading h2 { border:0; margin:0 0 6px; padding:0; }
.hhg-doc-competition-heading > div { color:#666; font-size:9pt; text-align:right; }
.hhg-doc-detail-label { font-weight:700; margin-top:15px; }
.hhg-doc-sketch { text-align:center; margin:20px 0; }
.hhg-doc-sketch svg { width:min(520px,100%); height:auto; }
.hhg-doc-sketch-caption { color:#666; font-size:9pt; }
.hhg-doc-task-box { border:1px solid #aaa; border-radius:6px; padding:12px; margin-top:16px; }
.hhg-doc-task-box strong { display:block; margin-bottom:5px; }
.hhg-doc-task-box span { color:#666; }
.hhg-doc-note-inline { background:#f6f6f6; border-left:3px solid #999; padding:9px 12px; }

.hhg-doc-nomination-page {
	margin-top:55px;
	padding-top:35px;
	border-top:8px solid #e8e8e8;
}
.hhg-nenn-header {
	display:grid;
	grid-template-columns:minmax(0,120px) 1fr;
	gap:20px;
	align-items:center;
	border-bottom:2px solid #333;
	padding-bottom:14px;
	margin-bottom:16px;
}
.hhg-nenn-header .hhg-doc-logo { margin:0; max-width:110px; }
.hhg-nenn-header h1 { margin:3px 0; font-size:20pt; }
.hhg-nenn-header p { margin:2px 0; }
.hhg-nenn-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; }
.hhg-nenn-fields .wide { grid-column:1/-1; }
.hhg-nenn-fields label,.hhg-parent-box label,.hhg-signatures label { font-weight:650; }
.hhg-nenn-fields input,.hhg-parent-box input,.hhg-signatures input,.hhg-nenn-total input,.hhg-fill-line {
	width:100%; min-height:34px; border:1px solid #ccc; border-radius:6px; padding:6px 8px; font:inherit;
}
.hhg-nenn-total { display:flex; justify-content:flex-end; align-items:center; gap:8px; margin:12px 0; }
.hhg-nenn-total input { width:120px; }
.hhg-consent { display:grid; grid-template-columns:24px 1fr; gap:8px; align-items:flex-start; margin:12px 0; }
.hhg-consent input { width:18px; height:18px; margin-top:2px; }
.hhg-consent-optional { background:#f7f7f7; padding:10px; border-radius:6px; }
.hhg-parent-box { border:1px solid #bbb; padding:12px; margin:15px 0; border-radius:6px; }
.hhg-signatures { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:16px; }
.hhg-nenn-legal-note { font-size:8.5pt; color:#666; margin-top:16px; }
.hhg-nenn-footer { text-align:center; border-top:1px solid #bbb; margin-top:20px; padding-top:8px; font-size:8.5pt; color:#666; }
.hhg-tg-custom-rule-box { padding:14px; background:#fafafa; border:1px solid #ddd; border-radius:8px; }
.hhg-tg-custom-rule-box h4 { margin-top:0; }
.hhg-tg-custom-rule-box textarea { width:100%; margin:6px 0 12px; }

/* Alte globale Print-Regel wird in V0.8 nicht mehr verwendet:
   Der Druck erfolgt in einem eigenen Dokumentfenster. */

.hhg-tg-custom-rule-box input[type="text"] { width:100%; min-height:42px; margin:6px 0 12px; padding:8px 10px; border:1px solid #cfcfcf; border-radius:8px; font:inherit; }
.hhg-doc-internal-link { color:inherit; text-decoration:underline; }
.hhg-doc-task-box { break-inside:avoid; page-break-inside:avoid; min-height:auto; }

.hhg-tg-rule-guidance{padding:14px 16px;border:1px solid #b9c6d8;border-left:4px solid #6b7f99;border-radius:8px;background:#f7f9fc}
.hhg-tg-rule-guidance>strong{display:block;font-size:1.05em;margin-bottom:8px}.hhg-tg-rule-guidance ul{margin:6px 0 9px 20px}
.hhg-tg-inline-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.hhg-tg-inline-check input{width:auto;min-height:0;margin-top:4px}
.hhg-tg-age-grid.is-muted{opacity:.45;pointer-events:none}
.hhg-tg-spring-box,.hhg-tg-task-generator-box{padding:14px;border:1px solid var(--hhg-border);border-radius:10px;background:#fafafa}
.hhg-tg-spring-box h4,.hhg-tg-task-generator-box h4{margin:0 0 10px}
.hhg-tg-obstacle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hhg-task-row{display:grid;grid-template-columns:120px 1fr 40px;gap:8px;margin-bottom:8px}.hhg-task-row input{width:100%;min-height:40px;padding:7px 9px;border:1px solid #ccc;border-radius:7px;font:inherit}
.hhg-doc-attachment-image{display:block;max-width:100%;max-height:700px;object-fit:contain;margin:14px auto 0}.hhg-doc-file-note{display:block;margin-top:7px;font-style:italic}
.hhg-doc-task-table{width:100%;border-collapse:collapse;margin:10px 0 18px}.hhg-doc-task-table th,.hhg-doc-task-table td{border:1px solid #aaa;padding:7px}.hhg-doc-task-table th:first-child,.hhg-doc-task-table td:first-child{width:90px}
@media(max-width:800px){.hhg-tg-obstacle-grid{grid-template-columns:1fr 1fr}.hhg-task-row{grid-template-columns:90px 1fr 38px}}
@media(max-width:520px){.hhg-tg-obstacle-grid{grid-template-columns:1fr}.hhg-task-row{grid-template-columns:1fr 38px}.hhg-task-row .hhg-task-text{grid-column:1/-1}}

.hhg-doc-attachment-pdf{display:block;width:100%;height:760px;border:1px solid #ddd;margin:14px auto 0}
#hhg_comp_duration_wrap input{width:100%}
#hhg_comp_lesson_picker_wrap textarea{width:100%;margin-top:6px}

.hhg-tg-duration-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hhg-tg-duration-range label{font-weight:600}
.hhg-tg-duration-range input{width:100%;min-height:42px;margin-top:5px;padding:8px 10px;border:1px solid #cfcfcf;border-radius:8px;font:inherit}
@media(max-width:600px){.hhg-tg-duration-range{grid-template-columns:1fr}}

#hhg-tg-print-frame{position:fixed!important;width:0!important;height:0!important;border:0!important;right:0!important;bottom:0!important}

.hhg-doc-arena-image{display:block;width:min(620px,100%);height:auto;margin:0 auto}
.hhg-doc-judging-page{margin-top:50px;padding-top:30px;border-top:8px solid #e8e8e8}
.hhg-doc-judging-page h1{font-size:22pt;border-bottom:1px solid #999;padding-bottom:8px}
.hhg-dressage-only #hhg_da_lessons .hhg-tg-small-button{text-align:left}

.hhg-doc-competition-heading,.hhg-doc-task-box,.hhg-doc-task-table,.hhg-nenn-header{break-inside:avoid;page-break-inside:avoid}
.hhg-doc-detail-label{break-after:avoid;page-break-after:avoid}
.hhg-doc-provision{break-inside:avoid;page-break-inside:avoid}

/* v0.14.2 */
.hhg-tg-obstacle-grid .hhg-tg-check{
    background:#fff!important;
    border-color:var(--hhg-border)!important;
}
.hhg-tg-obstacle-grid .hhg-tg-check small{display:none!important}
.hhg-consent-required{font-weight:500}
.hhg-nenn-signature-block,
.hhg-parent-box,
.hhg-signatures,
.hhg-nenn-legal-note,
.hhg-consent{
    break-inside:avoid;
    page-break-inside:avoid;
}

/* v0.15 – KI-Aufgabenerkennung */
.hhg-tg-ai-import{margin:14px 0 18px;padding:14px;border:1px solid #cfd7e3;border-radius:10px;background:#f8fafc}
.hhg-tg-ai-import h5{margin:0 0 7px;font-size:1rem}
.hhg-tg-ai-upload-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.hhg-tg-ai-upload-row input[type=file]{flex:1 1 280px;min-width:0}
.hhg-tg-ai-status{margin-top:10px;font-weight:600}
.hhg-tg-ai-review-note{margin-top:10px;padding:10px 12px;border-left:4px solid #8b6f47;background:#fffaf2;border-radius:6px}

/* v0.15.1 */
.hhg-tg-ai-card{border-style:dashed}
.hhg-tg-ai-card #hhg_comp_ai_panel{margin-top:14px;padding-top:14px;border-top:1px solid var(--hhg-border)}

/* v0.15.2 – PDF preview always A4 portrait */
.hhg-tg-document-preview{
	width:min(100%, 794px);
	max-width:794px;
	margin-left:auto;
	margin-right:auto;
}
.hhg-tg-document-preview .hhg-main-document,
.hhg-tg-document-preview .hhg-doc-nomination-page,
.hhg-tg-document-preview .hhg-doc-judging-page{
	max-width:100%;
}

/* v0.16 – Parcours-Editor */
.hhg-parcours-config-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.hhg-parcours-config-grid label{font-weight:600}
.hhg-parcours-config-grid input[type=number]{width:100%;margin-top:5px}
.hhg-parcours-toolbar{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-start;margin:12px 0}
.hhg-parcours-library{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 520px}
.hhg-parcours-library-item{border:1px solid var(--hhg-border);background:#fff;border-radius:8px;padding:8px 10px;cursor:pointer;font:inherit}
.hhg-parcours-tools{display:flex;flex-wrap:wrap;gap:8px}
.hhg-parcours-workspace{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;align-items:start}
.hhg-parcours-svg{width:100%;height:auto;border:1px solid var(--hhg-border);background:#fff;touch-action:none}
.hhg-parcours-properties{border:1px solid var(--hhg-border);border-radius:10px;padding:12px;background:#fafafa}
.hhg-parcours-properties h5{margin:0 0 10px}
.hhg-parcours-properties label{display:block;margin-bottom:10px;font-weight:600}
.hhg-parcours-properties input,.hhg-parcours-properties select{width:100%;margin-top:5px}
.hhg-pc-item{cursor:grab}
.hhg-pc-item.is-selected{filter:drop-shadow(0 0 2px var(--viz-accent,#666))}
.hhg-parcours-export-svg{display:block;width:100%;height:auto;max-height:720px}
@media(max-width:900px){.hhg-parcours-workspace{grid-template-columns:1fr}.hhg-parcours-properties{order:-1}.hhg-parcours-config-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.hhg-parcours-config-grid{grid-template-columns:1fr}}

/* v0.16.1 */
.hhg-parcours-print-head{margin-bottom:12px}.hhg-parcours-print-head h3{margin:0 0 6px}.hhg-parcours-print-head p{margin:3px 0}.hhg-parcours-legend{margin-top:14px}.hhg-parcours-legend h4{margin:0 0 8px}.hhg-parcours-legend table{width:100%;border-collapse:collapse}.hhg-parcours-legend td{border:1px solid var(--hhg-border);padding:7px 9px;vertical-align:middle}.hhg-pc-leg-symbol{width:80px}.hhg-pc-legend-icon{display:block;width:64px;height:34px}.hhg-doc-parcours-box{break-inside:avoid;page-break-inside:avoid}

/* v0.16.2 – Parcours-Editor erweitert */
#hhg-tg-competition-modal .hhg-tg-modal-dialog{
	width:min(1280px, calc(100vw - 24px));
}
#hhg_comp_parcours_builder .hhg-parcours-workspace{
	grid-template-columns:minmax(0,1fr) 220px;
}
#hhg_comp_parcours_builder .hhg-parcours-svg{
	min-height:560px;
}
.hhg-pc-second-number{
	margin-top:10px;
	padding-top:10px;
	border-top:1px solid var(--hhg-border);
}
.hhg-pc-combo-part{cursor:ns-resize}
.hhg-parcours-legend{
	font-size:.82em;
}
.hhg-parcours-legend table{font-size:inherit}
.hhg-parcours-legend td{
	padding:4px 6px;
	line-height:1.2;
}
.hhg-pc-leg-symbol{width:52px}
.hhg-pc-legend-icon{width:42px;height:24px}
@media(max-width:1100px){
	#hhg_comp_parcours_builder .hhg-parcours-workspace{grid-template-columns:1fr}
	#hhg_comp_parcours_builder .hhg-parcours-properties{order:-1}
}

/* v0.16.3 – Arbeitsfläche optimiert */
#hhg-tg-competition-modal .hhg-tg-modal-dialog{
	width:min(1540px, calc(100vw - 16px));
	max-width:none;
}
#hhg_comp_parcours_builder .hhg-parcours-workspace{
	grid-template-columns:minmax(0,1fr) 205px;
	gap:10px;
}
#hhg_comp_parcours_builder .hhg-parcours-svg{
	min-height:680px;
	max-height:76vh;
}
#hhg_comp_parcours_builder .hhg-parcours-properties{
	padding:10px;
}
#hhg_comp_parcours_builder .hhg-parcours-properties label{
	margin-bottom:7px;
	font-size:.92em;
}
#hhg_comp_parcours_builder .hhg-parcours-config-grid{
	grid-template-columns:repeat(6,minmax(120px,1fr));
}
@media(max-width:1250px){
	#hhg_comp_parcours_builder .hhg-parcours-config-grid{grid-template-columns:repeat(3,minmax(140px,1fr))}
}

/* v0.16.4 */
.hhg-pc-library-group{width:100%}
.hhg-pc-library-heading{font-weight:700;font-size:.86em;margin:5px 0 4px}
.hhg-pc-library-row{display:flex;flex-wrap:wrap;gap:6px}
.hhg-parcours-title-line{font-size:1.05rem}
.hhg-parcours-subtitle-line{font-size:.9rem;margin-top:4px}
.hhg-parcours-print-head{margin-bottom:10px}

/* v0.16.5 */
.hhg-pc-library-group{width:100%;margin-bottom:5px}
.hhg-pc-library-heading{font-weight:700;font-size:.84em;margin:3px 0}
.hhg-pc-library-row{display:flex;flex-wrap:wrap;gap:6px}
.hhg-pc-branding{user-select:none}
.hhg-parcours-tools{align-items:center}

/* v0.16.6 */
.hhg-dressage-task-head{margin:0 0 12px}
.hhg-dressage-title-line{font-size:1.05rem}
.hhg-dressage-subtitle-line{font-size:.9rem;margin-top:4px}
.hhg-dressage-brand{font-size:.78rem;color:#555;margin-top:5px;font-weight:500}
.hhg-pc-draw-hint{font-size:.78rem;color:#666;align-self:center}
.hhg-parcours-svg.is-drawing-guide{cursor:crosshair}

/* v0.16.7 */
.hhg-parcours-svg.is-drawing-guide{cursor:crosshair}
.hhg-parcours-svg[data-guide-mode="arrow"]{touch-action:none}

/* v0.16.8 */
#hhg_pc_arrow_color_wrap select{width:100%}

/* v0.17.0 */
.hhg-nenn-header.no-logo{grid-template-columns:1fr}
.hhg-nenn-header.no-logo > div{min-width:0}
.hhg-nenn-header h1{overflow-wrap:normal;word-break:normal;hyphens:none}
.hhg-tg-version{display:block;margin-top:6px;font-size:11px;color:#777}


/* v0.17.3 – Vorschau-Renderfehler behoben; Checkbox-Styling aus 0.17.2 unverändert übernommen. */

/* v0.17.4 – Checkboxen ohne :has() und ohne native Theme-Darstellung */
.hhg-tg-generator .hhg-tg-check > input[type="checkbox"],
.hhg-tg-modal .hhg-tg-check > input[type="checkbox"],
.hhg-tg-generator .form-check > input[type="checkbox"],
.hhg-tg-modal .form-check > input[type="checkbox"]{
	position:absolute!important; opacity:0!important;
	width:1px!important; height:1px!important; min-width:1px!important; min-height:1px!important;
	margin:0!important; padding:0!important; pointer-events:none!important;
}
.hhg-tg-generator .hhg-tg-check,
.hhg-tg-modal .hhg-tg-check,
.hhg-tg-generator .form-check,
.hhg-tg-modal .form-check{position:relative;cursor:pointer}
.hhg-tg-generator .hhg-tg-check > span,
.hhg-tg-modal .hhg-tg-check > span,
.hhg-tg-generator .form-check > span,
.hhg-tg-modal .form-check > span{
	position:relative;display:block;min-width:0;padding-left:29px;flex:1 1 auto;
}
.hhg-tg-generator .hhg-tg-check > span::before,
.hhg-tg-modal .hhg-tg-check > span::before,
.hhg-tg-generator .form-check > span::before,
.hhg-tg-modal .form-check > span::before{
	content:"";position:absolute;left:0;top:1px;width:18px;height:18px;box-sizing:border-box;
	border:1.5px solid #8d8d8d;border-radius:3px;background:#fff;
}
.hhg-tg-generator .hhg-tg-check > input[type="checkbox"]:checked + span::before,
.hhg-tg-modal .hhg-tg-check > input[type="checkbox"]:checked + span::before,
.hhg-tg-generator .form-check > input[type="checkbox"]:checked + span::before,
.hhg-tg-modal .form-check > input[type="checkbox"]:checked + span::before{
	content:"✓";display:flex;align-items:center;justify-content:center;
	background:#8a6322;border-color:#8a6322;color:#fff;
	font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1;font-weight:800;
}
.hhg-tg-generator .hhg-tg-check > input[type="checkbox"]:focus-visible + span::before,
.hhg-tg-modal .hhg-tg-check > input[type="checkbox"]:focus-visible + span::before,
.hhg-tg-generator .form-check > input[type="checkbox"]:focus-visible + span::before,
.hhg-tg-modal .form-check > input[type="checkbox"]:focus-visible + span::before{
	outline:2px solid #222;outline-offset:2px;
}
.hhg-tg-generator .form-check,.hhg-tg-modal .form-check{display:block!important}

/* Auswahlkarten: ebenfalls ohne :has() */
.hhg-tg-generator .hhg-tg-choice > input[type="radio"],
.hhg-tg-modal .hhg-tg-choice > input[type="radio"]{
	position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important;
}
.hhg-tg-generator .hhg-tg-choice,.hhg-tg-modal .hhg-tg-choice{position:relative;padding-left:46px!important}
.hhg-tg-generator .hhg-tg-choice > strong::before,
.hhg-tg-modal .hhg-tg-choice > strong::before{
	content:"";position:absolute;left:16px;top:17px;width:18px;height:18px;box-sizing:border-box;
	border:1.5px solid #8d8d8d;border-radius:50%;background:#fff;
}
.hhg-tg-generator .hhg-tg-choice > input[type="radio"]:checked + strong::before,
.hhg-tg-modal .hhg-tg-choice > input[type="radio"]:checked + strong::before{border:5px solid #8a6322}

.hhg-tg-generated-confirmation{
	margin-top:12px;padding:11px 13px;border:1px solid #9db79d;border-radius:8px;background:#f4faf4;color:#244824;
}
.hhg-tg-generated-confirmation strong,.hhg-tg-generated-confirmation span{display:block}
.hhg-tg-generated-confirmation span{margin-top:3px;font-size:.9em}

/* v0.17.6 – Dressur-Branding an der Aufgabentabelle statt unter der Überschrift */
.hhg-dressage-task-table-wrap{
	width:100%;
}
.hhg-dressage-brand-table{
	display:block;
	margin:4px 2px 0 0;
	text-align:right;
	font-size:.72rem;
	line-height:1.25;
	color:#666;
	font-weight:500;
	white-space:nowrap;
}
@media (max-width:640px){
	.hhg-dressage-brand-table{
		white-space:normal;
		font-size:.68rem;
	}
}

/* v0.17.7 – wichtige Ausgabeauswahl deutlich hervorheben */
.hhg-tg-highlight-choice{
	background:#fff8e8;
	border:1px solid #ead7aa;
	border-left:4px solid #b68a34;
	border-radius:10px;
	padding:14px 15px!important;
}
.hhg-tg-highlight-choice > label{font-weight:700;color:#3b2d15}
.hhg-tg-highlight-choice > select{background:#fffdf7;border-color:#c9ad70}
.hhg-tg-default-choice-hint{display:block;margin-top:6px;color:#71551d;font-weight:600}

/* v0.17.8 – Auswahlstatus als echtes X-Element, unabhängig von Theme/Browser */
.hhg-tg-generator label.hhg-tg-check,
.hhg-tg-modal label.hhg-tg-check,
.hhg-tg-generator label.form-check,
.hhg-tg-modal label.form-check{
	position:relative!important;
	cursor:pointer!important;
}

/* Native Checkbox vollständig aus der Optik nehmen, bleibt aber funktional im Label */
.hhg-tg-generator label.hhg-tg-check > input[type="checkbox"],
.hhg-tg-modal label.hhg-tg-check > input[type="checkbox"],
.hhg-tg-generator label.form-check > input[type="checkbox"],
.hhg-tg-modal label.form-check > input[type="checkbox"]{
	position:absolute!important;
	left:-9999px!important;
	width:1px!important;
	height:1px!important;
	min-width:1px!important;
	min-height:1px!important;
	opacity:0!important;
	margin:0!important;
	padding:0!important;
}

/* Alte Pseudo-Checkboxen sicher abschalten */
.hhg-tg-generator label.hhg-tg-check > span:not(.hhg-check-indicator)::before,
.hhg-tg-modal label.hhg-tg-check > span:not(.hhg-check-indicator)::before,
.hhg-tg-generator label.form-check > span:not(.hhg-check-indicator)::before,
.hhg-tg-modal label.form-check > span:not(.hhg-check-indicator)::before{
	content:none!important;
	display:none!important;
}

.hhg-check-indicator{
	display:inline-flex!important;
	align-items:center!important;
	justify-content:center!important;
	flex:0 0 20px!important;
	width:20px!important;
	height:20px!important;
	box-sizing:border-box!important;
	margin:0 10px 0 0!important;
	border:2px solid #8e8e8e!important;
	border-radius:4px!important;
	background:#fff!important;
	color:transparent!important;
	font-family:Arial,Helvetica,sans-serif!important;
	font-size:14px!important;
	font-weight:900!important;
	line-height:1!important;
	box-shadow:none!important;
	vertical-align:top!important;
}

label.hhg-is-checked > .hhg-check-indicator{
	background:#8a6322!important;
	border-color:#8a6322!important;
	color:#fff!important;
}

/* Inhalt nicht mehr künstlich für frühere Pseudo-Checkbox einrücken */
.hhg-tg-generator label.hhg-tg-check > span:not(.hhg-check-indicator),
.hhg-tg-modal label.hhg-tg-check > span:not(.hhg-check-indicator),
.hhg-tg-generator label.form-check > span:not(.hhg-check-indicator),
.hhg-tg-modal label.form-check > span:not(.hhg-check-indicator){
	padding-left:0!important;
}

/* Karten und Parcoursoptionen sauber nebeneinander */
.hhg-tg-generator label.hhg-tg-check,
.hhg-tg-modal label.hhg-tg-check{
	display:flex!important;
	align-items:flex-start!important;
	gap:0!important;
}
.hhg-tg-generator label.form-check,
.hhg-tg-modal label.form-check{
	display:flex!important;
	align-items:flex-start!important;
	gap:0!important;
}

/* ausgewählte Karte zusätzlich dezent hervorheben */
.hhg-tg-generator label.hhg-tg-check.hhg-is-checked,
.hhg-tg-modal label.hhg-tg-check.hhg-is-checked{
	border-color:#c8ad7d!important;
	background:#fffaf1!important;
}

/* v0.17.10 – Auswahlfelder: sichtbarer Haken als echtes DOM-Element */
.hhg-tg-generator label.hhg-tg-check,
.hhg-tg-modal label.hhg-tg-check,
.hhg-tg-generator label.form-check,
.hhg-tg-modal label.form-check{
	display:flex!important;
	align-items:flex-start!important;
	gap:0!important;
	position:relative!important;
	cursor:pointer!important;
}
.hhg-tg-generator label.hhg-tg-check.hhg-is-checked,
.hhg-tg-modal label.hhg-tg-check.hhg-is-checked{
	border-color:#c8ad7d!important;
	background:#fffaf1!important;
}

/* v0.17.11 – strukturierte Einzelgeneratoren */
.hhg-standalone-age-wrap{margin-top:18px}
.hhg-standalone-age-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.hhg-age-pick{position:relative;cursor:pointer}
.hhg-age-pick input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}
.hhg-age-pick span{
	display:inline-flex;align-items:center;justify-content:center;min-width:50px;
	padding:8px 12px;border:1px solid #c9c9c9;border-radius:7px;background:#fff;
	font-weight:700;transition:.12s ease;
}
.hhg-age-pick input:checked + span{background:#fff7e8;border-color:#9a6d20;box-shadow:inset 0 0 0 1px #9a6d20}
.hhg-age-pick input:checked + span::before{content:"✓";margin-right:6px;font-size:15px}
.hhg-generator-age-line{margin-top:4px;font-size:.83em;color:#666}
.hhg-parcours-standalone .hhg-tg-document-preview{overflow:hidden}


/* v0.17.14 – robuste HHG-Optik + einheitliche Dressur-Regelbibliothek */
:root{
	--hhg-brand-main:#DCA54A;
	--hhg-brand-accent:#F3E3C7;
	--hhg-brand-border:#B1843A;
	--hhg-brand-text:#000000;
}
.hhg-tg-generator,
.hhg-tg-modal{
	--hhg-main:var(--hhg-brand-main,#DCA54A);
	--hhg-accent:var(--hhg-brand-accent,#F3E3C7);
	--hhg-edge:var(--hhg-brand-border,#B1843A);
	--hhg-ink:var(--hhg-brand-text,#000000);
	--hhg-border:var(--hhg-edge);
	--hhg-soft:var(--hhg-accent);
	--hhg-text-soft:#5f5547;
	color:var(--hhg-ink)!important;
}

/* Kopf / Navigation */
.hhg-tg-header{
	padding:18px 20px!important;
	border:1px solid var(--hhg-edge)!important;
	border-left:6px solid var(--hhg-main)!important;
	border-radius:12px!important;
	background:var(--hhg-accent)!important;
}
.hhg-tg-header h2,.hhg-tg-header h3{color:var(--hhg-ink)!important}
.hhg-tg-steps li{
	border-color:var(--hhg-edge)!important;
	background:#fff!important;
	color:var(--hhg-ink)!important;
}
.hhg-tg-steps li span{
	background:var(--hhg-accent)!important;
	color:var(--hhg-ink)!important;
	font-weight:700!important;
}
.hhg-tg-steps li.is-active{
	background:var(--hhg-accent)!important;
	border-color:var(--hhg-edge)!important;
	box-shadow:inset 0 0 0 1px var(--hhg-edge)!important;
}
.hhg-tg-steps li.is-active span{background:var(--hhg-main)!important}

/* Karten / Eingaben */
.hhg-tg-card,
.hhg-tg-choice,
.hhg-tg-check,
.hhg-tg-competition-item,
.hhg-tg-provision,
.hhg-tg-custom-provision,
.hhg-tg-modal-dialog{
	border-color:var(--hhg-edge)!important;
}
.hhg-tg-card{background:#fff!important}
.hhg-tg-field label,.hhg-tg-card h3,.hhg-tg-card h4{color:var(--hhg-ink)!important}
.hhg-tg-field input,
.hhg-tg-field select,
.hhg-tg-field textarea{
	border-color:var(--hhg-edge)!important;
	background:#fff!important;
	color:var(--hhg-ink)!important;
}
.hhg-tg-field input:focus,
.hhg-tg-field select:focus,
.hhg-tg-field textarea:focus{
	outline:2px solid var(--hhg-main)!important;
	outline-offset:1px!important;
}
.hhg-tg-primary{
	border:1px solid var(--hhg-edge)!important;
	background:var(--hhg-main)!important;
	color:var(--hhg-ink)!important;
}
.hhg-tg-secondary,.hhg-tg-small-button{
	border-color:var(--hhg-edge)!important;
	background:#fff!important;
	color:var(--hhg-ink)!important;
}
.hhg-tg-secondary:hover,.hhg-tg-small-button:hover{background:var(--hhg-accent)!important}
.hhg-tg-info-card,
.hhg-tg-rule-guidance,
.hhg-tg-custom-rule-box,
.hhg-tg-task-generator-box,
.hhg-tg-generated-confirmation{
	border-color:var(--hhg-edge)!important;
	background:var(--hhg-accent)!important;
}
.hhg-tg-rule-guidance{
	border-left:4px solid var(--hhg-edge)!important;
}

/* Auswahl */
.hhg-tg-choice:has(input:checked),
.hhg-tg-check.hhg-is-checked,
.hhg-tg-obstacle-grid label.hhg-is-checked,
.hhg-tg-age-grid label.hhg-is-checked{
	border-color:var(--hhg-edge)!important;
	background:var(--hhg-accent)!important;
}
.hhg-check-indicator{border-color:var(--hhg-edge)!important}
.hhg-is-checked>.hhg-check-indicator{
	background:var(--hhg-main)!important;
	border-color:var(--hhg-edge)!important;
	color:var(--hhg-ink)!important;
}
.hhg-age-pick input:checked+span{
	background:var(--hhg-accent)!important;
	border-color:var(--hhg-edge)!important;
	box-shadow:inset 0 0 0 1px var(--hhg-edge)!important;
}

/* Modal */
.hhg-tg-modal-head{
	margin:-22px -22px 18px!important;
	padding:16px 22px!important;
	background:var(--hhg-accent)!important;
	border-bottom:1px solid var(--hhg-edge)!important;
}

/* Regelbibliothek: Darstellung wie die bevorzugte Bild-1.0-Version */
.hhg-dressage-lesson-guidance{
	margin:0 0 18px!important;
	padding:16px 18px!important;
	border:1px solid var(--hhg-edge)!important;
	border-left:4px solid var(--hhg-edge)!important;
	border-radius:8px!important;
	background:#fffaf1!important;
	color:var(--hhg-ink)!important;
}
.hhg-dressage-lesson-guidance strong{display:block;margin-bottom:8px}
.hhg-dressage-lesson-guidance p{margin:0 0 12px}
.hhg-dressage-lesson-guidance p:last-child{margin-bottom:0}
.hhg-dressage-lesson-section>label{display:block;margin-bottom:4px;font-weight:700}
.hhg-tg-lesson-chip-grid{
	display:grid!important;
	grid-template-columns:repeat(3,minmax(0,1fr))!important;
	gap:8px!important;
	margin-top:14px!important;
}
.hhg-lesson-chip{position:relative!important;display:block!important;cursor:pointer!important}
.hhg-lesson-chip input{
	position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important;
}
.hhg-lesson-chip span,
.hhg-lesson-action{
	display:flex!important;
	align-items:center!important;
	width:100%!important;
	min-height:42px!important;
	box-sizing:border-box!important;
	padding:9px 11px!important;
	border:1px solid #b7b7b7!important;
	border-radius:7px!important;
	background:#fff!important;
	color:#222!important;
	font:inherit!important;
	text-align:left!important;
	box-shadow:none!important;
}
.hhg-lesson-action{cursor:pointer!important}
.hhg-lesson-action:hover,.hhg-lesson-chip:hover span{
	border-color:var(--hhg-edge)!important;
	background:#fffaf1!important;
}
.hhg-lesson-chip input:checked+span{
	background:var(--hhg-accent)!important;
	border-color:var(--hhg-edge)!important;
	box-shadow:inset 0 0 0 1px var(--hhg-edge)!important;
	font-weight:700!important;
}
.hhg-lesson-chip input:checked+span::before{
	content:"✓";margin-right:7px;font-weight:900;
}

/* Dokument bleibt druckfreundlich */
.hhg-tg-document-shell{background:#eee7dc!important}
.hhg-tg-document-preview{background:#fff!important;color:#000!important}
.hhg-tg-document-preview .hhg-doc-section>h2,
.hhg-tg-document-preview .hhg-doc-header{border-color:var(--hhg-edge)!important}

@media(max-width:800px){
	.hhg-tg-lesson-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:520px){
	.hhg-tg-lesson-chip-grid{grid-template-columns:1fr!important}
}
