:root {
  font-size: 16px;
}
html,
body {
  margin: 0px;
  padding: 0px;
  height: 100%;
  scroll-behavior: smooth;
  font-family: "Roboto", sans-serif;
  min-height: 100%;
}

li {
  list-style-type: none;
}

h1,
h2,
h3,
h4,
a,
button,
address {
  font-weight: 500;
  color: #494949;
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #494949;
  text-transform: uppercase;
}
h5 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 2.0rem;
  margin: 10px 0;
}

.small-p {
  font-size: 0.8rem;
}

hr {
  width: 30px;
  height: 3px;
  background: #494949;
  border: 0px;
  margin: 0 auto 0px auto;
}

.content-wrapper {
  margin: 0 auto;
  width: 80%;
}

/*für verzögerung bei aufleuchten und unterschiedliche Browser */
#logo,
li,
img,
.button,
.fa-bars {
  transition: all 300ms;
  -webkit-transition: all 300ms;
  -moz-transition: all 300ms;
  -o-transition: all 300ms;
}
.fa-bars {
  display: none;
}

/* HEADER *********************************/

header {
  width: 100%;
  height: 65px;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 2;
  opacity: 90%;
}

#logo {
  width: 100px;
  float: left;
  margin: 10px 0 0 50px;
}

/*Aufleuchten des Logos */
#logo:hover {
  opacity: 0.5;
}

#logo img {
  width: 100%;
}

header nav {
  float: right;
  margin: 10px 50px 0 0;
}

header nav ul li {
  float: left;
  position: relative;
  margin-left: 25px;
}

header nav ul li a {
  font-size: 16px;
  text-decoration: none;
}

/* Pseudoklasse für Navigation Header */
header nav ul li:hover {
  padding-top: 5px;
}

/* Dropdown-Menü */
header nav ul li .submenu {
  display: none; /* Versteckt das Untermenü standardmäßig */
  position: absolute;
  float: none;
  top: 100%;
  left: 0;
  background: #fff;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
  list-style: none;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 15px;
  padding-bottom: 0px;
  margin: 0;
  width: 200px; /* Breite des Dropdown-Menüs */
  opacity: 90%;
}

header nav ul li .submenu li {
  margin: 0;
  padding: 5px 15px;
}

header nav ul li .submenu li a {
  text-decoration: none;
  display: block;
}

/* Dropdown-Menü beim Hovern anzeigen */
header nav ul li:hover .submenu {
  display: block;
}

header nav ul li .submenu li:hover {
  background-color: #f0f0f0; /* Highlight für Unterkapitel beim Hovern */
}

/* Topic Heading Definitions */
.topic-heading-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-heading-left::before {
  content: "";
  flex-grow: 1;
  height: 4px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(0, 0, 0));
  flex: 0.2;
  margin-right: 15px; /* Abstand zwischen Linie und Text */
}
.topic-heading-left::after {
  content: "";
  flex-grow: 1;
  height: 4px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgb(0, 0, 0));
  margin-left: 15px; /* Abstand zwischen Text und Linie */
}

.topic-heading-left h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.topic-heading-left h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.topic-heading-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-heading-right::before {
  content: "";
  flex-grow: 1;
  height: 4px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(0, 0, 0));
}

.topic-heading-right::after {
  content: "";
  flex-grow: 1;
  height: 4px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgb(0, 0, 0));
}

.topic-heading-right::before {
  margin-right: 15px; /* Abstand zwischen Linie und Text */
}

.topic-heading-right::after {
  flex: 0.2;
  margin-left: 15px; /* Abstand zwischen Text und Linie */
}

.topic-heading-right h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* HOME *********************************/

#home {
  background: url(../img/opt21.jpg);
  background-position: center top;
  background-size: cover;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

#home .background::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6); /* black overlay with 50% opacity */
}

#home .logo-home {
  width: 300px;
  margin-bottom: 50px;
  border-radius: 5px;
}

#home #name-box {
  padding-bottom: 50px;
  margin: 10px;
  margin-top: 150px;
  text-shadow: #000000 1px 0 10px;
  color: #fff;
  z-index: 1;
  position: relative;
  text-align: center;
}

#name-box h1 {
  font-size: 3rem;
  color: #fff;
  text-transform: uppercase;
}

#home #name-box h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 50px;
  text-transform: uppercase;
}

#home #name-box hr {
  background-color: white;
  padding: 0;
  margin: 5px auto 5px auto;
  height: 1px;
}

#home #name-box p {
  padding: 0;
  margin: 0 auto 0 auto;
  font-style: italic;
}

/* Leistungen *******************************/

#services {
  text-align: center;
}

#services .content-wrapper {
  background-color: #fff;
  padding-top: 50px;
  padding-bottom: 50px;
}

#services ul {
  font-family: "Roboto Slab", serif;
  color: #494949;
  padding: 0;
}

#services h1 {
  margin-bottom: 50px;
}

#services .tiles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#services .tiles-container .tile {
  text-align: center;
  width: 500px;
  margin: 10px auto 20px auto;
  border-radius: 10px;
}

#services .tiles-container .tile h3 {
  margin-top: 20px;
}
#services .tiles-container .tile li {
  margin: 5px;
}

/* CONTACT *******************************/

#contact {
  text-align: center;
  background: url(../img/landing3.jpg);
  background-position: center top;
  background-size: cover;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

#contact .content-wrapper {
  background: rgba(0, 0, 0, 0.8);
  padding-top: 50px;
  padding-bottom: 50px;
}

#contact h1 {
  color: #ffffff;
  text-transform: uppercase;
}

#contact .content-wrapper .address a {
  color: #ffffff;
}

#contact .address {
  color: #ffffff;
  font-family: "Roboto Slab" serif;
  font-style: normal;
  text-transform: none;
  line-height: 2rem;
  font-size: 1.3rem;
  width: 400px;
  margin: auto;
  padding: 15px;
  border-radius: 15px;
  z-index: 1;
}

.address .phone {
  color: #ffffff;
  margin-top: 20px;
}

.address i {
  color: #ffffff;
  margin-right: 10px;
}

.address .mail a {
  text-transform: none;
}

/* FOOTER *******************************/

footer {
  width: 100%;
}

.footer-text {
  width: 100%;
  background-color: #3f3f3f;
  text-align: center;
  padding-top: 10px;
}

footer a {
  color: #fff;
  padding: 10px 10px 10px 10px;
  text-decoration: underline;
  text-transform: none;
}

footer p {
  font-size: 12px;
  color: #f0f0f0;
  padding: 10px 0 10px 0;
  margin: 0;
  text-align: center;
}

/* MEDIA QUERIES *******************************/

/* TABLETS */
@media screen and (max-width: 1024px) {
  :root {
    font-size: 14px;
  }

  .content-wrapper {
    width: 90%;
    padding: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
  }

  header {
    height: auto;
  }

  #logo {
    width: 70px;
    margin-top: 5px;
  }

  header nav {
    margin-top: 0;
  }

  header nav li {
    font-size: 12px;
  }

  header nav ul li a {
    font-size: 12px;
  }

  #home h2 {
    font-size: 20px;
  }

  h3 {
    padding-top: 12%;
  }

  #profil1,
  #profil2 {
    width: 100%;
    float: none;
  }

  #profil2 {
    margin-top: 50px;
  }

  #projects {
    width: auto;
  }

  #projects ul li {
    width: 100%;
    float: none;
  }

  #projects il li:last-child {
    padding-bottom: 20%;
  }

  #projects img {
    width: 55%;
    height: auto;
  }

  .button {
    width: 62%;
  }
}

/* MOBILE */
@media screen and (max-width: 600px) { /* Standard: 600px */
  .content-wrapper {
    width: 95%;
    padding: 0 auto;
  }

  #home {
    background-size: auto;
    height: 100%;
  }
  #name-box h1 {
    font-size: 2.4rem
  }
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    box-sizing: border-box;
    padding-top: 10px;
    font-size: 1.4;
  }

  h5 {
    font-size: 1.6rem;
  }

  #logo {
    width: 70px;
    margin-left: 30px;
  }

  header {
    opacity: 100%;
  }
  header nav {
    margin: 0;
    float: none;
  }

  .fa-bars {
    font-size: 17px;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    text-align: right;
    float: right;
    margin: -25px 30px 0 0;
  }

  .fa-bars:hover {
    opacity: 0.5;
  }

  header nav ul {
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }

  header nav ul.open {
    height: auto;
  }

  header nav ul li {
    width: 100%;
    padding: 5px 5px;
    margin: 0;
    font-size: 11px;
    border-top: 1px solid #dddddd;
  }

  header nav ul li a {
    font-size: 11px;
  }

  header nav ul li:hover {
    background-color: #eeeeee;
  }

  header nav ul li .submenu.open {
    padding-top: 20px;
    width: 100%;
    display: contents;
    font-style: italic;
  }
  header nav ul li .submenu li:hover {
    background-color: #c0c0c0;
  }

  .topic-heading-left::before,
  .topic-heading-left::after,
  .topic-heading-right::before,
  .topic-heading-right::after {
    display: none;
  }

  #home .logo-home {
    width: 200px;
  }
  #services .tiles-container .tile {
    width: 100%;
  }

  #services .tiles-container .tile h3 {
    padding: 0;
  }

  #contact .address {
    width: 100%;
    padding: 0px;
  }
}
