/* ============================================================
   Kunstrasen-Spende Widget – Styles
   ============================================================ */
.krs-widget {
	/* Website-Design (anstoss-zukunft.de) */
	--turf-a: #00452F;       /* Dunkelgrün — Überschriften, Links, Hauptfarbe */
	--turf-b: #006b4a;       /* abgeleitetes helleres Grün (für Hover etc.) */
	--chalk: #ffffff;
	--sold: #dc2626;
	--incart: #FFAE00;       /* CTA-Orange (Website-Störer) */
	--incart-dark: #cc8b00;
	--paper: #EEF5EA;        /* Hellgrün-Sektion wie auf Website */
	--ink: #25312B;          /* Textfarbe */
	--ink-muted: #57615b;    /* Gedämpfter Text */
	--border: #d7e3d4;
	--danger: #b91c1c;
	--cta: #FFAE00;          /* Primär-CTA-Orange */
	--cta-dark: #cc8b00;
	--cta-ink: #25312B;      /* Button-Textfarbe (dunkel auf hellem Hintergrund) */

	font-family: inherit;    /* Theme-Font vom Website-Theme erben */
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--border);
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px;
	overflow-x: hidden;
	font-size: 15px;
	line-height: 1.5;
	position: relative;
	border-radius: 4px;
}
.krs-widget *, .krs-widget *::before, .krs-widget *::after { box-sizing: border-box; }
.krs-widget h2, .krs-widget h3, .krs-widget h4 {
	margin: 0 0 6px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--turf-a);
	text-transform: uppercase;      /* Website-Stil: Headings in Caps */
	font-family: inherit;
}
.krs-widget h2 { font-size: 26px; }
.krs-widget h3 { font-size: 20px; }
.krs-widget h4 { font-size: 16px; }
.krs-widget p { margin: 0 0 8px; font-family: inherit; }
.krs-widget button, .krs-widget input, .krs-widget select, .krs-widget textarea {
	font-family: inherit;
}

.krs-header { margin-bottom: 20px; }
.krs-header p { color: var(--ink-muted); max-width: 720px; }

.krs-stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}
@media (max-width: 960px) {
	.krs-stage { grid-template-columns: 1fr; }
	.krs-widget { padding: 16px; }
}

.krs-zoom-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	max-width: 100%;
}
.krs-zoom-bar button {
	background: white;
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 6px 12px;
	cursor: pointer;
	font-weight: 600;
	color: var(--ink);
}
.krs-zoom-bar button:hover { background: #f5f5f4; }
.krs-zoom-level {
	font-variant-numeric: tabular-nums;
	color: var(--ink-muted);
	min-width: 30px;
	text-align: center;
}
.krs-field-scroller {
	background: var(--turf-a);
	border-radius: 4px;
	overflow: auto;
	max-height: 900px;
	position: relative;
}
.krs-field-frame {
	transform-origin: top left;
	transition: transform 200ms ease;
	min-width: 100%;
	aspect-ratio: 2 / 1;
}
#krs-pitch {
	display: block;
	width: 100%;
	height: 100%;
	shape-rendering: crispEdges;
}
.krs-zone { cursor: pointer; pointer-events: all; }
.krs-zone.sold { cursor: not-allowed; }
.krs-widget .krs-zone:not(.sold):hover {
	fill: #fbbf24 !important;
	stroke: #b45309 !important;
	stroke-width: 0.8 !important;
}
.krs-widget svg { pointer-events: auto; }

.krs-legend {
	display: flex; flex-wrap: wrap; gap: 16px 20px;
	padding-top: 10px;
	font-size: 13px;
	color: var(--ink-muted);
}
.krs-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.krs-dot {
	display: inline-block; width: 12px; height: 12px; border-radius: 2px;
	border: 1px solid rgba(0,0,0,0.15);
}
.krs-dot.krs-avail { background: var(--turf-a); border-color: rgba(255,255,255,0.6); }
.krs-dot.krs-incart { background: var(--incart); }
.krs-dot.krs-sold { background: var(--sold); }
.krs-zoom-hint { flex-basis: 100%; font-size: 12px; margin-top: 2px; }

.krs-summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 4px;
	position: sticky;
	top: 20px;
}
@media (max-width: 960px) {
	.krs-summary { position: static; }
}
.krs-summary-header p { color: var(--ink-muted); font-size: 14px; margin: 0; }

.krs-selection {
	margin: 0; padding: 0; list-style: none;
	border-top: 1px solid var(--border);
	max-height: 240px; overflow-y: auto;
}
.krs-selection li {
	display: flex; justify-content: space-between; align-items: center; gap: 8px;
	padding: 10px 0; border-bottom: 1px solid var(--border);
	font-size: 14px;
}
.krs-selection li.krs-empty {
	color: var(--ink-muted); font-style: italic; justify-content: center; padding: 20px 0;
}
.krs-line-price { font-variant-numeric: tabular-nums; font-weight: 500; margin-right: 6px; }
.krs-remove {
	background: none; border: none; color: var(--ink-muted); cursor: pointer;
	font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 3px;
}
.krs-remove:hover { color: var(--sold); background: #fef2f2; }

.krs-hint {
	font-size: 13px; color: var(--incart-dark);
	background: #fffbeb; border: 1px solid #fde68a;
	border-radius: 3px; padding: 8px 10px;
}

.krs-totals { border-top: 1px solid var(--border); padding-top: 12px; }
.krs-line { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.krs-line.krs-discount-line { color: var(--incart-dark); }
.krs-line.krs-total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }

#krs-donate {
	background: var(--cta);
	color: var(--cta-ink);
	border: none;
	padding: 18px 24px;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	border-radius: 4px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(255, 174, 0, 0.3);
	transition: all 0.15s ease;
	min-height: 56px;
	font-family: inherit;
}
#krs-donate:hover:not(:disabled) {
	background: var(--cta-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(255, 174, 0, 0.4);
}
#krs-donate:disabled {
	background: #d6d3d1;
	color: #78716c;
	cursor: not-allowed;
	box-shadow: none;
}

.krs-info {
	margin-top: 28px; padding-top: 24px;
	border-top: 1px solid var(--border);
	color: var(--ink-muted); font-size: 14px;
}
.krs-info h4 { color: var(--ink); }
.krs-prices {
	margin-top: 12px;
	display: flex; flex-wrap: wrap; gap: 14px 24px;
	font-size: 13px;
}
.krs-prices > div { color: var(--ink); }
.krs-prices strong { display: block; font-weight: 600; }
.krs-prices span { color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.krs-zone-label {
	fill: rgba(255,255,255,0.92); font-size: 14px; font-weight: 600;
	text-anchor: middle; pointer-events: none;
}
.krs-zone-label.small { font-size: 11px; }
.krs-zone-price {
	fill: rgba(255,255,255,0.78); font-size: 12px;
	text-anchor: middle; pointer-events: none;
	font-variant-numeric: tabular-nums;
}

/* Modal — Mobile-optimiert mit dynamic viewport height und safe-area-insets */
.krs-modal {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	/* iOS Safari: Dynamic Viewport Height berücksichtigt verschwindende URL-Leiste */
	height: 100vh;
	height: 100dvh;
}
.krs-modal[hidden] { display: none; }
.krs-modal-overlay { position: absolute; inset: 0; background: rgba(12,12,13,0.55); }
.krs-modal-panel {
	position: relative; z-index: 1;
	background: white; border-radius: 6px; max-width: 620px; width: 100%;
	/* Dynamic Viewport Height – wichtig damit auf iOS Safari der untere Button erreichbar bleibt */
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 60px 24px 24px; /* oben Platz für den sticky X-Button */
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	-webkit-overflow-scrolling: touch;
}
.krs-modal-close {
	/* Sticky: bleibt beim Scrollen oben erreichbar – auch auf iOS */
	position: sticky;
	float: right;
	top: 0;
	margin: -52px -16px 0 0;
	background: white;
	border: 1px solid var(--border);
	/* Flex-Zentrierung für den ×-Charakter – exakt mittig im Kreis */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
	color: var(--ink-muted);
	cursor: pointer;
	width: 44px; height: 44px;
	border-radius: 50%;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	/* Font-Rendering konsistent machen */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.krs-modal-close:hover { background: #f5f5f4; color: var(--ink); }
@media (max-width: 500px) {
	.krs-modal { padding: 8px; }
	.krs-modal-panel { padding: 56px 16px 16px; border-radius: 10px; }
	.krs-modal-close { margin: -48px -8px 0 0; }
}

.krs-form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 14px; margin-top: 16px; }
@media (max-width: 500px) { .krs-form-grid { grid-template-columns: 1fr; } }
.krs-form-grid label, .krs-form-grid label.krs-full { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-muted); }
.krs-form-grid label.krs-full { grid-column: 1 / -1; }
.krs-form-grid input, .krs-form-grid select {
	padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px;
	font-size: 14px; color: var(--ink); background: white;
}
.krs-form-grid input:focus, .krs-form-grid select:focus { outline: 2px solid var(--turf-b); outline-offset: 1px; }

.krs-checkboxes { margin: 18px 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.krs-checkboxes label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }

/* NEU 1.4.0: Widmungs-Box */
.krs-widmung-box {
	margin: 18px 0;
	padding: 14px 16px;
	background: var(--paper);
	border: 1px solid var(--border);
	border-left: 4px solid var(--cta);
	border-radius: 4px;
}
.krs-widmung-head {
	font-weight: 800;
	font-size: 14px;
	color: var(--turf-a);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 8px;
}
.krs-widmung-head span { font-weight: 400; font-size: 12px; color: var(--ink-muted); text-transform: none; letter-spacing: 0; }
.krs-widmung-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
@media (max-width: 480px) {
	.krs-widmung-grid { grid-template-columns: 1fr; }
}
.krs-widmung-box label { display: block; }
.krs-widmung-box label > span {
	display: block;
	font-size: 12px;
	color: var(--ink-muted);
	margin-bottom: 4px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.krs-widmung-box label > span small {
	font-weight: 400;
	color: #9ca3af;
	text-transform: none;
	letter-spacing: 0;
	margin-left: 4px;
}
.krs-widmung-box input {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: #fff;
	font-family: inherit;
	color: var(--ink);
}
.krs-widmung-box input:focus { outline: 2px solid var(--cta); outline-offset: 1px; }
.krs-widmung-hint {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ink-muted);
}

.krs-payment-choice { margin: 12px 0; border-top: 1px solid var(--border); padding-top: 14px; }
.krs-payment-choice .krs-label { font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.krs-payment-choice label { display: inline-flex; align-items: center; gap: 6px; margin-right: 24px; cursor: pointer; }

#krs-sepa-fields { margin: 12px 0; padding: 14px; background: #fafaf9; border: 1px solid var(--border); border-radius: 3px; }
#krs-sepa-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }
#krs-sepa-fields input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; }
.krs-mandate { font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; line-height: 1.5; }

.krs-donation-summary {
	display: flex; justify-content: space-between; align-items: center;
	border-top: 1px solid var(--border);
	padding: 14px 0; margin-top: 12px;
}
.krs-modal-amount { font-size: 22px; font-weight: 700; }

#krs-submit-sepa, #krs-submit-ueberweisung {
	width: 100%; background: var(--cta); color: var(--cta-ink); border: none;
	padding: 16px 20px; font-size: 16px; font-weight: 800;
	cursor: pointer; border-radius: 4px;
	min-height: 52px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 2px 8px rgba(255, 174, 0, 0.3);
	font-family: inherit;
}
#krs-submit-sepa:hover:not(:disabled), #krs-submit-ueberweisung:hover:not(:disabled) { background: var(--cta-dark); }
#krs-submit-sepa:disabled, #krs-submit-ueberweisung:disabled { background: #d6d3d1; color: #78716c; cursor: not-allowed; box-shadow: none; }

.krs-error { color: var(--danger); font-size: 14px; padding: 10px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 3px; margin-top: 10px; }

/* Danke-Ansicht */
.krs-thanks { text-align: center; padding: 24px 8px 8px; }
.krs-thanks-icon { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.krs-thanks h3 { color: var(--turf-a); margin-bottom: 12px; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.krs-thanks p { color: var(--ink); margin-bottom: 10px; font-family: inherit; }
.krs-thanks .krs-thanks-detail { color: var(--ink-muted); font-size: 14px; margin-top: 14px; }
#krs-thanks-close {
	margin-top: 20px;
	background: var(--cta); color: var(--cta-ink); border: none;
	padding: 12px 28px; font-size: 15px; font-weight: 800;
	cursor: pointer; border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-family: inherit;
}
#krs-thanks-close:hover { background: var(--cta-dark); }

.krs-info-note {
	font-size: 12px;
	color: var(--ink-muted);
	background: var(--paper);
	border-left: 3px solid var(--turf-a);
	padding: 8px 10px;
	border-radius: 2px;
	line-height: 1.5;
}

/* ---- Zufalls-m² Picker (Website-Design) ---- */
.krs-random {
	background: #ffffff;
	border: 2px solid var(--cta);
	border-radius: 4px;
	padding: 14px;
	margin-bottom: 12px;
}
.krs-random-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 15px;
	font-weight: 800;
	color: var(--turf-a);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 4px;
	font-family: inherit;
}
.krs-random-badge {
	background: var(--cta);
	color: var(--cta-ink);
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}
.krs-random-sub {
	font-size: 13px;
	color: var(--ink-muted);
	margin: 0 0 10px;
	line-height: 1.4;
}
.krs-random-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	flex-wrap: wrap;
}
.krs-random-amount {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 110px;
	min-width: 100px;
}
.krs-random-amount > span {
	font-size: 11px;
	font-weight: 800;
	color: var(--turf-a);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.krs-random-amount select {
	width: 100%;
	padding: 10px 10px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: #fff;
	color: var(--ink);
	min-height: 42px;
	cursor: pointer;
}
.krs-random-amount select:focus {
	outline: none;
	border-color: var(--cta);
	box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.2);
}
.krs-random-btn {
	flex: 2 1 180px;
	min-height: 42px;
	padding: 10px 14px;
	background: var(--cta);
	color: var(--cta-ink);
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background 0.15s;
}
.krs-random-btn:hover { background: var(--cta-dark); }
.krs-random-btn:active { background: var(--cta-dark); }
.krs-random-hint {
	margin: 10px 0 0;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1.4;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.6);
	color: #78350f;
}
.krs-random-hint.is-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.krs-random-hint.is-ok {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
}

/* Freier Spendenbetrag (Website-Design) */
.krs-free-donation {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 14px 14px 12px;
	margin-bottom: 4px;
}
.krs-free-title {
	font-weight: 800;
	font-size: 15px;
	color: var(--turf-a);
	margin-bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-family: inherit;
}
.krs-free-sub {
	font-size: 13px;
	color: var(--ink-muted);
	margin: 0 0 10px;
}
.krs-preset-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-bottom: 10px;
}
.krs-preset-btn {
	background: #ffffff;
	border: 2px solid var(--border);
	color: var(--ink);
	padding: 10px 4px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.15s;
	font-family: inherit;
}
.krs-preset-btn:hover {
	background: var(--paper);
	border-color: var(--turf-a);
}
.krs-preset-btn.active {
	background: var(--turf-a);
	color: #ffffff;
	border-color: var(--turf-a);
}
.krs-free-input {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--ink-muted);
}
.krs-free-input > div {
	display: flex;
	align-items: center;
	gap: 6px;
	background: white;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 4px 10px;
}
.krs-free-input input {
	flex: 1;
	border: none;
	outline: none;
	padding: 4px 0;
	font-size: 14px;
	color: var(--ink);
	background: transparent;
	font-variant-numeric: tabular-nums;
}
.krs-free-input input:focus { outline: none; }
.krs-free-currency {
	color: var(--ink-muted);
	font-weight: 600;
}

/* Tooltip für belegte Felder */
.krs-tooltip {
	position: fixed;
	z-index: 10000;
	background: rgba(37, 49, 43, 0.95);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	pointer-events: none;
	max-width: 320px;
	line-height: 1.4;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	font-family: inherit;
}
.krs-tip-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krs-tip-row strong { color: #ffd98a; font-weight: 700; margin-right: 4px; }

/* Überweisungs-Hinweis im Formular */
.krs-ueberweisung-box {
	background: #eff6ff;
	border: 1px solid #93c5fd;
	border-radius: 4px;
	padding: 12px 14px;
	margin: 12px 0;
	font-size: 13px;
	color: #1e3a8a;
}
.krs-ueberweisung-box strong { display: block; margin-bottom: 4px; }
.krs-ueberweisung-box p { margin: 0; line-height: 1.5; }

/* Bankdaten in der Danke-Ansicht — Mobile-optimiert, keine Überläufe */
.krs-bankdaten-box {
	background: #fefce8;
	border: 2px solid #eab308;
	border-radius: 6px;
	padding: 16px 18px;
	margin: 16px 0;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.krs-bankdaten-box > strong {
	display: block;
	font-size: 14px;
	color: #78350f;
	margin-bottom: 10px;
}
.krs-bankdaten-box table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed; /* verhindert dass lange IBAN die Tabelle sprengt */
}
.krs-bankdaten-box td {
	padding: 5px 0;
	vertical-align: top;
	font-size: 14px;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.krs-bankdaten-box td:first-child {
	width: 38%;
	color: #6b7280;
}
.krs-bankdaten-box td.krs-mono,
.krs-bankdaten-box td .krs-mono,
.krs-bankdaten-box td strong {
	overflow-wrap: anywhere;
	word-break: break-all; /* IBAN darf an jeder Stelle brechen */
}
/* Auf schmalen Screens: Zeilen untereinander statt neben */
@media (max-width: 480px) {
	.krs-bankdaten-box table,
	.krs-bankdaten-box tbody,
	.krs-bankdaten-box tr,
	.krs-bankdaten-box td {
		display: block;
		width: 100% !important;
	}
	.krs-bankdaten-box td:first-child {
		padding-bottom: 0;
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}
	.krs-bankdaten-box td { padding: 3px 0; }
	.krs-bankdaten-box tr { padding: 8px 0; border-bottom: 1px solid #fde68a; }
	.krs-bankdaten-box tr:last-child { border-bottom: none; }
}
.krs-bank-warn {
	margin-top: 10px;
	padding: 8px 10px;
	background: #fef3c7;
	border-radius: 3px;
	font-size: 12px;
	color: #78350f;
	line-height: 1.4;
}

/* Zahlungsoption Styling */
.krs-pay-opt {
	display: inline-block;
	margin-right: 20px;
}

/* Ausgegraute Zahlungsoptionen */
.krs-pay-opt.krs-disabled {
	opacity: 0.5;
}
.krs-pay-opt.krs-disabled::after {
	content: ' (ab 25 €)';
	font-size: 11px;
	color: var(--ink-muted);
	margin-left: 2px;
}

/* Spenderlisten unter dem Widget */
.krs-spenderlisten {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}
@media (max-width: 700px) {
	.krs-spenderlisten { grid-template-columns: 1fr; }
}
.krs-spenderliste {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 16px 18px;
}
.krs-spenderliste h3 {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--turf-a);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
}
.krs-spenderliste ol,
.krs-spenderliste ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.krs-spenderliste li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid #f5f5f4;
	font-size: 14px;
}
.krs-spenderliste li:last-child { border-bottom: none; }
.krs-sp-platz {
	flex: 0 0 24px;
	font-weight: 800;
	color: var(--turf-a);
	font-size: 13px;
	text-align: right;
}
.krs-sp-name {
	flex: 1;
	color: var(--ink);
}
.krs-sp-betrag {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--ink);
}
.krs-sp-date {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--ink-muted);
	font-variant-numeric: tabular-nums;
}
.krs-leer {
	color: var(--ink-muted);
	font-style: italic;
	font-size: 14px;
	margin: 8px 0 0;
}
.krs-top ol li:first-child .krs-sp-platz,
.krs-top ol li:first-child .krs-sp-name {
	color: #c08400;
	font-weight: 700;
}
.krs-top ol li:nth-child(2) .krs-sp-platz,
.krs-top ol li:nth-child(3) .krs-sp-platz {
	color: #92400e;
}

/* Firma-Feld und Logo-Upload */
.krs-opt {
	font-weight: 400;
	color: var(--ink-muted);
	font-size: 12px;
}
#krs-logo-wrap {
	margin-top: 4px;
	padding: 12px;
	background: #f0fdf4;
	border: 1px dashed #86efac;
	border-radius: 4px;
}
#krs-logo-wrap input[type="file"] {
	padding: 6px 0;
	font-size: 13px;
}
#krs-logo-preview {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 12px;
}
#krs-logo-preview img {
	max-width: 120px;
	max-height: 80px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 6px;
	object-fit: contain;
}
.krs-logo-remove {
	background: none;
	border: 1px solid #d1d5db;
	color: var(--ink-muted);
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
	cursor: pointer;
}
.krs-logo-remove:hover {
	background: #fef2f2;
	color: var(--sold);
	border-color: var(--sold);
}
.krs-logo-hint {
	margin: 6px 0 0;
	font-size: 11px;
	color: var(--ink-muted);
}

/* ============================================================
   Live-Stats-Zeile oben
   ============================================================ */
.krs-live-stats {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	padding: 8px 12px;
	margin-bottom: 14px;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 999px;
	font-size: 13px;
	color: var(--turf-a);
}
.krs-live-stats strong {
	color: var(--ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.krs-stat-sep { color: #86efac; }

/* ============================================================
   Zufalls-Button
   ============================================================ */
.krs-random-btn {
	background: #f0fdf4 !important;
	border-color: #86efac !important;
	color: var(--turf-a) !important;
}
@media (min-width: 600px) {
	.krs-random-btn { margin-left: auto !important; }
}
.krs-random-btn:hover { background: #dcfce7 !important; }
.krs-pinch-hint {
	display: none;
	font-size: 11px;
	color: var(--ink-muted);
	margin-left: 8px;
}
@media (hover: none) and (pointer: coarse) {
	.krs-pinch-hint {
		display: block;
		flex-basis: 100%;
		margin-left: 0;
		margin-top: 2px;
	}
}

/* Mini-Dialog für Zufalls-Auswahl */
.krs-mini-dialog { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.krs-mini-dialog[hidden] { display: none; }
.krs-mini-overlay { position: absolute; inset: 0; background: rgba(12,12,13,0.55); }
.krs-mini-panel {
	position: relative; z-index: 1;
	background: white; border-radius: 8px; max-width: 420px; width: 100%;
	padding: 24px 24px 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.krs-mini-panel h3 { margin: 0 0 6px; font-size: 18px; color: var(--turf-a); }
.krs-mini-panel p { margin: 0 0 14px; color: var(--ink-muted); font-size: 14px; }
.krs-random-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.krs-random-presets button {
	background: white; border: 1px solid #86efac; color: var(--turf-a);
	padding: 10px 4px; font-weight: 600; cursor: pointer; border-radius: 4px; font-size: 14px;
}
.krs-random-presets button:hover { background: #dcfce7; }
.krs-random-presets button.active { background: var(--turf-b); color: white; border-color: var(--turf-a); }
.krs-random-custom {
	display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-muted); margin-bottom: 14px;
}
.krs-random-custom input {
	padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 15px; font-variant-numeric: tabular-nums;
}
.krs-mini-actions { display: flex; gap: 8px; justify-content: flex-end; }
.krs-mini-cancel {
	background: white; border: 1px solid var(--border); color: var(--ink-muted);
	padding: 10px 16px; border-radius: 4px; cursor: pointer;
}
.krs-mini-ok {
	background: var(--turf-b); color: white; border: none;
	padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: 600;
}
.krs-mini-ok:hover { background: var(--turf-a); }
.krs-mini-ok:disabled { background: #d6d3d1; cursor: not-allowed; }

/* (Floating-Spenden-Pill komplett entfernt in v1.1.1) */

/* ============================================================
   Share-Buttons im Danke-Dialog
   ============================================================ */
.krs-share {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.krs-share-title {
	font-size: 13px;
	color: var(--ink-muted);
	margin-bottom: 8px;
	text-align: center;
}
.krs-share-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.krs-share-btn {
	background: white;
	border: 1px solid var(--border);
	color: var(--ink);
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 36px;
}
.krs-share-btn:hover { background: #f5f5f4; }
.krs-share-wa:hover { background: #dcfce7; border-color: #86efac; color: #166534; }
.krs-share-fb:hover { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
.krs-share-native { display: none; }
/* Native Share-Button nur zeigen wenn Browser Web Share API hat */
.krs-has-native-share .krs-share-native { display: inline-flex; }
.krs-has-native-share .krs-share-wa,
.krs-has-native-share .krs-share-fb,
.krs-has-native-share .krs-share-mail { display: none; }

/* ============================================================
   Pinch-Zoom: Disable Browser-Standard-Scroll im Feld
   ============================================================ */
.krs-field-scroller {
	touch-action: pan-x pan-y;
	-webkit-user-select: none;
	user-select: none;
	overscroll-behavior: contain;
	max-width: 100%;
}
.krs-field-column {
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

/* CAPTCHA-Feld */
.krs-captcha-wrap {
	margin: 14px 0 10px;
	padding: 12px 14px;
	background: #f0f9ff;
	border: 1px solid #93c5fd;
	border-radius: 4px;
}
.krs-captcha-label {
	display: block;
	font-size: 13px;
	color: #1e3a8a;
	margin-bottom: 6px;
}
#krs-captcha-antwort {
	width: 120px;
	padding: 8px 10px;
	border: 1px solid #93c5fd;
	border-radius: 3px;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}

/* ============================================================
   Barrierefreiheit & Mobile-Fixes (v2.0)
   ============================================================ */

/* Bank-Box: offene Bankverbindung ohne Formular */
.krs-bank-public {
	background: #fffbeb;
	border: 2px solid #eab308;
	border-radius: 8px;
	padding: 20px 24px;
	margin: 24px 0;
}
.krs-bank-public h3 {
	margin: 0 0 8px;
	font-size: 20px;
	color: #78350f;
}
.krs-bank-public > p {
	font-size: 16px;
	color: var(--ink);
	margin-bottom: 14px;
}
.krs-bank-list {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(140px, max-content) 1fr;
	gap: 10px 20px;
	font-size: 18px;
	line-height: 1.5;
}
.krs-bank-list dt {
	color: #6b7280;
	font-weight: 500;
}
.krs-bank-list dd {
	margin: 0;
	color: var(--ink);
}
.krs-bank-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.krs-bank-copy {
	margin-left: 10px;
	background: var(--turf-a);
	color: white;
	border: none;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	min-height: 36px;
}
.krs-bank-copy:hover { background: var(--turf-a); }
.krs-copy-feedback {
	display: inline-block;
	margin-left: 10px;
	font-size: 14px;
	color: var(--turf-a);
	font-weight: 600;
	min-height: 1em;
}
@media (max-width: 600px) {
	.krs-bank-list { grid-template-columns: 1fr; gap: 4px 0; }
	.krs-bank-list dt { margin-top: 10px; }
	.krs-bank-copy { display: block; margin: 8px 0 0; }
}

/* Tippflächen min 44x44 (WCAG 2.1 AA, 2.5.5 Target Size) */
.krs-preset-btn {
	min-height: 44px;
	min-width: 44px;
	padding: 10px 8px;
	font-size: 15px;
}
.krs-zoom-bar button {
	min-height: 44px;
	min-width: 44px;
	padding: 10px 14px;
	font-size: 15px;
}
.krs-random-btn {
	min-height: 44px;
	padding: 10px 14px;
}
.krs-remove {
	min-height: 32px;
	min-width: 32px;
	padding: 4px 10px;
	font-size: 18px;
}

/* Checkboxen: größer + Flex-Layout damit Text nicht in Spalten umbricht */
.krs-cbox {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	line-height: 1.5;
	padding: 8px 0;
}
.krs-cbox input[type="checkbox"] {
	width: 22px;
	height: 22px;
	min-width: 22px;
	flex-shrink: 0;
	margin-top: 2px;
	cursor: pointer;
}
.krs-cbox > span {
	flex: 1;
	font-size: 15px;
}

/* Datenschutz-Hinweistext (statt Pflicht-Haken) */
.krs-privacy-note {
	margin-top: 12px;
	font-size: 13px;
	color: var(--ink-muted);
	line-height: 1.5;
	padding: 10px 12px;
	background: #f9fafb;
	border-left: 3px solid var(--border);
	border-radius: 2px;
}
.krs-privacy-note a { color: var(--turf-a); }

/* Adressfelder: ausgeblendet wenn keine Quittung gewünscht */
.krs-address-field.krs-address-hidden {
	display: none !important;
}
.krs-address-hint {
	grid-column: 1 / -1;
	margin: 8px 0 0;
}

/* "optional"-Marker im Formular (ersetzt " *") */
.krs-opt {
	color: var(--ink-muted);
	font-weight: 400;
	font-size: 12px;
}

/* Live-Stats: Stand-Datum etwas kleiner */
.krs-stat-stand { font-size: 12px; }
