#projekte-head {
  padding-bottom: 40px;
  padding-top: 40px;
}

#projekte-head .container {
  display: flex;
  flex-direction: row;
  background-color: #339b9e;
  flex-wrap: wrap;
  justify-content: center;
  width: 80%;
  max-width: 100%;
  box-sizing: border-box;
  height: 30vh;
  margin-top: 140px;
}

#projekte-head .container .projekte-img {
  padding-top: 30px;
  max-width: 400px;
}

#projekte-head2 {
  padding-bottom: 40px;
  padding-top: 40px;
}

#projekte-head2 .container {
  display: flex;
  flex-direction: row;
  background-color: #339b9e;
  flex-wrap: wrap;
  justify-content: center;
  width: 80%;
  max-width: 100%;
  box-sizing: border-box;
  height: 30vh;
  margin-top: 140px;
}

#projekte-head2 .container .projekte-img {
  padding-top: 30px;
  max-width: 400px;
}

#top-t h2 {
  width: 100%;
  margin: 40px auto;
  line-height: 80px;
  font-size: 4.5rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  position: relative;
  z-index: 1;
}

#top-t h2::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#top-t #proj-title {
  color: #fff;
  letter-spacing: .15em;
  text-shadow:
    -1px -1px 5px #efede3,
    0px 1px 0 #837878,
    0px 2px 0 #797171,
    0px 3px 0 #979191,
    0px 4px 0 #9c9494,
    0px 5px 0 #927e7e,
    2px 20px 5px rgba(0, 0, 0, 0.3),
    5px 23px 5px rgba(0, 0, 0, 0.3),
    8px 27px 8px rgba(0, 0, 0, 0.3),
    8px 28px 35px rgba(0, 0, 0, 0.3);
}

#projekte {
  position: relative;
  padding-bottom: 180px;
  background-image: url('../images/bg/terv.png');
  background-repeat: repeat-y;
  background-size: cover;
  background-position: center center;
}

#projekte::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#p_title h1 {
  width: 100%;
  margin: 0 auto;
  line-height: 280px;
  font-size: 4.5rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  position: relative;
  z-index: 1;
}

#p_title #text3d {
  color: #339b9e;
  letter-spacing: .15em;
  text-shadow:
    -1px -1px 5px #efede3,
    0px 2px 0 #837878,
    0px 2px 0 #797171,
    0px 2px 0 #979191,
    2px 20px 5px rgba(0, 0, 0, 0.1),
    5px 23px 5px rgba(0, 0, 0, 0.1),
    8px 27px 8px rgba(0, 0, 0, 0.1),
    8px 28px 35px rgba(0, 0, 0, 0.1);
}

#p_title2 h1 {
  width: 100%;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  line-height: 280px;
  font-size: 4.5rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  position: relative;
  z-index: 1;
}

#p_title2 #text3d2 {
  color: #339b9e;
  letter-spacing: .15em;
  text-shadow:
    -1px -1px 5px #efede3,
    0px 2px 0 #837878,
    0px 2px 0 #797171,
    0px 2px 0 #979191,
    2px 20px 5px rgba(0, 0, 0, 0.1),
    5px 23px 5px rgba(0, 0, 0, 0.1),
    8px 27px 8px rgba(0, 0, 0, 0.1),
    8px 28px 35px rgba(0, 0, 0, 0.1);
}

#projekte .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 100%;
  box-sizing: border-box;
}

#projekte .card {
  height: 200px;
  width: 360px;
  margin: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 16px;
  box-shadow: 0 0 10px 2px #d0d0d0;
  overflow: hidden;
}

#projekte .card-image {
  height: 100%;
  width: 100%;
  position: absolute;
  transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  background: #0a3394;
  background: linear-gradient(to top, #0a3394, #4286f4);
}

.projekte1-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  cursor: pointer;
}

#projekte .card-description {
  display: flex;
  width: 100%;
  position: absolute;
  gap: .5em;
  flex-direction: column;
  background-color: #f5f5f5;
  color: #212121;
  height: 30%;
  bottom: 0;
  transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  padding: 0.5rem;
}

#projekte .text-title {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}

#projekte .card:hover .card-description {
  transform: translateY(100%);
}

.popup {
  width: 95%;
  height: 650px;
  border: 5px solid #000;
}

.popup .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
  display: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.popup.active .overlay {
  display: block;
}

.popup .content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #000;
  opacity: 0.7;
  width: 95%;
  /* A tartalom szélessége */
  max-width: 1350px;
  /* Maximum szélesség */
  height: 580px;
  z-index: 2;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  border-radius: 15px;
}

.popup .content h1 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.popup .close-btn {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 10px;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 50%;
}

.popup.active .content {
  transition: all 300ms ease-in-out;
  transform: translate(-50%, -50%) scale(1);
}

/*Table*/

.content .table-cont {
  text-align: left;
  overflow: hidden;
  display: table;
  width: 100%;
  margin: 0 auto;  
}

.content .table-cont table {
  width: 100%;
  max-width: inherit;
  /* Örökli a .content szélességét */
}

.content .table-cont td {
  padding-bottom: 1%;
  padding-top: 1%;
  padding-left: 1%;
  font-weight: normal;
  font-size: 0.8em;
  font-weight: 600;
  -webkit-box-shadow: 0 2px 2px -2px #0E1119;
  -moz-box-shadow: 0 2px 2px -2px #0E1119;
  box-shadow: 0 2px 2px -2px #0E1119;
  border: 1px solid #339b9e;
}

/* Background-color of the odd rows */
.content .table-cont tr:nth-child(odd) {
  background-color: #323C50;
}

/* Background-color of the even rows */
.content .table-cont tr:nth-child(even) {
  background-color: #2C3446;
}

.content .table-cont th {
  background-color: #1F2739;
}

.content .table-cont td {
  color: #fff;
}

.content .table-cont tr:hover {
  background-color: #464A52;
  -webkit-box-shadow: 0 6px 6px -6px #0E1119;
  -moz-box-shadow: 0 6px 6px -6px #0E1119;
  box-shadow: 0 6px 6px -6px #0E1119;
  border: 1px solid #339b9e;
}

.content .table-cont td:hover {
  background-color: #b31616;
  color: #fff;
  font-weight: bold;
  border: 1px solid #339b9e;

  box-shadow: #339b9e -1px 1px, #339b9e -2px 2px, #339b9e -3px 3px, #339b9e -4px 4px, #339b9e -5px 5px, #339b9e -6px 6px;
  transform: translate3d(6px, -6px, 0);

  transition-delay: 0s;
  transition-duration: 0.4s;
  transition-property: all;
  transition-timing-function: line;
}

#top-t2 h2 {
  width: 100%;
  margin: 40px auto;
  font-family: 'Montserrat', sans-serif;
  line-height: 80px;
  font-size: 4.5rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  position: relative;
  z-index: 1;
}

#top-t2 h2::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#top-t2 #proj-title2 {
  color: #fff;
  letter-spacing: .15em;
  text-shadow:
    -1px -1px 5px #efede3,
    0px 1px 0 #837878,
    0px 2px 0 #797171,
    0px 3px 0 #979191,
    0px 4px 0 #9c9494,
    0px 5px 0 #927e7e,
    2px 20px 5px rgba(0, 0, 0, 0.3),
    5px 23px 5px rgba(0, 0, 0, 0.3),
    8px 27px 8px rgba(0, 0, 0, 0.3),
    8px 28px 35px rgba(0, 0, 0, 0.3);
}

#projekte2 {
  position: relative;
  padding-bottom: 180px;
  background-image: url('../images/bg/beratung.png');
  background-repeat: repeat-y;
  background-size: cover;
  background-position: center center;
}

#projekte2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#projekte2 .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 100%;
  box-sizing: border-box;
}

#projekte2 .card {
  height: 200px;
  width: 360px;
  margin: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 16px;
  box-shadow: 0 0 10px 2px #d0d0d0;
  overflow: hidden;
}

#projekte2 .card-image {
  height: 100%;
  width: 100%;
  position: absolute;
  transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  background: #0a3394;
  background: linear-gradient(to top, #0a3394, #4286f4);
}

.projekte1-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  cursor: pointer;
}

#projekte2 .card-description {
  display: flex;
  width: 100%;
  position: absolute;
  gap: .5em;
  flex-direction: column;
  background-color: #f5f5f5;
  color: #212121;
  height: 40%;
  bottom: 0;
  transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  padding: 0.5rem;
}

#projekte2 .text-title {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}

#projekte2 .card:hover .card-description {
  transform: translateY(100%);
}

@media (max-width: 600px) {

  #projekte-head .container {
    height: 30vh;
    margin-top: 40px;
    padding-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #projekte-head {
    padding: 10px 0px 0px 0px;
    position: relative;
    padding-bottom: 30px;
  }

  #projekte-head .projekte-img {
    margin-left: 70px;
    margin-top: -70px;
    width: 80%;
  }

  #top-t h2 {
    line-height: 80px;
    font-size: 3.5rem;
    font-weight: 700;
  }

  #projekte-head2 .container {
    height: 30vh;
    margin-top: 40px;
    padding-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #projekte-head2 {
    padding: 10px 0px 0px 0px;
    position: relative;
    padding-bottom: 30px;
  }

  #projekte-head2 .projekte-img {
    margin-left: 70px;
    margin-top: -70px;
    width: 80%;
  }

  #top-t2 h2 {
    line-height: 80px;
    font-size: 3.5rem;
    font-weight: 700;
  }

  #p_title h1 {
    line-height: 280px;
    font-size: 3.5rem;
    font-weight: 700;
  }

  #p_title #text3d {
    letter-spacing: .10em;
  }

  #p_title2 h1 {
    line-height: 280px;
    font-size: 3.5rem;
    font-weight: 700;
  }

  #p_title2 #text3d2 {
    letter-spacing: .10em;
  }

  #projekte .text-title {
    font-size: .8rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
  }

  #projekte .card-image {
    height: 100%;
    width: auto;
  }

  #projekte .card {
    height: 180px;
    width: 300px;
    margin: 15px;
    box-shadow: 0 0 5px 3px #d0d0d0;
    overflow: hidden;
  }

  .popup {
    width: 98%;
    height: 890px;
    border: 5px solid #000;
  }
 
  
  .popup.active .overlay {
    display: block;
  }
  
  .popup .content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #000;
    opacity: 0.7;
    width: 98%;
    /* A tartalom szélessége */
    max-width: 1350px;
    /* Maximum szélesség */
    height: 810px;
    z-index: 2;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    border-radius: 15px;
  }

  .popup .content h1 {
    font-size: 12px;
    font-weight: 600;
    margin-right: 20px;
  }

  .popup .close-btn {
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 50%;
  }

  .content .table-cont {
    table-layout: auto;
  }

  .content .table-cont td:nth-child(4) {
    display: none;
  }

  .content .table-cont td {
    padding-bottom: 2%;
    padding-top: 2%;
    padding-left: 1%;
    padding-right: 6px;
    font-size: 0.7em;
    font-weight: 600;
  }
}

@media (min-width: 601px) and (max-width: 699px) {
  #projekte-head .container {
    height: 45vh;
    margin-top: 40px;
    padding-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #projekte-head {
    padding: 0px 0px 0px 0px;
    position: relative;
    padding-bottom: 0px;
  }

  #projekte-head .projekte-img {
    margin-left: 130px;
    margin-top: -70px;
    width: 60%;
  }

  #top-t h2 {
    line-height: 80px;
    font-size: 3.5rem;
    font-weight: 700;
  }

  #projekte-head2 .container {
    height: 45vh;
    margin-top: 40px;
    padding-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #projekte-head2 {
    padding: 0px 0px 0px 0px;
    position: relative;
    padding-bottom: 0px;
  }

  #projekte-head2 .projekte-img {
    margin-left: 130px;
    margin-top: -70px;
    width: 60%;
  }

  #top-t2 h2 {
    line-height: 80px;
    font-size: 3.5rem;
    font-weight: 700;
  }
}

@media (min-width: 700px) and (max-width: 1200px) {

  #projekte-head .container {
    height: 55vh;
    margin-top: 80px;
    padding-bottom: 30px;
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #projekte-head {
    padding: 0px 0px 0px 0px;
    position: relative;
    padding-bottom: 30px;
  }

  #projekte-head2 .container {
    height: 55vh;
    margin-top: 80px;
    padding-bottom: 30px;
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #projekte-head2 {
    padding: 0px 0px 0px 0px;
    position: relative;
    padding-bottom: 30px;
  }

  #projekte-head .container .projekte-img {
    padding-top: 0px;
    max-width: 350px;
    margin-left: 160px;
  }
  #projekte-head2 .container .projekte-img {
    padding-top: 0px;
    max-width: 350px;
    margin-left: 160px;
  }

  #p_title h1 {
    width: 100%;
    margin-top: 70px;
    line-height: 180px;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
    position: relative;
    z-index: 1;
  }

  #p_title2 h1 {
    width: 100%;
    margin-top: 70px;
    line-height: 180px;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
    position: relative;
    z-index: 1;
  }

  #projekte .card-image {
    height: 100%;
    width: auto;
  }

  #projekte .card {
    height: 180px;
    width: 300px;
    margin: 5px;
    box-shadow: 0 0 5px 3px #d0d0d0;
    overflow: hidden;
  }

  .popup {
    margin-top: -100px;
  }

  .popup.active .overlay {
    display: flex;
  }

  .popup .content h1 {
    font-size: 14px;
    font-weight: 600;
  }

  .popup .close-btn {
    right: 10px;
    top: 15px;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: 600;
    line-height: 30px;
  }
}

.proj-btn {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 46px;
  border: 4px solid;
  border-color: transparent;
  font-size: 20px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #265073;
  box-shadow: 0 0 0 2px #265073;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #265073;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #265073;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #fff;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #fff;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px #c9cdd1;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}