@charset "utf-8";

@import url("../../webfonts/NunitoSans/stylesheet.css");

@font-face {
	font-family: 'GreatVibes';
	src: url("../schriften/Great_Vibes/GreatVibes.woff2") format('woff2');
	font-style: normal;
	font-weight: normal;
} 
/* CSS Document */

/* *** Generell *** */

:root {
	--body-farbe: #DDCAA5;
	--article-farbe: #dfd7c4;
	--header-farbe: #253f72;
	--hover-ankerfarbe: ##96C6EC;
	--hover-dropdown: rgba(68,107,143,0.9); 
	--footer-gradient: linear-gradient(170deg,rgba(37,63,114,1.00) 0%,rgba(37,63,114,1.00) 30.05%,rgba(111,172,228,1.00) 100%);
}

html {
	box-sizing: border-box; 		/* +++ vereinfacht die Berechnung der Boxgrößen +++ */
	font-size: 16px; 				/* +++ legt die Bezugsgröße für "rem" fest +++ */
}

*, *:before, *:after {
    box-sizing: inherit;
}

.clearfix::after {					/* +++ Clearfix-Hack +++ */
	content: "";
	display: block;
	clear: both;
	width: 1px;
}

/* *** Übergreifend *** */

body {
  background-color: var(--body-farbe);
  margin: 0;
  font-family: NunitoSans, Tahoma, Verdana, Arial, "Sans Serif Collection";
}

#wrapper {
  min-width: 320px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  font-family: NunitoSans, Tahoma, Verdana, Arial, "Sans Serif Collection";
}

main {
	flex-direktion: column;
}

aside {
    display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
    flex-direction: row;
    background-color: var(--header-farbe);
    padding: 5px;
}

#logo {
	display: none;
	flex-basis: 30%;
	max-width: 150px;
	height: 30%;
	width: 30%;
	margin: 3rem;
}

h1 {
	font-family: "GreatVibes", Verdana, "Sans Serif Collection";
	font-size: 2rem;
	font-weight: lighter;
	letter-spacing: 0.25rem;
	text-align: center;
	margin-top: 10px;
	color: white;
	order: 30;
}

#viewport_gross {
	display: none;
}

/* *** Navigation *** */

nav {
	position: relative;
	display: flex;
	justify-content: flex-end;
	width: 100%;
	order: 20;
}

#menulink {
   	width: 50%;
	margin: 0 0 0 5rem;
    text-align: right;
	padding-right: 1.5rem;
	font-size: 2.5rem;
}

#menulink a {
    color: white;
	text-decoration: none;
}

#navlinks {
	display: none;
	flex-direction: column;
	position: absolute;
	width: auto;
	top: 1.25rem;	/* +++ wichtig, dass dieser Block direkt an den Block der Nav-Leiste anschließt, damit beim Hovern der Übergang wie gewünscht funktioniert +++ */
	list-style-type: none;
	margin: 0 4rem 0 0;
	padding: 0px 5px;
	text-align: center;
	background-color: #446B8F; 		/* +++ nur für alte Browser erforderlich +++ */
	background-color: rgba(68,107,143,0.9);
}

#navlinks a {
    display: block;
    width: 10rem;
    padding-top: 10px;
	padding-bottom: 5px;
	color: white;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
}

#navlinks a:hover {
	color: #F68979;
	text-decoration: underline;
}

#navlinks li.thispage > a {			/* +++ kennzeichnet aktuelle Site +++ */
	color: #F6B779;
	text-decoration: none;
}

nav:hover > #navlinks {				/* +++ das ist der Trick! +++ */
	display: flex;
}

nav ul{
    display: flex;
    list-style: none;
    justify-content: center;
}

/* *** Hauptteil *** */

.bild {
	display: block;
	width: 100%;
}

address p {
	margin: 0;
	padding: 1.1rem;
	text-align: center;
	font-weight: 800;
	font-style: normal;
	font-size: 1.2rem;
	background-color: #C7B299;
}


footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	background-image: -webkit-linear-gradient(260deg,rgba(37,63,114,1.00) 0%,rgba(26,69,124,1.00) 30.05%,rgba(111,172,228,1.00) 100%);
	background-image: -moz-linear-gradient(260deg,rgba(37,63,114,1.00) 0%,rgba(26,69,124,1.00) 30.05%,rgba(111,172,228,1.00) 100%);
	background-image: -o-linear-gradient(260deg,rgba(37,63,114,1.00) 0%,rgba(26,69,124,1.00) 30.05%,rgba(111,172,228,1.00) 100%);
	background-image: var(--footer-gradient);
	width: 100%;
	}

#secure {
	width: 128px;
	padding-top: 10px;
	padding-right: 10px;
}

#footer-nav {
	width: 60%;
	margin-top: 3rem;
	
}

#footer-nav ul {
	color: #FFFFFF;
	list-style-type: none;
	padding-left: 50px;
}

#footer-nav li {
	padding-bottom: 15px;
	width: 100%;
}

#footer-nav a {
	color: #FFFFFF;
	text-decoration: none;
}

#footer-nav a:hover {
	color: #C7B299;
}

#copyright {
	width: 100%;
	color: #FFFFFF;
	font-size: 0.75rem;
	text-align: center;
	padding-bottom: 1rem;
}

@media (min-width: 320px) {
	#logo {
		order: 10;
	}
	#navlinks {
		order: 20;
	}
	aside h1 {
		order: 30;
	}
}

@media (max-width:340px) {
	footer {
		justify-content: center;
	}
}
	
@media (max-width: 768px) {
	
	.map {
		height: 300px;
	}
}

@media (min-width: 769px) {
	#wrapper {
		flex-direction: column;
	}
	
	main {
		display: flex;
		flex-direction: row;
	}
	
	aside {
		margin-top: 0px;
		width: 30%;
		height: auto;
		float: left;
	}
		
	h1 {
		margin-top: 10vh;
		width: 100%;
		line-height: 5rem;
		letter-spacing: 0.3rem;
		font-size: 3rem;
		font-weight: lighter;
		float: right;
		padding: 1rem;
	}
	
	#menulink {
    	font-size: 5rem;
	}
		
	#navlinks {
		top: 50px;	/* +++ wichtig, dass dieser Block direkt an den Block der Nav-Leiste anschließt, damit beim Hovern der Übergang wie gewünscht funktioniert +++ */
	}
	
	article {
		width: 70%
	}
	
	.map {
		height: 400px;
	}
}


