/* SETUP */

[]{}

	:root {
	  --color_background: hsl(0,0%,90%);
		--color_black: hsl(0,0%,0%);
		--color_white: hsl(0,0%,100%);
		--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;
		--padding: calc(var(--spacing) * .5vw);
	}

	@media (orientation: portrait) {
		:root {
			--padding: calc(var(--spacing) * .5vh);
		}
	}

	@media (orientation: portrait) and (max-width: 30em) {
		:root {
			--padding: calc(var(--spacing) * .5vw);
		}
	}

/* HTML ELEMENTS */

[]{}

	/* Form Elements*/

	[]{}

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

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

		input[type="text"], input[type="email"], input[type="password"], textarea, button, select {
			border-radius: .5em;
			border: solid 2px var(--color_main_creamy_3);
		}

		/* Safari */
		_::-webkit-full-page-media, _:future, :root select {
			border: revert;
			border-radius: revert;
		}

		button {
			background-color: var(--color_main);
			color: var(--color_white);
			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;
		}

		select {
			min-height: 3em;
		}

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

		textarea {
			min-height: 8em;
		}

		@media screen and (min-width: 50em) {

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

		}

		span.submit {
			align-self: end;
		}

	/* HTML */

	[]{}

		html {
			color: var(--color_white);
			background-color: var(--color_main);
			scroll-behavior: smooth;
		}

	/* Images */

	[]{}

		/* .column > img,
		.column > a > img,
		.column > .gallery img {
			width: 100%;
			display: block;
			margin-bottom: 1.5em;
		} */

		.column > img,
		.column > a > img,
		.column > .gallery img {
			width: 100%;
			display: block;
			margin-bottom: 1.5em;
		}

		.column > .gallery img {
		}

		.column img:last-child {
			margin-bottom: 0;
		}

		.column img:first-child {
			margin-top: 0;
		}


	/* Pseudo */

	[]{}

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

		:target:before {
	    content: "";
	    display: block;
	    height: 15vh;
	    margin-top: -15vh;
		}

		[onclick] {
			cursor: pointer;
		}

		/* .column:has(svg:target):before{
			content: "";
	    display: block;
	    height: 15vh;
	    margin-top: -15vh;
		} */

	/* 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;
		}

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

		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);
		}

		h1 {
			font-weight: var(--font_weight_h1);
			font-size: calc(var(--font_scale_headlines) * 4em);
			margin-top: 3em;
			-webkit-hyphens: none;
			hyphens: none;
		}

		h2 {
			font-size: calc(var(--font_scale_headlines) * 3em);
			font-weight: var(--font_weight_h2);
			margin-top: 2em;
			-webkit-hyphens: none;
			hyphens: none;
		}

		h3 {
			font-size: calc(var(--font_scale_headlines) * 1.5em);
			font-weight: var(--font_weight_h3);
			margin-top: 1em;
		}

		h4 {
			font-size: 1.25em;
			color: var(--color_main);
		}

		h5 {
			font-size: 1.1em;
			/* color: var(--color_main); */
		}

		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: 1em;
		}

	/* Table */

	[]{}

		table {
			width: 100%;
			border-collapse: collapse;
		}

	/* Video */

	[]{}

		.column video {
			width: 100%;
			display: block;
			margin-bottom: 1.5em;
		}

		.column video:last-child {
			margin-bottom: 0;
		}

		.column video:first-child {
			margin-top: 0;
		}

/* CONTAINER */

[]{}

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

	div.section div.row {
		padding: var(--padding);
	}

	div.section div.row.no_padding_top {
		padding-top: 0;
	}


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

/* HEADER */

[]{}

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

	div.section.header .row {
		padding-top: var(--gap);
		padding-bottom: var(--gap);
		transition: padding var(--effect_transition);
	}

	.header {
		font-size: 0.9em;
		overflow: visible;
	}

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

	.header.fixed {
		box-shadow: 0 -3rem 3rem hsla(0,0%,0%,.15);
		transition: box-shadow var(--effect_transition);
	}

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

	div.section.header.is_fixed .row{
		padding-top: .5rem;
		padding-bottom: .5rem;
	}

	.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 .level1_container{
		display: flex;
		justify-content: space-between;
	  letter-spacing: -0.03em;
	}

	@media all and (min-width:60rem)  {
		.header .level1_container{
			font-size: 1.25rem;
			transition: font-size var(--effect_transition);
		}
		.header.is_fixed .level1_container{
			font-size: 1rem;
		}
	}


	.header a.mainmenu {
		padding: .5em;
		display: block;
	}

	.header a.submenu {
		padding: .5em;
		display: block;
	}

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

	.header .mainmenu a.mainmenu-active {
		color: var(--color_main_brighter_3);
	}

	.header span.mainmenu {
		position: relative;
		z-index: 10;
	}

	.header .mainmenu > .container {
		flex-direction: column;
		position: absolute;
		top: 100%;
		/* gap: 1rem; */
		padding: 1rem;
		display: none;
		background: var(--color_background_page);
		box-shadow: 0 1rem 3rem hsla(0,0%,0%,.15), 0 .25rem .5rem -.25rem hsla(0,0%,0%,.5);
		font-size: var(--font_size);
		white-space: nowrap;
	}

	.header .mainmenu:hover > .container {
		display: flex;
	}

	.header .mainmenu:hover > .container a{
		display: block;
	}

	.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);
		}

		a.button {
			display: inline-block;
			text-decoration: none;
			background-color: var(--color_main_creamy_2);
			border-radius: var(--line_height);
			padding: calc(var(--line_height) * .5) var(--line_height);
			/* padding: calc(var(--line_height) * .25) calc(var(--line_height) * .5); */
			transition: all var(--effect_transition);
			transform: scale(1);
		}

		a.button:hover {
			background-color: var(--color_main_creamy_3);
			transform: scale(1.05);
		}

	/* Classes */

	[]{}

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

		img.bottom {
			padding-left: inherit;
			padding-right: inherit;
		  box-sizing: border-box;
		  left: 0;
		}



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

		.flex.fill > * {
			flex: 1;
			vertical-align: middle;
		}

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

		@media all and (min-width: 30rem) {

			.left {
				text-align: left;
			}

			.right {
				text-align: right;
			}

			.center {
				text-align: center;
			}

		}

		@media all and (min-width:60em) {
			.in_2_columns,
			.in_3_columns {
				column-count: 2;
				column-gap: var(--gap);
			}
		}

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

			.in_3_columns {
				column-count: 3;
			}
		}

	/* Collapsible */

	[]{}

		div.collapsible {
			margin-bottom: var(--gap);
			border: solid 2px var(--color_main_creamy_3);
			border-radius: 1em;
			padding: 1em;
			transition: background-color var(--effect_transition);
			background-color: var(--color_white);
		}

		div.collapsible:has(div.handle:hover){
			background-color: var(--color_main_creamy_1);
		}

		div.collapsible div.handle:hover > *{
			/* filter: brightness(1.2); */
		}

		div.collapsible div.item {
			margin-top: var(--gap);
			transition: margin-top var(--effect_transition);
		}

		div.collapsible div.item.collapsed {
			margin-top: 0;
		}

	/* Gallery */

	[]{}

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

		div.gallery img {
			transform: scale(1);
			transition: transform var(--effect_transition), margin-left var(--effect_transition);
		}

		div.gallery img:hover {
			cursor: pointer;
			/* transform: scale(1.05); */
		}

		div.gallery:not(.slide) > *: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;
			color: var(--color_main);
		}

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

	/* Map */

	[]{}

		div.column div.map {
			height: 100%;
			min-height: 10em;
		}

		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;
		}

	/* Table */

	[]{}

		table.data, table.formated {
			margin-bottom: 3em;
		}

		table.formated td {
			padding-bottom: 1em;
			vertical-align: top;
		}

		table.formated tr:last-child td {
			padding-bottom: 0;
		}

		table.data tr:hover {
			background-color: var(--color_main_creamy_1);
		}

		table.data th{
			text-align: left;
		}

		table.data th .sort{
			height: .75rem;
			margin-left: 1rem;
		}

		table.data td {
			vertical-align: top;
			font-size: .9em;
		}

		table.data tr + tr td {
			border-top-style: solid;
			border-color: var(--color_main_creamy_3);
			border-top-width: 2px;
		}

		table.data td.nowrap {
			white-space: nowrap;
		}

		table.data th.numeric {
			text-align: right;
		}

		table.data td.numeric {
			font-variant-numeric: tabular-nums;
			text-align: right;
		}

		table.data input {
	    width: 100%;
	    box-sizing: border-box;
	    margin: 0;
	    padding: 0;
	    border: none;
	    line-height: 1.5rem;
	    font-family: inherit;
	    font-size: .75rem;
	    max-width: 100%;
		}

		@media all and (max-width: 30rem) {
			table.data tr{
		    display: grid;
			}

			table.data td,
			table.data th
			{
		    display: block;
			}

			table.data td:nth-child(n+2)
			{
		    border:none;
			}
		}


		@media all and (min-width: 30rem) {
			table.pricelist td:last-child {
				text-align: right;
			}
		}

	/* Text */

	[]{}

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

		div.column div.text > *:first-child {
			margin-top: 0;
		}

		div.column div.text > *:last-child {
			margin-bottom: 0;
		}

	/* Zoom */

	[]{}

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

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

	/* Icon */

	[]{}

/* FOOTER */

[]{}



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

	div.footer * {
		color: var(--color_white);
	}

	div.section.footer .row {
		padding-top: calc(var(--padding) * .5);
		padding-bottom: calc(var(--padding) * .5);
		/* 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;
		background-size: contain;
	}

	@media all and (min-width:60rem) {

		.section.footer .row {
			grid-template-columns: repeat(24,auto);
		}

		.footer .icon {
			margin-left: auto;
		}

		.footer .logo{
			height: 3rem;
			width: auto;
		}

	}


	.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");
	}

	@media all and (min-width:40rem) and (max-width:60rem) {
		.column.span-4 {
			grid-column: span 2 / auto;
		}
	}

/* ICONS */

[]{}

	a.icon {
		position: relative;
	}

	a.icon_play::before {
		content:"";
		background-color: var(--color_main);
		background-image: url("/core/template/icons/play.svg?color=white");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 40%;
		width: 4em;
		height: 4em;
		border-radius: 50%;
		position: absolute;
		inset: 0;
		margin: auto;
	}

/* 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) {
		margin-bottom: 0;
	}

/* SIZES */

[]{}

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

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

		h2 {
			font-size: calc(var(--font_scale_headlines) * 2.3em);
			/* line-height: 3rem; */
			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;
		}

		h1 {
			font-size: calc(var(--font_scale_headlines) * 2.0em);
			line-height: var(--line_height_headlines);
			-webkit-hyphens: auto;
			hyphens: auto;
		}

		h2 {
			font-size: calc(var(--font_scale_headlines) * 1.8em);
			line-height: var(--line_height_headlines);
			-webkit-hyphens: auto;
			hyphens: auto;
		}
	}

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

		.section.header .column.span-4 {
		  grid-column: span 2 / 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: calc(var(--font_scale_headlines) * 1.7em);
			line-height: var(--line_height_headlines);
		}

		h3 {
			font-size: calc(var(--font_scale_headlines) * 1.25em);

		}

	}

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

		div.section.header .row{
			padding-top: .5rem;
			padding-bottom: .5rem;
		}

		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: flex-start;
			transition: left .5s ease;
			padding: 10vh 10vw 5vh;
			overflow: auto;
			box-sizing: border-box;
		}

		.header .mainmenu > .container {
			display: flex;
			position: static;
			background: none;
			box-shadow: none;
		}

		.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 .mainmenu .level1_container{
			justify-content: center;
		}

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

		table tr{
	    display: grid;
			grid-template-columns: max-content 1fr;
    	grid-column-gap: 1em;
		}

		table td,
		table th
		{
	    display: block;
		}

		h1, h2, h3, h4, h5, h6 {
			margin: 1.5rem 0;
		}

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

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

		.footer .icon {
			margin-left: 0;
		}

		.column.contact_icon {
		  grid-area: 4;
		}

	}

