*{
    margin: 0;
    padding: 0;

}

html {
  scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: "Roboto", sans-serif;
    overflow-x: hidden;
}

/*Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1); /* Optional: Hintergrundfarbe */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Sicherstellen, dass der Loader über anderen Inhalten liegt */
}

.loader {
  display: inline-flex;
  gap: 10px;
}

.loader:before,
.loader:after {
  content: "";
  height: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(#222 0 0) top/100% 40% no-repeat,
    radial-gradient(farthest-side,#000 95%,#0000) 50%/8px 8px no-repeat
    #fff;
  animation: l7 1.5s infinite alternate ease-in;
}

@keyframes l7 {
  0%,
  70% {background-size:100% 40%,8px 8px}
  85% {background-size:100% 120%,8px 8px}
  100% {background-size:100% 40%,8px 8px}
}

/*Landing */
.landing{
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    /* background-image: url('../ImageLanding/Export\%20-0051.jpg'); */
    background-image: url('https://schmitti.net/CSS/ImageLanding/Export%20-0052.jpg'); 
    background-size:initial;
    max-height: 100vh;
    background-position: center;
    background-repeat: no-repeat;


}

.container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.animated-title {
    font-size: 3em;
    color: #ffffff;
    animation: fadeInMove 3s ease-in-out forwards;
}

/* Button-Stile */
.scroll-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2em;
  color: white;
  background-color: #333;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  animation: fadeInMove 3s ease-in-out forwards;
}

.scroll-button:hover {
  background-color: #555;
}

/* Animation */
@keyframes fadeInMove {
  0% {
      opacity: 0;
      transform: translateY(-50px);
  }
  50% {
      opacity: 1;
      transform: translateY(0);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Navbar */
nav {
  background-color: white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav li {
  height: 50px;
}

nav a {
  height: 100%;
  padding: 0px 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
}

nav a:hover {
  background-color: #f0f0f0;
}

nav li:first-child {
  margin-right: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0px 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li {
  width: 100%;
}

.sidebar a {
  width: 100%;
}

.menu-button {
  display: none;
}

/* Mobile Anpassungen */
@media(max-width: 800px) {
  .hideOnMobile {
      display: none;
  }
  .menu-button {
      display: block;
  }
}

/* Anpassungen für sehr kleine Bildschirme */
@media(max-width: 400px) {
  .sidebar {
      width: 100%;
  }
}

/* Anpassungen für Bildschirme breiter als 800px */
@media(min-width: 800px) {
  .hideSidebar2 {
      display: none;
  }
  .sidebar {
      width: 0%;
  }
}

/* Sichtbarkeitsregeln für .hidesidebar2 und .hideonmobile */
.hidesidebar2 {
  display: block;
}

.hideonmobile {
  display: block;
}

@media(max-width: 800px) {
  .hidesidebar2 {
      display: none;
  }
  .hideonmobile {
      display: block;
  }
}

@media(min-width: 800px) {
  .hidesidebar2 {
      display: block;
  }
  .hideonmobile {
      display: none;
  }
}

/* Zusatzregel für 600px bis 800px */
@media (min-width: 600px) and (max-width: 800px) {
  .hidesidebar2 {
      display: none;
  }
  .hideonmobile {
      display: block;
  }
}


/* Footer */

footer {
  background-color: rgba(112, 112, 112, 0.527);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: center;
}

footer ul {
  display: flex;
  gap: 24px;
  list-style-type: none;
  padding: 0;
  margin: 0;
  align-items: center; /* Ensure vertical alignment of items */
}

footer ul li {
  display: flex;
  align-items: center;
}

footer ul li p {
  margin: 0; /* Remove default margin to align with other elements */
  line-height: 1; /* Set line-height to ensure vertical alignment */
}

footer ul li a {
  text-decoration: none;
  color: black;
}

footer ul li img {
  vertical-align: middle; /* Align images with text */
}

.hideOnMobile {
  display: inline;
}

@media (max-width: 600px) {
  .hideOnMobile {
    display: none;
  }
}

  
  /*effect*/
  footer ul li:hover {
   text-shadow: 0px 0px 12px white;
  }
  
  footer li:last-child{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  
  footer ul li:hover ~ li p{
    animation: wave-animation 0.3s infinite;
  }
  
  @keyframes wave-animation {
    0%,
    100% {
      transform: rotate(0deg);
    }
    25% {
      transform: rotate(20deg);
    }
    75% {
      transform: rotate(-15deg);
    }
  }

/* About Me Section */
.about-me {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8)), url(ImageLanding/Export%20-0850.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.card {
  display: flex; /* Flexbox für die Card */
  flex-direction: column; /* Inhalte in der Card vertikal anordnen */
  align-items: center; /* Zentriert Inhalte in der Card */
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Maximale Breite auf 100% setzen */
  width: auto; /* Breite automatisch anpassen */
  margin: 20px;
  overflow: hidden;
  position: relative; /* Für die absolute Positionierung der Inhalte */
  cursor: pointer; /* Zeiger-Cursor für die Card */
}

.card img {
  max-width: 100%; /* Bild passt sich der Breite der Card an */
  height: auto; /* Höhe automatisch anpassen */
  transition: transform 0.25s ease, filter 0.25s ease; /* Übergangseffekte für das Bild */
}

.card-content {
  position: relative;
  padding: 20px;
  text-align: center; /* Text zentriert */
  width: 100%; /* Textinhalt nimmt volle Breite ein */
}

.card-name {
  font-weight: bold;
  color: #273751; /* Farbe für den Titel */
  margin-bottom: 10px; /* Abstand unter dem Titel */
}

.card-name h1 {
  margin: 0; /* Kein Abstand für den Titel */
}

.card-name p {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.card-description {
  color: #777;
  font-size: 12px;
  padding: 10px;
}

.card-overview {
  padding: 15px 0px;
}

.card-overview p {
  font-size: 10px;
  font-weight: 600;
  color: #777;
}

.card-overview h4 {
  color: #273751;
  font-weight: bold;
}

.card-content::before {
  content: "";
  position: absolute;
  height: 20px;
  top: -10px;
  left: 0px;
  right: 0px;
  background-color: #FFF;
  z-index: 0;
  transform: skewY(3deg);
}

.card:hover img {
  transform: scale(1.1); /* Nur Skalierung */
  filter: brightness(110%); /* Helligkeit erhöhen */
}

.profile-pic {
  width: 100%; /* Bild nimmt 100% der Breite der Card ein */
  height: auto;
  margin-bottom: 20px; /* Abstand zwischen Bild und Text */
}

h1 {
  font-size: 2em;
  margin-bottom: 10px; /* Abstand unter dem Titel */
}

p {
  margin-top: 10px; /* Abstand über dem Text */
  font-size: 1.2em;
}

/* Responsive Design */
@media(max-width: 600px) {
  .profile-pic {
      width: 80%; /* Bild nimmt 80% der Breite ein */
  }

  h1 {
      font-size: 1.5em; /* Kleinere Schriftgröße für den Titel */
  }

  p {
      font-size: 1em; /* Kleinere Schriftgröße für den Text */
  }
}

/* Work */
.work {
  background-color: beige;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8)), url(ImageLanding/Export-0850.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.heading {
  text-align: center;
  font-size: 2.0em;
  letter-spacing: 1px;
  padding: 40px;
  color: white;
}

.gallery-image {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.clickable-image {
  height: 250px;
  width: 350px;
  transform: scale(1.0);
  transition: transform 0.4s ease;
}

.img-box {
  box-sizing: border-box;
  margin: 10px;
  height: 250px;
  width: 350px;
  overflow: hidden;
  display: inline-block;
  color: white;
  position: relative;
  background-color: rgb(255, 255, 255);
  display: flex; /* Added to center the image */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

/* Mobile Anpassungen */
@media(max-width: 600px) {
  .img-box {
    width: 100%;
    height: auto;
    margin-bottom: 20px; /* Abstand unter den img-boxen */
  }
}

.img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* Ensures image maintains aspect ratio and covers the container */
  transition: transform 0.4s ease;
}

.caption {
  position: absolute;
  bottom: 5px;
  left: 20px;
  opacity: 0.0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.transparent-box {
  height: 250px;
  width: 350px;
  background-color: rgba(0, 0, 0, 0);
  position: absolute;
  top: 0;
  left: 0;
  transition: background-color 0.3s ease;
}

.img-box:hover img { 
  transform: scale(1.1);
}

.img-box:hover .transparent-box {
  background-color: rgba(0, 0, 0, 0.5);
}

.img-box:hover .caption {
  transform: translateY(-20px);
  opacity: 1.0;
}

.img-box:hover {
  cursor: pointer;
}

.caption > p:nth-child(2) {
  font-size: 0.8em;
}

.opacity-low {
  opacity: 0.5;
}

/* Modal styles */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content-container {
  max-width: auto; /* Erhöhte max-width */
  max-height: 90vh; /* Erhöhte max-height */
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  display: flex; /* Flexbox verwenden */
  flex-direction: column; /* Inhalte untereinander anordnen */
  align-items: center; /* Inhalte zentrieren */
  justify-content: center; /* Inhalte zentrieren */
}

.modal-content {
  max-width: auto;
  max-height: 80vh; /* Bildhöhe anpassen, um Platz für den Text zu lassen */
}

.modal-caption {
  color: rgb(243, 0, 0);
  text-align: center;
  margin-top: 10px; /* Space between image and caption */
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Ensure proper layout */
.modal-content {
  display: block;
  width: 100%;
  height: auto; /* Adjust to ensure aspect ratio is maintained */
}

/* Scroll to Top Button */
.scroll-to-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #007BFF; /* Blau */
  color: white;
  border: none;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
  z-index: 1000;
}

.scroll-to-top-button:hover {
  background-color: #0056b3; /* Dunkleres Blau */
}

/*Kontakt*/

#contact {
  padding: 50px 0;
  background-color: #f9f9f9;
  padding-top: 20px; /* Genug Abstand über der Kontaktsektion */
}
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
}
h2 {
  text-align: center;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 5px;
}
input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}

/*Pop Up*/

#popup {
  display: none; /* Starten Sie versteckt */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
#popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 80%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
#popup-content h2 {
  margin-top: 0;
}
#popup-content p {
  margin-bottom: 20px;
}
#popup-content button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#popup-content button:hover {
  background-color: #0056b3;
}