/* SETUP */

:root {
  --color_background: hsl(0,0%,90%);
	--color_black: hsl(0,0%,0%);
	--color_white: hsl(0,0%,1000%);
	--color_grey_1: hsl(0,0%,10%);
	--color_grey_2: hsl(0,0%,20%);
	--color_grey_3: hsl(0,0%,30%);
	--color_grey_4: hsl(0,0%,40%);
	--color_grey_5: hsl(0,0%,50%);
	--color_grey_6: hsl(0,0%,60%);
	--color_grey_7: hsl(0,0%,70%);
	--color_grey_8: hsl(0,0%,80%);
	--color_grey_9: hsl(0,0%,90%);
	--style_outline: solid 2px var(--color_main);
	--effect_transition: .25s ease-out;
}

/* HTML ELEMENTS */

[]{}

	/* Form Elements*/

	[]{}

		form:not(.data) {
			display: grid;
			grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
			grid-gap: 2rem;
		}

		.column.span-4 form {
			grid-template-columns: repeat(2, 1fr);
		}

		button {
			background-color: var(--color_main);
			color: var(--color_white);
			border-radius: .375rem;
			border: none;
			line-height: var(--line_height);
			cursor: pointer;
			transition: background-color var(--effect_transition);
		}

		button:hover {
			background-color: var(--color_main_brighter_1);
		}

		button img {
			vertical-align: middle;
		}

		input, textarea, select, button {
			font-family: inherit;
			padding: .5rem 1rem;
			width: 100%;
			box-sizing: border-box;
		}

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

		span label {
			padding: 1rem;
			display: block;
		}

		textarea {
			min-height: 8em;
		}

		textarea, span.textarea {
			grid-column: span 2 / auto;
		}

	/* Text Elements */

	[]{}

		html {
			font-family: var(--font_family), sans-serif;
			line-height: var(--line_height);
			letter-spacing: var(--letter_spacing);
			font-size: var(--font_size);
			font-weight: var(--font_weight);
			color: var(--color_text);
			-webkit-hyphens: auto;
			hyphens: auto;
		}

		::selection {
		  background: var(--color_main_brighter_1);
			color: var(--color_white);
		}
		::-moz-selection {
		  background: var(--color_main_brighter_1);
			color: var(--color_white);
		}

		h1, h2, h3, h4, h5, h6 {
			font-weight: var(--font_weight_headlines);
			margin: 0 0 1.5em;
		}

		h1, h2, h3 {
			font-family: var(--headline_font_family), var(--font_family), sans-serif;
			letter-spacing: var(--letter_spacing_headlines);
			line-height: var(--line_height_headlines);
			color: var(--color_main);
			margin-top: 3em;
		}

		h1 {
			font-weight: var(--font_weight_h1);
			font-size: 4em;
			hyphens: none;
		}

		h2 {
			font-size: 3em;
			font-weight: var(--font_weight_h2);
			hyphens: none;
		}

		h3 {
			font-size: 1.5em;
			font-weight: var(--font_weight_h3);
			color: var(--color_second);
		}

		h4 {
			font-size: 1.25em;
		}

		h5 {
			font-size: 1.1em;
		}

		h6 {
			font-size: 1em;
		}

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

		a {
			color: var(--color_main);
			text-decoration: none;
		}

		a:hover {
			text-decoration: underline;
		}

		ul {
			padding-left: 2em;
		}

	/* Table */

	[]{}

/* CONTAINER */

[]{}

	div.section {
		background-color: var(--color_background_page);
	}

	div.section div.row {
		padding-left: calc(var(--spacing) * .25%);
		padding-right: calc(var(--spacing) * .25%);
	}

	div.content div.row {
		padding-top: 4.5rem;
		padding-bottom: 4.5rem;
	}


	.row[style^="background-image"] {
		background-size: cover;
		background-position: center;
	}

/* HEADER */

[]{}

	.section.header {
		z-index: 20;
	}

	.header {
		font-size: 0.9em;
	}

	.header .row {
	  align-items: center;
		/* transition: padding .0s ease; */
	}

	.header.fixed {
		box-shadow: 0 -3rem 3rem hsla(0,0%,0%,.15);
		transition: box-shadow .5s ease-in;
	}

	.header.is_fixed {
		box-shadow: 0 0 3rem hsla(0,0%,0%,.15);
	}

	.header.is_fixed .secondary_menu {
		display: none;
	}

	.header .column.span-8 {
		display: inline-flex;
		flex-direction: column;
		height: 100%;
		box-sizing: border-box;
		justify-content: space-between;
	}

	.header .main_menu .level1_container{
		display: flex;
		justify-content: center;
		justify-content: space-between;
		font-size: 1.25rem;
		font-weight: bold;
	  letter-spacing: -0.03em;
	}

	.header .main_menu a{
		padding: .5em;
	}

	.header .main_menu a:hover{
		text-decoration: none;
		background-color: var(--color_main_creamy_2);
	}

	.header .main_menu a.mainmenu-active {
		color: var(--color_white);
		background-color: var(--color_second);
	}

	.header .secondary_menu{
		display: inline-flex;
		flex-direction: row;
		justify-content: flex-end;
	}

	.header .secondary_menu a{
		padding: 0 .5em;
	}

	.header .logo {
		max-height: 6rem;
	  object-fit: contain;
	  max-width: 100%;
	  object-position: left;
		display: block;
		transition: all var(--effect_transition);
	}

	.header.is_fixed .logo {
		max-height: 2rem;
	}

	.header p, .header h4{
		margin: 0;
	}

	.section.header input.menu {
		display: none;
	  width: 1.5rem;
	  height: 1.5rem;
	  position: relative;
	  top: -100rem;
	}

	.section.header input.menu:before {
		content: "";
		position: relative;
	  width: 1.5rem;
	  height: 1.5rem;
	  display: block;
	  background: url("/core/template/icons/menu.svg");
		background-size: contain;
	  top: 100rem;
	}

	.section.header input.menu:checked:before {
	  background-image: url(/core/template/icons/close.svg);
	}

/* TEMPLATE ELEMENTS */

[]{}

	/* Button */

	[]{}

		div.button {
			margin: var(--line_height) 0;
		}

		div.button a {
			text-align: center;
			background-color: var(--color_main_creamy_2);
			transition: all var(--effect_transition);
			line-height: calc(var(--line_height) * 2);
			display: inline-block;
			border-radius: calc(var(--line_height) * 2);
			font-weight: bold;
			padding-right: var(--line_height);
			padding-left: var(--line_height);
		}

		div.button a:hover {
			text-decoration: none;
			color: var(--color_white);
			background-color: var(--color_main_brighter_2);
			transform: scale(1.05);
		}

	/* Classes */

	[]{}

		.bottom {
		  position: absolute;
		  bottom: 1rem;
		  margin-bottom: 0;
		}

		.center {
			text-align: center;
		}

		.small {
			font-size: .85em;
			line-height: 1.5em;
		}

	/* Gallery */

	[]{}

		div.gallery {
		  line-height: 0;
			position: relative;
		}

		div.zoom img {
			transform: scale(1);
			transition: transform var(--effect_transition);
		}

		div.zoom img:hover {
			cursor: pointer;
			transform: scale(1.05);
		}

		div.gallery img:nth-of-type(n+2) {
			display: none;
			pointer-events: none;
		}

		div.gallery.zoom:before {
		    content: "";
		    width: 1em;
		    height: 1em;
		    position: absolute;
		    left: 1em;
		    bottom: 1em;
		    background-image: url("/core/template/icons/gallery.svg?color=white");
		    background-repeat: no-repeat;
		    background-position: center;
		    background-size: contain;
				opacity: .5;
				z-index: 2;
		}

		div.gallery.zoom:hover:before {
				opacity: 1;
		}

	/* Icon */

	[]{}

		.icon {
			width: 2em;
			height: 2em;
		}

		.icon.background {
			color: white;
			background: var(--color_second);
			padding: 1em;
			width: 3em;
			height: 3em;
			border-radius: 50%;
			overflow: visible;
		}

	/* Map */

	[]{}

		div.column div.map {
			height: 100%;
		}

		div.map iframe {
			width: 100%;
			height: 100%;
			border: none;
		}

	/* Pagination */

	[]{}

		div.pagination {
			padding: 1rem 0;
			text-align: center;
		}

		div.pagination > *{
			background: var(--color_main_creamy_2);
			border-radius: .375rem;
			padding: 0 1rem;
		}

		div.pagination > span {
			background: var(--color_main_creamy_3);
		}

		div.pagination.flex.fill > *{
			flex: none;
		}

		div.pagination img{
			vertical-align: middle;
		}

	/* Text */

	[]{}

		div.column div.text {
			margin-bottom: 3em;
		}

	/* Zoom */

	[]{}

		img.zoom {
			transform: scale(1);
			transition: transform .25s ease-out;
		}

		img.zoom:hover {
			cursor: zoom-in;
			transform: scale(1.05);
		}

	/* Icon */

	[]{}

/* FOOTER */

[]{}

	.section.footer {
		font-size: 0.8em;
		background: none;
	}

	.footer .row {
		padding-top: 3rem;
		padding-bottom: 1.5rem;
	}

	.footer .menu a{
		display: block;
	}

	.footer p{
		margin-top: 0;
	}

	.footer .logo{
		max-height: 3rem;
		object-fit: contain;
		object-position: left;
	}

	.footer .level2_container {
		display: block;
		margin-left: 1rem;
	}

	.footer .icon {
		display: block;
		height: 2rem;
		width: 2rem;
		margin-left: auto;
		background-size: contain;
	}

	.footer .icon.mail {
		background-image: url("/core/template/icons/mail.svg?color=white");
	}

	.footer .icon.phone {
		background-image: url("/core/template/icons/phone.svg?color=white");
	}

	.footer .icon.location {
		background-image: url("/core/template/icons/location.svg?color=white");
	}

/* PSEUDO CLASSES */

[]{}

	.content :first-child:is(h1, h2, h3, h4, h5, h6, p) {
		margin-top: 0;
	}

	.content :last-child:is(h1, h2, h3, h4, h5, h6, p, div.text, div.button) {
		margin-bottom: 0;
	}

/* SIZES */

[]{}

	@media all and (max-width: 120em) {

		h1 {
			font-size: calc(var(--font_scale_headlines) * 2.8em);
			line-height: var(--line_height_headlines);
		}

		h2 {
			font-size: calc(var(--font_scale_headlines) * 2.3em);
			line-height: var(--line_height_headlines);
		}
	}

	@media all and (max-width: 80em) {

		html {
			font-size: calc(var(-font_size) * .75);
		}

		.header .column.span-8 {
			justify-content: flex-end;
		}

		.header .secondary_menu{
			display: none;
		}
	}

	@media all and (max-width: 50em) {

		div.section div.row {
			padding-left: 1.5rem;
			padding-right: 1.5rem;
		}

		.content .row {
			padding-top: 3rem;
			padding-bottom: 3rem;
		}

		.section.header .column.span-4 {
		  grid-column: span 2 / auto;
		}
		.section.header .column.span-6 {
		  grid-column: span 3 / auto;
		}

		html .header .row{
			display: flex;
			justify-content: space-between;
			white-space: nowrap;
		}

		.header .level1_container span.level1{
			display: block;
			padding: 0 0 0 1.5rem;
		}

		.header .logo {
			max-height: 3rem;
		}

		h1 {
			font-size: 1.7em;
			line-height: 2rem;
		}

		h3 {
			font-size: 1.25em;
		}

	}

	@media all and (max-width: 40em) {

		html .header .level1_container{
			position: fixed;
	    left: 100%;
	    top: 0;
	    width: 100%;
	    height: 100%;
	    background-color: var(--color_background_page);
	    z-index: -1;
			flex-direction: column;
			text-align: center;
			justify-content: center;
			transition: left .5s ease;
		}

		.section.header input.menu:checked + .level1_container{
		  left: 0%;
		}

		.header .level1_container span.level1{
			display: block;
			padding: 1.5rem;
		}

		/* input, select {
			grid-column: span 1 / auto;
		} */

	}

	@supports (-webkit-touch-callout: none) and (max-width: 40em){
		html .header {
			overflow: visible;
		}
	}

	@media all and (max-width: 30em) {

		.section.header .row {
			display: flex;
			justify-content: space-between;
		}

		.section.header input.menu {
			display: inline-block;
		}

		.header .logo {
			max-height: 2rem;
		}

		.header .main_menu .level1_container{
			justify-content: center;
		}

		.content .row {
			padding-top: 1.5rem;
			padding-bottom: 1.5rem;
		}

		table tr{
	    display: grid;
		}

		table td,
		table th
		{
	    display: block;
		}

		h1 {
			font-size: calc(var(--font_scale_headlines) * 1.3em);
			line-height: var(--line_height_headlines);
		}

		h3 {
			font-size: calc(var(--font_scale_headlines) * 1.10em);
			line-height: var(--line_height_headlines);
		}

	}


