html, body {
  font-family: "Yanone Kaffeesatz";
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

.content h3 {
  margin: 0;
  font-size: 1.5vw; 
  font-weight: bold; 
}

.content p {
  margin: 10px 0 0;
  font-size: 1.2vw; 
}

/*Navigationsleiste*/
.navbar {
  background-color: #f1f1f1 !important; 
  padding: 20px; 
  color: #333;
  display: flex;
  flex-direction: column;
  margin: 0 auto; 
  margin-bottom: 30px;
}

.navbar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 100px;
}

.nav-link {
  font-size: 1.8rem; 
  color: black; 
  transition: transform 0.3s; 
}

.nav-link.active {
  color: green !important;
  text-decoration: underline; 
  text-underline-offset: 5px; 
  text-decoration-thickness: 2px;
}

.nav-link:hover {
  color: green; 
  transform: scale(1.1); 
}

.logo {
  font-size: 2.5rem; 
  color: green; 
  font-weight: bold; 
  transition: transform 0.3s; 
}

.logo:hover {
  color: black; 
  transform: scale(1.1); 
}

.appointment {
  font-size: 1.6rem; 
  color: green; 
  font-weight: bold; 
  border: 3px solid green; 
  border-radius: 50%; 
  padding: 5px 0; 
  width: 150px; 
  text-align: center; 
  display: inline-block; 
  transition: transform 0.3s, color 0.3s, border-color 0.3s; 
}

.appointment:hover {
  color: black; 
  border-color: black; 
  transform: scale(1.05); 
}

.header-container {
  width: 95%; 
  height: 400px; 
  margin: auto; 
  background-color: #f1f1f1; 
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px; 
}

.header-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 20px; 
  transition: none !important;
}

.header-container img:hover {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .header-container {
    height: 300px; 
  }
}

.centered-text {
  position: absolute;
  top: 25%;
  left: 30%;
  text-align: center;
  line-height: 1.4; 
}

.headline {
  color: green; 
  font-size: 3vw; 
  display: block; 
}

.name {
  color: green; 
  font-size: 2vw; 
  font-weight: bold; 
}

.profession {
  color: black; 
  font-size: 1.5vw; 
}

.box-container {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px; 
  width: 95%; 
  margin: 30px auto; 
}

.app-box-container {
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px; 
  width: 95%; 
  margin: 30px auto; 
}

.app-box-container-3 {
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; 
  width: 95%; 
  margin: 30px auto; 
}

.info-box {
  border-radius: 15px; 
  background-color: #f9f9f9; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  padding: 20px 40px; 
  display: flex;
  align-items: flex-start;
  height: 200px; 
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.info-box:hover {
  transform: scale(0.95);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.info-box-link {
  text-decoration: none; 
  color: inherit; 
}

.info-box-link:hover {
  text-decoration: none; 
}

.icon {
  font-size: 3rem;
  color: green; 
  margin-right: 40px;
}

.footer {
  background-color: #f9f9f9; 
  padding: 20px;
  color: #333;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.footer > .footer-line {
  width: 98%; 
  height: 3px; 
  background-color: green;
  margin: 20px auto 10px auto; /
}

.footer-content {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  width: 95%; 
  margin: 0 auto; 
}

.footer-link {
  font-size: 20px;
  color: black; 
  transition: transform 0.3s; 
  margin: 5px;
  text-decoration: none;
}

.footer-link:hover {
  color: green; 
  transform: scale(1.1); 
}

.footer-logo{
  width: 150px; 
  margin: 0 0% 5% 2%
}

.cv-zeile {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd; 
  padding-bottom: 10px; 
}

.cv-datum {
  font-weight: bold;
  min-width: 120px;
  text-align: right;
  padding-right: 15px;
  white-space: nowrap;
  font-size: large;
}

.cv-text {
  flex: 1;
  font-size: large;
}

.items-row-2 {
  margin: 0 40px 40px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.styled-img {
  border-radius: 20px;
  width: 50%;
}

img {
  transition: transform 0.3s ease-in-out;
}

img:hover {
  transform: scale(0.95);
}

.no-hover-img:hover {
  transform: none !important;
}

html {
  overflow-y: scroll;
}

.web-link {
  font-size: 20px; 
  color: black; 
  margin: 5px;
  text-decoration: none;
}

.web-link:hover {
  color: green; 
}

.maps{
  border-radius: 20px; 
  width: 70%; 
  flex: 0 0 auto
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animation {
  opacity: 1;
  transform: translateY(0);
}

.no-animation {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1024px) {

  .app-box-container {
    grid-template-columns: repeat(2, 1fr); 
  }

  .app-box-container-3 {
    grid-template-columns: repeat(2, 1fr); 
  }
 
  .info-box{
    height: 300px;
  }

  .info-box div {
    padding: 20px;
  }

  .info-box h3 {
    font-size: 1.5rem; 
    margin-bottom: 15px;
  }

  .info-box p {
    font-size: 1.2rem; 
    line-height: 1.6; 
    text-align: justify; 
  }

  .icon {
    font-size: 2.5rem;
    margin-right: 0px;
  }

  .content h3 {
    font-size: 2rem; 
  }
  
  .content p {
    font-size: 1.2rem; 
    line-height: 1.6; 
  }
}

@media (max-width: 840px) {

  .items-row-2 {
    flex-direction: column-reverse;
    align-items: center; 
    text-align: center; 
  }

  .items-row-2 div {
    padding: 20px;
  }

  .maps{
    width: 100%;
  }

  .styled-img {
    border-radius: 20px;
    max-width: 100%;
    flex: 0 0 auto;
    width: 100%; 
    max-width: 100%;
    height: 50vh; 
    object-fit: cover; 
  }
}

@media (max-width: 750px) {

  .app-box-container {
    grid-template-columns: 1fr; 
  }

  .box-container {
    grid-template-columns: 1fr; 
  }

  .app-box-container-3 {
    grid-template-columns: 1fr; 
  }

  .cv-zeile {
    flex-direction: column;
  }

  .cv-datum {
    text-align: left;
    padding-bottom: 5px;
  }

  
  .items-row-2 {
    margin: 0 15px 15px 15px;
  }
  

  .items-row-2 h1 {
    font-size: 2rem; 
    margin-bottom: 15px;
  }

  .items-row-2 p {
    font-size: 1.2rem; 
    line-height: 1.6; 
    text-align: justify; 
  }
  
  .icon {
    font-size: 2.5rem;
    margin-right: 20px;
  }

  .info-box{
    height: 225px;
  }

  .info-box div {
    padding: 20px;
  }

  .info-box h3 {
    font-size: 1.5rem; 
    margin-bottom: 15px;
  }

  .info-box p {
    font-size: 1.2rem; 
    line-height: 1.6; 
    text-align: justify;
  }

  .centered-text {
      line-height: 1.0;
  }  

  @media(max-width: 450px){
    .info-box{
      height: 245px;
    }
    .icon {
      font-size: 2.0rem;
      margin: 0px;
    }  

    .footer-logo{
      width: 100px;
    }

    .col-3{
      font-weight: bold;
    }

    .row{
      flex-direction: column;
    }
  }

  @media(max-width: 380px){
    .info-box{
      height: 260px;
    }
    .icon {
      font-size: 2.0rem;
      margin: 0px;
    }  
  }
}

.impressum-container {
  text-align: center;
  padding: 50px;
  max-width: 800px;
  margin: auto;
}

.impressum-container h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.impressum-container p {
  margin-bottom: 20px;
  font-size: 1.2rem;
  line-height: 1.6;
}
