.portfolio-item {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 250px;
    overflow: hidden;
}

.portfolio-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

.portfolio-item:hover .caption {
    display: block;
}

/* Scroll-to-Top Button */

/* Position und Design des Buttons */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px; /* Abstand vom unteren Rand */
    right: 20px; /* Abstand vom rechten Rand */
    z-index: 1050; /* Über anderen Elementen */
    background-color: #760075; /* Bootstrap-Primärfarbe */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0; /* Unsichtbar am Anfang */
    transform: translateY(100px); /* Nach unten verschoben */
  }
  #scrollToTopBtn.show {
    opacity: 1; /* Sichtbar, wenn die Klasse "show" hinzugefügt wird */
    transform: translateY(0); /* Zurück auf die normale Position */
  }
  #scrollToTopBtn:hover {
    background-color: #680067; /* Dunklere Farbe beim Hover */
  }

  /* Stil für die Social Buttons */
  .social-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: transform 0.2s, background-color 0.3s;
    text-decoration: none; /* Entfernt Textdekoration */
  }
  .social-button:hover {
    transform: scale(1.1); /* Leichte Vergrößerung beim Hover */
  }
  .social-linkedin {
    background-color: #0a66c2; /* LinkedIn-Farbe */
  }
  .social-linkedin:hover {
    background-color: #004182; /* Dunklere LinkedIn-Farbe */
  }
  .social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  }
  .social-instagram:hover {
    background: linear-gradient(45deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433); /* Umkehr der Farben */
  }
  .social-email {
    background-color: #6c757d; /* Neutrale E-Mail-Farbe */
  }
  .social-email:hover {
    background-color: #4e555b; /* Dunklere E-Mail-Farbe */
  }

@media (max-width: 576px) {

    h1 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }
}