.header-img {
    margin: 0.5em -20px;
    /* width: 100%; */
    height: 11em;
    position: relative;
    font-size: 1.4em;
}

.header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-img h1 {
    /* position: absolute; */
    /* top: calc(50% - 1em); */
    /* bottom: 50%; */
    /* text-align: center; */
    margin: auto;
    /* display: inline-block; */
}

.h1-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: calc(50% - 1em);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--transparent-white-color);
    opacity: 1;
    transition-duration: 0.5s;
}

/*.header-img h1 > div {
    padding: 0.5em 2.5em 0.4em 1.5em;
}*/

.header-img:hover .h1-wrapper {
    visibility: hidden;
    opacity: 0;
    transition-duration: 0.5s;
}

.article-section {
    display: grid;
    grid-template-columns: 8.5% 91.5%;
    padding-left: 1em;
}

.side-header {
    writing-mode: vertical-rl;
    padding: 0.3em 0.3em 0.3em 0;
    border-right: 7px solid var(--accent-color);
    font-size: 1.7em;
    color: var(--black-color);
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-weight: 500;
    letter-spacing: 0.06em;
    vertical-align: top;
    text-transform: uppercase;
    position: sticky;
    top: 2em;
    margin: 4em 0;
	z-index: 100;
	transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.section-body {
    width: 100%;
    vertical-align: top;
	margin-top: 3em;
}

.article_navigation {
    width: 9em;
    margin-left: 140px;
    /*
	margin: 1em 140px;
    margin-bottom: 0.1em;
	*/
    padding: 0.5em 1.4em;
    background: var(--even-more-lighten-accent-color);
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 1.4em;
    line-height: 1.3em;
    border-radius: 7px;
    counter-reset: li;
}

.article_navigation ul {
    margin: 0;
}

.article_navigation a {
    position: relative;
}

.article_navigation a:before {
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: -1.6em;
    top: 0em;
    background: var(--accent-color);
    /* bottom: 0; */
    color: #FFF;
    padding: 0 0.3em;
    line-height: 1.1em;
    width: 1.1em;
    height: 1.1em;
    box-sizing: border-box;
    font-size: 0.9em;
    text-align: center;
    transition-duration: 0.2s;
}

.article_navigation a:hover:before{
    /* color: var(--black-color); */
    /* background: transparent; */
    transition-duration: 0.2s;
    left: -1.4em;
}

#mainbar .article_navigation li {
	list-style: none;
}

.sidebar.article_navigation {
    position: sticky;
    top: 2em;
	width: 240px;
    margin: auto;
    background: var(--white-color);
    text-align: left;
    font-size: 2.1em;
    padding: 0.5em 0.8em;
	z-index: 0;
}

.section-body table.pricelist {
    margin: 0 auto;
}

.section-body .pricelist tr td:nth-child(1) {
    width: 350px;
}

.section-body .pricelist tr td:nth-child(n+2) {
    padding-right: 20px;
    width: 100px;
}

.pricelist_wrapper {
    margin: 0 1em;
    width: min-content;
}

.article h3 {
    font-size: 2.1em;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 1.5em 0 -0.2em 0;
}



/* COLORPICKER */

#color-gallery {
    width: 86%;
    margin: 0em auto;
    border: 5px solid var(--black-color);
    border-radius: 20px;
}

#color-viewer img {
    position: absolute;
    width: 90%;
    height: 11em;
    object-fit: cover;
    transition-duration: 0.3s;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 45%;
    box-sizing: border-box;
    border: 5px solid;
}

#color-viewer {
    position: relative;
    height: 15em;
    width: 100%;
    box-sizing: border-box;
    padding: 2em 1em 2em 1em;
    border-radius: 0 0 20px 20px;
    border-top: 5px solid var(--black-color);
	margin: 0;
}

.subscript {
    position: absolute;
    bottom: 0;
    font-size: 0.6em;
    margin-bottom: 1em;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    color: var(--gray-color);
}

#color-picker {
    display: grid;
    grid-template-areas:
        "a a a a"
        "b c d e"
        "f g h i";
    grid-gap: 5px;
    border-radius: 20px 20px 0 0;
    border: 5px solid var(--black-color);
    color: #000;
}

#color-picker div {
    height: 1.5em;
    box-sizing: border-box;
    box-shadow: 0 0 0px 5px var(--black-color);
    padding: 1px;
    text-align: center;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    line-height: 1.5em;
    font-size: 1.3em;
    cursor: pointer;
}

#color-picker div:hover {
    box-shadow: 0 0 0px 5px var(--black-color), inset 0px 0px 5px 3px #00000055;
}

#color-picker #pick-color4:hover {
	box-shadow: 0 0 0px 5px var(--black-color), inset 0px 0px 5px 3px hsla(38, 76%, 64%, 1);
}

.color-picker-wrapper {
    padding: 5%;
    background: var(--darken-white-color);
    background: var(--lighten-accent-color);
    border-radius: 15px 15px 0 0;
}

#color-picker .active {
	box-shadow: 0 0 0px 5px var(--black-color), inset 0px 0px 5px 3px #00000055;
}

#color-picker #pick-color4.active {
	box-shadow: 0 0 0px 5px var(--black-color), inset 0px 0px 5px 3px hsla(38, 76%, 64%, 1);
}

.dark #color-gallery {
	border: 5px solid var(--accent-color);
}

.dark #color-viewer {
	border-top: 5px solid var(--accent-color);
}

.dark #color-picker {
	border: 5px solid transparent;
}

.dark #color-picker div {
	box-shadow: 0 0 0px 5px var(--darken-white-color);
}

.dark #color-picker div:hover {
	box-shadow: 0 0 0px 5px var(--darken-white-color), inset 0px 0px 5px 3px #00000055;
}

.dark #color-picker #pick-color4:hover {
	box-shadow: 0 0 0px 5px var(--darken-white-color), inset 0px 0px 5px 3px hsla(38, 76%, 64%, 1);
}

.dark #color-picker .active {
	box-shadow: 0 0 0px 5px var(--darken-white-color), inset 0px 0px 5px 3px #00000055;
}

/* COLORPICKER END */


.article-specs {
	width: 87%;
	margin: 0em auto;
	min-width: auto;
}

.article-specs tr {
	height: 3em
}
	
.article-specs tr td:nth-child(1) {
	width: 12em;
	text-align: left;
	font-weight: 700;
	line-height: 1.2em;
	padding: 0.6em 0.5em 0.6em 1.5em;
}
	
.article-specs tr td:nth-child(n+2) {
	text-align: center;
	padding-right: 0em;
	padding-left: 0em;
	/*border-left: 3px solid var(--accent-color);*/
}


.article h4 {
    margin-bottom: -0.4em;
    padding-left: 0.6em;
    font-weight: 500;
    font-size: 1.6em;
    letter-spacing: 0.005em;
    /* text-decoration: underline; */
    font-family: 'Yanone Kaffeesatz', 'Nunito', sans-serif;
}

.article hr {
    width: 50%;
    margin: 2em auto;
}

.article ul {
    margin: 0.7em auto;
}

.article li {
    margin-bottom: 0.4em;
}




.pic-header {
    background-attachment: fixed;
    background-size: auto 1080px;
    overflow-y: hidden;
	background-position-x: center;
}

h4.pic-header {
    padding: 1em 2.1em 1em 5em;
    margin: 1.5em -2.1em auto -5em;
    transition-delay: 0.1s;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.65, 0.05, 0.36, 1);
}

h4.pic-header:hover {
    padding: 4em 2.1em 4em 5em;
    /* transition-duration: 0.5s; */
}

.pic-header > span {
    background: var(--transparent-white-color);
    /* background: #FFFFFF88; */
    padding: 1.1em 0.5em;
    transition-duration: 0.2s;
    transition-delay: 0.1s;
}

.pic-header:hover > span {
    /* background: transparent; */
    background-color: var(--accent-color);
    color: #FFFFFF;
}




@media screen and (max-width: 1016px){
	
	#mainbar .header-img {
		font-size: 1.1em;
		height: 9em;
	}

    #mainbar .article_navigation {
    	width: 9em;
    	max-width: 60vw;
		margin: 0 auto;
    	padding-left: 1.7em;
    }
	
	.side-header-wrapper {
		position: sticky;
		top: 0;
		z-index: 5;
	}

	#mainbar .side-header {
		display: block;
		writing-mode: initial;
		width: 100%;
		border-right: none;
		border-bottom: 7px solid var(--accent-color);
		letter-spacing: inherit;
		text-transform: inherit;
		background: var(--white-color);
		padding: 0.5em 0.7em 0.1em 0.7em;
		box-sizing: border-box;
		margin: 1em 0em 0.1em 0em;
		text-align: center;
		top: 0;
		z-index: 6;
	}
	

	
	.article-section {
		display: block;
		padding: 0;
	}
	
	#mainbar .section-body {
		width: 100%;
		display: block;
	}
	
	#mainbar .pricelist_wrapper {
		margin: 0 auto;
		width: 100%;
	}
	
	#color-gallery {
		font-size: 0.7em;
	}
	
	.mobile-scroll {
		width: 95%;
		overflow-x: auto;
		margin: 0 auto;
	}
	
	.article-specs {
		font-size: 0.6em;
	}
	
	.article-specs tr td:nth-child(1) {
		position: sticky;
		left: 0;
		z-index: 1;
	}
	
	.article-specs tr:nth-child(odd) td:nth-child(1) {
		background: var(--darken-lighten-white-color);
	}
	
	.article-specs tr:nth-child(even) td:nth-child(1) {
		background: var(--white-color);
	}
	
	.article-specs tr:nth-child(odd):hover td:nth-child(1) {
		background: var(--darken-lighten-accent-color);
	}
	
	.article-specs tr:nth-child(even):hover td:nth-child(1) {
		background: var(--more-lighten-accent-color);
	}
		
	.article-specs tr td:nth-child(n+2) {
		padding-right: 1em;
		padding-left: 1em;
	}
	
	h4.pic-header {
		margin: 1.5em -1.2em auto -5em;
	}
	
	
}