* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
}
.active-lang img {
  outline: 2px solid #000;
  border-radius: 5px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
}
.navbar-logo img {
  height: 40px;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navbar-menu a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: ease 0.3s;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}
.navbar-menu a:hover,
.navbar-menu .navbar-action:hover {
  background: #f0f0f0;
  color: #0078d7;
}
.navbar-action {
  background: #0078d7;
  color: #fff !important;
  margin-left: 0.5rem;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
}
.navbar-action:hover {
  background: #005fa3;
}

.navbar-toggle {
  display: none;
}

.slideshow-bg {
  position: relative;
  width: 100%;
  min-height: 600px;
  margin: 2rem auto;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
}
.slide-bg.active {
  opacity: 1;
  z-index: 1;
}
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 90vw;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 2rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.slide-content h1 {
  margin: 0 0 1rem 0;
  font-size: 2.2rem;
}
.slide-content p {
  margin: 0;
  font-size: 1.1rem;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  user-select: none;
}
.slide-btn.prev {
  left: 10px;
}
.slide-btn.next {
  right: 10px;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 10% 0;
}
.feature {
  text-align: center;
  max-width: 20vw;
  padding: 0;
  border: 1px solid black;
  transition: box-shadow 0.3s;
}
.feature:hover {
  box-shadow: 0 4px 16px rgba(34, 34, 34, 0.18);
}
.feature img {
  width: 100%;
  max-width: 15vw;
  height: auto;
  margin-bottom: 10%;
}
.but {
  border: none;
  background-color: transparent;
  align-self: flex-start;
  margin: 15% 0 15% 5%;
  background-color: lightgray;
  padding: 15px;
  border-radius: 5px;
}
.but:hover {
  text-decoration: underline;
}
.but a {
  color: black;
  text-decoration: none;
}
.txtwrap {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.produkte {
  padding: 60px 20px;
  text-align: center;
}
.produkt-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 90%;
  display: flex;
  flex-direction: row;
}
.produkt-wrapper {
  overflow: hidden;
  width: 100%;
}
.produkt-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-btn {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 2rem;
  width: 40px;
  height: 80px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  display: block;
  margin-top: 3%;
}
.carousel-btn:hover {
  background: #eee;
}
.produkt {
  flex: 0 0 250px;
  margin: 0 10px;
  width: 250px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}
.produkt img {
  width: 100%;
  max-width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: ease 0.3s;
}
.produkt img:hover {
  transform: scale(1.05);
}
.produkt h4 {
  margin: 0.5rem 0 0.2rem 0;
}

.unternehmen {
  padding: 60px 20px;
  background: #eef1f5;
  text-align: center;
}

.row1 {
  display: flex;
  max-width: 90%;
  margin-left: 5%;
  margin-bottom: 5%;
}
.blog1,
.blog2,
.blog3 {
  margin-top: 10%;
  max-width: 20%;
  margin-left: 10%;
}
.blog1 img,
.blog2 img,
.blog3 img {
  max-width: 80%;
  margin-top: 5%;
  margin-bottom: 5%;
  transition: 0.3s ease;
}
.blog1 img:hover,
.blog2 img:hover,
.blog3 img:hover {
  transform: scale(1.05);
}
.blog1 p,
.blog2 p,
.blog3 p {
  margin-top: 5%;
}

/* Email Formula Styling */
#email-formula {
  background: #fff;
  padding: 60px 0 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.email-formula-container {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.email-formula-container h2 {
  text-align: center;
  color: #0078d7;
  margin-bottom: 1.5rem;
}
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#contactForm label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.2rem;
}
#contactForm input,
#contactForm textarea {
  margin-top: 0.4rem;
  padding: 0.7rem 1rem;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border 0.2s;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border: 1.5px solid #0078d7;
  outline: none;
  background: #fff;
}
#contactForm button[type="submit"] {
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
#contactForm button[type="submit"]:hover {
  background: #005fa3;
}
#formMessage {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  color: #0078d7;
}
#contactForm label[style*="display:none"] {
  height: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  left: -99999px;
}

.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
}
.footer a {
  color: #88c9ff;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive design - media queries at bottom */
@media (max-width: 1023px) {
  .row1 {
    flex-direction: column;
    display: block;
    margin-left: 5% !important;
    max-width: 90% !important;
  }
  .blog1,
  .blog2,
  .blog3 {
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 2rem;
  }
}
@media (max-width: 900px) {
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }
  .navbar-menu a {
    width: 100%;
    padding: 1rem 0;
    border-radius: 0;
  }
  .navbar-toggle:checked ~ .navbar-menu {
    display: flex;
  }
  .carousel-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .carousel-btn.prev {
    left: 0;
  }
  .carousel-btn.next {
    right: 0;
  }
  .produkt-track {
    width: 98vw;
  }
  .produkt {
    flex-basis: calc((100% - 2.5rem) / 3);
  }
}
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }
  .nav ul.open {
    display: flex;
  }
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  .navbar-logo {
    flex: 1;
  }
  .navbar-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    width: 32px;
    height: 32px;
    z-index: 20;
    opacity: 0;
    cursor: pointer;
  }
  .navbar-toggle + label {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    width: 32px;
    height: 32px;
    z-index: 21;
    cursor: pointer;
  }
  .navbar-toggle + label span,
  .navbar-toggle + label span:before,
  .navbar-toggle + label span:after {
    display: block;
    position: absolute;
    width: 32px;
    height: 4px;
    background: #222;
    border-radius: 2px;
    transition: 0.3s;
    content: "";
  }
  .navbar-toggle + label span {
    top: 14px;
    left: 0;
  }
  .navbar-toggle + label span:before {
    top: -10px;
    left: 0;
  }
  .navbar-toggle + label span:after {
    top: 10px;
    left: 0;
  }
  .navbar-toggle:checked + label span {
    background: transparent;
  }
  .navbar-toggle:checked + label span:before {
    transform: rotate(45deg);
    top: 0;
  }
  .navbar-toggle:checked + label span:after {
    transform: rotate(-45deg);
    top: 0;
  }
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: none;
    z-index: 15;
  }
  .navbar-toggle:checked ~ .navbar-menu {
    display: flex;
  }
  .navbar-menu a {
    width: 100%;
    padding: 1rem 1rem;
    border-radius: 15px;
  }
  .navbar-action {
    margin-bottom: 5%;
  }
  .features {
    flex-direction: column;
    align-items: center;
  }
  .feature {
    max-width: 90vw;
    width: 90vw;
    margin-bottom: 2rem;
  }
  .feature img {
    max-width: 80%;
  }
  .produkt-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .produkt-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 350px;
  }
  .produkt-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }
  .produkt {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  .produkt-track {
    width: 100vw;
  }
  .produkt {
    flex-basis: calc((100% - 1rem) / 2);
  }
  .email-formula-container {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    padding: 0.5rem 0.5rem;
  }
  .navbar-menu {
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .slideshow-bg {
    height: 60vh;
  }
  .slide-content {
    padding: 0.5rem 0.2rem;
    font-size: 0.9rem;
  }
  .feature img {
    max-width: 80%;
  }
  .row1 {
    width: 80%;
    margin-left: 10% !important;
    max-width: 100vw !important;
  }
  .blog1,
  .blog2,
  .blog3 {
    max-width: 100vw;
    margin-left: 0;
    margin-bottom: 1rem;
  }
  .footer {
    padding: 10px 5px;
    font-size: 0.9rem;
  }
}

/* Email Formula Styling */
#email-formula {
  background: #fff;
  padding: 60px 0 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.email-formula-container {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.email-formula-container h2 {
  text-align: center;
  color: #0078d7;
  margin-bottom: 1.5rem;
}
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#contactForm label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.2rem;
}
#contactForm input,
#contactForm textarea {
  margin-top: 0.4rem;
  padding: 0.7rem 1rem;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border 0.2s;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border: 1.5px solid #0078d7;
  outline: none;
  background: #fff;
}
#contactForm button[type="submit"] {
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
#contactForm button[type="submit"]:hover {
  background: #005fa3;
}
#formMessage {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  color: #0078d7;
}
#contactForm label[style*="display:none"] {
  height: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  left: -99999px;
}

@media (max-width: 600px) {
  .email-formula-container {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
}
