/* Spendenfenster (inc/spendenfenster.php): Aussehen wie das Spendenfenster von Lichter der Hoffnung
   (plugins/pfv-lichter/assets/css/ldh-modal.css), aber eine Seite ohne Schritte (Alex 2026-12-04).
   Werte aus ldh-modal.css übernommen; px statt rem, weil das Fenster auf allen Seiten (unterschiedliche
   Grundschrift) gleich aussehen soll. Knöpfe: Hintergrund ausdrücklich setzen, Astra färbt Knöpfe sonst ein. */

.pv-fenster {
	width: min(100% - 32px, 520px);
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	box-shadow: 0 18px 45px rgb(15 23 42 / 0.35);
	font-size: 16px;
	line-height: 1.5;
}
.pv-fenster[open] { display: flex; }
.pv-fenster::backdrop { background: rgb(0 0 0 / 0.5); }
html:has(.pv-fenster[open]) { overflow: hidden; } /* Seite dahinter scrollt nicht mit */

.pv-fenster__innen { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }

/* Kopf: Logo, Titel, Schließen */
.pv-fenster__kopf { display: flex; flex: none; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #e5e7eb; background: #ffffff; }
.pv-fenster .pv-fenster__logo { flex: none; width: auto; max-width: none; height: 40px; } /* .pv-fenster davor: schlägt Elementors „.elementor img { height: auto }“ (Fenster in Shortcode-Elementen) */
.pv-fenster .pv-fenster__titel { flex: 1 1 auto; margin: 0; color: #111827; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.pv-fenster .pv-fenster__zu { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 -10px 0 2px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #4b5563; cursor: pointer; }
.pv-fenster .pv-fenster__zu:hover { background: #f3f4f6; color: #111827; }
.pv-fenster .pv-fenster__zu:focus { background: transparent; color: #4b5563; outline: none; } /* Fokus beim Öffnen ohne Rahmen, wie bei Lichter */
.pv-fenster .pv-fenster__zu:focus-visible { outline: 2px solid #79b835; outline-offset: 2px; }
.pv-fenster__zu svg { display: block; }

/* Inhalt: scrollt, wenn das Fenster zu niedrig ist */
.pv-fenster__rumpf { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 20px; background: linear-gradient(180deg, #ffffff 0%, #f7fafc 40%, #ffffff 100%); }
.pv-fenster .pv-fenster__abschnitt { margin: 0 0 10px; color: #111827; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; }

/* Bankkarte: Beschriftung über dem Wert, bei IBAN und Verwendungszweck rechts „Kopieren“ */
.pv-bankkarte { margin: 0 0 24px; padding: 0 16px; border: 1px solid #d1d5db; border-radius: 6px; background: #ffffff; }
.pv-bankkarte__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "titel aktion" "wert aktion"; column-gap: 16px; align-items: center; padding: 12px 0; }
.pv-bankkarte__zeile + .pv-bankkarte__zeile { border-top: 1px solid #e5e7eb; }
.pv-bankkarte dt { grid-area: titel; margin: 0; color: #6b7280; font-size: 13.5px; font-weight: 400; line-height: 1.3; }
.pv-bankkarte .pv-bankkarte__wert { grid-area: wert; margin: 2px 0 0; color: #111827; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pv-bankkarte .pv-bankkarte__aktion { grid-area: aktion; margin: 0; }
.pv-fenster .pv-kopieren { min-width: 92px; min-height: 36px; margin: 0; padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #ffffff; color: #374151; font-size: 13px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.pv-fenster .pv-kopieren:hover,
.pv-fenster .pv-kopieren:focus,
.pv-fenster .pv-kopieren.ist-kopiert { border-color: #79b835; background: #ffffff; color: #4a7c1b; }
.pv-fenster .pv-kopieren:focus-visible { outline: 2px solid #79b835; outline-offset: 2px; }

/* PayPal: gelber Knopf wie bei Lichter, mit PayPal-Zeichen (lokal, kein Abruf bei PayPal) */
.pv-fenster .pv-paypal { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid #ffd140; border-radius: 999px; background: #ffd140; box-shadow: 0 8px 18px rgb(0 0 0 / 0.18); color: #003087; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color 0.15s ease, transform 0.1s ease; }
.pv-fenster .pv-paypal:hover { border-color: #ffe888; background: #ffe888; color: #003087; transform: translateY(-1px); }
.pv-fenster .pv-paypal:active { border-color: #ff9100; background: #ff9100; box-shadow: none; transform: none; }
.pv-fenster .pv-paypal:focus-visible { outline: 2px solid #003087; outline-offset: 3px; }
.pv-fenster .pv-paypal img { width: auto; height: 20px; }

.pv-fenster .pv-nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Handy: ganze Fläche wie bei Lichter, Kopf etwas enger */
@media (max-width: 768px) {
	.pv-fenster { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}
@media (max-width: 480px) {
	.pv-fenster__kopf { padding-inline: 16px; }
	.pv-fenster .pv-fenster__logo { height: 34px; }
	.pv-fenster__rumpf { padding-inline: 16px; }
	/* „Kopieren“ neben die Beschriftung, der Wert bekommt die volle Breite: IBAN bleibt einzeilig */
	.pv-bankkarte__zeile { grid-template-areas: "titel aktion" "wert wert"; }
	.pv-bankkarte .pv-bankkarte__wert { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.pv-fenster .pv-paypal { transition: none; }
	.pv-fenster .pv-paypal:hover { transform: none; }
}
