* {
  box-sizing : border-box;
  padding : 0;
  margin : 0;
  word-wrap : break-word;
  font-family: Arial, Helvetica, sans-serif;
}
h1 {
  margin: 30px 10px 20px 10px;
  font-size: 1.4rem;
}
h2 {
  margin: 20px 10px 10px 10px;
  padding-bottom: 10px;
  font-size: 1.2rem;
}
p {
  margin: 10px;
  margin: 10px;
}
img {
  max-width : 100%;
  height : auto;
}
.first_textblock h1 {
    padding-top: 20px;
}
li {
  margin-left: 30px;
}
body {
  font-family : Arial , Helvetica , sans-serif;
  background-color :white;
  width: 95%;
  margin: auto;

}
header {
  width: 100%;
  margin: 0px;
  padding: 0px;
}
main {
  width: 100%;
  margin: 0px;
  padding: 0px;
}
article {
  width: 100%;
  margin: 0px;
  padding: 0px;
}
footer {
  width: 100%;
  border-top: black;
  border-top-style: solid;
  border-top-width: thin;
}
#logo {
  float: left;
  width: 20%;
}
.lang-switch {
  position: relative;
  z-index: 10;
}
.select-lang {
  position: absolute;
  top: 15px;
  right: 0px;
  border: 1px solid black;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.menu {
  float: left;
  width: 100px;
  height: 45px;
  margin: 0px auto;
}
.menu ul {
  position: absolute;
  margin: 0 auto;
  list-style: none;
}
.menu ul a {
  color: black;
  text-decoration: none;
}
.menu ul li {
  float: left;
  width: 100px;
  height: 30px;
  margin: 0;
  padding: 0 0 0 10px;
  font-size: 14px;
  text-align: left;
  line-height: 50px;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  -o-transition: all .5s ease-in-out;
  -ms-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}
.menu ul li a {
  color: black;
  text-decoration: none;	
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  -o-transition: all .5s ease-in-out;
  -ms-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}
.menu ul li a:hover {
  color: red;
}
.menu ul ul {
  position: absolute;
  top: -9999px;
  padding: 0;
  margin: 0 0 0 -11px;
  -webkit-box-shadow: 0 10px 20px grey;
  -moz-box-shadow: 0 10px 20px grey;
  box-shadow: 0 10px 20px grey;
}
.menu ul li:hover ul {
  top: 33px;
  z-index: 1;
}
.menu ul ul li {
  background: white;
  float: none;
  font-size: 12px;
  padding: 5px 10px;
  text-align: left;
  width: 180px;
  border-bottom: 1px solid white;
  line-height: 20px;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  -o-transition: all .5s ease-in-out;
  -ms-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out; 
  z-index: 1;
  overflow: hidden;
}
.menu ul ul a {
  color: black;
  text-decoration: none;
}
.menu ul ul {
  padding-top: 30px;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-start; /* Items beginnen links */
  align-items: flex-start; /* Items beginnen oben */
  width: 100%;
}

.tile {
  position: relative;
  width: 120px;
  height: 120px;
  -webkit-box-shadow: 0 10px 20px grey;
  -moz-box-shadow: 0 10px 20px grey;
  box-shadow: 0 10px 20px grey;
/*  overflow: hidden;*/
}
.tile:hover {
  border: 1px solid #777;
}

.tile-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: -1; 
}

.tile-text {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: black;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 90%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 90%,
    rgba(0,0,0,0) 100%
  );
}
.tile-text a {
  font-weight: bold;
}

#tile-mailbox {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 75%;
  height: 75%;
  z-index: -1; 
}

.clear {
  clear: both;
}

.contact-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  border: black;
}

.contact-field {
  margin: 10px 0;
  position: relative;
}
.contact-field input,
.contact-field textarea {
  font-size: 16px;
  padding: 10px 15px;
  border: 1.2px solid rgb(220, 223, 223);
  outline: none;
  box-sizing: border-box;
  border-radius: 5px;
  width: 100%;
}
.contact-field input {
  max-width: 500px;
  height: 46px;
}
.contact-field textarea {
  height: 140px;
  resize: vertical;
}
.contact-field input:invalid,
.contact-field textarea:invalid {
  border-color: red;
}
.contact-submit {
  width: 100%;
  max-width: 250px;
  height: 46px;
  border: none;
  border-radius: 5px;
  background: #2a2f7a;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.contact-submit:hover {
  background: #1d225c;
}
.contact-submit:active {
  transform: scale(0.98);
}
.contact-success {
  width: 100%;
  max-width: 250px;
  height: 46px;
  color: #0a0;
  background: #eaffea;
  border: 1px solid #0a0;
  padding: 10px;
}

.contact-error {
  width: 100%;
  max-width: 250px;
  height: 46px;
  color: #a00;
  background: #ffeaea;
  border: 1px solid #a00;
  padding: 10px;
}

#remarks { /* für Impressum und Datenschutz */
  float: right;
  font-size: 0.8rem;
}
#remarks a {
  text-decoration: none;
  color: black;
}

@media only screen and (min-width: 600px) {
  body {
    width: 90%;
  }
  .menu {
    width: 200px;
    height: 45px;
  }
  .menu ul li {
    width: 120px;
    font-size: 16px;
    line-height: 50px;
  }
  .menu ul li:hover ul {
    top: 33px;
  }
  .menu ul ul li {
    font-size: 16px;
    width: 220px;
    line-height: 25px;
    overflow: hidden;
  }
  .tile {
    width: 180px;
    height: 180px;
  }
}
@media only screen and (min-width: 768px) {
  body {
    width: 85%;
  }
  .menu {
    width: 200px;
    height: 45px;
  }
  .menu ul li {
    width: 120px;
    font-size: 18px;
    line-height: 50px;
    }
  .menu ul li:hover ul {
    top: 35px;
  }
  .menu ul ul li {
    font-size: 16px;
    width: 240px;
    line-height: 25px;
    overflow: hidden;
  }
  .tile {
    width: 200px;
    height: 200px;
  }
}