/*
 *	Anpassungen für Sixteen:Nine Posts
 */

:root {
	/* Sixteen:Nine ColorSet */
	--sixteen-nine-dots: url("data:image/svg+xml,%3Csvg width='23.811' height='88.252' viewBox='0 0 23.811 88.252' xml:space='preserve' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='.006' width='23.81' height='24.568' rx='9.3' fill='%23ee2424'/%3E%3Crect y='31.847' width='23.81' height='24.568' rx='9.3' fill='%2361c337'/%3E%3Crect y='63.688' width='23.81' height='24.568' rx='9.3' fill='%232a47a3'/%3E%3C/svg%3E%0A");
	--wp-j4b-sixteen-nine-color-bullet-red:		#ee2424;
	--wp-j4b-sixteen-nine-color-bullet-green:	#61c337;
	--wp-j4b-sixteen-nine-color-bullet-blue:	#2a47a3;

	/* Invidis ColorSet */
	/*
	--sixteen-nine-dots: url("data:image/svg+xml,%3Csvg width='23.811' height='88.252' viewBox='0 0 23.811 88.252' xml:space='preserve' xmlns='http://www.w3.org/2000/svg'%3E%3Crect y='.006' width='23.81' height='24.568' rx='9.3' fill='%23549bda'/%3E%3Crect y='31.847' width='23.81' height='24.568' rx='9.3' fill='%23e8b80e'/%3E%3Crect y='63.688' width='23.81' height='24.568' rx='9.3' fill='%2325356c'/%3E%3C/svg%3E");	
	--wp-j4b-sixteen-nine-color-bullet-red:		#549bda;
	--wp-j4b-sixteen-nine-color-bullet-green:	#e8b80e;
	--wp-j4b-sixteen-nine-color-bullet-blue:	#25356c;
	*/
}



/* Reihenfolge und Abstände der Post-Elemente in der Post-Ansicht */ 
.single .type-sixteen-nine .inside-article {
	display: flex !important;
	flex-direction: column;
}
.single .type-sixteen-nine .inside-article .entry-header {
	order: 1;
}

.single .type-sixteen-nine .inside-article .featured-image {
	order: 2;
}

.single .type-sixteen-nine .inside-article .entry-content {
	order: 3;
}

.single .type-sixteen-nine .inside-article .entry-meta {
	order: 4;
}
.single .type-sixteen-nine .inside-article .featured-image + .entry-header {
	width: 100%;
	max-width: 782px;
	margin: 3em auto;
}
.single .type-sixteen-nine .inside-article .entry-header {
	width: 616px;
	max-width: 100%;
	margin: 3em auto;
}
.single .type-sixteen-nine .inside-article footer.entry-meta {
	font-size: 1em;
}

.single .type-sixteen-nine .inside-article .entry-content {
	width: 100%;
}


/* Farbpunkte vor der H1-Headline */ 
.single-sixteen-nine h1 {
	padding-left: 0.5em;
	position: relative;
}
.single-sixteen-nine h1::before {
	content: '';
	position: absolute;
	top: 0.05em;
	left: 0;
	width: auto;
	height: 1em;
	aspect-ratio: 24/88;
	background-image: var(--sixteen-nine-dots);
	background-repeat: no-repeat;
	background-size: auto 1em;
}

.single .type-sixteen-nine .inside-article .entry-header .entry-meta {
	color: var(--wp-j4b-theme-color-on-background-medium);
}
@media (max-width: 781px) {
	.single .type-sixteen-nine .inside-article .entry-header .entry-meta { 
		padding-left: calc( 0.5em / (16 / 20) * (32 / 18) );
	}
}
@media (min-width: 782px) {
	.single .type-sixteen-nine .inside-article .entry-header .entry-meta { 
		padding-left: calc(0.5em / 16 * 44);
		margin-top: calc(1em / 21 * 32);
	}
}

/* Erster Absatz im Post */
.single-sixteen-nine .inside-article .entry-content > p:first-of-type,
.single-sixteen-nine .inside-article .entry-content > p:first-of-type * {
	font-weight: 600 !important;
}

/* Bildunterschriften */

.single-sixteen-nine .inside-article figcaption, 
.single-sixteen-nine .inside-article .wp-caption-text {
	margin-top: 0;
	margin-bottom: 0;
	color: var(--wp-j4b-theme-color-on-background-medium);
	font-size: 0.8em;
	line-height: 1.5;
	text-align: center;
}

/* Categories & Tags */

.single-sixteen-nine .sixteen-nine-logo,
.single-sixteen-nine .cat-links,
.single-sixteen-nine .tags-links {
	max-width: 616px;
	margin: 0 auto;
	font-size: 0.8em;
	font-weight: bold;
	color: var(--wp-j4b-theme-color-on-background-medium);
	background-color: var(--wp-j4b-theme-color-darker-1);
	display: block;
}
.single-sixteen-nine .sixteen-nine-logo {
	padding: 1.5em 1.5em 0.75em;
	border-top: 3px solid var(--wp-j4b-theme-color-accent);
}

.single-sixteen-nine .cat-links {
	padding: 0 1.5em 1.5em;
}
.single-sixteen-nine .cat-links:has(+ .tags-links) {
	padding-bottom: 0;
}
.single-sixteen-nine .tags-links {
	padding: 0 1.5em 1.5em;
}

[data-theme="dark"] .single-sixteen-nine .sixteen-nine-logo,
[data-theme="dark"] .single-sixteen-nine .cat-links,
[data-theme="dark"] .single-sixteen-nine .tags-links,
[data-theme="dark"] .single-sixteen-nine .cat-links + .tags-links {
	background-color: var(--wp-j4b-theme-color-lighter-9);
}

.single-sixteen-nine .cat-links .gp-icon svg,
.single-sixteen-nine .tags-links .gp-icon svg {
	fill: var(--wp-j4b-theme-color-on-background-disabled);
}
[data-theme="dark"] .single-sixteen-nine .cat-links .gp-icon svg,
[data-theme="dark"] .single-sixteen-nine .tags-links .gp-icon svg {
	fill: var(--wp-j4b-theme-color-on-background);
	filter: none;
}

/* Bild-Galerien */
.single-sixteen-nine .gallery .gallery-icon {
	padding: 0;
}

/* Post-Navigation */
.single .post-navigation .nav-previous a,
.single .post-navigation .nav-next a {
	color: var(--wp-j4b-theme-color-on-background);
}

.single-sixteen-nine.single .post-navigation {
	margin: 1.5em auto 0;
}

@media (hover: hover) and (pointer: fine) {
	body.single-sixteen-nine:not(.home):not(.archive) .site-content a:not(.wp-block-button__link):hover {
		color: var(--wp-j4b-theme-color-on-background-medium);
	}
}

/*
 *	Anpassungen für Sixteen:Nine Archive
 */

/* Farbpunkte in den Post-Bildern */
.post-type-archive-sixteen-nine .post-image,
.tax-sixteen-nine-tag .post-image,
.tax-sixteen-nine-category .post-image {
	position: relative;
}
.post-type-archive-sixteen-nine .post-image a::after,
.tax-sixteen-nine-tag .post-image a::after,
.tax-sixteen-nine-category .post-image a::after {
	content: '';
	position: absolute;
	top: calc(100% - 46px - 0.5em);
	left: 0.5em;
	width: 12px;
	height: 46px;
	background-image: var(--sixteen-nine-dots);
	background-repeat: no-repeat;
	background-size: 12px 46px;
}

@media (min-width: 782px) {
	.one-container.archive.post-type-archive-sixteen-nine article:not(:last-child):not(.is-loop-template-item),
	.one-container.archive.tax-sixteen-nine-tag article:not(:last-child):not(.is-loop-template-item),
	.one-container.archive.tax-sixteen-nine-category article:not(:last-child):not(.is-loop-template-item) {
		padding-bottom: 0em;
	}
	.post-type-archive-sixteen-nine .post-image a::after,
	.tax-sixteen-nine-tag .post-image a::after,
	.tax-sixteen-nine-category .post-image a::after {
		top: calc(100% - 46px - 0.25em);
		left: 0.25em;
	}
	.post-type-archive-sixteen-nine:not(.paged) article:first-of-type .post-image a::after,
	.tax-sixteen-nine-tag:not(.paged) article:first-of-type .post-image a::after,
	.tax-sixteen-nine-category:not(.paged) article:first-of-type .post-image a::after {
		content: '';
		position: absolute;
		top: calc(100% - 69px - 0.5em);
		left: 0.5em;
		width: 18px;
		height: 69px;
		background-image: var(--sixteen-nine-dots);
		background-repeat: no-repeat;
		background-size: 18px 69px;
	}
}



/*
 *	Sixteen:Nine Bilder immer im 16/9-Format
 */
.archive article .inside-article .post-image {
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
}
.archive article .inside-article .post-image a {
	aspect-ratio: 16/9;
}
.archive article .post-image .size-full {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.single-sixteen-nine.one-container .inside-article > .featured-image,
.single-sixteen-nine.one-container .inside-article > .featured-image.grid-container {
	aspect-ratio: 16/9;
	display: flex;
	overflow: hidden;
}
.single-sixteen-nine .post-image img,
.single-sixteen-nine .featured-image img {
	object-fit: cover;
}



/*
 *	Sixteen:Nine Logo
 */

.single-sixteen-nine .sixteen-nine-logo svg {
	width:	100%;
	height:	auto;
}
.single-sixteen-nine .sixteen-nine-logo svg .Schriftzug-16-9 {
	fill:	#231f20;
}
:root[data-theme="dark"] .single-sixteen-nine .sixteen-nine-logo svg .Schriftzug-16-9 {
	fill:	var(--wp-j4b-theme-color-on-background);
}
.single-sixteen-nine .sixteen-nine-logo svg .BulletRed-16-9 {
	fill: var(--wp-j4b-sixteen-nine-color-bullet-red);
}
.single-sixteen-nine .sixteen-nine-logo svg .BulletGreen-16-9 {
	fill: var(--wp-j4b-sixteen-nine-color-bullet-green);
}
.single-sixteen-nine .sixteen-nine-logo svg .BulletBlue-16-9 {
	fill: var(--wp-j4b-sixteen-nine-color-bullet-blue);
}
:root[data-theme="dark"] .single-sixteen-nine .sixteen-nine-logo svg .BulletBlue-16-9 {
	filter:	brightness(175%);
}