@media (max-width: 485px) { 
	
	div.buttons.mt-auto a.btn.btn-primary {
		margin-bottom: 10px;
	}
	
}

@media (min-width: 429.98px) { 
	
	#megamenu ul.first > li {
		background-size: 0;
	}	
	
}

@media (max-width: 485px) { 
	
	footer .row.bottom {
		flex-direction: column;
	}	
	footer .row.bottom .col{
		text-align: center !important;
		justify-content: center !important;
	}
	footer .line-white-small{
		margin-bottom: 21px;
	}
	footer .row.bottom .footer-link{
		margin-top: 18px;
		margin-bottom: 21px;
	}
	div.tx-powermail .row-cols-1 > *{
		width: 100%;
	}
}


/* X-Small devices (portrait phones, less than 576px) */
@media (min-width: 563.98px) { 
	
	
	.cards .card {
		justify-content: center;
	}
	.cards .card {
		width: 45%;
		margin-right: 25px;
	}
	.cards .card:nth-of-type(2n) {
		margin-right: 0;
	}
	
	.tiles.opening .tile {
		margin-right: 25px;
		width: 45%;
	}
	.tiles.opening .tile:nth-of-type(2n) {
		margin-right: 0;
	}
}


/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) { 
	.portfolio-layout-2{
		overflow: auto;
		flex-wrap: nowrap;
	}
	.portfolio-layout-2 .col{
		width: 80%;
	}
	section#c5983 div.col-md-8 table.contenttable tbody tr td:first-child,
	section#c5984 div.col-md-8 table.contenttable tbody tr td:first-child,
	section#c5985 div.col-md-8 table.contenttable tbody tr td:first-child,
	section#c5986 div.col-md-8 table.contenttable tbody tr td:first-child
	{
		width: 60%;
	}	
	
	div.tx-courses div.entry-content div.row div.col-3	{
		width: inherit;
	}
	
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
	
	:root {

		/* font-size */
		--text-standard: 16px;
		--text-medium: 14px;
		--text-small: 12px;
		--text-teaser:18px;
		--text-large:24px;
		--h1:48px;
		--h2:22px;
		--h3:20px;
		--h4:18px;
		--h5:16px;
		--line-height-h1:1.14;
		--line-height-h2:1.1;
		--line-height-h3:1.13;
		--line-height-h4:1.25;
		--line-height-h5:1.22;
		--margin-bottom-h2:22px;
		--margin-bottom-h3:22px;
		--margin-bottom-h4:10px;

	}
	
	.hideonmobile {
		display: none;
	}
	
	.visibleonmobile {
		display:block;
	}
	
	.showonmobile {
		display:block;
	}
	
	body#ae .hero {
		width: 95%;
	}
	body#ae .interaction {
		display: block;
		top: 25px;
	}
	body#ae #header	{
		margin-top: 0;
		height: 445px;
		background-size: cover;
		background-position-x:0;
	}
	.content {
		padding: 36px 0;
	}
	nav#first .navigation {
		position: relative;
		right: 0;
	}
	nav#first .nav-icon {
		position: absolute;
		right: 0;
		margin-right: 0;
	}	
	#megamenu ul.first > li {
		font-size: 21px;
		background-size: 0;
	}	
	.subpages {
		display: block;
	}
	.subpages .abstract {
		padding: 20px;
		margin-bottom: 0px;		
	}
	.subpages .shortcuts {
		padding: 0 20px 25px;
	}
	.subpages .abstract .title {
		font-size: var(--h3);
		margin-bottom: 20px;
	}
	.subpages div.abstract .teaser,
	.subpages div.abstract .teaser p{
		margin-bottom: 0;
	}
	.subpages div.hideontablet{
		display:block;
	}
	.subpages div.buttons.showonmobile p{
		display: flex;
		margin-top: 30px;
		margin-bottom: 10px;
	}
	.subpages div.buttons.showonmobile a {
		/*margin: auto;*/
	}
	.tiles {
		margin-top: 25px;
	}
	/*
	#testimonialcontent p {
		font-size: var(--h5);
		text-align: center;
	}
	*/
	footer div.row div {
		text-align: center;
	}
	footer .line-white-small{
		margin-top: 35px;
	}
	.portfolio-item.full {
		flex: inherit;
		width: 100% !important;
		height: auto;
	}
	.text-with-image .image.l2 img{
		margin-bottom: 57px;
	}
	section.content.news.news-single,
	section.content.mt-nopageimage
	 {
		margin-top: 0px;
		border-top: 0px solid #d1d1d1;	
	}
	
	
}

@media (min-width: 768px) {
	.row-cols-md-6 > .col-big-image {
		width: 33.33333333333333% !important;
	}

	.row-cols-md-5 > .col-big-image {
		width: 40% !important;
	}

	.row-cols-md-4 > .col-big-image {
		width: 50% !important;
	}

	.row-cols-md-3 > .col-big-image {
		width: 66.66666666666667% !important;
	}

	.row-cols-md-1 > .col-big-image {
		width: 100% !important;
	}
	
	div.tx-powermail .row-cols-md-2 .col-12{
		width: 100% !important;
	}

	div.tx-powermail .row-cols-md-2 .col-9{
		width: 75% !important;
	}

	div.tx-powermail .row-cols-md-2 .col-8{
		width: 66.66666666% !important;
	}

	div.tx-powermail .row-cols-md-2 .col-4{
		width: 33.33333333% !important;
	}

	div.tx-powermail .row-cols-md-2 .col-3{
		width: 25% !important;
	}
}


/* Medium devices (tablets, more than 768px) */
@media (min-device-width: 767.98px) and (max-device-width: 991.98px){
	
	:root {

		/* font-size */
		--text-standard: 16px;
		--text-medium: 14px;
		--text-small: 12px;
		--text-teaser:18px;
		--text-large:24px;
		--h1:48px;
		--h2:22px;
		--h3:20px;
		--h4:18px;
		--h5:16px;
		--line-height-h1:1.14;
		--line-height-h2:1.1;
		--line-height-h3:1.13;
		--line-height-h4:1.25;
		--line-height-h5:1.22;
		--margin-bottom-h2:22px;
		--margin-bottom-h3:22px;
		--margin-bottom-h4:10px;

	}
	
	
	body#ae .interaction {
		display: block;
		top: 29.5px;
	}
	
	body#ae #header	{
		height: 500px;
	}
	
	.hideontablet {
		display: none;
	}
	
	.subpages .abstract .title {
		font-size: var(--h4);
	}
	.subpages .abstract .teaser {
		margin-bottom: 20px;
	}
	.subpages div.buttons.hideonmobile p > a:not(:first-child){
		margin-top: 10px;
	}
	
	.googlemap h3 {
		font-size: var(--h3);
	}
	.cards.download, cards.member, cards.partner {
		justify-content: flex-start;
	}
	.cards.download .card, .cards.member .card, .cards.partner .card, {
		margin-right: 25px;		
	}
	.cards.download .card, .cards.member .card, .cards.partner .card, {
		width: 30%;
	}
	.cards.download .card:nth-of-type(3n), .cards.member .card:nth-of-type(3n), .cards.partner .card:nth-of-type(3n) {
		margin-right: 0
	}
	.simpleteam-categories{
		width: 100%;
	}
		
}

/* Medium devices */
@media (max-width: 991.98px) { 
	.showfromMediumDevices{
		display: block !important;	
	}
	.hidefromMediumDevices{
		display: none !important;	
	}
}


/* Medium devices (tablets, more than 992px) */
@media (min-width: 992px) {

	:root {

		/* font-size */
		--text-standard: 16px;
		--text-medium: 14px;
		--text-small: 12px;
		--text-teaser:18px;
		--text-large:24px;
		--h1:48px;
		--h2:22px;
		--h3:20px;
		--h4:18px;
		--h5:16px;
		--line-height-h1:1.14;
		--line-height-h2:1.1;
		--line-height-h3:1.13;
		--line-height-h4:1.25;
		--line-height-h5:1.22;
		--margin-bottom-h2:22px;
		--margin-bottom-h3:22px;
		--margin-bottom-h4:10px;

	}
	
	body#ae #header	{
		height: 500px;
	}
	
	.subpages .shortcuts {
		max-width: 20%
	}
	.subpages .image {
		max-width: 24%
	}
	
	.testimonial {
		margin-bottom: 150px;
	}
	.testimonial > img {
		width: 100%;
	}
	.testimonial .contentwrap {
		margin-top: 90px;
		width: 486px !important;
	}
	.testimonial .contentwrap img {
		height: 164px;
		max-width: 164px;
	}	
	
	.cards.download, .cards.member, .cards.partner {
		justify-content: flex-start;
	}
	.cards.download .card, .cards .card {
		margin-right: 25px;		
	}
	.cards.download .card:nth-of-type(2n), .cards .card:nth-of-type(2n) {
		margin-right: 0
	}	
	.cards .card, .tiles.opening .tile {
		width: 280px;
	}
	
	.row-cols-lg-6 > .col-big-image {
		width: 33.33333333333333% !important;
	}

	.row-cols-lg-5 > .col-big-image {
		width: 40% !important;
	}

	.row-cols-lg-4 > .col-big-image {
		width: 50% !important;
	}

	.row-cols-lg-3 > .col-big-image {
		width: 66.66666666666667% !important;
	}

	.row-cols-lg-1 > .col-big-image {
		width: 100% !important;
	}
	
	div.col.portfolio-item.full {
		height: 400px;
	}
	
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
	
	
	:root {

		/* font-size */
		--text-standard: 16px;
		--text-medium: 14px;
		--text-small: 12px;
		--text-teaser:18px;
		--text-large:24px;
		--h1:34px;
		--h2:22px;
		--h3:20px;
		--h4:18px;
		--h5:16px;
		--line-height-h1:1.14;
		--line-height-h2:1.1;
		--line-height-h3:1.13;
		--line-height-h4:1.25;
		--line-height-h5:1.22;
		--margin-bottom-h2:22px;
		--margin-bottom-h3:22px;
		--margin-bottom-h4:10px;

	}
	
	
	nav#second div#sub ul.first li {
		margin-right: 25px;
		font-size: var(--text-medium);
	}
	
	.parts .part .part-body a {
		font-size: var(--text-standard);
	}
	.parts .part {
		/*height: 535px;*/
	}

	
	.cards-row {
		display: block;
	}
	
	.googlemaps h3 {
		font-size: var(--h3);
	}
	
	.attention-box .container {
	  width: 95%;
	}
	
	#header .owl-carousel .owl-nav {
		bottom: 30%
	}
	#header .owl-nav button {
		width: 40px;
		height: auto;	
	}
	#header .owl-slide-subtitle {
		font-size: var(--text-teaser);
	}

	/* owl partscarousel */
	.parts .container {
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.accordion details {
		padding: 0 10px;
	}		
	.accordion summary::after {
		right: 10px;
		transform: scale(0.75);
	}
	
	.hideontablet{
		display: none;
	}

	.portfolio-item-text{
		/*min-height: 119px;*/
	}
	
	.portfolio-item.full {
		flex: inherit;
		width: 50%;
		height: auto;
	}
}



@media (min-width: 991.98px) and (max-width: 1199.98px) {
	body#ae .interaction {
		display: block;
		top: 29.5px;
	}
}

/* Large devices (desktops, less than 1200px) */
@media (min-width: 1199.98px) {
	
	:root {

	/* font-size */
	--text-standard: 18px;
	--text-medium: 16px;
	--text-small: 14px;
	--text-teaser:24px;
	--text-large:40px;
	--h1:56px;
	--h2:40px;
	--h3:32px;
	--h4:24px;
	--h5:18px;
	--line-height-h1:1.14;
	--line-height-h2:1.1;
	--line-height-h3:1.13;
	--line-height-h4:1.25;
	--line-height-h5:1.22;
	--margin-bottom-h2:49px;
	--margin-bottom-h3:49px;
	--margin-bottom-h4:16px;
	--margin-bottom-p:27px;
	--margin-bottom-text-teaser:27px;
	--margin-bottom-text-large:27px;

	}
	
	body#ae .showonlarge {
		display: flex;
		justify-content: right;
		position: relative;
		top: 65px;
	}
	
	#megamenu ul.first > li {
		font-size: 28px;
	}
	
	#megamenu div#company .image img {
		top: -120px;
	}
	
	body#ae #header	{
		height: 572px;
	}
	
	
	.subpages .abstract .title {
		font-size: var(--h4);
	}
	.testimonial .contentwrap  {
		width: 650px !important;
	}
	
	.testimonial .contentwrap p {
		font-size: var(--text-teaser);
	}
	
	.cards.download .card:nth-of-type(2n), .cards.member .card:nth-of-type(2n), .cards.partner .card:nth-of-type(2n) {
		margin-right: 25px;		
	}
	.cards.download .card:nth-of-type(3n), .cards.partner .card:nth-of-type(3n) {
		margin-right: 0
	}
	.cards.member .card {
		width: 280px;	
	}
	
	.tiles {
		justify-content: left;
		margin-top: 0;		
	}
	.tiles.opening .tile:nth-of-type(3n) {
		margin-right: 0
	}	
	
	.attention-box .container {
	  width: 42%;
	}
	
	div.col.portfolio-item.full {
		height: 400px;
	}
	
	
}

@media (max-width: 1199.98px) {
	.portfolio-arrow-container{
		bottom: 24.5px;
	}
	
	.portfolio-item-no-background{
		height: 180px;
	}
	
	.portfolio-item-text{
		font-size: 14px;
	}
	
	
}


@media (max-width: 1299.98px) {
	
	#header .owl-carousel .owl-nav {
		bottom: 30%
	}
	#header .owl-nav button {
		width: 45px;
		height: auto;	
	}
	
}

/* X-Large devices (large desktops, less than 1400px) */
@media (min-width: 1399.98px) {
	
	.container{
		max-width: 1400px;
	}
	
	#megamenu div#ae ul.second {
		display: none;
		position: absolute;
		left: 100%;
	}
	
	#megamenu div#ae ul.second {
		padding-left: 25px;
	}
	
	.cards.member .card:nth-of-type(3n) {
		margin-right: 0;
	}
	.tiles.opening .tile:nth-of-type(2n) {
		margin-right: 25px;
	}
	
	div.pagination {
		margin-bottom: 40px;
	}	
	
}


/* smartphones, touchscreens */
@media (hover: none) and (pointer: coarse) {
	
    #megamenu div#ae ul.second {
		padding-left: 0;
	}
	
}

@media (min-width: 1400px) and (max-width: 1599.99px) {

	#header .owl-carousel .owl-nav {
		bottom: 30%
	}
	#header .owl-nav button {
		width: 45px;
		height: auto;	
	}
	
}

/* stylus-based screens */
@media (hover: none) and (pointer: fine) {
    /* ... */
}/* Nintendo Wii controller, Microsoft Kinect */
@media (hover: hover) and (pointer: coarse) {
    /* ... */
}/* mouse, touch pad */
@media (hover: hover) and (pointer: fine) {
    /* ... */
}