/*
 * Gestaltung der Seiteninhalte (Blöcke).
 * Wird auf der Website UND im Block-Editor geladen, damit der Editor
 * so aussieht wie die fertige Seite.
 */

/* Überschriften im Inhalt */
h2.wp-block-heading {
	margin: 2.75rem 0 1rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--gelb, #ffff00);
}

h3.wp-block-heading {
	margin: 2rem 0 0.75rem;
	font-size: 1.05rem;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--gelb, #ffff00);
}

/* Listen mit Jahreszahlen (Ausstellungen, Skulpturen) */
.wp-block-list.bw-liste {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.wp-block-list.bw-liste li {
	padding: 0.5rem 0 0.5rem 7.3em;
	text-indent: -7.3em;
	border-bottom: 1px solid rgba(255, 153, 0, 0.3);
}

.wp-block-list.bw-liste li strong:first-child {
	display: inline-block;
	width: 7em;
	text-indent: 0;
	color: var(--wp--preset--color--gelb, #ffff00);
}

@media (max-width: 520px) {
	.wp-block-list.bw-liste li {
		padding-left: 0;
		text-indent: 0;
	}

	.wp-block-list.bw-liste li strong:first-child {
		display: block;
		width: auto;
	}
}

/* Zitate (Presse, Startseite, Gemälde) */
.wp-block-quote {
	margin: 2rem 0;
	padding: 0.15rem 0 0.15rem 1.5rem;
	border-left: 3px solid var(--wp--preset--color--orange, #ff9900);
}

.wp-block-quote p {
	font-style: italic;
}

.wp-block-quote p:last-of-type {
	margin-bottom: 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.875rem;
	font-style: normal;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--grau, #cccccc);
}

.wp-block-quote.bw-rechts {
	margin-left: min(18%, 9rem);
}

@media (max-width: 700px) {
	.wp-block-quote.bw-rechts {
		margin-left: 0;
	}
}

.wp-block-columns .wp-block-quote {
	margin-top: 0;
}

/* Werk-Galerien: ganze Bilder in gleich großen Feldern, nichts abgeschnitten.
   Ein Klick öffnet das Bild groß (Lightbox von WordPress).
   Für neue Galerien im Editor den Stil „Werke“ wählen. */
.wp-block-gallery.has-nested-images:is(.bw-werke, .is-style-werke) {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px !important;
	margin: 1.5rem 0 2.75rem;
}

@media (max-width: 560px) {
	.wp-block-gallery.has-nested-images:is(.bw-werke, .is-style-werke) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px !important;
	}
}

.wp-block-gallery.has-nested-images:is(.bw-werke, .is-style-werke) figure.wp-block-image:not(#individual-image) {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	max-width: none;
	margin: 0 !important;
	aspect-ratio: 1 / 1;
	padding: 10px;
	background: rgba(34, 1, 3, 0.55);
	border: 1px solid rgba(255, 153, 0, 0.35);
}

.wp-block-gallery.has-nested-images:is(.bw-werke, .is-style-werke) figure.wp-block-image:not(#individual-image) img {
	flex: 0 1 auto;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100%;
	object-fit: contain !important;
}

.wp-block-gallery.has-nested-images:is(.bw-werke, .is-style-werke) figure.wp-block-image:not(#individual-image):hover {
	border-color: var(--wp--preset--color--orange, #ff9900);
}

/* Kontaktformular (Shortcode [bw_kontakt] aus dem Plugin) */
.bw-kontakt {
	position: relative;
	max-width: 580px;
	margin-top: 1rem;
}

.bw-kontakt label {
	display: block;
	margin: 1.1rem 0 0.35rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.bw-kontakt input[type="text"],
.bw-kontakt input[type="email"],
.bw-kontakt textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font: inherit;
	color: var(--wp--preset--color--hellgelb, #ffffcc);
	background: rgba(34, 1, 3, 0.6);
	border: 1px solid var(--wp--preset--color--orange, #ff9900);
	border-radius: 0;
}

.bw-kontakt textarea {
	min-height: 11rem;
	resize: vertical;
}

.bw-kontakt input:focus,
.bw-kontakt textarea:focus {
	outline: 2px solid var(--wp--preset--color--hellgelb, #ffffcc);
	outline-offset: 1px;
}

.bw-kontakt button {
	margin-top: 1.4rem;
	padding: 0.7rem 1.75rem;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--kopf, #220103);
	background: var(--wp--preset--color--orange, #ff9900);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.bw-kontakt button:hover,
.bw-kontakt button:focus-visible {
	background: var(--wp--preset--color--hellgelb, #ffffcc);
}

.bw-kontakt__falle {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bw-kontakt__hinweis {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--grau, #cccccc);
}

.bw-meldung {
	max-width: 580px;
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border: 1px solid;
}

.bw-meldung--ok {
	border-color: #a6d96a;
	background: rgba(0, 70, 0, 0.45);
}

.bw-meldung--fehler {
	border-color: #ffb0b0;
	background: rgba(0, 0, 0, 0.4);
}
