/* Global styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Container styles */
.container {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  position: relative;
}

.description {
  margin-top: 20px;
  margin-bottom: 20px;
  width: calc(100% + 2em); /* Adjust the value based on the parent's padding */
  margin-left: -1em; /* Half of the added width to counteract the left padding */
  margin-right: -1em; /* Half of the added width to counteract the right padding */
  text-align: center;
}

.description p {
    padding-top:20px;
    padding-bottom:20px;
  margin: 0 auto;
}

/* Half section styles */
.half {
  flex: 1;
  min-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1em;
  box-sizing: border-box;
}

/* Heading styles */
h1 {
  font-size: 2.6em;
  margin-bottom: 0em;
}

/* Button styles */
.btn {
  display: inline-block;
  opacity: 0.8;
  padding: 1.1em 1.4em;
  margin: 2px 0;
  font-size: 1.3em;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border-radius: 1.5rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Left section styles */
#left {
  background: url('../img/finanzen.png') no-repeat center center scroll;
  background-size: cover;
  background-color: #0075bf;
}

#left h1 {
  color: #bbddf2;
}

#left p {
  color: #ddf2ff;
}

#left .description {
  background-color: #062e48;
  opacity: 0.6;
}

#left .btn {
  color: white;
  border: 1px solid #0a4c79;
  background-color: #062e48;
}

#left .btn:hover {
  color: #d6ebf9;
  background-color: #0e4264;
  border-color: #104e77;
}

/* Right section styles */
#right {
  background: url('../img/gesundheit.png') no-repeat center center scroll;
  background-size: cover;
  background-color: #65a42d;
}

#right h1 {
  color: #d9fcb9;
}

#right p {
  color: #f0ffe1;
}

#right .description {
  background-color: #2b5308;
  opacity: 0.6;
}

#right .btn {
  color: white;
  border: 1px solid #3a710a;
  background-color: #2b5308;
}

#right .btn:hover {
  color: #dcf3c9;
  background-color: #34610d;
  border-color: #498910;
}

/* Logo styles */
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 50px 10px 10px 10px; /* Added additional padding top of 10px */
  z-index: 10;
}

/* Paragraph styles */
p {
  margin-bottom: 2em;
  font-size: 1.2em;
  text-align: center;
  max-width: 500px;
  line-height: 1.3;
}

/* Media queries */
@media (min-width: 1501px) {
  #left {
    background-position: center center;
  }
  #right {
    background-position: center center;
  }

  .logo img {
    height: 180px;
  }
}

@media (max-width: 1500px) {
  .container {
    flex-direction: column;
  }

  .half {
    min-height: 50vh;
  }

  .logo {
    padding: 10px 10px 10px 10px;
  }

  .logo img {
    height: 150px;
  }
}

@media (max-height: 1050px) {
  h1 {
    font-size: 2.2em;
  }
  p {
    font-size: 1em;
  }

  .btn {
    display: inline-block;
    opacity: 0.8;
    padding: 1.1em 1.3em;
    margin: 2px 0;
    font-size: 1em;
  }

  .logo img {
    height: 120px;
  }
}

@media (max-height: 800px) {
  h1 {
    font-size: 2em;
  }

  .description {
    display: none;
  }

  .btn {
    display: inline-block;
    opacity: 0.8;
    padding: 1.1em 1.3em;
    margin: 2px 0;
    font-size: 1em;
    margin-top: 10px;
  }

  .logo img {
    height: 120px;
  }
}
