@charset "utf-8";
/* CSS Document */

/* Schrift für Dokument */
@font-face {
	font-family: 'NunitoSans';
	src: url("../schriften/Nunito_sans/nunito-sans-v15-latin-regular.woff2") format('woff2');
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

/* Schmuckschrift */
@font-face {
	font-family: 'GreatVibes';
	src: url("../schriften/Great_Vibes/GreatVibes.woff2") format('woff2');
	font-style: normal;
	font-weight: normal;
	font-display: swap;
}

/* *** Generell *** */

:root {
	--accent2-color: darkred;
	--aktuelle-seite: #F6B779;
	--article-farbe: #DFD7C4;
	--body-farbe: #DDCAA5;
	--center-orange: #f79900;
	--footer-gradient: linear-gradient(170deg, rgba(37,63,114,1) 0%, rgba(37,63,114,1) 30.05%, rgba(111,172,228,1) 100%);
	--header-farbe: #253F72;
	--header-text: #FFFFFF;
	--hover-ankerfarbe: #96C6EC;
	--hover-nav-farbe: #F68979;
	--navi-background: rgba(68,107,143,0.7);
}

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;
}

/* *** Übergreifend *** */

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--body-farbe);
  font-family: 'Nunito Sans', Tahoma, Verdana, Arial, sans-serif;
  color: var(--header-farbe);
  line-height: 1.6;
}

#wrapper {
	min-width: 320px;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	-webkit-box-shadow: 10px 10px 14px #9B9B9B;
	box-shadow: 10px 10px 14px #9B9B9B;
	border-left: thin solid #737171;
}

header {
	display: grid;
	grid-template: "logo navi"
                 "h1 h1";
	background-color: var(--header-farbe);
	padding: 0.5rem 1rem;
	width: 100%;
}

#logo {
	grid-area: logo;
	width: 100px;
}
 
h1 {
  font-family: 'Great Vibes', Verdana, sans-serif;
  font-size: 2 rem;
  font-weight: lighter;
  letter-spacing: 0.25rem;
  text-align: center;
  margin: 1rem 0 1.5rem;
  color: var(--header-text);
  width: 100%;
  order: 30;
}

#viewport_klein {
	grid-area: h1;
}

#viewport_gross {
  display: none;
	grid-area: h1;
}

/*	Navigation Hamburger Menü */

.hamburger {
	text-align: end;
	width: 30%;
	grid-area: navi;
	color: var(--header-text);
	justify-self: end;
	margin-right: 1.5rem;
}

[popover] {
	height: 0;
	width: 10rem;
	background-color: var(--header-farbe);
	border-style: none;
	overflow-y: clip;
	transition: height 0.25s allow-discrete, display 0.25s allow-discrete;
	inset: auto;
	interpolate-size: allow-keywords;
	position-anchor: --main-nav-toggle;
	/* for Chrome, problems with auto */
	top: anchor(top);
	right: anchor(right);
}

[popover]:popover-open {
	height: 15em;	/* Fallback */
	height: calc-size(auto, size);
	transition: height 0.4s allow-discrete, display 0.4s allow-discrete;
}

/* Entry: starting state before the popover animates in */
@starting-style {
	[popover]:popover-open {
		height: 0;
	}
}

nav ul {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

nav li {
	list-style: none;
	margin: .2rem;
	padding: 0;
}

nav a {
    display: block;
    padding: 0.2rem;
    text-decoration: none;
    font-weight: lighter;
    border: thin solid var(--background-color);
    border-radius: .5rem;
    color: var(--header-text);
    background-color: var(--navi-background);
    text-align: center;
    transition: all .25s ease-in;
}

[aria-current=page] {
	color: var(--aktuelle-seite);
}

nav a:focus,
nav a:hover{
	color: var(--background-color);
	background-color: var(--hover-ankerfarbe);
	font-weight: bold;
}

button {
	font-size: 2rem;
	border: none;
	border-radius: .4em;
	width: 1.7em;
	min-height: 1.6em;
	font-weight: bold;
	padding: 0;
	color: aliceblue;
	background-color: var(--header-farbe);
}

.close-btn {
	background-color: var(--accent2-color);
	color: white;
	cursor: pointer;
	position: absolute;
	right: .2em;
	font-size: 1rem;
	padding: 0.25rem 0.4rem;
	text-align: center;
	top: 0.2rem;
}

.visually-hidden,
[visually-hidden="true"] {
	position: absolute !important;
	clip-path: rect(1px, 1px, 1px, 1px) !important;
	padding: 0 !important;
	border: 0 !important;
	height: 1px !important;
	width: 1px !important;
	overflow: hidden !important;
}

main {
  flex-direction: column;
  background-color: #C7B299;
}

/* *** Hauptteil *** */
.bild {
	display: flex;
	width: 100%;
}

address p {
	margin: 0;
	padding: 1.1rem;
	text-align: center;
	font-weight: 800;
	font-style: normal;
	font-size: 1.5rem;
}

.map img{
  max-width: 100%;
  height: auto;
}

/* *** Map - hovern funktioniert noch nicht *** */

#map {
	width: 100%;
}

figure {
	margin: 0;
	height: auto;
}

#map figure {
	display: inline-block;
	overflow: hidden;
	padding: 0;
	transition: transform 0.25s ease-in;
	will-change: transform;
}

#map figure img {
	width: 100%;
}

#map figure:hover, #map figure:focus {
	z-index: 2;
	transform-origin: center center;
	transform: scale(1.3);
}

#map:after {
	clear: both;
	content: "";
	display: block;
}

footer {
	display: grid;
	grid-template: "impressum copyright sitelock";
	padding: 0.5rem 0.5rem 0 0.5rem;
	background: var(--footer-gradient);
	color: var(--header-text);
}

#footer-nav {
	grid-area: impressum;
	width: min(100%, 320px);
	margin-top: 1rem;
}

#footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer-nav li {
  padding-bottom: 0.75rem;
}

#footer-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer-nav a:hover {
  color: var(--hover-ankerfarbe);
}

#copyright {
	grid-area: copyright;
	width: 100%;
	color: var(--header-text);
	font-size: 0.75rem;
	text-align: center;
	padding-bottom: 0;
	align-self: end;
}

#secure {
	grid-area: sitelock;
	max-width: 120px;
	justify-self: end;
	margin: 0.5rem;
}

@media (min-width: 769px) {
	main {
		flex-direction: row;
	}
	
	header {
	grid-template: "logo h1 h1 navi";
	}
	
	#secure {
	max-width: 100px;
	}
	
	#secure img {
	width: 100px;
	}
}

@media (min-width: 993px) {
	#viewport_klein {
		display: none;
	}
	
	#viewport_gross {
		display: grid;
		margin: 2rem;
	}
	
	.center_orange {
		margin: 0 1rem;
	}
}

@media (min-width: 1201px) {
	
	article p {
			font-size: 1.1rem;
	}
}
