/*
|-------------------------------------------
| JUNGE KIRCHE Mutterstadt
| Designed by dashDOS - www.dashdos.com
|-------------------------------------------
*/

/* Fonts */

@font-face {
	font-family: 'Manrope';
	src: url('Fonts/Manrope[wght].ttf') format('truetype');
	font-display: swap;
	font-style: normal;
	font-variation-settings:'wght' 500;
}

/* General */

body {
	font-family: 'Manrope', Arial, Helvetica, sans-serif;
	color: #555555;
	font-size: 16px;
	line-height: 1.5em;
	font-style: normal;
	font-variation-settings:'wght' 400;
	margin: 0;
}

figure {
	margin: 10px;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	display: inline-block;
}

/* Headings */

h1 {
	font-size: 37px;
	font-variation-settings:'wght' 700;
	color: #333;
	line-height: 1.1em;
}

h2 {
	font-size: 32px;
	font-variation-settings:'wght' 700;
	line-height: 1.1em;
}

h3 {
	font-size: 24px;
	font-variation-settings:'wght' 700;
	line-height: 1.1em;
}

h4 {
	font-size: 24px;
	font-variation-settings:'wght' 200;
	line-height: 1.1em;
}

h5 {
	font-size: 20px;
	font-variation-settings:'wght' 700;
	line-height: 1.1em;
}

h6 {
	font-size: 18px;
	font-variation-settings:'wght' 700;
	line-height: 1.1em;
}

h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a {
	color: #333;
}

h1 > a:hover, h2 > a:hover, h3 > a:hover, h4 > a:hover, h5 > a:hover, h6 > a:hover {
	color: #E06429;
}

p {
	margin-top: 10px;
	margin-bottom: 10px;
}

strong {
	font-variation-settings:'wght' 700;
}

a {
	text-decoration: none;
	color: #555555;
}

p a {
	color: #E06429;
	font-variation-settings:'wght' 700;
}

p a:hover {
	opacity: 0.7;
}

fieldset {
	border: 0;
	padding: 0px;
	margin: 0px;
	width: 100%;
}

fieldset ul {
	list-style: none;
	padding: 0px;
}

button,
input,
textarea {
	font-family: 'Manrope', Arial, Helvetica, sans-serif;
	font-size: 18px;
	list-style: none;
}

button,
input[type="submit"] {
	font-variation-settings:'wght' 700;
	color: #fff;
	background-color: #E06429;
	padding: 11px;
	border: none;
	cursor: pointer;
	width: 100%;
}

input[type="text"],
input[type="password"],
textarea {
	font-variation-settings:'wght' 300;
	padding: 10px;
	border: 1px solid #b1b1b1;
	width: calc(100% - 20px - 2px);
}

input[type="checkbox"],
input[type="radiobox"] {
	width: auto;
}

.form-navigation,
.form-navigation > ul,
.form-navigation > ul > li {
	float: none;
}

.form-navigation > ul > li {
	display: block;
}

/* Table */

table, th, td {
	border-style: solid;
	border-width: 1px;
	border-color: #717171;
	border-spacing: 0px;
}

table {
	border-spacing: 0px;
	text-align: left;
	max-width: 100%;
}

thead {
	font-variation-settings:'wght' 700;
	background-color: #E06429;
	color: #fff;
}

tr:first-child th {
	padding: 8px 15px;
}

th, td {
	overflow: hidden;
	word-break: normal;
	overflow-wrap: anywhere;
	padding: 0px 15px;
}

.ck-content .table table th > span {
	color: #333;
}

/* Header with Logo */

header {
	height: 125px;
	width: 100%;
	position: relative;
	display: block;
	border-bottom: 1px solid #E2E2E2;
}

.container-header,
.container-content {
	position: relative;
	display: block;
	width: 100%;
	max-width: 960px;
	margin-right: auto;
	margin-left: auto;
}

.container-content {
	position: inherit;
}

.container-content-inner {
	margin: 40px 50px 50px 50px;
}

.logo {
	display: inline-block;
}

.logo-juki {
	display: inline-block;
	background-image: url('../Images/logo-juki.svg');
	background-repeat: no-repeat;
	width: 170px;
	height: 106px;
	margin-top: 10px;
}

/* Main Menu */

#menu {
	margin-top: 34px;
}

.toggle,
[id^=drop],
.menu > li > input,
#search-button {
	display: none;
}

#menu > ul > li:hover > input[type="checkbox"] + .sub-menu {
	display: block;
}

#menu .sub-menu {
	display: none;
	border-width: 1px 1px 0;
	box-shadow: 1px 1px 3px 0 #717171;
	white-space: nowrap;
	position: absolute;
}

#menu li label.icon-drop {
	display: inline-block;
	position: relative;
	margin-right: 10px;
	text-align: center;
	cursor: pointer;
}

#menu .menu > li:last-child {
	display: none;
}

nav {
	margin: 0px;
	padding: 0px;
	color: #E06429;
	float: right;
}

/* Since we'll have the "ul li" "float: left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position: relative" */
nav ul {
	float: right;
	padding: 0px;
	margin: 0px;
	list-style: none;
	position: relative;
	z-index: 1000;
}
	
/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display: inline-block;
	float: left;
}

/* Styling the links */
nav a {
	display: inline-block;
	padding: 16px 22px;
	color: #E06429;
	font-size: 22px;
	font-variation-settings: "wght" 700;
	text-decoration: none;
	background-color: #fff;
}

nav ul li ul li:hover {
	color: #fff;
	background-color: #E06429;
}

/* Background color change on Hover */
nav a:hover {
	color: #fff;
	background-color: #E06429;
}

nav > ul > li > .current {
	color: #fff;
	background-color: #E06429;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	float: none;
	position: relative;
}
	
/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display: inherit;
}

nav ul ul li {
	float: none;
	display: list-item;
	position: relative;
	border-style: solid;
	border-color: rgba(0, 0, 0, .05);
	border-width: 0 0 1px;
	word-spacing: normal;
	min-width: 170px;
	background-color: #fff;
}

nav ul ul li a {
	min-width: 170px;
	width: calc(100% - 44px);
}

/* Dropdown symbol */
li > a:after { content: ' ▾'; }
li > a:only-child:after { content: ''; }

/* Search */

.search {
	display: none;
}

#search {
	width: 400px;
	height: 54px;
	padding: 8px 12px;
	border: 1px solid #cccccc;
}

.search-button-label {
	height: 22px;
	width: 22px;
	position: relative;
	margin-top: 48px;
	margin-left: 20px;
	border-radius: 50%;
	float: right;
}

.search-button-label:after,
.search-button-label:before {
	content:"";
	display:block;
	position:absolute;
}

.search-button-label:after {
	width: 16px;
	padding-bottom: 16px;
	margin: 3px;
	background:#fff;
	border-radius: 50%;
	display: inline-block;
}

.search-button-label:before {
	width: 5px;
	height: 25px;
	left: 50%;
	margin-left: -10%;
	top: 50%;
	border-bottom-right-radius: 50%;
	border-bottom-left-radius: 50%;
	transform: rotate(-45deg);
	transform-origin: 10% 0;
}

.search-button-label, .search-button-label:before {
	background-color: #E06429;
	transition: background-color 0.2s ease-out;
}

.search-button-label:hover, .search-button-label:hover:before {
	background-color: #E06429b0;
	cursor:pointer;
}

#search-button {
	position: relative;
}

#search-button:checked + nav {
	display: none;
}

#search-button:checked ~ form.search {
	display: inline-block;
}

form.search {
	float: right;
	margin-top: 34px;
	cursor: pointer;
}

/* Search Results Page */

.neos-search.results {
	margin-top: 20px;
}

.search-results > a {
	font-size: 18px;
	color: #E06429;
}

/* Breadcrumb Menu */

.breadcrumb {
	list-style: none;
	font-variation-settings:'wght' 700;
	padding: 0px;
}

.breadcrumb > li {
	display: inline-block;
}

.breadcrumb > li:not(:first-child)::before {
	content: ">";
	padding: 0px 5px;
}

/* Main Content */

/* Teaser Headline */

#teaser-headline {
	animation-duration: 1s;
	animation-name: slidein;
	animation-fill-mode: forwards;
	display: inline-block;
	font-size: 20px;
	line-height: 32px;
	padding: 40px;
	text-align: center;
	max-width: 880px;
}

@keyframes slidein {
	
	from {
		margin-left: 5%;
		width: 100%;
	}

	to {
		left: 0;
		width: 100%;
	}
}

/* Teaser */

#teaser {
	position: relative;
	width: 100%;
	height: 100%
}

#teaser figure {
	text-align: center;
	cursor: pointer;
	margin: 0px;
}

#teaser figure img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 1;
	transition: transform 0.35s;
	transform-origin: 50% 50%;
	object-fit: cover;
}

#teaser figure:hover img {
	transform: scale3d(0.95,0.95,0.95);
	opacity: 0.5;
}

#teaser figure figcaption {
	color: #fff;
	text-transform: uppercase;
	backface-visibility: hidden;
}

#teaser figure figcaption {
	position: absolute;
	top: 6vw;
	left: 0;
	margin: 10px;
	width: calc(100% - 20px);
}

#teaser figure figcaption > a {
	z-index: 999;
	opacity: 0;
}

#teaser figure h2 {
	transition: transform 0.35s;
	opacity: 0;
	line-height: 1.1em;
	word-break: break-word;
}

#teaser figure:hover h2 {
	opacity: 1;
	transform: translate3d(0,20%,0);
	color: #333;
}

#teaser figure.teaser-image-large {
	width: 100%;
	max-width: 960px;
	/* height: 1/2 of the viewport width scaled with the aspect ration of the image (960x760) */
	height: calc(100vw / 2 / 960 * 760);
}

#teaser figure.teaser-image-medium,
#teaser figure.teaser-medium {
	width: 100%;
	/* height: 1/4 of the viewport width scaled with the aspect ration of the image (960x760) */
	height: calc(100vw / 4 / 960 * 760);
}

#teaser figure.teaser-medium figcaption h2 {
	opacity: 1;
}

#teaser.teaser-orange figure.teaser-medium {
	background-color: #E06429;
}

#teaser.teaser-orange-light figure.teaser-medium {
	background-color: #ED9C3D;
}

#teaser.teaser-orange figure.teaser-medium:hover,
#teaser.teaser-orange-light figure.teaser-medium:hover {
	background-color: #F9CF49;
}

/* NodeTypes.Content.Download */

#download {
	background-color: #2C8DC0;
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
}

#download,
.download-title {
	display: inline-block;
}

.download-title {
	font-size: 22px;
	font-variation-settings: 'wght' 700;
	line-height: 30px;
	color: #fff;
	padding: 7px;
}

.download-file {
	float: right;
	color: #2C8DC0;
	background-color: #fff;
	padding: 10px;
}

/* Forms */

#kontakt > fieldset > div, .form-group, .input-group > input {
	margin-bottom: 20px;
}

#kontakt > fieldset > div > label {
	display: none;
}

/* Neos Content Columns */

.columns-50-50, .columns-75-25, .columns-25-75, .columns-66-33, .columns-33-66, .columns-33-33-33, .columns-50-25-25, .columns-25-50-25, .columns-25-25-50, .columns-25-25-25-25, .columns-16-16-16-16-16-16 {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* calc-formulas: always leave 2% padding between any two columns */

/* two columns */

.columns-50-50 .column {
	flex-basis: calc(50% - 1 * 2% / 2);
}

.columns-75-25 .column:nth-child(1) {
	flex-basis: calc(75% - 1 * 2% / 2);
}

.columns-75-25 .column:nth-child(2) {
	flex-basis: calc(25% - 1 * 2% / 2);
}

.columns-25-75 .column:nth-child(1) {
	flex-basis: calc(25% - 1 * 2% / 2);
}

.columns-25-75 .column:nth-child(2) {
	flex-basis: calc(75% - 1 * 2% / 2);
}

.columns-66-33 .column:nth-child(1) {
	flex-basis: calc(66.6667% - 1 * 2% / 2);
}

.columns-66-33 .column:nth-child(2) {
	flex-basis: calc(33.3333% - 1 * 2% / 2);
}

.columns-33-66 .column:nth-child(1) {
	flex-basis: calc(33.3333% - 1 * 2% / 2);
}

.columns-33-66 .column:nth-child(2) {
	flex-basis: calc(66.6667% - 1 * 2% / 2);
}

.columns-50-50.teaser .column {
	flex-basis: 50%;
}

/* three columns */

.columns-33-33-33 .column {
	flex-basis: calc(33.3333% - 2 * 2% / 3);
}

.columns-50-25-25 .column:nth-child(1) {
	flex-basis: calc(50% - 2 * 2% / 3);
}

.columns-50-25-25 .column:nth-child(2) {
	flex-basis: calc(25% - 2 * 2% / 3);
}

.columns-50-25-25 .column:nth-child(3) {
	flex-basis: calc(25% - 2 * 2% / 3);
}

.columns-25-50-25 .column:nth-child(1) {
	flex-basis: calc(25% - 2 * 2% / 3);
}

.columns-25-50-25 .column:nth-child(2) {
	flex-basis: calc(50% - 2 * 2% / 3);
}

.columns-25-50-25 .column:nth-child(3) {
	flex-basis: calc(25% - 2 * 2% / 3);
}

.columns-25-25-50 .column:nth-child(1) {
	flex-basis: calc(25% - 2 * 2% / 3);
}

.columns-25-25-50 .column:nth-child(2) {
	flex-basis: calc(25% - 2 * 2% / 3);
}

.columns-25-25-50 .column:nth-child(3) {
	flex-basis: calc(50% - 2 * 2% / 3);
}

/* four columns */

.columns-25-25-25-25 .column {
	flex-basis: calc(25% - 3 * 2% / 4);
}

.columns-25-25-25-25.teaser .column {
	flex-basis: 25%;
}

/* six columns */

.columns-16-16-16-16-16-16 .column {
	flex-basis: calc(16.6666% - 5 * 2% / 6);
}

/* Footer */

footer {
	color: #fff;
	background-color: #2C8DC0;
	padding: 20px;
}

footer a {
	color: #fff;
}

.footer-menu {
	list-style: none;
	padding-left: 0px;
	margin: 20px 50px;
}

.footer-menu > li {
	font-size: 22px;
	font-variation-settings:'wght' 700;
	line-height: 34px;
}

.footer-menu > li > a:after {
	content: '';
}

.footer-sub-menu {
	list-style: none;
	padding-left: 20px;
}

.footer-menu li li {
	font-size: 18px;
	font-variation-settings:'wght' 300;
	line-height: 26px;
}

.footer-copyright-line {
	padding: 40px 0px;
	font-variation-settings:'wght' 300;
	margin-right: auto;
	margin-left: auto;
}

.footer-copyright {
	float: left;
}

.footer-links {
	float: right;
}

/* Media Queries */

@media all and (min-width: 1920px) {

	.neos-contentcollection {
		max-width: 1920px;
		margin: auto;
	}

	#teaser figure.teaser-image-large {
		height: 760px;
	}

	#teaser figure.teaser-image-medium,
	#teaser figure.teaser-medium {
		height: 380px;
	}

	#teaser figure figcaption {
		top: 140px;
	}

}

@media all and (max-width: 1280px) {

	#teaser figure h2 {
		font-size: 28px;
	}

}

@media all and (max-width: 1024px) {

	.container-header,
	.container-content {
		margin: 0px 20px;
		width: calc(100% - 40px)
	}

	#teaser figure h2 {
		font-size: 20px;
	}

	#teaser figure.teaser-medium {
		max-height: 220px;
	}

}

@media all and (max-width: 880px) {

	#logo {
		display: block;
		width: 100%;
		text-align: center;
		float: none;
	}

	#menu {
		position: absolute;
		top: 0;
		right: 0;
		display: block;
		text-align: right;
	}

	/* Submenu */
	#menu .sub-menu {
		border-width: 1px 1px 0;
		margin: 0 20px;
		position: relative;
		top: 100%;
		left: 0;
	}

	#menu .sub-menu li {
		margin-top: 0px;
		list-style: none;
	}

	#menu .sub-menu li > a {
		color: #444;
	}

	/* Search within menu */
	#menu .menu > li:last-child {
		display: block;
	}

	#menu > .menu > li:first-child {
		margin-top: 42px;
	}

	/* Disable hovering */
	#menu > ul > li:hover > input[type="checkbox"] + .sub-menu {
		display: none;
	}

	nav a:hover {
		color: #E06429;
		background-color: #fff;
	}

	/* Enable sub-menu */

	#menu > ul > li > input[type="checkbox"]:checked + .sub-menu {
		display: block;
	}

	/* Icon Dropdown */
	li > a:after { content: ''; }

	#menu li label.icon-dropdown {
		position: absolute;
		margin-top: -55px;
		right: 0;
		display: block;
		padding: 15px;
		border-style: solid;
		border-color: #E2E2E2;
		border-width: 0 0 0 1px;
	}

	#menu li label.icon-dropdown:after {
		font-size: 22px;
		content: '▾';
	}

	#menu li,
	#menu a {
		display: block;
	}

	#menu li {
		border-style: solid;
		border-color: #E2E2E2;
		border-width: 0 1px 1px;
		background-color: #fff;
	}

	/* Hide by default */
	.toggle + a,
	.menu,
	.search-button-label {
		display: none;
	}

	.toggle {
		display: inline-block;
		background-color: #E06429;
		padding: 14px 20px;
		margin-left: 100px;
		color:#fff;
		font-size: 17px;
		text-decoration: none;
		border: none;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		text-align: left;
		white-space: nowrap;
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav ul li ul li .toggle,
	nav ul ul a,
	nav ul ul ul a {
		padding: 14px 20px;
		color:#fff;
		font-size: 17px;
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position: static;
		color: #fff;
	}
		
	/* First Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
	}

	.container-content-inner {
		margin: 40px 0px;
	}

	.footer-menu {
		margin: 20px 0px;
	}

	.footer-copyright,
	.footer-links {
		float: none;
	}

	.footer-links {
		margin-top: 20px;
	}

}

@media all and (max-width: 767px) {

	header {
		height: 90px;
	}

	.logo-juki {
		width: 100px;
		height: 50px;
		margin-top: 20px;
	}

	#menu {
		margin-top: 20px;
	}

	#menu > .menu > li:first-child {
		margin-top: 21px;
	}

	.columns-50-50 .column:not(.no-reflow),
	.columns-75-25 .column:nth-child(1):not(.no-reflow),
	.columns-75-25 .column:nth-child(2):not(.no-reflow),
	.columns-25-75 .column:nth-child(1):not(.no-reflow),
	.columns-25-75 .column:nth-child(2):not(.no-reflow),
	.columns-66-33 .column:nth-child(1):not(.no-reflow),
	.columns-66-33 .column:nth-child(2):not(.no-reflow),
	.columns-33-66 .column:nth-child(1):not(.no-reflow),
	.columns-33-66 .column:nth-child(2):not(.no-reflow),
	.columns-33-33-33 .column:not(.no-reflow),
	.columns-50-25-25 .column:nth-child(1):not(.no-reflow),
	.columns-50-25-25 .column:nth-child(2):not(.no-reflow),
	.columns-50-25-25 .column:nth-child(3):not(.no-reflow),
	.columns-25-50-25 .column:nth-child(1):not(.no-reflow),
	.columns-25-50-25 .column:nth-child(2):not(.no-reflow),
	.columns-25-50-25 .column:nth-child(3):not(.no-reflow),
	.columns-25-25-50 .column:nth-child(1):not(.no-reflow),
	.columns-25-25-50 .column:nth-child(2):not(.no-reflow),
	.columns-25-25-50 .column:nth-child(3):not(.no-reflow),
	.columns-25-25-25-25 .column:not(.no-reflow),
	.columns-16-16-16-16-16-16 .column:not(.no-reflow),
	.columns-25-25-25-25 li {
		flex-basis: calc(50% - 1 * 2% / 2);
		margin-bottom: 20px;
	}

	.columns-50-50.teaser .column,
	.columns-25-25-25-25.teaser .column {
		flex-basis: 50%;
	}

	.columns-50-50.teaser .column,
	.columns-25-25-25-25.teaser .column,
	.columns-25-25-25-25 li {
		margin-bottom: 0px;
	}

	.columns-25-25-25-25 > li {
		margin-bottom: 20px;
	}

	#teaser-headline {
		font-size: 16px;
		line-height: 24px;
		padding: 0px;
		margin: 10px 0px;
	}

	#teaser figure figcaption {
		top: 3vw;
	}

	#teaser figure h2 {
		font-size: 18px;
	}

}

@media all and (max-width: 479px) {
	.columns-50-50 .column:not(.no-reflow),
	.columns-75-25 .column:nth-child(1):not(.no-reflow),
	.columns-75-25 .column:nth-child(2):not(.no-reflow),
	.columns-25-75 .column:nth-child(1):not(.no-reflow),
	.columns-25-75 .column:nth-child(2):not(.no-reflow),
	.columns-66-33 .column:nth-child(1):not(.no-reflow),
	.columns-66-33 .column:nth-child(2):not(.no-reflow),
	.columns-33-66 .column:nth-child(1):not(.no-reflow),
	.columns-33-66 .column:nth-child(2):not(.no-reflow),
	.columns-33-33-33 .column:not(.no-reflow),
	.columns-50-25-25 .column:nth-child(1):not(.no-reflow),
	.columns-50-25-25 .column:nth-child(2):not(.no-reflow),
	.columns-50-25-25 .column:nth-child(3):not(.no-reflow),
	.columns-25-50-25 .column:nth-child(1):not(.no-reflow),
	.columns-25-50-25 .column:nth-child(2):not(.no-reflow),
	.columns-25-50-25 .column:nth-child(3):not(.no-reflow),
	.columns-25-25-50 .column:nth-child(1):not(.no-reflow),
	.columns-25-25-50 .column:nth-child(2):not(.no-reflow),
	.columns-25-25-50 .column:nth-child(3):not(.no-reflow),
	.columns-25-25-25-25 .column:not(.no-reflow),
	.columns-25-25-25-25 li {
		flex-basis: 100%;
	}

	#teaser figure.teaser-image-large,
	#teaser figure.teaser-image-medium {
		height: 100%;
	}

	#teaser figure figcaption {
		margin: 0px;
		width: 100%;
		line-height: 1em;
	}

	#teaser figure h2 {
		font-size: 20px;
	}

	.form-control.search-param {
		width: 220px;
	}

}

/* dashDOS classes */

.dashdos-alignment-center {
	text-align: center;
}

.dashdos-alignment-left {
	float: left;
}

.dashdos-alignment-right {
	float: right;
}

.neos-search.results .search-results {
	margin-top: 15px;
}

.neos-search.results .search-results a + div {
	margin-bottom: 15px;
}
