/* Gemeinsame Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px 0;
}

h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
}

header {
  background: #fff;
  padding: 20px 0;
  text-align: center;
  position: relative;
}

.navbar-logo img {
  max-width: 150px;
  cursor: pointer;
}

.menu-button {
  display: none;
}

.navbar {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 10px 0;
}

.navbar-links {
  display: flex;
  list-style: none;
}

.navbar-links li {
  margin-left: 20px;
}

.navbar-links li a {
  color: #333;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.navbar-links li a.active,
.navbar-links li a:hover {
  background: #1b9bff;
  color: #fff;
}

section#home .hero {
  background-image: url('hero.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: #fff;
  text-align: center;
  padding: 150px 0;
  position: relative;
  z-index: 1;
}

.hero .hero-content {
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 30px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  background: #1b9bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  background: #007bff;
  transform: scale(1.05);
}

.btn-primary {
  margin-right: 10px;
}

.btn-secondary {
  background: #555;
}

.btn-secondary:hover {
  background: #333;
}

#about, #impressum {
  background: #fff;
  padding: 60px 0;
  text-align: center;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

#about .text-container, #impressum .text-container {
  flex: 1;
  text-align: left;
  margin-left: 20px;
}

#about .text-container p, #impressum p {
  background: #fff;
  margin-bottom: 10px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.image-container {
  flex: 1;
  margin-right: 20px;
  max-width: 40%;
}

.image-container img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.portfolio-item {
  flex: 1 1 calc(30% - 10px);
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  padding: 10px;
}

.portfolio-item img {
  width: 100%;
  display: block;
  border-radius: 5px;
  border: 2px solid #ccc;
  padding: 5px;
}

.portfolio-image {
  border: 5px solid #1b9bff;
  border-radius: 10px;
  padding: 5px;
}

#werdegang {
  background: #f4f4f4;
  padding: 60px 0;
}

#werdegang ul {
  list-style: none;
  padding: 0;
}

#werdegang ul li {
  background: #fff;
  margin-bottom: 10px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#unternehmen {
  background: #fff;
  padding: 60px 0;
}

#contact {
  background: #f4f4f4;
  padding: 60px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button.btn {
  background: #1b9bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

button.btn:hover {
  background: #007bff;
}

.footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
}

.footer a {
  color: #1b9bff;
  text-decoration: none;
}

.footer-content {
  text-align: center;
  margin-bottom: 20px;
}

.footer-content h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
}

.social-icon {
  width: 70px;
  height: 70px;
  margin: 10px;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Media Query für Handys und kleinere Bildschirme */
@media screen and (max-width: 768px) {
  .menu-button {
    display: block;
    position: absolute;
    right: 20px;
    top: 150px; /* Positioniert den Menübutton unter dem Logo */
    cursor: pointer;
  }

  .menu-button img {
    width: 30px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    background: rgba(51, 51, 51, 0.8); /* Reduced transparency */
    position: fixed;
    right: -100%;
    top: 0;
    height: 100%;
    width: 70%;
    transition: right 0.3s ease-in-out;
    z-index: 1000; /* Ensure it is above other content */
  }

  .navbar.active {
    right: 0;
  }

  .navbar-links {
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .navbar.active .navbar-links {
    display: flex;
  }

  .navbar-links li {
    margin: 10px 0;
  }

  .navbar-links li a {
    color: #fff;
  }

  .about-content {
    flex-direction: column;
  }

  .image-container {
    margin: 0 0 20px 0;
    max-width: 100%;
  }

  .text-container {
    text-align: center;
  }

  /* Additional styling for contact details */
  .navbar-contact {
    color: #fff;
    text-align: center;
    margin-top: 20px;
    display: block; /* Display only on mobile */
  }

  .navbar-contact p {
    margin: 5px 0;
  }

  .navbar-contact a {
    color: #1b9bff;
    text-decoration: none;
  }

  .navbar-contact a:hover {
    text-decoration: underline;
  }
}

@media screen and (min-width: 769px) {
  .navbar-contact {
    display: none; /* Hide on desktop */
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 6vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 90%;
  height: 90%;
  max-width: 90vh;
  max-height: 90vh;
  object-fit: contain;
  border: 5px solid #1b9bff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s;
}

.close {
  position: absolute;
  top: 10vh;
  right: 3.5vh;
  color: #fff;
  font-size: 8vh;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: 100%;
  padding: 0 2vh;
  box-sizing: border-box;
}

.prev, .next {
  cursor: pointer;
  font-size: 3vh;
  color: #fff;
  transition: 0.3s;
}

.prev:hover, .next:hover {
  color: #bbb;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.cookie-banner p {
  margin-bottom: 10px;
  text-align: center;
}

.cookie-banner a {
  color: #1b9bff;
  text-decoration: none;
}

.cookie-banner button {
  background: #1b9bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  transition: background-color 0.3s, transform 0.3s;
}

.cookie-banner button:hover {
  background: #007bff;
  transform: scale(1.05);
}
