/* Spenden: CTA + Zahlungsseite */

.btn-spenden,
.spenden-copy,
.spenden-qr-toggle {
	display: inline-block;
	background: #F7931A;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
	width: auto;
	max-width: none;
}

.btn-spenden:hover,
.btn-spenden:focus,
.spenden-copy:hover,
.spenden-copy:focus,
.spenden-qr-toggle:hover,
.spenden-qr-toggle:focus {
	background: #E07E10;
	color: #fff;
	text-decoration: none;
}

/* CTA-Band zwischen Stream und Content */
.spenden-cta {
	position: relative;
	z-index: 10;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	padding: 0 15px;
	box-sizing: border-box;
}

.spenden-cta .container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.spenden-cta .btn-spenden {
	padding: 10px 36px;
	font-size: 1.15em;
	letter-spacing: 0.02em;
	margin: 0;
}

/* Spendenseite */
.spenden-page {
	padding: 30px 15px 40px;
	color: #093a59;
}

.spenden-page h2 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #0070ba;
	font-size: 1.6em;
}

.spenden-intro {
	margin-bottom: 28px;
	max-width: none;
	width: 100%;
	line-height: 1.5;
}

.spenden-back {
	margin: 0 0 22px;
}

.spenden-back .btn-spenden-back {
	display: inline-block;
	padding: 9px 22px;
	background: #0070ba;
	color: #fff;
	border-radius: 3px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	transition: background 0.2s ease;
}

.spenden-back .btn-spenden-back:hover,
.spenden-back .btn-spenden-back:focus {
	background: #005a96;
	color: #fff;
	text-decoration: none;
}

.spenden-home-title {
	color: inherit;
	text-decoration: none;
}

.spenden-home-title:hover,
.spenden-home-title:focus {
	text-decoration: underline;
	color: inherit;
}

.spenden-method {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e5e5;
	width: 100%;
}

.spenden-method:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.spenden-method h3 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #093a59;
	font-size: 1.25em;
}

.spenden-method-body {
	display: block;
	width: 100%;
}

.spenden-qr {
	display: none;
	margin: 14px 0 0;
}

.spenden-qr.is-open {
	display: none;
}

.spenden-qr img {
	display: block;
	width: 200px;
	height: 200px;
	background: #fff;
	padding: 6px;
	border: 1px solid #ddd;
}

.spenden-details {
	width: 100%;
}

.spenden-label {
	display: block;
	font-size: 0.9em;
	color: #666;
	margin-bottom: 4px;
}

/* BTC/XMR: feste Blöcke wie Euro-.spenden-value — kein Textarea/Resize */
.spenden-address {
	display: block;
	width: 100%;
	flex: none;
	box-sizing: border-box;
	font-size: 0.85em;
	line-height: 1.45;
	word-break: break-all;
	overflow-wrap: anywhere;
	white-space: normal;
	margin: 0 0 10px;
	resize: none;
}

.spenden-field {
	margin-bottom: 12px;
}

.spenden-field-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.spenden-value {
	flex: 1 1 160px;
	min-width: 0;
	box-sizing: border-box;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.95em;
	line-height: 1.45;
	word-break: break-all;
	background: #f7f7f7;
	border: 1px solid #ddd;
	padding: 10px 12px;
	margin: 0;
	color: #222;
	-webkit-user-select: text;
	user-select: text;
}

/* Kompakt: nur so breit wie „Kopieren“ — nie full-width */
.spenden-field-row .spenden-copy,
.spenden-copy-field {
	flex: 0 0 auto;
	display: inline-block;
	width: auto !important;
	max-width: none !important;
	padding: 6px 12px;
	font-size: 0.85em;
	white-space: nowrap;
	align-self: center;
}

.spenden-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
	margin-top: 14px;
}

.spenden-copy,
.spenden-qr-toggle {
	padding: 7px 16px;
	font-size: 0.95em;
}

.spenden-copy.is-copied {
	background: #2e7d32;
}

.spenden-qr-toggle {
	display: none; /* nur Desktop */
}

.spenden-qr-toggle.is-active {
	background: #093a59;
}

.spenden-qr-toggle.is-active:hover,
.spenden-qr-toggle.is-active:focus {
	background: #072c44;
}

.spenden-clear {
	clear: both;
}

.spenden-back-bottom {
	margin-top: 32px;
	padding-top: 8px;
}

@media (min-width: 768px) {
	.spenden-qr-toggle {
		display: inline-block;
	}

	.spenden-qr.is-open {
		display: block;
	}
}

/*
 * Mobile gap — echte Ursachen (siehe auch Inline-<style> in index.php):
 * 1) webcam.css: .overlay height 170/335px vs .cam_img weiter 430px
 * 2) iframe HTML height="428" bleibt intrinsische Höhe bei height:auto
 * 3) <base href="https://www.webcam-chieming.de/"> lädt css/spenden.css von Produktion
 *    → diese Datei wirkt lokal NICHT; wirksamer Fix = Inline-CSS in index.php
 */
@media (max-width: 900px) {
	.overlay {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		padding: 0 !important;
		margin: 0 !important;
		background-position: center top !important;
	}

	.overlay .screenholder,
	.overlay .screen {
		margin: 0 !important;
		padding-bottom: 0 !important;
	}

	.cam_img {
		height: auto !important;
		min-height: 0 !important;
		width: auto !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
		margin: 0 auto !important;
	}

	#cam_img {
		margin-top: 0 !important;
		line-height: 0 !important;
		font-size: 0 !important;
	}

	.cam_img iframe {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: calc((100vw - 48px) * 9 / 16) !important;
		aspect-ratio: 16 / 9;
		margin: 0 !important;
		border: 0 !important;
	}

	.screen_shadow {
		display: none !important;
		height: 0 !important;
		margin: 0 !important;
	}

	.spenden-cta {
		min-height: 0 !important;
		/* Middle ground: not old ~80px band, not cramped 4–8px */
		padding: 16px 12px 18px !important;
		margin: 0 !important;
	}
}

@media (max-width: 767px) {
	.cam_img {
		border-width: 4px !important;
	}

	.cam_img iframe {
		height: calc((100vw - 24px) * 9 / 16) !important;
	}

	.spenden-cta {
		padding: 14px 12px 16px !important;
	}

	.spenden-cta .btn-spenden {
		display: inline-block;
		width: auto;
		max-width: none;
		margin: 0 auto;
		padding: 10px 28px;
	}

	.spenden-page {
		padding: 20px 10px 30px;
	}

	.spenden-value {
		font-size: 0.9em;
	}

	/* Per-field Kopieren: kompakt, nie full-width (auch Mobile) */
	.spenden-field-row .spenden-copy,
	.spenden-copy-field {
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: none !important;
		align-self: center;
	}

	/* Nach Entfernen von „IBAN kopieren“: Actions nur noch QR (Desktop) */
	.spenden-sepa .spenden-actions {
		display: none;
	}

	.spenden-back .btn-spenden-back {
		display: inline-block;
		width: auto;
		max-width: none;
		text-align: center;
		box-sizing: border-box;
	}

	.spenden-qr,
	.spenden-qr.is-open,
	.spenden-qr-toggle {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.spenden-sepa .spenden-actions {
		display: flex;
	}
}
