@charset "utf-8";
/* CSS Document */

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 125%;
  src:
    url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('woff2'),
}

/* Baustein für alle CSS-Dateien */
html {
	box-sizing: border-box; 		/* +++ vereinfacht die Berechnung der Boxgrößen +++ */
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-size: 16px; 				/* +++ legt die Bezugsgröße für "rem" fest +++ */
  font-family: "Montserrat", Verdana, Arial, "Sans Serif Collection";
  font-weight: 500;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.clearfix::after {					/* +++ Clearfix-Hack +++ */
	content: "";
	display: block;
	clear: both;
	width: 1px;
}
/* Baustein Ende */

/* Global */
:root {
	--body-farbe: #EFFAFE;
	--article-primer: #F3F2EF;
  --article-secundaer: #61C3F1;
  --article-font: #419AD8;
	--header-farbe: #18212B;
  --header-font: #F3F2EF; 
	--hover-nav-farbe: #18212B;
	--hover-ankerfarbe: #96C6EC;
  --background-hover: #99AAAA;
}

.hinweis {
  color: var(--article-font);
}

.underline-hover {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: var(--nav-hover-farbe);
}

.underline-hover::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: #000;
  transition: transform 0.4s ease;
}

.underline-hover:hover::after {
  transform: translateX(-50%) scaleX(1);
}

body {
  margin: 0;
  background-color: var(--body-farbe);  
}

.content {
  position: relative;
  height: auto;
  min-width: 19rem;
  max-width: 100rem;
  margin: 0 auto;
  background-color: var(--body-farbe);
  -webkit-box-shadow: 0px 0px 38px #BFBFBF;
  box-shadow: 0px 0px 38px #BFBFBF;
}

header {
  display: flex;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  color: var(--header-font);
  background-color: var(--header-farbe);  
}

#logo {
  width: 50%;
  order: 10;
  margin: 0;
}

#begruessung {
  order: 30;
  font-size: 0.9rem;
  text-align: center;
  padding: 0 0.5rem 0 0.5rem;
  margin: 0 0 1rem 0;
  font-weight: 500;
  text-transform: uppercase;  
}

/* *** Navigation *** */
nav {
	display: flex;
	justify-content: flex-end;
  margin-right: 2rem;
  width: 30%;
	order: 20;
  transform: all 2s;
}

#menulink {
	width: 100%;
	margin: 0 0 0 5rem;
  text-align: right;
	font-size: 4rem;
}

#menulink a {
  color: white;
  text-decoration: none;
  font-size: 4rem;
}

#navlinks {
	position: absolute;
	float: left;
	width: 100%;
  height: auto;
	top: 0;	/* +++ wichtig, dass dieser Block direkt an den Block der Nav-Leiste anschließt, damit beim Hovern der Übergang wie gewünscht funktioniert +++ */
  left: 0;
	list-style-type: none;
	margin: 0;
	display: none;
	padding: 1rem 0.5rem;
	text-align: center;
  }

nav ul{
  background-color: var(--background-hover);
  display: inline-block;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  list-style: none;
  width: 100%;
  transition: opacity 1s ease-in;
}

#navlinks li{
  display: flex;
  flex-direction: column;
  width: auto;
}

nav a {
  justify-content: center;
}

#navlinks a {
  display: block;
  width: auto;
  padding-top: 10px;
	padding-bottom: 5px;
	color: white;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
}

#navlinks a:hover {
	color: var(--hover-nav-farbe);
	text-decoration: none;
}

#navlinks li.thispage > a {			/* +++ kennzeichnet aktuelle Site +++ */
	color: #F6B779;
	text-decoration: none;
}

nav:hover > #navlinks {				/* +++ das ist der Trick! +++ */
	display: flex;
}

nav ul:hover {
  opacity: 0.95;
  height: auto;
}

/* Hauptinhalt */
main {
  width: 90%;
  margin: 0 auto;
  color: var(--header-farbe);
}

footer {
  background-color: var(--header-farbe);
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--header-font);
  font-size: 0.65rem;
  height: 2rem;
  text-align: center;
  padding: 0.1rem;
}

/* indivduelle Seitengestaltung */
#calliope {
  -webkit-box-shadow: 6px 8px 18px #D7D7D7;
  box-shadow: 6px 8px 18px #D7D7D7;
  width: 80%;
  max-width: 40rem;
}

.mail {
  text-align: center;
  height: auto;
  margin-bottom: 2rem;
}

.mail a{
  color: black;
  text-decoration: none;
}

#anschrift {
  min-width: 250px;
}

cite {
  font-size: 0.7rem;
}

#scratch {
  margin-top: 1rem;
}

#scratch-urheberrecht {
  font-style: italic;
  padding: 1rem;
  border: 1px solid #000000;
  margin-top: 4rem;
}

/* Bildschirmanpasung */

@media (min-width: 37.5rem) {
  #begruessung {
    font-size: 1.9rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
  }
  nav {
    margin-right: 4rem;
  }
  nav ul {
    flex-direction: row;
  }
  #navlinks a {
    display: inline-block;
    flex-direction: row;
    width: auto;
    margin-right: 1rem;
    justify-content: space-around;
    padding-top: 10px;
    padding-bottom: 5px;
    color: white;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
  }
  .content {
    font-size: 1.2rem;
  }
}
