/**
 * Purpurgrün
 * Standardlayout für einzelne Beiträge
 */


/* ============================================================
   GRUNDLAYOUT
   ============================================================ */

.purpur-single {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 30px 80px;
	box-sizing: border-box;
}

.purpur-single__article {
	width: 100%;
	margin: 0;
	padding: 0;
}


/* ============================================================
   HEADER
   ============================================================ */

.purpur-single__header {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto 35px;
	text-align: center;
}


/* ============================================================
   KATEGORIEN
   ============================================================ */

.purpur-single__categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.purpur-single__category {
	display: inline-block;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	color: #555555;
	background-color: #f2f2f2;
	border-radius: 20px;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.purpur-single__category:hover,
.purpur-single__category:focus {
	color: #ffffff;
	background-color: #555555;
	text-decoration: none;
}


/* ============================================================
   BEITRAGSTITEL
   ============================================================ */

.purpur-single__title {
	max-width: 950px;
	margin: 0 auto;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}


/* ============================================================
   GROSSES BEITRAGSBILD
   ============================================================ */

.purpur-single__featured-image {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto 50px;
	padding: 0;
}

.purpur-single__featured-img {
	display: block;
	width: 100%;
	height: clamp(350px, 50vw, 600px);
	margin: 0;
	object-fit: cover;
	object-position: center;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}


/* Bildunterschrift beim Beitragsbild */

.purpur-single__featured-caption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: #777777;
}


/* ============================================================
   INHALTSBEREICH
   ============================================================ */

.purpur-single__content {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.75;
}


/* ============================================================
   ABSÄTZE
   ============================================================ */

.purpur-single__content p {
	margin-top: 0;
	margin-bottom: 1.5em;
}


/* ============================================================
   ÜBERSCHRIFTEN INNERHALB DES BEITRAGS
   ============================================================ */

.purpur-single__content h2 {
	margin-top: 2.2em;
	margin-bottom: 0.7em;
	font-size: clamp(27px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.25;
}

.purpur-single__content h3 {
	margin-top: 1.8em;
	margin-bottom: 0.6em;
	font-size: clamp(22px, 2.5vw, 27px);
	font-weight: 600;
	line-height: 1.3;
}

.purpur-single__content h4 {
	margin-top: 1.6em;
	margin-bottom: 0.5em;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
}


/* ============================================================
   BILDER IM BEITRAG
   ============================================================ */

.purpur-single__content .wp-block-image {
	margin-top: 35px;
	margin-bottom: 35px;
	text-align: center;
}

.purpur-single__content .wp-block-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-right: auto;
	margin-left: auto;
	border-radius: 8px;
}

/*
 * Breite Gutenberg-Bilder dürfen die eigentliche
 * Textspalte verlassen und größer dargestellt werden.
 */

.purpur-single__content .wp-block-image.alignwide {
	width: min(1000px, calc(100vw - 60px));
	max-width: none;
	margin-right: 50%;
	margin-left: 50%;
	transform: translateX(-50%);
}


/* ============================================================
   BILDUNTERSCHRIFTEN
   ============================================================ */

.purpur-single__content figcaption,
.purpur-single__content .wp-element-caption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: #777777;
}


/* ============================================================
   GALERIEN
   ============================================================ */

.purpur-single__content .wp-block-gallery {
	margin-top: 40px;
	margin-bottom: 40px;
}

.purpur-single__content .wp-block-gallery img {
	border-radius: 6px;
	object-fit: cover;
}


/* ============================================================
   LISTEN
   ============================================================ */

.purpur-single__content ul,
.purpur-single__content ol {
	margin-top: 0;
	margin-bottom: 1.6em;
	padding-left: 1.6em;
}

.purpur-single__content li {
	margin-bottom: 0.5em;
}


/* ============================================================
   ZITATE
   ============================================================ */

.purpur-single__content blockquote,
.purpur-single__content .wp-block-quote {
	margin: 35px 0;
	padding: 20px 25px;
	font-size: 18px;
	line-height: 1.65;
	border-left: 4px solid #777777;
	background-color: #f7f7f7;
}


/* ============================================================
   TABELLEN
   ============================================================ */

.purpur-single__content .wp-block-table {
	width: 100%;
	margin-top: 30px;
	margin-bottom: 35px;
	overflow-x: auto;
}

.purpur-single__content table {
	width: 100%;
	border-collapse: collapse;
}

.purpur-single__content th,
.purpur-single__content td {
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.purpur-single__content th {
	font-weight: 600;
	background-color: #f5f5f5;
}


/* ============================================================
   LINKS IM FLIESSTEXT
   ============================================================ */

.purpur-single__content a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}


/* ============================================================
   TRENNLINIEN
   ============================================================ */

.purpur-single__content hr,
.purpur-single__content .wp-block-separator {
	width: 100%;
	max-width: 150px;
	margin: 45px auto;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.18);
}


/* ============================================================
   SCHLAGWÖRTER
   ============================================================ */

.purpur-single__footer {
	width: 100%;
	max-width: 800px;
	margin: 50px auto 0;
	padding-top: 25px;
	border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.purpur-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.purpur-single__tag {
	display: inline-block;
	padding: 6px 11px;
	font-size: 13px;
	line-height: 1.3;
	color: #666666;
	background-color: #f3f3f3;
	border-radius: 20px;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.purpur-single__tag:hover,
.purpur-single__tag:focus {
	color: #ffffff;
	background-color: #555555;
	text-decoration: none;
}


/* ============================================================
   SEITENUMBRÜCHE
   ============================================================ */

.purpur-single__pages {
	width: 100%;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.10);
}


/* ============================================================
   CONTACT FORM 7 – PFLANZENAUSWAHL
   ============================================================ */

/* Gesamter Feld-Wrapper */
.wpcf7-form-control-wrap[data-name="beitraege"] {
	display: block !important;
	width: 100% !important;
	margin-top: 20px !important;
}

/* Checkbox-Gruppe */
.wpcf7-form-control-wrap[data-name="beitraege"] .wpcf7-form-control.wpcf7-checkbox {
	display: grid !important;
	width: 100% !important;

	grid-template-columns:
		minmax(0, 1fr)
		minmax(0, 1fr)
		minmax(0, 1fr) !important;

	column-gap: 30px !important;
	row-gap: 12px !important;

	margin: 0 !important;
	padding: 0 !important;
}

/* Jeder Pflanzenname ist genau ein Grid-Element */
.wpcf7-form-control-wrap[data-name="beitraege"] .wpcf7-list-item {
	display: block !important;
	width: auto !important;
	min-width: 0 !important;

	margin: 0 !important;
	padding: 0 !important;

	float: none !important;
}

/* Label */
.wpcf7-form-control-wrap[data-name="beitraege"] .wpcf7-list-item label {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) !important;
	align-items: start !important;
	column-gap: 7px !important;

	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;

	line-height: 1.4 !important;
	cursor: pointer;
}

/* Checkbox */
.wpcf7-form-control-wrap[data-name="beitraege"] input[type="checkbox"] {
	display: block !important;

	width: auto !important;
	height: auto !important;

	margin: 4px 0 0 0 !important;
	padding: 0 !important;

	float: none !important;
}

/* Pflanzenbezeichnung */
.wpcf7-form-control-wrap[data-name="beitraege"] .wpcf7-list-item-label {
	display: block !important;

	width: auto !important;
	min-width: 0 !important;

	margin: 0 !important;
	padding: 0 !important;

	overflow-wrap: anywhere;
}


/* ============================================================
   TABLET
   ============================================================ */

@media screen and (max-width: 1000px) {

	.wpcf7-form-control-wrap[data-name="beitraege"] .wpcf7-form-control.wpcf7-checkbox {
		grid-template-columns:
			minmax(0, 1fr)
			minmax(0, 1fr) !important;
	}

}


/* ============================================================
   SMARTPHONE
   ============================================================ */

@media screen and (max-width: 650px) {

	.wpcf7-form-control-wrap[data-name="beitraege"] .wpcf7-form-control.wpcf7-checkbox {
		grid-template-columns: minmax(0, 1fr) !important;
	}

}