* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*outline: 1px solid red;*/
}

body, html {
  /*height: 100%;*/
  font-family: sans-serif;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-image: url('images/bg-default.jpg');
  background-position: center;
  background-attachment: fixed;
  transition: background-image 0.6s ease-in-out;
  background-repeat: no-repeat;
  z-index: -1;
  
}

.grid {
  display: flex;
  justify-content: center;
  align-items: center;
 /* height: 100vh;*/
  gap: 3rem;
  flex-wrap: wrap;
}


.tile {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
  cursor: pointer;
  padding: 1rem;
  transition: transform 0.3s ease;
  color: rgba(217, 25, 32, 1);
}

.headertile {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
  padding: 1rem;
  max-width: 90%;
 /* width: 800px;*/
  align-items: center;

}

.tile:hover {
  transform: scale(1.05);
}

.tile img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.tile span {
  font-size: 1.2rem;
  font-weight: bold;
  
}

.headline {
  font-size: 2rem;
  /*font-weight: bold;*/
  text-align: center;
  /*color: rgba(217, 25, 32, 1);*/
  color: white;
  padding-bottom: 2rem;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
}

/*
header {
  text-align: center;
  z-index: 1;
  margin-top: 3rem;
  margin-left: 3rem;
  display: flex;
  justify-content: flex-start;
  max-height: 10rem;
}*/

header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 3rem;
  margin-top: 3rem;
  max-height: 10rem;
}

header img {
  margin: 0;
    max-width: 300px;
  height: auto;
}

header h1 {
  color: rgba(217, 25, 32, 1);
  font-size: 3rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
  margin: 0;
}

header h2 {
  color: rgba(217, 25, 32, 1);
  font-size: 2rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
  margin: 0;
}



slogan {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
}

footer {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
}

footer a {
  color: white;
  font-size: 0.9rem;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);

}

footer a:hover {
  text-decoration: underline;
}

.footline{
	font-size: 2.5em;
    color: rgba(217, 25, 32, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: bold;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 20rem); /* passt sich an Überschrift an */
  padding: 2rem;
}

@media (max-width: 768px) {
	.grid {
		flex-direction: column;
		height: auto;
	}
	
	header h1 {
	  font-size: 2rem;
	}

	header h2 {
	  font-size: 1.5rem;
	}
	
	header {
	  padding-top: 2rem;
	  justify-content: center;
	}

}
