// -------------------------------------------------------------------
// :: FOOTER
// -------------------------------------------------------------------

.o-footer {
	display: block;
	background: $white;
	box-shadow: $dropshadow-footer;
	overflow: hidden;
	margin-top: 2rem;


	.a-search__button {

		span {
			display: none;
		}

		@include FLOW-at($desktop) {
			width: auto;
			padding: 0 1em;

			span {
				line-height: 3.4;
				font-size: rem(14px);
				text-transform: uppercase;
				display: inline-block;
				margin: 0 0.3em;
			}
		}
	}

	&__visual {
		@include FLOW-at($tablet) {
			background: transparent url('../../img/footer-silhouetten.png') no-repeat;
			background-size: contain;
			background-position: right top;
			min-height: 100px;
			position: absolute;
			top: -10px;
			left: 0;
			bottom: 0;
			right: -10px;
		}
	}

	.m-shares__label {
		display: none;
	}

	.container-fluid {
		@include FLOW-at($desktop) {
			width: calc(100% - 10rem);
			margin: 0 5rem;
		}

		div[class*="col-"] {
			margin-bottom: rem(20px);
		}
	}

	.u-contact-links{
		margin-top: 0.5rem;

		[class*="icon"]{
			color: $aqua;
			font-size: 1.3rem;
			display: inline-block;
			margin-right: 0.5rem;
			line-height: 1rem;
		}
	}

	nav ul {
		list-style: none;
		padding: 0;

		a{
			padding-bottom: 0.3rem;
			display: inline-block;
		}
	}

	a:not([class*="a-logo"]) {
		color: $dark-extra;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}

	small {
		color: $medium;
		font-size: 1rem;

		a {
			color: $aqua !important;
		}
	}

	h4,
	label {
		margin-bottom: rem(20px) !important;
	}

	h4{
		margin-top: rem(15px);
	}

	.row {
		padding: rem(35px) rem(15px) rem(10px);
	}

	&__top {
		border-bottom: 1px solid darken($light, 5%);
	}

	&__bottom {
		p small {
			line-height: rem(40px);
		}

		@include FLOW-at($tablet) {
			padding-bottom: rem(22px) !important;
		}

		@include FLOW-to($tablet) {
			display: flex;
			flex-direction: column;

			.o-footer__logo {
				order: 3;
				text-align: left;
				padding-left: rem(5px);
				padding-top: rem(15px);
				margin-top: rem(10px);
				border-top: 1px solid darken($light, 5%);
			}

			.o-footer__copyright {
				padding: rem(15px) 0;

				small {
					font-size: 1rem;
				}
			}

		}

		background: $white url('../../img/footer-logo-bg.svg') no-repeat top left;

		@include FLOW-to($tablet) {
			background-position: bottom left;
			background-size: rem(81px);
		}


		@include FLOW-at($tablet) {

			div[class*="col-"] {
				min-height: rem(53px);
			}
		}
	}

	.o-footer__collapsible_column {
		margin: 0 rem(-15px);

		&.o-footer__collapsible_column--open {
			.o-footer__collapsible_column_header {
				border-bottom: none;

				&:before {
					transform: rotate(180deg);
					transform-origin: center center;
				}
			}

			.o-footer__collapsible_column_body {
				display: block;
				border-bottom: 1px solid darken($light, 5%);
				padding: 0 rem(15px) rem(15px);
			}
		}

		.o-footer__collapsible_column_header {
			@extend %__icon-arrow-down;

			&:before {
				position: absolute;
				right: rem(30px);
				top: rem(23px);
				transition: all 0.5s ease-in-out;
			}

			border-bottom: 1px solid darken($light, 5%);
			padding: 0 rem(15px);
			cursor: pointer;
		}

		.o-footer__collapsible_column_body {
			display: none;
			padding: 0 rem(15px);
		}


		@include FLOW-at($tablet) {
			.o-footer__collapsible_column_header {
				&:before {
					display: none;
				}

				border: none;
			}

			.o-footer__collapsible_column_body {
				display: block;
				border-bottom: none !important;
			}

			.o-footer__collapsible_column_header,
			.o-footer__collapsible_column_body {
				padding-left: 0;
				padding-right: 0;
			}
		}
	}

	@include FLOW-to($tablet) {
		div[class*="col-"] {
			margin-bottom: 0 !important;
		}

		.o-footer__top {
			display: flex;
			flex-direction: column;
			border-bottom: none;
			padding-bottom: 0;

			.o_footer__newsletter {
				order: -2;
				border-bottom: 1px solid darken($light, 5%);
			}
		}
	}

	@include FLOW-at($tablet) {
		div[class*="col-"] {
			margin: 0;
		}
	}
}

.o_footer__newsletter {
	.a-input__field-holder {
		input {
			border-radius: rem(24px) !important;
			width: 100%;
		}

		a{
			text-decoration: none !important;
			border-radius: 0 rem(24px) rem(24px) 0;

			&:hover {
				color: $white;
			}
		}
	}
}
