/* Allgemeine Stile */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

/* Header/Navigation */
header {
  color: black;
  padding: 1rem 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 15px;
}

nav a {
  color: #808080;
  text-decoration: none;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}
nav > .site-logo {
  display: none;
}
@media all and (max-width: 767px) {
  nav > .site-logo {
  display: block;
}
}
.current_page_item a {
  color: black;
}


/* Individuelle Section-Farben */
#home {
  background-color: #e74c3c;
  color: white;
}

#about {
  background-color: #3498db;
  color: white;
}

#services {
  background-color: #2ecc71;
  color: white;
}

#portfolio {
  background-color: #f39c12;
  color: white;
}

#contact {
  background-color: #9b59b6;
  color: white;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2c3e50;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #34495e;
}

.site-logo {
  max-width: 50px;
  width: 100%;

}

nav {
  width: 100%;
}

nav ul {
  width: 100%;
  justify-content: center;
  align-items: center;
}

li.site-logo {
  margin-right: auto;
  transition: all 0.3s;
}

li.site-logo a:hover {
  background: none;
}

li.site-logo a:hover img {
  transform: scale(1.05);
}

.nav-list {
  margin-right: auto;
}

.header_linkovi {
  background: #272727;
  color: white;
  padding: 15px 20px;

}

ul.header_linkovi_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 915px;
  margin: 0 auto;
}

.header_linkovi ul {
  list-style-type: none;
}

li.nav_telefon a {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

li.socials ul {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

li.telmail ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

li.nav_mail a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

li.linkedin,
li.whatsapp {
  padding: 6px;
  border-radius: 50%;
  background: #343434;
}

ul {}

header nav ul {
  max-width: 962px;
}

header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}


li.site-logo a {
  display: flex;
  padding: 0;
}

li.site-logo {
  margin: 0;
}

nav li {
  margin: 0;
}

.nav_button {
  line-height: 130%;
  font-weight: 700;
  padding: 15px 25px;
  width: 228px;
  background: #F28F49;
  color: white;
  border-radius: 16px;
}

ul#menu-navigation {
  gap: 35px;
}

.nav_button {
  transition: .3s all;
  cursor: pointer;
}

.nav_button:hover {
  transform: scale(1.05);
  background: #f99854;
}

ul#menu-navigation li:not(.current_page_item) a:hover {
  color: black;
}

a.help_button {
  border-radius: 30px;
  padding: 20px 45px;
  background: #F28F49;
  text-transform: uppercase;
  color: white;
  transition: 0.3s all;
}

a.help_button:hover {
  background: #f49a5a;
  transform: scale(1.05);
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 100px;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-overlay ul {
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  text-align: center;
  list-style-type: none;
  margin-top: 30px;
}


.mobile-menu-overlay a {
  font-size: 18px;
  display: block;
}

.mobile-menu-overlay .current_page_item a {
  color: black;
}

.mobile-menu-overlay li:not(.current_page_item) a {
  color: #808080;
  margin-top: 20px;
}


.mobile-menu-overlay .nav_button {
  background: #F28F49;
  color: white;
  border-radius: 16px;
  margin: 20px auto;
  width:130px;
  text-align: center;
  border: none;
  font-size: 10px;
  padding: 15px 22px;
}


/* Contact info in mobile */
.mobile-contact {
  margin-top: 30px;
  text-align: center;
}

.mobile-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  color: #333;
  font-size: 16px;
}

.mobile-contact img {
  width: 20px;
  height: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {

  /* Hide desktop top links on mobile */
  .header_linkovi {
    display: none;
  }

  /* Show hamburger menu */
  .hamburger {
    display: flex;
  }

  /* Hide desktop navigation */
  nav ul {
    display: none;
  }

  /* Show only logo and hamburger on mobile */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  li.site-logo {
    display: flex;
    margin: 0;
  }

  li.site-logo a {
    display: flex;
  }

  .site-logo img {
    max-width: 40px;
    height: auto;
  }

  /* Adjust header padding for mobile */
  header {
    padding: 15px 0;
    background: white;
    z-index: 9999;
    position: relative;
    border-bottom: 1px solid grey;

  }

  .mobile-menu-overlay {
    background: #f3f3f3;
  }
  .video_cards {
    flex-direction: column;
    width: 100%;
}

.video_cards > div {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    padding: 20px;
}

.video_cards img.card_icon {
    display: none;
}

.video_cards p.card_pre_heading {
    display: none;
}

.video_cards p.card_subheading {margin-top: 0 !important;padding-left: 20px;}

h2.card_heading {
    border-right: 1px solid grey;
    padding-right: 20px;
    font-size: 24px;
}

.work-icon.work-police-icon {
    display: none;
}

.work-icon.work-phone-icon {
    display: none;
}

.work-right-column {
    flex: 1;
    flex-direction: column !important;
}

.work-content-grid {
    align-items: stretch;
    justify-content: stretch;
    flex: 1;
}

p.section-description {
    padding: 0 30px;
}
}

@media (min-width: 769px) {

  /* Desktop styles remain the same */
  nav ul {
    display: flex !important;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu-overlay {
    display: none !important;
  }

}

/* Additional mobile optimizations */
@media (max-width: 480px) {

  .mobile-menu-overlay {
    padding-top: 80px;
  }

}
a.nav_button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 184px;
}