// general style corrections


// stretch content -> sticky footer

html {
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
	overflow-y: scroll;
	min-height: 100vh;
	position: relative;
}

#ch-ggs-web-suite-content {
	flex: 1 0 auto;
}

.ch-ggs-web-suite-section-gray {
	background: $antrazit05;
}

.ch-ggs-web-suite-section-dark {
	background: $primary-d-200;
	&,
	& a:not([class]) {
		color: $white;
	}
}


h1, h2 {
	font-weight: 300;
}

footer h2 {
	margin-bottom: 1.5rem;
}

.ch-ggs-web-suite-section-title {
	margin-bottom: 2.5rem;
}

// header

#ch-ggs-web-suite-header {
	padding: 18px 0;
	border-bottom: 2px solid $primary;
}

// Navigation

#ch-ggs-web-suite-toggler-nav {
	li.level-rel-0 > .nav-link {
		color: $antrazit85;
		font-weight: bold;
		font-size: $font-size-md;
		text-transform: uppercase;
		padding: 0.5rem 1rem;
		line-height: 1;
		&:hover {
			color: $primary;
		}
		&.ch-ggs-web-suite-language-nav {
			background-color: $antrazit05;
			margin-left: 2px;
			padding: 0.5rem 0.75rem;
			&.active {
				background-color: $primary;
				color: white;
			}
		}

		.ifc {
			vertical-align: middle;
			position: relative;
			top: -1px;
		}
	}
}

.navbar-brand {
	padding-top: 0;
	padding-bottom: 0;
}

.navbar-toggler {

	&:focus {
		outline: none;
	}
	
	.navbar-toggler-bar {
		background-color: #2d2d2d;
		display: block;
		height: 4px;
		width: 26px;
		margin-top: 5px;
		transform: rotate(0deg);
		transform-origin: left center;
		transition: .25s ease-in-out;
		will-change: transform;
	}

	&[aria-expanded="true"] {
		.navbar-toggler-bar:nth-child(1) {
			transform: rotate(45deg);
			top: 20px;
			left: 20px;
		}
		.navbar-toggler-bar:nth-child(2) {
			width: 0;
			opacity: 0;
		}
		.navbar-toggler-bar:nth-child(3) {
			transform: rotate(-45deg);
			top: 39px;
			left: 20px;
		}
	}
}

@include media-breakpoint-down(md) {
	.navbar-brand img {
		max-width: 180px;
	}

	#ch-ggs-web-suite-toggler-nav {
		> .navbar-nav {
			padding: 40px 0;
		}
		li.level-rel-0 > .nav-link {
			padding-left: 0;
		}
		
		.dropdown-menu {
			border: none;
			padding: 0.1rem 0 0.8rem;
			.dropdown-item {
				padding: 0.15rem .5rem;
			}
		}

		.ch-ggs-web-suite-language-nav {
			display: inline-block;
		}
	}

}

@include media-breakpoint-up(lg) {
	#ch-ggs-web-suite-nav {
		padding: 0;
	}

	#ch-ggs-web-suite-toggler-nav {
		margin-top: 12px;
	}
}


// content

h1 {
	color: $primary;
	text-align: center;
	border-bottom: 1px solid $antrazit05;
	padding-bottom: 22px;
	margin-bottom: 30px;
}


#ch-ggs-web-suite-content > .container,
#ch-ggs-web-suite-content > section > .container {
	padding-top: 120px;
	padding-bottom: 120px;
}

#ch-ggs-web-suite-content > section > .container:last-child > *:last-child,
.ch-ggs-web-suite-common-content-holder:last-child > .ch-ggs-web-suite-common-content > *:last-child {
	margin-bottom: 0;
}

#ch-ggs-web-suite-content-step {
	background-color: $antrazit05;
	padding: 15px 0;
}



// footer

#ch-ggs-web-suite-footer-addr {
	border-top: 5px solid $primary-d-100;
	background-color: $primary;
	color: white;
	padding: 40px 0 28px;
	a {
		color: white;
	}
}

#ch-ggs-web-suite-footer-payment {
	padding: 20px 0;
	dl {
		margin: 0;
		> dt {
			display: inline-block;
		}
		> dd {
			display: inline-block;
			font-weight: bold;
			color: $antrazit60;
		}
	}
	img {
		width: auto;
		height: 40px;
		margin-right: 15px;
	}
}

#ch-ggs-web-suite-footer-copyright {
	background-color: $antrazit;
	color: white;
	padding: 18px;
	a {
		color: white;
	}
}
#ch-ggs-web-suite-footer-creator > a {
	color: $antrazit60;
}