* {
  box-sizing: border-box;
}
/* Define the custom Inter Extralight font */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

  :root {
    --brand-blue: rgba(0, 75, 241, 1); 
  }
  
  body,
  h1, h2, h3, h4, h5, h6,
  p, span, a {
    color: var(--brand-blue);
    font-family:'Inter', sans-serif;
  }

  a {
    text-decoration: none;
    transition: text-decoration 0.2s ease;
  }
  
body {
    font-family:  'Inter', sans-serif;
    background-color: white;
    margin: 0;
    height: 100vh;
    position: relative;
}

h1 {
    font-family: 'Inter', sans-serif;
    color: rgba(0, 75, 241, 1); 
    font-size: 2.5rem;
}

p {
    font-family: 'Inter', sans-serif;
    color: rgba(0, 75, 241, 1); 
    font-size: 1.2rem;
}


body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    margin: 0;
    position: relative;
}

.lines-container {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    height: 100vh; 
    display: flex; 
    justify-content: space-evenly; 
    z-index: -1;
    pointer-events: none; 
}

.blue-line {
    width: 2px;
    background-color: hsl(190, 75%, 95%); 
    height: 100vh; 
    margin-right: 5px; 
}

.content {
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Inter', sans-serif;
    color: rgba(0, 75, 241, 1); 
    font-size: 2.5rem;
}

p {
    font-family: 'Inter', sans-serif;
    color: rgba(0, 75, 241, 1); 
    font-size: 1.2rem;
}

.header-container {
    position: relative; 
    z-index: 100;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    padding-top: 2px;
    height: auto; 
}
body.menu-open {
    overflow: hidden;
}
.logo {
    margin-top: 0.2rem;
    margin-left: 5px;
}
.logo img {
    width: 109px; 
    height: 110px; 
    display: block; 
} 
.logo img:hover {
  background-color: blue ;
}

.nav {
    position: relative;
    display: flex; 
    justify-content: flex-end; 
    padding-left: 0; 
    margin-top: 0.2rem;
}

.nav-list {
    display: flex; 
    list-style: none;                                                                
    margin-top: 0.2rem;
    padding-right: 1%;
    gap: 15px; 
}
.nav-list.active {
    display: block;
  }

.nav-item {
    margin-right: 10px; 
    margin-bottom: 10%;
}  

.nav-item a {
    display: inline-block; 
    text-decoration: none;
    color: rgba(0, 75, 241, 1); 
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height:  1;
    letter-spacing: 0%;
    text-align: center; 
    padding: 3px 5px; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}
.project-link {
    min-width: 12px;
}

.firm-link {
    min-width: 133px;
}

.contact-link {
    min-width: 50px;
}
.nav-list a:hover{
    background-size: 100% 100%; /* Ensure full coverage */
    background-color: rgba(0, 75, 241, 1); 
    color: whitesmoke;
}
/* Default hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background-color: rgba(0, 75, 241, 1); /* Blue background */
    border: none;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
  position: relative;
  z-index: 1001;   /* keeps it above the nav list */
  top: -10px;      /* move it upward * /* ⬆ moves up */
  }
  
  /* Hamburger lines */
  .hamburger span {
    width: 20px;
    height: 3px;
    background-color: white; /* White lines */
    display: block;
    border-radius: 2px;
  }
  /*########## DROPDOWN MENU ##########*/
  
.dropdown-menu1,
.dropdown-menu {
  display: none;
  position: relative;
  top: 100%;
  left: 0;
  background-color: transparent !important;
  min-width: 150px;
  padding: 4px 0;
  margin: 2px 0 0;
  list-style: none;
  z-index: 1000; /* Changed from -100 to positive value */
  border: none !important; /* Remove border completely */
  box-shadow: none !important; /* Remove shadow completely */
  outline: none !important; /* Remove outline */
}

/* Ensure list items have no background */
.dropdown-menu1 li,
.dropdown-menu li {
  padding: 0;
  background: transparent !important;
  border: none !important;
}

/* Style the dropdown links - NO BACKGROUND */
.dropdown-menu1 a,
.dropdown-menu a,
.dropdown-item {
  font-family: 'Inter', sans-serif;
  justify-content: flex-start;
  text-align: left;
  padding: 4px 10px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(0, 75, 241, 1);
  
  /* CRITICAL: Remove all backgrounds and borders */
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
  text-decoration: none;
  transition: color 0.2s ease; /* Only transition color */
}
/* Hover state - NO BACKGROUND COLOR */
.dropdown-menu1 a:hover,
.dropdown-menu a:hover,
.dropdown-item:hover,
.dropdown-item:focus {
  background: transparent !important;
  background-color: transparent !important;
  color: rgba(0, 75, 241, 1);
  text-decoration: underline; /* Optional: add underline for visual feedback */
}
/* Remove any inherited styles from parent elements */
.nav-list .dropdown-menu,
.nav-item .dropdown-menu {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* If Bootstrap is interfering, add these */
.dropdown-menu {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.dropdown-item {
  background: none;
}
  /* TARGET ONLY DROPDOWN LISTS - More specific selectors################ */
  .nav-item.project-link > .dropdown-menu {
    display: none; /* Hide by default */
    position: absolute; /* Change from fixed/absolute to static */
    top: auto;
    right: auto;
    left: auto;
    background-color: transparent; /* Remove white background */
    box-shadow: none;
    border: none;
    border-radius: 0;
    text-align: right;
    padding: 0;
    margin: 5px 0 0 0; /* Add some margin above */
    z-index: 1000;
    /* width: 100%; Make it full width of parent */
  }
  /* Target dropdown links specifically */
  .nav-item.project-link > .dropdown-menu a {
    display: block;
    font-family: 'Inter', sans-serif;
    text-align: left; /* Changed from right to left */
    padding: 3px 2px; /* Increased padding */
    font-size: 1rem; /* Increased from 0.7rem */
    line-height: 1.3; /* Increased from 5px to proper line height */
    color: rgba(0, 75, 241, 1);
    transition: background-color 0.2s ease;
    width: 100%;
    white-space: normal; /* Allow text to wrap to next line */
    overflow: hidden; /* Ensure text is not hidden */
  }

.project-item:hover .dropdown-menu {
  display: block;
}
.nav-toggle {
    display: none;
    font-size: 30px;
    color:rgba(0, 75, 241, 1); 
    cursor: pointer;
    padding: 1px;
    margin-left: auto; /* Pushes it to the far right */
}



/* ########################### cardi ################################################ */

/* IMAGE SLIDER - ADJUSTED FOR LAPTOPS */
  .cardi-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  display: flex;
  justify-content: right;
  padding: 0;
  z-index: 1;
  }

  .cardi {
    position: absolute;
    width: 100%;
    aspect-ratio: 16 / 9;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
    z-index: 1;
  }

  /* ACTIVE SLIDE */
  .cardi.active {
    opacity: 1;
    z-index: 2;
  }

  /* IMAGE */
.cardi-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;   
  display: block;
  margin: 0;           
  position: static;
}


   .firmer {
  font-weight: bolder;
  font-size: clamp(1.8rem, 5vw, 2.9rem); /* scales with screen */
  max-width: 700px;
  width: 100%;
  margin-left: 10px;
  opacity: 0.9;
  }
  .ppage {
    padding-left: 8px;
    font-weight: 350;
    font-family: 'Inter', sans-serif;
  color: rgba(0, 75, 241, 1); 
    font-size: clamp(1rem, 3.5vw, 2.1rem); /* responsive text */
  margin-left: 3px;
  }

.hero {
  font-family: 'Inter', sans-serif;
  width: 100%;
  margin-top: 3rem;
  padding-left: 1rem;

  display: flex;
  align-items: flex-start;   /* 🔥 THIS aligns logo & slider tops */
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}
 
.hero-content {
  display: flex;
  justify-content: flex-start; /* left by default */
}
.belt {
  position: relative;
  z-index: 5;
  padding-right: 25px;
  padding-left: 20px;
  flex-wrap: wrap;
}
  
  .belt-group {
   display: flex;
  justify-content: space-between;
  margin-right: 2rem;
  align-items: center;
  gap: 0.5rem; /* space between items */
  width: 100%;
  flex-wrap: wrap; /* wraps on small screens */
  flex:  1 1 auto;
   } 
  
  .logo2, .b2, .b3 {
    display: flex;
    flex-direction: column;
  }
  
.logo2 {
  width: 100%;
  max-width: 200px;
  height: auto;
  opacity: 0.65;
  border-radius: 50%;
}

  .z, .i {
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    background-color: rgba(0, 75, 241, 1);
    color: white;
    padding: 2px 5px;
  }
.b2 h4,
.b2 p,
.b3 h4,
.b3 p {
  transition: text-underline-offset 0.25s ease;
}

.b2:hover h4,
.b2:hover p,
.b3:hover h4,
.b3:hover p {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.upper2 {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 12;/*  Tighter spacing */ 
    margin: 1rem 0;
    top: 5px;
    right: 1rem;
    flex: 1;
    margin-right: clamp(1rem, 3vw, 2rem);
        align-self: flex-end; /* Aligns to the right within flex container */
            width: 100%;
    max-width: 100%;
}
.lsr {
      display: flex;
  flex-direction: column;
  justify-content: center;
    position: relative; /* Change from absolute positioning */
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 24px;
    line-height: 12;/*  Tighter spacing */
    left: auto;
    flex: 1;
      padding-left: clamp(1rem, 2vw, 2rem); /* Extra spacing from logo */
}
.label {
    font-family: 'Inter', sans-serif;
    font-weight: 250;
    font-size: 18px;
  }

  .lsr h6, .lsr p, .lsr1 p {
    font-size: 12px;
    line-height: 1;
    margin: 4px 0;
  }
 .links-container{
  font-family: 'Inter', sans-serif;
  font-weight: 50px;
  font-size: 0.5rem;
 }

/* ############################### FOOTER #################################################### */

/* .footer {
    position: relative;
    overflow: hidden; 
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.footer-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem); 
    box-sizing: border-box;
  } */
/* .footer-lines-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
  z-index: -1; 
} */
/* .longleg-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1500px;
    margin: clamp(2rem, 5vw, 5rem) auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
}  */



#nav{
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 350;
    color: rgba(0, 75, 241, 1); 
    padding-top: 1rem;
}  

.sec1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: clamp(2rem, 4vw, 4rem); /* Responsive gap - increased for more spacing */
  align-items: start;
  /* width: 100%; */
}
/* .leg-eaglet-wrapper {
    display: flex;  
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
    flex: 1;
    min-width: 150px;
    max-width: 100%;
    margin-bottom: 2rem;
  } */
/* Logo Adjustments */
.leg img {
   position: relative;
  width: 0.1px; 
}

/* .container {
    font-family: 'Inter', sans-serif;
    position: relative;
    display: flex;
    padding: 15px 5% 0; 
    border-top: 1px solid rgba(255,255,255,0.1);
} */
/* .lower {
    display: flex;
    justify-content: space-between; 
    padding: 15px 5% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
   */
  #eaglet {
    position: absolute;
    width: 0.1px;
    opacity: 0.5;
    /* z-index: 1; */
}

.lsr h6, .lsr p, .lsr1 p, .lsr2 p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    line-height: 1; /* Tighter spacing */
    margin: 3px 0; /* Reduced margin */
}

#sp{
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 75, 241, 1); 
    line-height: 130%;
    padding-left: -2%;
}


/* html, body {
    margin: 0;
    padding: 0;
    height: 100%;
} */

/* ################################ */
 
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-auto-rows: minmax(80px, auto);
    gap: 5px;
    position: relative;
  }
  
  .logo-block {
    background-color: rgba(0, 75, 241, 1); 
    color: rgba(255, 255, 255, 1);
    font-size: 189.84px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-grid .logo-block:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .logo-grid .logo-block:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .logo-grid .logo-block:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  
  .eagle {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #eagle img {
    width: 60px; 
    height: auto;
  }

.company-section {
  font-family: 'Inter', sans-serif;
  max-width: 800px;
}

.company-section h1 {
  color:rgba(0, 75, 241, 1); 
  font-size: 5px;
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 24px;
  Line-height: 130%     
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rempx;
}

.policy-link {
  color: rgba(0, 75, 241, 1); 
  text-decoration: none;
  font-weight: 200;
  font-size: 0.9rem;
  padding: 5px 1;
  Line-height: 120% 
}

.policy-link:hover {
  text-decoration: underline;
}

/* .mailita{
    text-decoration: underline;
} */


.content-display {
  margin: 30px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 800px;
  display: none;
  background-color: #f9f9f9;
}

/* ############################################################################################ */

@media screen and (max-width: 480px) {

  .header-container {
    flex-direction: row;
  }
  .logo img {
    width: 2.5rem;
    height: auto;
    margin-top: 1rem;
    margin-left: 1rem;
  }

  .nav {
    position: relative;
     display: flex;
    flex-direction: column;
    align-items: flex-start;   /* ← left side */
  }

  .nav-list .dropdown-menu {
    display: none !important;
  }
    .nav-list {
    position: absolute;
    top: 100%; /* Positions it right below the hamburger */
    left: auto; /* Remove left: 0 */
    right: 0; /* Align to the right edge of hamburger */
    width: auto; /* Don't take full width */
    min-width: 120px; /* Set a minimum width */
    max-width: 150px; /* Added max-width constraint */
    background: none; /* Add background for visibility */
    border-radius: 4px; /* Optional rounding */
    z-index: 1000;
    display: none;
    text-align: left;
    padding: 0.5rem 0;
      max-height: 300px; /* Prevents it from growing too tall */
  }

  .nav-list:not(.active) {
    display: none;
  }

  .nav-list.active {
    display: flex;
  flex-direction: column;
    font-weight: 200;
    font-size: 0.8rem;   /* ⬅ smaller text */
        text-align: left;
  }
  .nav-list li a {
  display: block;
  font-size: 0.75rem;
    padding: 0.35rem 0.75rem; /* Reduced padding */
}
  .nav-list li {
    margin-bottom: 0.1rem; /* Reduced spacing between items */
    margin-top: -1.2rem;
  }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 15px;
  margin-left: auto;
  margin-right: 1rem;
  margin-top: 1rem;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: rgba(0, 75, 241, 1);
  border-radius: 2px;
  transition: 0.3s;
  position: absolute;   /* TAKE OUT OF FLOW */
  left: 0;
}
/* Position each bar */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}    
.cardi-container {
    position: relative;
    max-width: 1500px; 
    width: 100%;
    height: auto;
    margin-top: 0.8rem;
  }

  .cardi {
    width: 100%;
    left: 55% !important;
    transform: translateX(-50%) translateY(-65%) !important;
    height: 300px;
    overflow: hidden; 
  }
  .cardi-container .cardi-img-top {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;       /* Show FULL image */
  /* margin-top: 0.5rem; */
  }

  .hero {
    position: relative;
    width: 100%;
    max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;     /* Centers content horizontally */
        justify-content: center; /* Optional: centers content vertically if needed */
  z-index: 1; /* Controls stacking if overlapping occurs */
  }

   /* Logo */
  .hero .hero-b img.firmer {
    width: 250px;          /* scales cleanly */
    max-width: 100%;
    height: auto;
     font-size: 1.5rem;
}

  /* Text */
  .hero-b .ppage {
    font-size: 1.1rem;
    margin: 0;
    max-width: 100%;
    word-wrap: break-word;
  align-items: center !important;
  margin-top: -1rem;
  }

  .logo2 {
    width: 55px;
    height: 60px;
    opacity: 0.55;
    border-radius: 50%;
  }
.belt {
        display: flex ; /* Always visible on desktop  */
        position: relative;
           flex-direction: column; /* Stack vertically on mobile */
         align-items: center;
         text-align: center;
        justify-content: center;
        background: none;
        box-shadow: none;
        width: 100%;
            margin-top: 2rem; /* Positive margin */
    padding-top: 2rem; /* Additional padding */
    margin-bottom: 2rem;
    }
    .belt-group {
        flex-direction: column;
         align-items: center;
         text-align: center;
    margin-top: 1rem;
    margin-left: 0; /* Remove or reduce left margin */
    align-items: center;
      }
      .belt, .b2{
        margin-top: 3.5rem;
      }
      .beltwrite{
        margin-top: -0.5rem;
      }

    .b1, .b2, .b3 {
    flex: none;
    width: 100%;
    max-width: 300px;
    /* margin: 0 auto 1rem auto; */
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
      margin-bottom: 0.5rem;

          margin-top: 0.5rem; /* Space between items */
    margin-bottom: 0.5.5rem;
      }

    .b1 {
        display: flex;
        flex-direction: column;
        align-items: center;     /* Centers content horizontally */
                 width: 55px;
          align-items: center !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1rem auto; /* Centers the whole box */
      }
      .b2, .b3 {
  margin-bottom: 0.5rem;
}

    .z, .i {
      font-size: 0.875rem;
      padding: 0.375rem 0.625rem;
      margin-top: -1.5rem;
    }

    .beltwrite {
      font-size: 0.875rem;
      padding: 0.375rem 0.625rem;
    }
    /* .belt, .b3{
        padding-top: 3rem;
      } */
}  

 


/*################### PROJEKTE(REAL) ##############################*/
.project_section {
  display: flex;
  justify-content: center;
  gap: 20px; /* a bit more breathing room */
  margin: 25px auto 3.5rem;
  flex-wrap: wrap;
  padding: 0 15px; /* prevents edge touching on mobile */
}

.project_card {
  flex: 1 1 calc(33.333% - 20px);        /* equal shrinking */
   min-width: 0;       /* prevents overflow weirdness */
  max-width: 480px;      /* prevents getting too wide on desktop */
    display: flex;       /* add this */
  flex-direction: column; /* add this */
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.project_card-img-top {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;      /* prevents image from squishing weirdly */
}

.project_card-body {
  padding: 14px;
  text-align: center;
}

.project_card-title {
  font-size: 16px;
  color: #004bf1;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
  margin: 0;
  font-weight: 500;
}

.project_card:hover .project_card-body {
  background-color: rgba(0, 75, 241, 1);
}

.project_card:hover .project_card-title {
  color: #fff !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Extra Small Devices (phones, < 370px) */
@media (max-width: 369px) {
  .project_section {
    margin: 3rem auto;
    gap: 3px;
    margin-bottom: 2.5rem;
  }
  
  .project_card {
    width: 100%; /* Full width on very small screens */
    max-width: 320px;
    margin: 0 8px;
  }
  
  .project_card-img-top {
    height: 350px; /* Much smaller height for tiny screens */
    margin-top: 10px;
  }
  
  .project_card-body {
    padding: 8px;
  }
  
  .project_card-title {
    font-size: 14px;
  }
}

@media (min-width: 370px) and (max-width: 480px) {
  .project_section {
    margin: 0;
    padding-top: 3rem;
  }

  .project_card {
    width: 100%;
    margin: 0;
    max-width: 100%;
  }

  .project_card-img-top {
    width: 100%;
    height: 420px;
    object-fit: cover;
  }

  .project_card-body {
    padding: 10px;
  }

  .project_card-title {
    font-size: 15px;
  }
}
/* Medium Devices (tablets, 481px - 754px) */
@media (min-width: 481px) and (max-width: 754px) {
  .project_section {
    margin: 3.4rem auto;
    gap: 8px;
    margin-bottom: 3.2rem;
  }
  
  .project_card {
    width: 100%;          /* One card per row */
    max-width: 100%;      /* Prevent shrinking */
    /* min-width: unset;     /* Remove width restrictions */
    box-sizing: border-box; /* Prevent padding from increasing width */
  }
  
.project_card-img-top {
  width: 100%;          /* Image matches card width */
  height: 450px;        /* Your fixed height */
  object-fit: cover;    /* Prevent stretching */
  display: block;       /* Removes inline spacing weirdness */
}
  
  .project_card-body {
    padding: 12px;
  }
  
  .project_card-title {
    font-size: 16px;
  }
  .project_card a {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
 }
}

@media (min-width: 755px) and (max-width: 1025px) {

     html, body {
  height: 100%;
  /* overflow: hidden; */
  margin-bottom: 5rem;
  } 
  .project_section {
    margin: 3.5rem auto 0;  /* top margin only */
    gap: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    padding: 0 20px;
  }

  .project_card {
   flex: 1 1 calc(33.333% - 20px);
  max-width: 480px;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

.project_card-img-top {
  width: 100%;
  height: auto;              /* allows shrinking */
  aspect-ratio: 4 / 5;       /* keeps them uniform */
  object-fit: cover;
  object-position: center;
  display: block;
}
  .project_card-body {
    padding: 16px;
  }

  .project_card-title {
    font-size: 17px;
  }
  .longleg-container{
    display: none;
  }
}

@media (min-width: 1026px) and (max-width: 1200px) {
  .project_section {
    margin: 30px auto;
    gap: 15px;
    margin-bottom: 1rem;
  }
  
.project_card {
   flex: 1 1 calc(33.333% - 20px);
  min-width: 0;
  max-width: 480px;
}

  
  .project_card-img-top {
  width: 100%;
  height: auto;        /* keeps correct proportions */
  display: block;
    aspect-ratio: 4 / 5;   /* keeps a nice rectangle shape */
  object-fit: cover;     /* crops instead of squishing */
  }
  
  .project_card-body {
    padding: 16px;
  }
  
  .project_card-title {
    font-size: 18px; /* Slightly larger for desktop */
  }

}



/* Additional Responsive Improvements */

/* Ensure images don't break on very small screens */
@media (max-width: 480px) {
  .project_card-img-top {
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 400px;
  }
}

/* Handle landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .project_card-img-top {
    height: 300px;
  }
}

/* Print styles */
@media print {
  .project_section {
    display: block;
  }
  
  .project_card {
    width: 100%;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  
  .project_card-img-top {
    height: auto;
    max-height: 300px;
  }
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .project_card,
  .project_card-img-top,
  .project_card-title {
    transition: none;
  }
  
  .project_card:hover {
    transform: none;
  }
}
/* ========== Desktop (1024px and up) ========== */
/* @media (min-width: 1024px) {
  .project_section {
    gap: 20px;
  }

  .project_card {
    width: 480px;
    height: auto;
  }

  .project_card-img-top {
  height: clamp(320px, 40vh, 480px);
    width: 100%;
  object-fit: cover;
  display: block;
  }
} */
  @media (min-width: 1443px) {
  .project_section {
    margin: 30px auto;
    gap: 15px;
    margin-bottom: 1rem;
  }
  
.project_card {
  flex: 1 1 calc(33.333% - 20px);
  max-width: 480px;
}

.project_card-img-top {
  width: 100%;
  height: auto;
  max-height: 75vh; /* Limits to 60% of viewport height */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 75, 241, 0.25);
}
  .project_card-body {
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 75, 241, 0.25);
  }
  
  .project_card-title {
    font-size: 18px; /* Slightly larger for desktop */
  }

}
 
/* ################### Gewerbe+industrie ##################################### */
/* Small image on the page */
.small-img {
    width: 300px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s;
}

.small-img:hover {
    transform: scale(1.03);
}

/* Fullscreen overlay */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Large gallery image */
.full-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Navigation arrows */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    padding: 10px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }


/*##############gewerbe-industrie#######################*/
.back{
  margin-top: 6rem;
  padding-left: 2.5rem;
}
.project_sectionG {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 5px;
    justify-items: center;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 15px;
    margin-right: 15px;
}

/* White text overlay in corner */
.bdG_23_overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  color: white; /* White text */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none; /* Allow clicking through overlay */
}

/* Correct hover selector - this matches your HTML */
.project_card:hover .bdG_23_overlay {
  opacity: 1;
}

/* Optional: Darken image on hover */
.project_card:hover .project_card-img-top {
  filter: brightness(0.8);
}

.bdG_23_overlay-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  margin-bottom: 5px;
}

.bdG_23_overlay-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: white;
  line-height: 1.3;
  margin-bottom: 3px;
}

/*############# PROJEKTE ################*/
.card{
    flex: 0 0 auto;
    margin-right: 20px; /* match the JS gap */
    width: 300px;
    cursor: pointer;
    background: #eaeaea;
    border: 1px solid #ccc;
    overflow: hidden;
    transition: background-color 0.3s ease;
}
.card-title {
    display: inline-block; /* Allows background + padding to apply */
    text-decoration: none;
    padding: 10px 15px; /* Some internal spacing */
    font-size: 24px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #004bf1 !important;
    border-radius: 5px; /* Optional: smooth edges */
    /* cursor: pointer; Indicates it's interactive */
    /* transition: background-color 0.3s ease, color 0.3s ease; */
    transition: color 0.3s ease;
}
.card-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 3 columns */
    gap: 10px;
    justify-items: center;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 35px;
}
.card-img-top {
  width: 100%; /* Takes full width of card */
  height: 200px; /* Fixed height */
  object-fit: cover; /* Ensures image covers the space without distortion */
  object-position: center; /* Centers the image */
}

.card:hover .card-body {
    background-color: rgba(0, 75, 241, 1);
}
.card:hover .card-title {
    color: whitesmoke !important;
}



.impress, .datenSch, .terms {
  margin-left: 2rem;
}

/*############    Höllerschmid.html       ##################*/
/* Hide the gallery container completely */
.gallery {
    display: none !important;
}

/* Main image styling##################################################### */
.main-image-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    text-align: center; /* Center text alignment */
    margin: 20px auto;
    max-width: 950px;
    cursor: pointer;
}
 @media (min-width: 370px) and (max-width: 575px) {
    .main-image-container {
    margin-top: 85px;
    margin-bottom: -70rem;
  }
}

.clickable-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
/* Your existing image styles */
.clickable-main-image {
    width: 100%; /* Ensure full width */
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* Important: makes it a block element */
}

.clickable-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ------------------------------ */
/* Arrow indicator on far right */
/* ------------------------------ */
.image-wrapper {
    position: relative;
    width: 100%;
}

.image-click-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;         /* Bigger arrow */
    font-weight: 700;
    color: white;
    background: none;
    padding: 4px 11px;      /* Slightly larger padding for balance */
    border-radius: 8px;
    opacity: 1;
    pointer-events: none;
}
.image-count-badge {
    position: absolute;
    top: 10px;
    left: 26px;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.image-count-badge::before {
   /* content:  "🖼️"; */
    font-size: 12px;
    opacity: 0.9;
}

.image-count-badge span.active {
    background: #fff;
}

/* Lightbox - Fullscreen gallery */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: whitesmoke;
    display: none;
    flex-direction: column; /* Change to column */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

#lightbox-img:hover {
    transform: scale(1.01);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: red;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: blue;
    font-size: 50px;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    transition: color 0.3s;
}

.lightbox-arrow:hover {
    color: #ccc;
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}

/* Disable body scroll when lightbox is open */
body.no-scroll {
    overflow: hidden;
}
#lightbox-text {
    text-align: center;
    color: white;
    margin-top: 20px;
}

#lightbox-title {
    font-size: 28px;
    font-weight: bold;
        font-size: 28px;
    font-weight: bold;
}

#lightbox-description {
    font-size: 18px;
    opacity: 0.85;
}
.höller_text {
    width: 100%;
    margin-top: 15px; /* Space between image and text */
    pointer-events: none;
}

/* Your existing text styles - just add text-align if you want centered */
.holler-pic_overlay-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: rgba(0, 75, 241, 1);
    margin-bottom: 5px;
    text-align: center; /* Add this if you want centered text */
}

.holler-pic_overlay-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(0, 75, 241, 1);
    line-height: 1.3;
    margin-bottom: 3px;
    text-align: center; /* Add this if you want centered text */
}

/* ######################################################################################### */
@media (min-width: 1024px) and (max-width: 1365px) {
.main-image-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    text-align: center; /* Center text alignment */
    margin: 20px auto;
    max-width: 450px;
    cursor: pointer;
    padding-bottom: 5rem;
 }
}

/* ############  Gewerbe-industrie ########## */
.gi-container1 {
  max-width: 100%;
  overflow: hidden;
  margin-right: 5px;
}

.project-header1 {
  width: 100%;
}

.image-wrapper1 {
  position: relative;   /* 🧠 REQUIRED for overlay positioning */
  width: 100%;
  padding: 10px 25px;
}
/* ########## */
.gi-container {
  max-width: 100%;
  overflow: hidden;
  margin-right: 5px;
}

.project-header {
  width: 100%;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 25px;
}
/* Left-bottom corner overlay */
.image-overlay {
  position: absolute;
  left: 25px; /* Matches image-wrapper padding */
  bottom: 10px; /* Matches image-wrapper padding */
  background: white; /* Dark semi-transparent background */
  color: rgba(0, 75, 241, 1);
  padding: 8px 15px;
  max-width: 80%; /* Prevents overlay from spanning full width */
  border-radius: 0 4px 0 0; /* Rounded corner only top-right */
}

/* Optional animation */
.image-overlay {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  transform: translateY(0);
  opacity: 1;
}


/* ############ Wohnbau-Bildung ############## */
.gallery-modal {
  display: none;
  position: fixed;
  top: 50%;
  right: 35rem;
  transform: translateY(-80%); /* moves upward */
  width: 20rem;
  height: 20rem;
  z-index: 9999;
  border-radius: 3px;
  overflow: hidden;   /* makes border-radius visible */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}


.gallery-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  text-align: center;
}

.gallery-slide {
  display: none;
  height: 100%; /* ensure image fits modal */
}

.gallery-slide.active {
  display: block;
}

.gallery-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover; /* fills modal nicely */
}

.gallery-caption {
  color: white;
  padding: 10px;
  font-size: 14px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  user-select: none;
  /* background: rgba(0, 0, 0, 0.5); */
  padding: 10px;
  border-radius: 50%;
}

.prev { 
  left: 10px; /* Arrow positions stay the same relative to gallery */
}
.next { 
  right: 10px; 
}

.close-gallery {
  position: absolute;
  top: 10px;
  left: 10px; /* Changed from right to left since gallery is on right */
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
}

/* Add a margin to the left of your main content when gallery is open */
body.gallery-open {
  margin-right: 50%; /* Push main content to the left */
  transition: margin-right 0.3s ease;
}
.prev,
.next,
.close-gallery {
  display: none !important;
}


/* ##################################### firmen-profil-container ########## */
.image_workers_container{
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1800px; /* Optional max width for very large screens */
    height: 500px;
    margin-top: 1.8rem;
    margin-left: 0.1rem;
    padding: 0 2rem;
    gap: 5rem;
    box-sizing: border-box;
    color: rgba(0, 75, 241, 1);
}
.firmen-profil-container{
  display: block;
  margin: 5px 5px;
  min-width: 100px;
  margin-left: 0.5px;
  color: rgba(0, 75, 241, 1);
}
.profil_writup {
  font-size: 1rem;
  line-height: 1.5
}
.image_workers_container img {
display: block;
margin-left: 1px;
border-radius: 5px; 
margin-top: 5rem; 
}
.spacer{
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  display: inline-block;
  line-height: 1.5; /* Tighter line spacing */
  transform: translateY(0.1rem);
  padding-left: 3rem;
}


/* ############################################################################## */
@media (max-width: 480px) {
  .image_workers_container {
        flex-direction: column; /* Stack vertically on mobile */
        width: 100%;
        max-width: 100vw;
        height: auto; /* Let height adjust automatically */
        margin: 0 auto; /* Center container */
        padding: 0 1rem; /* Reduce padding on mobile */
        gap: 2rem; /* Reduce gap on mobile */
}
    .image_workers_container img {
        width: 100%; /* Reduce image width to 80% of container */
        max-width: 500px; /* Maximum width */
        margin: 1.7rem auto; /* Center and reduce top margin */
        height: auto; /* Maintain aspect ratio */
        padding-left: 0.5rem;
    }
    /* OR if you have a specific class for the image */
    .firme_img {
        width: 100%; /* Even smaller if needed */
        max-width: 250px;
        margin: 0 auto;
        padding-top: 1rem;
       padding-right: 0.5rem;
    }
.profil_writup{
  margin-top: -2rem;
}  
}

/* ############################################################################## */
@media (min-width: 481px) and (max-width: 754px) {
      .nav-list.active {
        display: flex;
        flex-direction: column;
        font-weight: 200;
        font-size: 0.8rem;
        text-align: left;
        margin-top: -1.5rem;
    }

.hamburger{
  margin-right: 1rem;
}
  .image_workers_container {
        flex-direction: column; /* Stack vertically on mobile */
        width: 100%;
        max-width: 100vw;
        height: auto; /* Let height adjust automatically */
        margin: 0 auto; /* Center container */
        padding: 0 1rem; /* Reduce padding on mobile */
        gap: 2rem; /* Reduce gap on mobile */
}
    .image_workers_container img {
        width: 100%; /* Reduce image width to 80% of container */
        max-width: 500px; /* Maximum width */
        margin: 1.7rem auto; /* Center and reduce top margin */
        height: auto; /* Maintain aspect ratio */
        padding-left: 0.5rem;
    }
    /* OR if you have a specific class for the image */
    .firme_img {
        width: 100%; /* Even smaller if needed */
        max-width: 250px;
        margin: 0 auto;
        padding-top: 1rem;
        padding-right: 0.5rem;
    }
.profil_writup{
  margin-top: -2rem;
  padding-left: 0.2rem;
  padding-right: 0.9rem;
}

}

@media (min-width: 755px) and (max-width: 1025px) {
  .nav-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
}
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
  .image_workers_container {
        flex-direction: column; /* Stack vertically on mobile */
        width: 100%;
        max-width: 100vw;
        height: auto; /* Let height adjust automatically */
        margin: 0 auto; /* Center container */
        padding: 0 1rem; /* Reduce padding on mobile */
        gap: 2rem; /* Reduce gap on mobile */
}
    .image_workers_container img {
        width: clamp(280px, 85vw, 650px);
        max-width: 650px; /* Maximum width */
        margin: 2rem auto; /* Center and reduce top margin */
        height: auto; /* Maintain aspect ratio */
    }
    /* OR if you have a specific class for the image */
    .firme_img {
        width: 100%; /* Even smaller if needed */
        max-width: 250px;
        margin: 0 auto;
        padding-top: 1rem;
    }
    .firmen-profil-container{
      margin-left: 1.2rem;
    }
.profil_writup{
  margin-top: -2rem;
  padding-left: 1rem;
  padding-right: 0.9rem;
}

}

@media (min-width: 1026px) and (max-width: 1200px) {
    .nav-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
}
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
  .image_workers_container {
        flex-direction: column; /* Stack vertically on mobile */
        width: 100%;
        max-width: 100vw;
        height: auto; /* Let height adjust automatically */
        margin: 0 auto; /* Center container */
        padding: 0 2.8rem; /* Reduce padding on mobile */
        gap: 2rem; /* Reduce gap on mobile */
}
    .image_workers_container img {
    width: 100%;        /* Slightly wider than before visually */
    max-width: 95rem;  /* Scales with root font size (~640px) */
    height: 520px;
    }
    /* OR if you have a specific class for the image */
    .firme_img {
        width: 100%; /* Even smaller if needed */
        max-width: 250px;
        margin: 0 auto;
        padding-top: 1rem;
    }
/* .profil_writup{
  /* margin-top: -2rem; */
/* }  */

}

@media (min-width: 1201px) and (max-width: 1442px) {
  .image_workers_container {
    flex: 1 1 auto;
    display: flex;
    margin-left: 1rem;
    height: 100%;
    padding-bottom: 2rem;
  }
  
  .firmen-profil-container {
    display: block;
    min-width: 100px;
   max-width: 85ch;
  overflow: hidden;
  text-overflow: ellipsis;
    box-sizing: border-box;
        margin-right: 2.04rem;
  }
  
  /* Target the image specifically */
  .firme_img {
    width: 100%; 
    max-width: 600px; /* Reduced from 55rem (~880px) */
    max-height: fit-content;
    padding-top: 1rem;
    height: auto; /* Maintain aspect ratio */
  }

  .profil_writup {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(0, 75, 241, 1);                 
    line-height: 1.5; /* Tighter line spacing */
  margin-top: 3rem;
  padding-top: 2.5rem;  
}
}



/* ########################################################################## */
@media (min-width: 1443px) and (max-width: 1620px) {
  .image_workers_container {
        flex: 1 1 auto;
    display: flex;
    padding: 2rem;
  margin-bottom: 0;
  padding-bottom: 0;
  }
  
.firmen-profil-container{
  display: block;
  inline-size: 27rem;
  min-width: 100px;
  color: rgba(0, 75, 241, 1);
  padding-right: 2.5rem;
  margin-left: -2.5rem;
}
.profil_writup {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(0, 75, 241, 1);                
    line-height: 1.5; /* Tighter line spacing */
    display: block
}
.image_workers_container img {
display: block;
margin: 1rem auto 0;
margin-left: 2.22rem; /* pushes image right */
margin-top: 1rem; 
box-shadow: 0 8px 20px rgba(0, 75, 241, 0.25);
max-width: 100%;
height: auto;
}
.spacer{
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  display: inline-block;
  line-height: 1.5; /* Tighter line spacing */
  transform: translateY(0.1rem);
  padding-left: 1.5rem;
}
}
/* ######################################################################### */
@media (min-width: 1621px) {
    .image_workers_container {
        flex: 1 1 auto;
    display: flex;
    padding: 2rem;
  margin-bottom: 0;
  padding-bottom: 0;
  }
  
.firmen-profil-container{
  font-size: 1.2rem;
  display: block;
  inline-size: 40rem;
  min-width: 100px;
  color: rgba(0, 75, 241, 1);
  padding-right: 2.5rem;
  margin-left: -2.5rem;
}
.profil_writup {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: rgba(0, 75, 241, 1);                
    line-height: 1.5; /* Tighter line spacing */
    display: block
}
.image_workers_container img {
display: block;
margin: 1rem auto 0;
margin-left: 2.22rem; /* pushes image right */
margin-top: 1rem; 
box-shadow: 0 8px 20px rgba(0, 75, 241, 0.25);
max-width: 100%;
height: auto;
}
.spacer{
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  display: inline-block;
  line-height: 1.5; /* Tighter line spacing */
  transform: translateY(0.1rem);
  padding-left: 1.5rem;
}
}

/* ###############[ .KONTAKT_PAGE ]######################## */

.k_section {
display: flex;
flex-direction: row;
  gap: 0.5rem;
}
.picture_container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1800px; /* Optional max width for very large screens */
    margin: 1.5rem auto 0 auto;
    padding: 0 2rem;
    gap: 0.5rem;
    box-sizing: border-box;
}

.picture_container img {
    flex: 1 1 0;
    width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;;
}

.contact-content {
   font-family: 'Inter', sans-serif;
    max-width: 65ch;
    margin-top: 2rem;
    width: auto;
    color: rgba(0, 75, 241, 1);
}
.email-link:hover {
  color: #0066cc;
  text-decoration: none;
}
/* ###################################################################################### */

.project-description {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 42px;
  color: rgba(0, 75, 241, 1);
  line-height: 1.3;
}

@media (max-width: 480px) {

  .k_section {
    flex-direction: column;
  }

  .picture_container {
    flex-direction: column;
    height: auto;
    padding: 0 0.75rem;
    gap: 0.75rem;
  }

  .picture_container img {
    width: 100%;
    height: 220px;
    margin-top: 1rem;
  }

  .contact-content {
    margin-top: 1rem;
    padding: 0 0.75rem;
        margin: 0.5rem 1;
        margin-left: 0;
    margin-right: 0;
  }

  .company-name {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0.5rem 1;
    margin-left: 1rem;
  }

  .contact-details p {
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 0.5rem 0;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
  }
}




@media (min-width: 481px) and (max-width: 754px) {
  .k_section {
    flex-direction: column;
    margin: 1rem 1.5rem
  }

  .picture_container {
    flex-direction: column;
    height: auto;
    padding: 0 0.75rem;
    gap: 0.75rem;
  }

  .picture_container img {
    width: 100%;
    height: 220px;
    margin-top: 1rem;
  }

  .contact-content {
    margin-top: 1rem;
    padding: 0 0.75rem;
        margin: 0.5rem 1;
        margin-left: 0;
    margin-right: 0;
  }

  .company-name {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0.5rem 1;
    margin-left: 1rem;
  }

  .contact-details p {
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 0.5rem 0;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
  }
}

@media (min-width: 755px) and (max-width: 1200px) {

  .k_section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 3.5rem;
    margin-bottom: 2rem;
  }
.picture_container {
  height: 600px; 
  width: auto;         /* ⬅ biggest visual impact */
  max-width: 2000px;
  /* margin-right: 0.5rem; */
}

  /* Image strip – larger visuals */
.picture_container img {
  flex: 1 1 350px;
  min-width: 250px;      /* control size safely */
  width: 500px;
  object-fit: cover;
  border-radius: 8px;
  transition: flex 0.4s ease, transform 0.4s ease;
}
.picture_container img:hover {
  flex: 2;               /* expands */
  transform: translateY(-10px);
}

  /* Contact content */
  .contact-content {
    max-width: 520px;
  margin: 1rem auto 0;   /* centers horizontally */
  text-align: center;    /* centers the text inside */
  
  }

  .company-name {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  .contact-details p {
    font-size: 0.9rem;
    line-height: 0.8;
  }
  /* Contact info block */
  .contact-info {
    justify-content: center;
    text-align: center;
  
    /* margin-left: 2rem;
    margin-right: 3rem; */
  }

  /* Logo */
  .leg img {
    width: 120px;
    margin-top: 75px;
    /* margin-left: -105px; */
  }
}
@media (min-width: 1201px) and (max-width: 1442px) {
    /* html {
        font-size: 19px;
    } */
   
.k_section {
display: flex;
flex-direction: row;
}
.picture_container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1500px; /* Optional max width for very large screens */
    margin: 2.5rem auto 0;
    padding: 0 2rem;
    gap: 0.2rem;
    box-sizing: border-box;
}

.picture_container img {
    flex: 1 1 0;
    max-width: 500px;   /* limit how large each image can grow */
    width: 20vw;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
  margin-left: 1rem;
}

.contact-content {
   font-family: 'Inter', sans-serif;
   font-size: large;
   font-weight: 500;
    max-width: 75ch;
    margin-top: 2rem;
    width: auto;
    color: rgba(0, 75, 241, 1);
    margin-right: 3.5rem;
        margin-left: -1rem; 
    flex: 1;
    align-self: flex-start;
    text-align: left; 
}
.contact-info{
    position: relative;
    left: auto; 
    align-self: flex-start; 
    margin-top: 1rem; 
}
.company-name{
   font-family: 'Inter', sans-serif;
     line-height: 1.5;
   font-size: 1.446rem;
   font-weight: 500;
        color: rgba(0, 75, 241, 1) !important;
        margin-top: 0.3rem;   
}
.contact-details{
  display: block;
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 350;
  max-width: 75ch;
}
.contact-info h6{
  padding-right: 2rem;
}
.contact-details p{
    font-size: 1rem;
    line-height: 1;
    /* margin-left: -2rem; */
}

.email-link:hover {
  color: #0066cc;
  text-decoration: none;
}

}

@media (min-width: 1443px) and (max-width: 1620px) {
  .k_section {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    justify-content: space-between;
    align-items: flex-start; /* Aligns both items to top */
    gap: 2px;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 3.5rem;
    margin-bottom: 2rem;
    height: auto; /* Remove fixed height if any */
  }
.picture_container {
  height: 600px; 
  width: auto;         /* ⬅ biggest visual impact */
  max-width: 2000px;
  margin-left: 2.1rem;
}

  /* Image strip – larger visuals */
.picture_container img {
  flex: 1 1 350px;
  min-width: 250px;      /* control size safely */
  width: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 75, 241, 0.25);
  transition: flex 0.4s ease, transform 0.4s ease;
}
.picture_container img:hover {
  flex: 2;               /* expands */
  transform: translateY(-10px);
}
.contact-content {
   font-family: 'Inter', sans-serif;
   font-size: large;
   font-weight: 400;
    max-width: 80ch;
    margin-top: 0; /* Changed from 2rem - moves it upward */
    margin-bottom: auto; /* Pushes content to the top */
    width: auto;
    color: rgba(0, 75, 241, 1);
    padding-right: 4.5rem;
    padding-top: 0; /* Ensure no top padding */
    margin-left: -0.5rem; 
    flex: 1;
    align-self: flex-start;
    text-align: left; 
}
.contact-info{
    position: relative;
    left: auto; 
    align-self: flex-start; 
    margin-top: 1rem; 
}
.company-name{
   font-family: 'Inter', sans-serif;
     line-height: 1.5;
   font-size: 1.446rem;
   font-weight: 500;
        color: rgba(0, 75, 241, 1) !important;
        margin-top: 0.3rem;   
}
.contact-details{
  display: block;
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 350;
  max-width: 75ch;
}
.contact-details p{
    font-size: 1rem;
    line-height: 1;
}

.email-link:hover {
  color: #0066cc;
  text-decoration: none;
}

}

@media (min-width: 1620px){
    .k_section {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    justify-content: space-between;
    align-items: flex-start; /* Aligns both items to top */
    gap: 2px;
    max-width: 2900px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 3.5rem;
    margin-bottom: 2rem;
    height: auto; /* Remove fixed height if any */
  }
.picture_container {
  height: 650px; 
  width: auto;         /* ⬅ biggest visual impact */
  max-width: 2000px;
  margin-left: 2.1rem;
}

  /* Image strip – larger visuals */
.picture_container img {
  flex: 1 1 400px;
  min-width: 350px;      /* control size safely */
  width: 700px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 75, 241, 0.25);
  transition: flex 0.4s ease, transform 0.4s ease;
}
.picture_container img:hover {
  flex: 2;               /* expands */
  transform: translateY(-10px);
}
.contact-content {
   font-family: 'Inter', sans-serif;
   font-size: large;
   font-weight: 400;
    max-width: 80ch;
    margin-top: 0; /* Changed from 2rem - moves it upward */
    margin-bottom: auto; /* Pushes content to the top */
    width: auto;
    color: rgba(0, 75, 241, 1);
    padding-right: 4.5rem;
    padding-top: 0; /* Ensure no top padding */
    margin-left: -0.5rem; 
    flex: 1;
    align-self: flex-start;
    text-align: left; 
}
.contact-info{
    position: relative;
    left: auto; 
    align-self: flex-start; 
    margin-top: 1rem; 
}
.company-name{
   font-family: 'Inter', sans-serif;
     line-height: 1.5;
   font-size: 1.4rem;
   font-weight: 500;
        color: rgba(0, 75, 241, 1) !important;
        margin-top: 0.3rem;   
}
.contact-details{
  display: block;
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 350;
  max-width: 75ch;
}
.contact-details p{
    font-size: 1.2rem;
    line-height: 1;
}

.email-link:hover {
  color: #0066cc;
  text-decoration: none;
}

}


/* Responsive adjustments */
@media (max-width: 768px) {
  .text-overlay {
    padding: 15px;
    width: 90%;
    left: 10px;
    bottom: 10px;
  }

  .text-overlay h1 {
    font-size: 32px;
  }

.firmen-profil-container{
  margin: 5px 8px;
}
  .project-description {
    font-size: 13px;
  }
  .accord-container{
  margin-right: 2px;
  font-family: 'Inter', sans-serif;
}
.accordion {
  justify-content: flex-end;
  font-family: 'Inter', sans-serif;
  width: auto;
  background: transparent;
  position: relative;
  z-index: 1; /* Ensure stacking context */
  padding-top: 270px;
  /* margin-left: 50px; */
}
  .accordion-header {
  cursor: pointer;
  font-weight: bold;
  font-size: large;
  color: rgba(0, 75, 241, 1);
  background: transparent;
  /* border: none !important; */
  position: relative;
  z-index: 2;
  /* padding-left: 16px; optional: offset text from vertical line */
 }
}

/* ############### IMPRESSUM ################ */
.imp{
  font-family: 'Inter', sans-serif;
  font-size: xx-large;
  font-weight: 500;
  color: rgba(0, 75, 241, 1);  
}
.impress{
  font-family: 'Inter', sans-serif;
  margin-left: 4.2rem;
  margin-right: 5rem;
  padding-bottom: 1rem;
}
        /* Container */
        .impress-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            padding: 40px;
            margin: 20px 0;
        }
        
        /* Header */
        .impress-header {
            border-bottom: 2px solid #2c5aa0;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }
        
        .impress-header h1 {
            color: #2c5aa0;
            font-size: 28px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        .impress-header .subtitle {
            color: #666;
            font-size: 16px;
            margin-top: 8px;
        }
        
        /* Sections */
        .impress-section {
            margin-bottom: 30px;
            padding-bottom: 25px;
            border-bottom: 1px solid #eee;
        }
        
        .impress-section:last-of-type {
            border-bottom: none;
        }
        
        .section-title {
            color: #2c5aa0;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eaeaea;
            display: flex;
            align-items: center;
        }
        
        .section-title::before {
            content: "•";
            color: #2c5aa0;
            font-size: 24px;
            margin-right: 10px;
        }
        
        /* Content Styling */
        /* .company-name {
            font-size: 20px;
            font-weight: 600;
            color: #222;
            margin-bottom: 5px;
        } */
        
        .address-block {
            background: #f8fafc;
            padding: 18px;
            border-radius: 6px;
            border-left: 4px solid #2c5aa0;
            margin: 15px 0;
        }
        
        /* .contact-info {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            margin-top: 15px;
        }
         */
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .contact-icon {
            width: 20px;
            margin-right: 10px;
            color: #2c5aa0;
            font-weight: bold;
        }
        
        .legal-details {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .legal-item {
            background: #f8fafc;
            padding: 12px 15px;
            border-radius: 6px;
            font-size: 14.5px;
        }
        
        .legal-label {
            font-weight: 600;
            color: #555;
            display: block;
            margin-bottom: 3px;
        }
        
        /* Links */
        a {
            color: #2c5aa0;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        a:hover {
            color: #1e3a6c;
            text-decoration: underline;
        }
        
        /* Professional Info */
        .professional-info {
            background: linear-gradient(to right, #f8fafc, #f0f5ff);
            padding: 20px;
            border-radius: 6px;
            margin: 20px 0;
        }
        
        /* Disclaimer Box */
        .disclaimer-box {
            background: #fff8f0;
            border-left: 4px solid #e6a700;
            padding: 18px;
            border-radius: 6px;
            margin: 20px 0;
        }
        
/* ############### TERMS ###################### */
/* .terms{
  font-family: 'Inter', sans-serif;
  color: rgba(0, 75, 241, 1);
  margin-left: 10px;
}
.tem{
  
  font-size: xx-large;
  font-weight: 500;
  color: rgba(0, 75, 241, 1);
  margin-left: 10px;
} */

/* ############## PRIVACY ######################### */
 .eklarung {
  font-family: 'Inter', sans-serif;
  margin-left: 18px;
  margin-bottom: 2px;
  color: rgba(0, 75, 241, 1);
 }
 .pr-contact{
  margin-left: 0 !important;
 }
 #cook{
  margin-left: 1px;
 }
 #pdk{
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: large;
  margin-left: 1px;
 }
        
        /* Main Container */
        .privacy-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            padding: 40px;
            margin: 20px 0;
  margin-left: 4.2rem;
  margin-right: 4.5rem;
  padding-bottom: 1rem;
        }
        
        /* Header */
        .privacy-header {
            border-bottom: 2px solid #2c5aa0;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }
        
        .privacy-header h1 {
            color: #2c5aa0;
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .privacy-intro {
            color: #444;
            font-size: 16px;
            margin-bottom: 10px;
        }
        
        /* Sections */
        .privacy-section {
            margin-bottom: 35px;
            padding-bottom: 25px;
            border-bottom: 1px solid #eee;
        }
        
        .privacy-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .section-title {
            color: #2c5aa0;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eaeaea;
            display: flex;
            align-items: center;
        }
        
        .section-title::before {
            content: counter(section) ".";
            counter-increment: section;
            color: #2c5aa0;
            font-weight: 700;
            margin-right: 10px;
            font-size: 24px;
        }
        
        /* Content Styles */
        .contact-box {
            background: #f8fafc;
            padding: 20px;
            border-radius: 6px;
            border-left: 4px solid #2c5aa0;
            margin: 15px 0;
        }
        
        .contact-box p {
            margin-bottom: 8px;
        }
        
        .contact-box strong {
            color: #2c5aa0;
        }
        
        .server-log-list {
            list-style-type: none;
            padding-left: 0;
            margin: 15px 0;
        }
        
        .server-log-list li {
          color: #004bf1;
            padding: 6px 0;
            padding-left: 24px;
            position: relative;
        }
        
        .server-log-list li::before {
            content: "•";
            color: #2c5aa0;
            font-size: 20px;
            position: absolute;
            left: 0;
            top: 2px;
        }
        
        .rights-box {
            background: #f0f8ff;
            border: 1px solid #cce0ff;
            padding: 20px;
            border-radius: 6px;
            margin: 15px 0;
        }
        
        .authority-box {
            background: #fff8f0;
            border-left: 4px solid #e6a700;
            padding: 20px;
            border-radius: 6px;
            margin: 20px 0;
        }
        
        .authority-box h4 {
             color: #2c5aa0;
            margin-bottom: 10px;
        }
        
        .no-cookies {
            background: #f0fff0;
            padding: 15px;
            border-radius: 6px;
            margin: 15px 0;
            border-left: 4px solid #4CAF50;
        }
        
        .no-tracking {
            background: #f0f8ff;
            padding: 15px;
            border-radius: 6px;
            margin: 15px 0;
            border-left: 4px solid #2c5aa0;
        }
        
        /* Links */
        a {
            color: #2c5aa0;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        a:hover {
            color: #1e3a6c;
            text-decoration: underline;
        }
        
        /* Update Notice */
        .update-notice {
            background: #fff8f0;
            padding: 15px;
            border-radius: 6px;
            margin-top: 30px;
            border: 1px solid #ffecd1;
            font-size: 14px;
        }
        
        /* Footer */
        .privacy-footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            color: #777;
            font-size: 14px;
        }
        @media (max-width: 480px) {

  .eklarung {
    margin-left: 8px;
    font-size: 14px;
  }

  .pr-contact {
    margin-left: 0 !important;
  }

  #cook,
  #pdk {
    margin-left: 0;
    font-size: 14px;
  }

  /* Main Container */
  .privacy-container {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 20px;
    padding-bottom: 1rem;
  }

  /* Header */
  .privacy-header h1 {
    font-size: 22px;
  }

  .privacy-intro {
    font-size: 14px;
  }

  /* Section titles */
  .section-title {
    font-size: 18px;
    flex-wrap: wrap;
  }

  .section-title::before {
    font-size: 18px;
  }

  /* Content boxes */
  .contact-box,
  .rights-box,
  .authority-box,
  .no-cookies,
  .no-tracking,
  .update-notice {
    padding: 15px;
    font-size: 14px;
  }

  /* Lists */
  .server-log-list li {
    font-size: 14px;
    padding-left: 20px;
  }

  /* Footer */
  .privacy-footer {
    font-size: 12px;
    margin-top: 30px;
  }
}

/*############# bd_23_container ##############*/
.bd_23_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(650px, 3fr));
  column-gap: 5px;
  row-gap: 5px;
  margin: 10px 15px;
}

.bd_23_container a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bd_23_wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.bd_23_img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 2px;
  transition: all 0.3s ease;
  object-position: top;
}

.bd_23-body {
  margin-top: 2px;
  padding: 8px 0;
}

.bd_23-title, .bd_23-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-decoration: none;
}

.bd_23_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Darker background for better readability */
  color: white; /* White text color */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align to top */
  align-items: flex-start; /* Align to left */
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px; /* Padding around edges */
  box-sizing: border-box;
  text-align: left; /* Left-aligned text */
  border-radius: 2px;
  z-index: 2;
}


.bd_23_overlay-corner {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 18px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  max-width: 80%; /* Don't span full width */
  text-align: left;
}

/* Hover effects */
.bd_23_wrapper:hover .bd_23_overlay {
  opacity: 1;
}

.bd_23_wrapper:hover .bd_23_overlay-corner {
  opacity: 1;
}

/* Optional: Darken image on hover */
.bd_23_wrapper:hover .bd_23_img {
  filter: brightness(0.8);
}

/* Style for overlay text - WHITE COLOR */
.bd_23_overlay-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 8px;
  color: white; /* White text */
  text-decoration: none;
}

.bd_23_overlay-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  color: white; /* White text */
  text-decoration: none;
  margin-bottom: 5px;
}
/* --------------------------- */
/* RESPONSIVE BREAKPOINTS */
/* --------------------------- */

/* Tablets (medium screens) */
@media (max-width: 992px) {
  .bd_23_container {
    margin-top: 65px;
    grid-template-columns: repeat(2, 1fr);
  }

  .bd_23_img {
    height: 200px;
    object-position: top;
  }
}


@media (min-width: 1024px) and (max-width: 1365px) {

.bd_23_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 5px;
  row-gap: 5px;
  margin: 12px 35px;
  border-radius: 5px;
  padding-bottom: 20px;
}

.bd_23_container a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bd_23_wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.bd_23_img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.bd_23-body {
  margin-top: 10px;
  padding: 8px 0;
}

.bd_23-title, .bd_23-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-decoration: none;
}

.bd_23_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Darker background for better readability */
  color: white; /* White text color */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align to top */
  align-items: flex-start; /* Align to left */
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px; /* Padding around edges */
  box-sizing: border-box;
  text-align: left; /* Left-aligned text */
  border-radius: 2px;
  z-index: 2;
}


.bd_23_overlay-corner {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 18px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  max-width: 80%; /* Don't span full width */
  text-align: left;
}

/* Hover effects */
.bd_23_wrapper:hover .bd_23_overlay {
  opacity: 1;
}

.bd_23_wrapper:hover .bd_23_overlay-corner {
  opacity: 1;
}

/* Optional: Darken image on hover */
.bd_23_wrapper:hover .bd_23_img {
  filter: brightness(0.8);
}

/* Style for overlay text - WHITE COLOR */
.bd_23_overlay-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 8px;
  color: white; /* White text */
  text-decoration: none;
}

.bd_23_overlay-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  color: white; /* White text */
  text-decoration: none;
  margin-bottom: 5px;
}
} 


@media (min-width: 1365px) {

.bd_23_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  margin-top: 2rem;
  margin-left:  4.5rem;
  margin-right:  5rem;
  border-radius: 5px;
  padding-bottom: 20px;
}

.bd_23_container a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bd_23_wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.bd_23_img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.bd_23-body {
  margin-top: 10px;
  padding: 8px 0;
}

.bd_23-title, .bd_23-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-decoration: none;
}

.bd_23_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Darker background for better readability */
  color: white; /* White text color */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align to top */
  align-items: flex-start; /* Align to left */
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px; /* Padding around edges */
  box-sizing: border-box;
  text-align: left; /* Left-aligned text */
  border-radius: 2px;
  z-index: 2;
}


.bd_23_overlay-corner {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 18px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  max-width: 80%; /* Don't span full width */
  text-align: left;
}

/* Hover effects */
.bd_23_wrapper:hover .bd_23_overlay {
  opacity: 1;
}

.bd_23_wrapper:hover .bd_23_overlay-corner {
  opacity: 1;
}

/* Optional: Darken image on hover */
.bd_23_wrapper:hover .bd_23_img {
  filter: brightness(0.8);
}

/* Style for overlay text - WHITE COLOR */
.bd_23_overlay-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 8px;
  color: white; /* White text */
  text-decoration: none;
}

.bd_23_overlay-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  color: white; /* White text */
  text-decoration: none;
  margin-bottom: 5px;
}
} 


/*##########################  Neubaugürtel2_Pics #############################*/
.cdsection{
  display: flex;
}

.cd2section{
  display: flex;
}

.cd3section{
  display: flex;
}

.AngernD_R_container{
  padding-bottom: 2rem;
}



@media (max-width: 370px) {

  ::before, ::after {
    box-sizing: border-box;
  }
  
  /* Set up proper footer positioning */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  body > div[style] {
    flex: 1;
  }
  
  /* Header fixes */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 0.5rem;
    width: 100%;
  }
  
  .logo img {
    width: 3rem;
    height: auto;
    margin: 1rem;
    margin-top: 0.9rem;
  }
  
  .nav {
    position: relative;
     display: flex;
    flex-direction: column;
    align-items: flex-start;   /* ← left side */
      margin-top: 0.5rem;
  }

  .nav-list .dropdown-menu {
    display: none !important;
  }
    .nav-list {
    position: absolute;
    top: 100%; /* Positions it right below the hamburger */
    left: auto; /* Remove left: 0 */
    right: 0; /* Align to the right edge of hamburger */
    width: auto; /* Don't take full width */
    min-width: 120px; /* Set a minimum width */
    max-width: 150px; /* Added max-width constraint */
    background: none; /* Add background for visibility */
    border-radius: 4px; /* Optional rounding */
    z-index: 1000;
    display: none;
    text-align: left;
    padding: 0.5rem 0;
      max-height: 300px; /* Prevents it from growing too tall */
  }

  .nav-list:not(.active) {
    display: none;
  }

  .nav-list.active {
    display: flex;
  flex-direction: column;
    font-weight: 200;
    font-size: 0.8rem;   /* ⬅ smaller text */
        text-align: left;
         margin-top: -1.5rem;
  }
  .nav-list li a {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
    padding: 0.35rem 0.75rem; /* Reduced padding */
}
  .nav-list li {
    margin-bottom: 0.1rem; /* Reduced spacing between items */
    margin-top: -1.5rem;
  }
  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    margin: 1.89rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: rgba(0, 75, 241, 1);
    border-radius: 2px;
    transition: 0.3s;
  }
  /* Replace or add these styles to your existing CSS */

/* Hamburger to X transformation */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Optional: Add transform-origin for smoother rotation */
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: rgba(0, 75, 241, 1);
  border-radius: 2px;
  transition: 0.3s;
  transform-origin: center; /* Makes rotation smoother */
}
  /* Hero section with firmer left, lsr right */
/* Vertical stacking option */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: auto;
  padding: 1rem 0;
}

/* Top row: firmer + ppage on left, lsr on right */
.hero-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
  z-index: 10;
  position: relative;
}

/* .hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
} */

.lsr {
   position: absolute;
  text-align: center;
  transform: none;
  /* padding-top: 0.5rem; */
}

  
  .lsr p {
    font-size: 0.7rem; /* Smaller for very small screens */
    font-weight: 400;
    line-height: 1;
    margin: 0.1rem 0;
  }
  
  /* 3. TOP LAYER: firmer and ppage (z-index: 10) */
  .firmer {
    width: 5rem !important; /* Adjusted for very small screens */
    position: absolute;
    left: 0.8rem; /* Adjust for small screens */
    width: 8rem !important; /* Adjusted for very small screens */
    top: -6vh !important;
    z-index: 10; /* Top layer - above everything */
    margin-left: 0 !important;
  /* margin-bottom: 0.5rem; */
    flex-direction: column;
  align-items: center;
  position: relative;
  height: auto;
  }
  
  .ppage {
    font-weight: 300;
    line-height: 1.2;
    font-size: 0.6rem !important; /* Smaller */
    position: absolute;
    left: 0.55;
    top: calc(-9vh + 25px); /* Adjust positioning */
    text-align: left;
    color: rgba(0, 75, 241, 1);
    z-index: 10; /* Top layer - above everything */
    width: 10rem !important;
    margin: 0 !important;
      flex-direction: column;
  align-items: center;
  position: relative;
  height: auto;
  }
  
  
  .label{
    font-size: 0.7rem;
    font-weight: 500;
  }
  .mailita {
    color: #004bf1;
    text-decoration: none;
  }
  
  /* Position logo2 (eagle) centered */
  .logo2 {
    width: 45px;
    height: 45px;
    opacity: 0.8;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, +90%);
    z-index: 3;
    margin-top: 3.3rem;
    /* margin-bottom: 1rem; */
  }
  
  /* Image slider - full width behind the text */
  .cardi-container {
    position: absolute;
    top: 98%;
    left: 50%;
    width: 80%; /* Slightly larger for very small screens */
    height: 180px; /* Adjusted for small screens */
    transform: translate(-50%, -50%);
    z-index: 1; /* Background layer */
  }
  
  
  .cardi {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .cardi-img-top {
    width: 100%;
    height: 100%;
      object-fit: cover; /* Changed to cover for better large screen display */
    object-position: top;
    display: block;
    margin-top: 3.5rem;
  }
  
  /* 2. MIDDLE LAYER: b1 and lsr (z-index: 5) */
  .b1 {
    display: block !important; /* Show b1 */
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* Above cardi */
    width: 40%; /* Adjust width */
    text-align: center;
    padding-top: 0.5rem;
    border-radius: 8px;
    margin-left: 0.5rem;
  }
  
  /* Belt section */
  .belt {
    /* padding: 2rem 0; */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    flex: 1;
       margin-top: -0.35rem;
  }
  
  .belt-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
       margin-top: 1rem;
  }
  
  .b2, .b3 {
    width: 100%;
    max-width: 350px;
    margin: 1rem auto !important;
    text-align: center;
    display: block !important;
  }
  
  /* .b2 {
    margin-top: 1rem !important;
  }
  

  } */
    .b3 {
    margin-top: -2rem !important;
    }
  .z, .i, .beltwrite {
    font-size: 0.62rem;
    /* padding: 0.175rem 0.225rem; */
    text-align: center;
    margin: 0.2rem 0;
  }
  
  /* UPPER2 AS FOOTER - Fixed to bottom */
  .upper2 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    text-align: center;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    margin: 0 !important;
  }
  
  .upper2 .company-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .upper2 h6 {
    font-size: 0.8rem;
    color: rgba(0, 75, 241, 1);
    margin-bottom: 0.3rem;
  }
  
  .links-container {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
  }
  
  .policy-link {
    font-size: 0.6rem;
    margin: 1px 0;
    display: block;
    color: rgba(0, 75, 241, 1);
    text-decoration: none;
  }
  
  .policy-link:hover {
    text-decoration: underline;
  }
  
  /* Add bottom padding to body to prevent content from hiding behind fixed footer */
  body {
    padding-bottom: 85px; /* Adjust based on your footer height */
  }
}
 
/* ################################################################################################ */
  @media  (min-width: 371px) and (max-width: 480px) {
  ::before, ::after {
    box-sizing: border-box;
  }
  
  /* Set up proper footer positioning */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  body > div[style] {
    flex: 1;
  }
  
  /* Header fixes */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 0.5rem;
    width: 100%;
  }
  
  .logo img {
    width: 3rem;
    height: auto;
    margin: 0.3rem;
    margin-top: 1.3rem;
  }
  
  .nav {
    position: relative;
     display: flex;
    flex-direction: column;
    align-items: flex-start;   /* ← left side */
      margin-top: 1rem;
  }

  .nav-list .dropdown-menu {
    display: none !important;
  }
    .nav-list {
    position: absolute;
    top: 100%; /* Positions it right below the hamburger */
    left: auto; /* Remove left: 0 */
    right: 0; /* Align to the right edge of hamburger */
    width: auto; /* Don't take full width */
    min-width: 120px; /* Set a minimum width */
    max-width: 150px; /* Added max-width constraint */
    background: none; /* Add background for visibility */
    border-radius: 4px; /* Optional rounding */
    z-index: 1000;
    display: none;
    text-align: left;
    padding: 0.5rem 0;
      max-height: 300px; /* Prevents it from growing too tall */
  }
  .nav-list:not(.active) {
    display: none;
  }

  .nav-list.active {
    display: flex;
  flex-direction: column;
    font-weight: 200;
    font-size: 0.8rem;   /* ⬅ smaller text */
        text-align: left;
               margin-top: -1.5rem;
  }
  .nav-list li a {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
    padding: 0.35rem 0.75rem; /* Reduced padding */
}
  .nav-list li {
    margin-bottom: 0.1rem; /* Reduced spacing between items */
    margin-top: -1.5rem;
  }
  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    margin: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: rgba(0, 75, 241, 1);
    border-radius: 2px;
    transition: 0.3s;
  }
  /* Replace or add these styles to your existing CSS */

/* Hamburger to X transformation */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Optional: Add transform-origin for smoother rotation */
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: rgba(0, 75, 241, 1);
  border-radius: 2px;
  transition: 0.3s;
  transform-origin: center; /* Makes rotation smoother */
}
  /* Hero section with firmer left, lsr right */
  .hero {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 2rem;
  }
  
  /* .hero-b{
    /* padding-right: 2.5rem; */
    /* padding-left: 2.5rem; */
  /* }  */
/* TEST: Change to apply to ALL screen sizes */
.firmer {
  width: 9.5rem !important;
  max-width: 100%;
  height: auto;
  position: absolute;
  left: 1.2rem;
  top: 0.5%;
  transform: translateY(-45%);
  z-index: 10;
  margin-left: 0 !important;
}
  /* Position ppage below firmer */
  .ppage {
    font-weight: 300;
    line-height: 1.2;
    font-size: 0.65rem !important;
    position: absolute;
    left: 0.61rem;
    top: calc(1% + 30px);
     /* transform: translateY(-10%); */
    text-align: left;
     color: rgba(0, 75, 241, 1);
    z-index: 10;
      width: 10rem !important;
    margin: 0 !important;
  }
  
  /* Position lsr on RIGHT side */
  .lsr {
    position: absolute;
    right: 1rem;
    top: 10%;
    transform: translateY(-95%);
    text-align: right;
    z-index: 10;
     color: #004bf1;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
  }
  
  .lsr p {
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 0.8;
    /* margin: 0.2rem 0; */
    text-align: left;
     color: #004bf1;
  }
  
  .label{
    font-size: 0.7rem;
    font-weight: 500;
  }
  .mailita {
    color: #004bf1;
    text-decoration: none;
  }
  
  /* Position logo2 (eagle) centered */
  /* .logo2 {
    width: 65px;
    height: 65px;
    opacity: 0.8;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.3);
  } */
  
  /* Image slider - full width behind the text */
  .cardi-container {
    position: absolute;
    top: 3rem;
    width: 100%;
    height: 200px;
    margin: 0;
    z-index: 1;
      left: 50%;
    top: 48%;
    transform: translate(-52%, +35%);

  }
  
  .cardi {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .cardi-img-top {
    width: 100%;
    height: 100%;
      object-fit: cover; /* Changed to cover for better large screen display */
    object-position: top;
    display: block;
    padding-right: 1rem;
  }
  
  /* Hide b1 container */
  .b1 {
   display: none;
  }
  
  /* Belt section */
  .belt {
    /* padding: 2rem 0; */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -1rem;
    flex: 1;
  }
  
  .belt-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
      padding-bottom: 1.5rem;
  }
  
  .b2, .b3 {
    width: 100%;
    max-width: 300px;
    /* margin: 1rem auto !important; */
    text-align: center;
    display: block !important;
  }
  .b2 {
    margin-top: -1rem !important;
  }
  
  /* 
  .b3 {
    margin-top: 1rem !important;
  } */
  
  .z, .i, .beltwrite {
    font-size: 0.8rem;
    text-align: center;
    margin: -0.5rem 0;
  }
  
  /* UPPER2 AS FOOTER - Fixed to bottom */
  .upper2 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: none;
    text-align: center;
    z-index: 1000;
    margin: 0 !important;
  }
  
  .upper2 .company-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .upper2 h6 {
    font-size: 0.8rem;
    color: rgba(0, 75, 241, 1);
    margin-bottom: 0.3rem;
  }
  
  .links-container {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
    padding-bottom: 0.5rem;
  }
  /* .company-section{
    margin-top: 2rem;
  } */
  .policy-link {
    font-size: 0.6rem;
    margin: 1px 0;
    display: block;
    color: rgba(0, 75, 241, 1);
    text-decoration: none;
    /* padding-bottom: 0.5rem; */
  }
  
  .policy-link:hover {
    text-decoration: underline;
  }
  
  /* Add bottom padding to body to prevent content from hiding behind fixed footer */
  body {
    padding-bottom: 85px; /* Adjust based on your footer height */
  }
}

@media (min-width: 481px) and (max-width: 754px) {
  ::before, ::after {
    box-sizing: border-box;
  }
  
  /* Set up proper footer positioning */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  body > div[style] {
    flex: 1;
  }
  
  /* Header fixes */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 0.5rem;
    width: 100%;
  }
  
  .logo img {
    width: 3rem;
    height: auto;
    margin: 1rem;
  }
  
  .nav {
    position: relative;
     display: flex;
    flex-direction: column;
    align-items: flex-start;   /* ← left side */
  }

  .nav-list .dropdown-menu {
    display: none !important;
  }
    .nav-list {
    position: absolute;
    top: 100%; /* Positions it right below the hamburger */
    left: auto; /* Remove left: 0 */
    right: 0; /* Align to the right edge of hamburger */
    width: auto; /* Don't take full width */
    min-width: 120px; /* Set a minimum width */
    max-width: 150px; /* Added max-width constraint */
    background: none; /* Add background for visibility */
    border-radius: 4px; /* Optional rounding */
    z-index: 1000;
    display: none;
    text-align: left;
    padding: 0.5rem 0;
      max-height: 300px; /* Prevents it from growing too tall */
  }

  .nav-list:not(.active) {
    display: none;
  }

  .nav-list.active {
    display: flex;
  flex-direction: column;
    font-weight: 200;
    font-size: 0.8rem;   /* ⬅ smaller text */
        text-align: left;
  }
  .nav-list li a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
    padding: 0.35rem 0.75rem; /* Reduced padding */
}
  .nav-list li {
    margin-bottom: 0.1rem; /* Reduced spacing between items */
    margin-top: -1.2rem;
  }
  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    margin: 1.89rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: rgba(0, 75, 241, 1);
    border-radius: 2px;
    transition: 0.3s;
  }
  /* Replace or add these styles to your existing CSS */

/* Hamburger to X transformation */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Optional: Add transform-origin for smoother rotation */
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: rgba(0, 75, 241, 1);
  border-radius: 2px;
  transition: 0.3s;
  transform-origin: center; /* Makes rotation smoother */
}
  /* Hero section with firmer left, lsr right */
  .hero {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 2rem;
  }
  
  /* Position firmer on LEFT side */
  .firmer {
    width: 10rem;
    max-width: 100%;
    height: auto;
    position: absolute;
    left: 1.87rem;
    top: 5%;
    transform: translateY(-27%);
    z-index: 10;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Position ppage below firmer */
  .ppage {
    font-weight: 400;
    line-height: 1.2;
    font-size: 0.65rem;
    position: absolute;
    left: 1.4rem;
    top: calc(8.5% + 34px);
     /* transform: translateY(-10%); */
    text-align: left;
     color: rgba(0, 75, 241, 1);
    z-index: 10;
    width: 150px;
    margin: 0 !important;
  }
  
  /* Position lsr on RIGHT side */
  .lsr {
    position: absolute;
    right: 2rem;
    top: 25%;
    transform: translateY(-100%);
    text-align: right;
    z-index: 10;
     color: #004bf1;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    /* margin-top: -1rem; */
  }
  
  .lsr p {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    margin: 0.2rem 0;
    text-align: right;
     color: #004bf1;
  }
  
  .mailita {
    color: #004bf1;
    text-decoration: none;
  }
  
  /* Position logo2 (eagle) centered */
  .logo2 {
    width: 65px;
    height: 65px;
    opacity: 0.8;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -95%);
    z-index: 10;
    /* background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.3); */
  }
  
  /* Image slider - full width behind the text */
  .cardi-container {
    position: absolute;
    top: 1rem;
    width: 80%;
    height: 200px;
    margin: 0;
    z-index: 1;
      left: 50%;
    top: 50%;
    transform: translate(-50%, +5%);
  }
  
  .cardi {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .cardi-img-top {
    width: 100%;
    height: 100%;
      object-fit: cover; /* Changed to cover for better large screen display */
    object-position: top;
    display: block;
  }
  
  /* Hide b1 container */
  .b1 {
    margin-bottom: 3rem;
  }
  
  /* Belt section */
  .belt {
    padding: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex: 1;
  }
  
  .belt-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 1.5rem;
  }
  
  .b2, .b3 {
    width: 100%;
    max-width: 300px;
    margin: 1rem auto !important;
    text-align: center;
    display: block !important;
  }
  
  .b2 {
    margin-top: 1rem !important;
  }
  
  .b3 {
    margin-top: -2rem !important;
  }
  
  .z, .i, .beltwrite {
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
    text-align: center;
    margin: 0.5rem 0;
  }
  .beltwrite{
    margin-top: -0.5rem;
  }
 
  .upper2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: none;
    text-align: center;
    padding: 0.75rem 1rem;
    z-index: 1000;
    margin: 0 !important;
  }
  
  .upper2 .company-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .upper2 h6 {
    font-size: 0.6rem;
    font-weight: 200;
    color: rgba(0, 75, 241, 1);
    margin-bottom: 0.3rem;
    padding-top: 1.5rem;
  }
  
  .links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .policy-link {
    font-size: 0.6rem;
    margin: 1px 0;
    display: block;
    color: rgba(0, 75, 241, 1);
    text-decoration: none;
  }
  
  .policy-link:hover {
    text-decoration: underline;
  }
  
  /* Add bottom padding to body to prevent content from hiding behind fixed footer */
  body {
    padding-bottom: 85px; /* Adjust based on your footer height */
  }
}

 /* ###############################################################################  */
@media  (min-width: 755px) and (max-width: 1025px) {

  ::before, 
  ::after { box-sizing: border-box; 
  }
html {
  font-size: clamp(14px, 1vw, 18px);
}

body {
  font-family: 'Inter', sans-serif;
  /* line-height: 1.4;
  color: #111; */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
   .header-container{
    margin-top: 0.5rem;
    margin-right: 0.8rem;
    margin-left: 1.35rem;
   }
  .logo img {
    width: 65px; 
    height: 65px; 
    display: block; 
}

.nav-list {
  display: flex;
  gap: 0.35rem; /* controls space BETWEEN links */
}
.nav-item a {
    display: inline-block; 
    text-decoration: none;
    color: rgba(0, 75, 241, 1); 
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0%;
    text-align: center; 
    padding: 0.2em 0.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
} 
  /* Target dropdown links specifically */
  .nav-item.project-link > .dropdown-menu a {
    display: block;
    font-family: 'Inter', sans-serif;
    text-align: left; /* Changed from right to left */
    padding-top: 3px; /* Increased padding */
    font-size: 0.85rem;
    line-height: 1.2; /* Increased from 5px to proper line height */
    color: rgba(0, 75, 241, 1);
    transition: background-color 0.2s ease;
    width: 100%;
    white-space: normal; /* Allow text to wrap to next line */
    overflow: hidden; /* Ensure text is not hidden */
  }

  .cardi-container {
  position: relative;   /* no absolute positioning */
  display: flex;
  justify-content: right;
  align-items:center;
  max-width: 900px;    /* remove previous limits */
  width: 57vw;      /* take right half of screen */
  max-width: none;   /* remove previous width limits */
  margin-right: 1.69rem;
  padding-right: 0;
    margin-top: 18.85rem; 
  }

  .cardi {
        height: 70vh; /* Takes 70% of viewport height */
        max-height: 500px; /* Optional: set a maximum */
        min-height: 300px; /* Optional: set a minimum */
        width: 100%;
        aspect-ratio: unset;
    
  }
  .cardi-container .cardi-img-top {
  width: 100%;
  height: 100%;
    object-fit: cover; /* Changed to cover for better large screen display */
    object-position: top;
  display: block;
  }

  /* Adjust hero to balance layout */
.hero {
    position: relative;
    display: flex;               
    flex-direction: row;           
    align-items: flex-start;           
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 0.1rem;  
    padding-top: 2rem;
    z-index: 1; /* Controls stacking if overlapping occurs */   
}

      .hero-b {
  flex: 0 0 auto;   /* logo keeps its natural size */
  max-width: 850px;
  max-width: 45vw;
  margin-left: 0.3rem;
  }

.hero .hero-b img.firmer {
  width: 100%;
  width: clamp(260px, 35vw, 500px);
  height: auto;
  margin-top: 0.7rem; 
}
     .logo2 {
    max-width: 95px;
    height: auto;
    opacity: 0.55;
    border-radius: 50%;
    margin-left: 0.55rem;
    padding-top: 1rem;
  }
  .ppage {
    font-size: 1.1rem;
    width: clamp(260px, 35vw, 400px);
  }

  .belt{
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 5;
    margin-top: 10vh; 
  }

.belt-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;  /* three equal columns */
  column-gap: 1rem;                    /* spacing between columns */
  row-gap: 1rem;                       /* spacing if it wraps */
  align-items: baseline;                   /* top-align content in each column */
  width: 100%;
}
.upper2,
.b2,
.b3 {
  width: 100%;
}
.b2, .b3{
   margin-top: clamp(3rem, 6vh, 6rem);
}
.b2 {
  margin-left: clamp(-2.2rem, -3.1vw, -0.75rem);
}

.b3{
  margin-right: clamp(0.4rem, 1.8vw, 2rem);
}

.b2 h4,
.b3 h4 {
font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  margin-bottom: 0.3em;
}
.b2, .b3{
  margin-top: 6rem;
    text-align: center;
}
  .z, .i {
  background-color: rgba(0, 75, 241, 1);
  color: white;
  font-size: 0.85rem;
  }
.b2 p, .b3 p {
  font-size: clamp(0.80rem, 1.5vw, 1.2rem);
  line-height: 1.2;
}

  .beltwrite{
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
     font-size: clamp(0.7rem, 1vw, 0.9rem);
  line-height: 1.1rem;
  }

.upper2 {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.1rem;
    flex: 1;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: 0.8rem;
  padding-right: 0.7rem;
}

#nav{
    font-family: 'Inter', sans-serif;
    font-weight: 350;
    color: rgba(0, 75, 241, 1); 
    font-size: 0.9rem;
} 

.links-container {
  display: flex;
  flex-direction: column;
 margin-left: 0.79rem;
}
.policy-link{
        font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
      font-weight: 400;
  line-height: 0.7rem;
  padding-bottom: 0.5rem;
}
.links-container h6 {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(0, 75, 241, 1);

}

.lower {
    display: flex;
    justify-content: space-between; /* Distribute .lsr and .lsr1 evenly */
    padding: 15px 5% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }


    .lsr, .lsr1, .lsr2 {
        flex: 1;
        min-width: 200px;
    }

#sp{
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(0, 75, 241, 1); 
    line-height: 130%;
}

.lsr {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.6vw, 1.2rem);
    Line-height: 80%;
    flex: 1;
    top: clamp(-4px, -0.9vw, -12px);
  margin-left: -0.7rem;
  padding-right: 1.4rem;
}
.label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
       color: rgba(0, 75, 241, 1);
  }

  .lsr h6, .lsr p, .lsr1 p {
   font-size: clamp(0.85rem, 1.1vw, 0.7rem);
     line-height: 1.2;
    margin: 1px 0;
  }
}

/* ####################################################################################################  */
@media  (min-width: 1026px) and (max-width: 1200px) {
  
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1vw, 18px);
}

body {
  font-family: 'Inter', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
   .header-container{
    margin-top: 0.5rem;
    margin-right: 1.55rem;
    margin-left: 1.35rem;
   }
  .logo img {
    width: 75px; 
    height: 75px; 
    display: block; 
}
.nav-item a {
  margin: 0;
}
.nav-list {
  display: flex;
  gap: 0.35rem; /* controls space BETWEEN links */
}
.nav-item a {
    display: inline-block; 
    text-decoration: none;
    color: rgba(0, 75, 241, 1); 
    font-family: 'Inter', sans-serif;
    font-size: 1.56rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0%;
    text-align: center; 
    padding: 0.2em 0.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
} 
  /* Target dropdown links specifically */
  .nav-item.project-link > .dropdown-menu a {
    display: block;
    font-family: 'Inter', sans-serif;
    text-align: left; /* Changed from right to left */
    padding-top: 3px; /* Increased padding */
    font-size: 0.85rem;
    line-height: 1.2; /* Increased from 5px to proper line height */
    color: rgba(0, 75, 241, 1);
    transition: background-color 0.2s ease;
    width: 100%;
    white-space: normal; /* Allow text to wrap to next line */
    overflow: hidden; /* Ensure text is not hidden */
  }

  .cardi-container {
  position: relative;   /* no absolute positioning */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 65vw;      /* take right half of screen */
  max-width: none;   /* remove previous width limits */
  margin-right: 2.5rem;
  padding-right: 0;
    margin-top: 16.85rem; 
      padding-top: 2.2rem;
  }

  .cardi {
        height: 70vh; /* Takes 70% of viewport height */
        max-height: 500px; /* Optional: set a maximum */
        min-height: 300px; /* Optional: set a minimum */
        width: 100%;
        aspect-ratio: unset;
    
  }
  .cardi-container .cardi-img-top {
  width: 100%;
  height: 100%;
      object-fit: cover; /* Changed to cover for better large screen display */
    object-position: top;
  display: block;
  }

  /* Adjust hero to balance layout */
.hero {
    position: relative;
    display: flex;               
    flex-direction: row;           
    align-items: flex-start;           
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 0.1rem;  
    z-index: 1; /* Controls stacking if overlapping occurs */   
}

      .hero-b {
  flex: 1 1 auto;   /* logo keeps its natural size */
  max-width: 45vw;
  margin-left: 0.3rem;
  }

.hero .hero-b img.firmer {
  width: clamp(180px, 25vw, 350px);
  height: auto;
  margin-top: 0.7rem;
}
     .logo2 {
    max-width: 98px;
    height: auto;
    opacity: 0.55;
    border-radius: 50%;
    margin-left: 0.55rem;
  }
  .ppage {
    font-weight: 400;
    font-size: clamp(0.9rem, 1.6vw, 1.6rem);
  margin: 0 0 1.2rem 0; /* space under text */
  margin-left: 0.2rem;
  }

  .belt{
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 5;
    margin-top: 13.5vh; /* always starts 30% down the viewport height */
  }

.belt-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;  /* three equal columns */
  column-gap: 0.8rem;                    /* spacing between columns */                      
  align-items: baseline;                   /* top-align content in each column */
  width: 100%;
}
.upper2,
.b2,
.b3 {
  width: 100%;
}
.b2, .b3{
   margin-top: clamp(3rem, 6vh, 6rem);
}
.b2 {
  margin-left: clamp(-2.2rem, -3.1vw, -0.75rem);
}

.b3{
  margin-right: clamp(0.4rem, 1.8vw, 2rem);
}

.company-section {
  font-family: 'Inter', sans-serif;
  max-width: 800px;
}

.company-section h1 {
  color:rgba(0, 75, 241, 1); 
  font-size: 5px;
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 24px;
  Line-height: 130%     
}

  .links-container {
  display: flex;
  flex-direction: column;

}

.policy-link {
  color: rgba(0, 75, 241, 1); 
  text-decoration: none;
  font-weight: 200;
  font-size: 0.9rem;
  padding: 5px 1;
  Line-height: 120% 
}

.policy-link:hover {
  text-decoration: underline;
}
.b2 h4,
.b3 h4 {
  font-weight: 500;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
    /* padding: 0.2rem 1.5rem; */
   /* max-width: 1200px;
  margin-inline: auto; */
}
.b2, .b3{
   margin-top: clamp(3rem, 6vh, 6rem);
}
/* .b2 {
  margin-left: clamp(1rem, 1.5vw, 0.75rem);
} */

.b3{
   margin-right: clamp(0.3rem, 1vw, 0.9rem);
}

  .z, .i {
  background-color: rgba(0, 75, 241, 1);
  width: fit-content;
  max-width: 100%;
  color: white;
  font-size: 0.85rem;
  padding: 0.15em 0.4em;
  }
  .beltwrite{
  font-family: 'Inter', sans-serif;
  color: rgba(0, 75, 241, 1); 
  font-weight: 350;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
  line-height: 1.5rem;
  }

.upper2 {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.1rem;
    flex: 1;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 1.38rem;
  margin-left: 1.1rem;
}

#nav{
  font-family: 'Inter', sans-serif;
  color: rgba(0, 75, 241, 1); 
  font-weight: 500;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
} 
.policy-link{
  font-family: 'Inter', sans-serif;
  line-height: 1.5rem;
  font-weight: 350;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
   color: rgba(0, 75, 241, 1);
     text-decoration: none;   /* removes underline */
}
.links-container {
  display: flex;
  flex-direction: column;
  margin-left: 0.79rem;
}
.links-container h6 {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(0, 75, 241, 1);
}

.lower {
    display: flex;
    justify-content: space-between; /* Distribute .lsr and .lsr1 evenly */
    padding: 15px 5% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }


    .lsr, .lsr1, .lsr2 {
        flex: 1;
        min-width: 100px;
    }

#sp{
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(0, 75, 241, 1); 
    line-height: 130%;
}

.lsr {

    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 350;
    font-size: clamp(0.88rem, 1.5vw, 1.5rem);
    flex: 1;
    top: clamp(-4px, -0.9vw, -12px);
    margin-left: 0.4rem;
    padding-left: 0.4rem;
}
.label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: rgba(0, 75, 241, 1);
  }

  .lsr h6, .lsr p, .lsr1 p {
   font-family: 'Inter', sans-serif; 
   font-size: clamp(0.88rem, 1.5vw, 1.5rem);
   line-height: 1.1;
   margin: 1px 0;
  }
 
}
 
/* LAPTOP/DESKTOP LARGE: 1441px and above############################################################################################# */
@media (min-width: 1201px) and (max-width: 1442px) {
   /* html, body {
  height: 100%;
  overflow: hidden; /* 🚫 prevents scrolling  */
 /* }  */ 

 *, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1vw, 18px);
}

body {
  font-family: 'Inter', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
   .header-container{
    margin-top: 0.5rem;
    margin-right: 1.54rem;
    margin-left: 1.8rem;
   }
   
.logo img {
  height: 6.8rem;
  display: block;
  margin-top: 0.5rem;
  margin-left: 0.8rem;
}
.nav-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
}
  /* Enhanced Navigation */
  .nav-item a {
    display: inline-block;
    text-decoration: none;
    color: rgba(0, 75, 241, 1);
    font-family: 'Inter', sans-serif;
    font-size: 22px; /* Increased for large screens */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em; /* Slightly increased for readability */
    text-align: center;
    padding: 5px 5px; /* Increased padding */
    margin: 0 5px;
    transition: all 0.3s ease;
  }

  .nav-item a:hover {
    background-color:  rgba(0, 75, 241, 0.9);
    color: whitesmoke;
    transform: translateY(-2px);
  }

.nav-list {
  display: flex;
  gap: 0.5rem; /* controls space BETWEEN links */
}
  .cardi-container {
  position: relative;   /* no absolute positioning */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 65vw;      /* take right half of screen */
  max-width: none;   /* remove previous width limits */
  margin-right: 2.5rem;
  padding-right: 0.9rem;
    margin-top: 16.85rem; 
      padding-top: 2.2rem;
  }

  .cardi {
        height: 70vh; /* Takes 70% of viewport height */
        max-height: 500px; /* Optional: set a maximum */
        min-height: 300px; /* Optional: set a minimum */
        width: 100%;
        aspect-ratio: unset;
        z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 75, 241, 0.15); /* Enhanced shadow */
  }
  .cardi-container .cardi-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  }

  /* Adjust hero to balance layout */
.hero {
    position: relative;
    display: flex;               
    flex-direction: row;           
    align-items: flex-start;           
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 0.1rem;  
    z-index: 1; /* Controls stacking if overlapping occurs */   
}

      .hero-b {
  flex: 1 1 auto; 
  max-width: 45vw;
  margin-left: 0.3rem;
  }

.hero .hero-b img.firmer {
  width: clamp(175px, 20vw, 300px);
  height: auto;
  margin-top: 0.7rem;
   margin-left: 1.48rem;
}
     .logo2 {
    max-width: 98px;
    height: auto;
    opacity: 0.55;
    border-radius: 50%;
    margin-left: 1.35rem;
  }
  .ppage {
    font-weight: 400;
    font-size: clamp(0.65rem, 1.3vw, 1.3rem);
    margin: 0 0 1.2rem 0; /* space under text */
    margin-left: 0.9rem;
  }

  .belt{
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 5;
    margin-top: 13.5vh; /* always starts 30% down the viewport height */
  }

.belt-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;  /* three equal columns */
                      
  align-items: baseline;                   /* top-align content in each column */
  width: 100%;
}
.upper2,
.b2,
.b3 {
  width: 100%;
}

.b2 h4,
.b3 h4 {
  font-weight: 500;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
    /* padding: 0.2rem 1.5rem; */
   /* max-width: 1200px;
  margin-inline: auto; */
}
.b2, .b3{
   margin-top: clamp(3rem, 6vh, 6rem);
}
.b2 {
  margin-left: clamp(-2.2rem, -3.1vw, -0.75rem);
}

.b3{
  margin-right: clamp(0.4rem, 1.8vw, 2rem);
}

  .z, .i {
  background-color: rgba(0, 75, 241, 1);
  width: fit-content;
  max-width: 100%;
  color: white;
  font-size: 0.85rem;
  padding: 0.15em 0.4em;
  }
  .beltwrite{
  font-family: 'Inter', sans-serif;
  color: rgba(0, 75, 241, 1); 
  font-weight: 350;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
  line-height: 2rem;
  }

.upper2 {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.1rem;
    flex: 1;
    font-size: clamp(0.7rem, 1.2vw, 0.95rem);
    display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 1.38rem;
  margin-left: 1rem;
}

#nav{
  font-family: 'Inter', sans-serif;
  color: rgba(0, 75, 241, 1); 
  font-weight: 500;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
} 

.links-container {
  display: flex;
  flex-direction: column;
  color: rgba(0, 75, 241, 1);
  margin-left: 1.2rem;
}
.policy-link{
  font-family: 'Inter', sans-serif;
  line-height: 2rem;
  font-weight: 350;
  font-size: clamp(0.88rem, 1.5vw, 1.5rem);
  text-decoration: none;   /* removes underline */
}
.policy-link:hover {
  text-decoration: underline; /* only on hover */
}
.links-container h6 {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(0, 75, 241, 1);

}
.lower {
    display: flex;
    justify-content: space-between; /* Distribute .lsr and .lsr1 evenly */
    padding: 15px 5% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
    .lsr, .lsr1, .lsr2 {
        flex: 1;
        min-width: 100px;
    }

#sp{
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(0, 75, 241, 1); 
    line-height: 130%;
}

.lsr {

    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 350;
    font-size: clamp(0.88rem, 1.5vw, 1.5rem);
    flex: 1;
    top: clamp(-4px, -0.9vw, -12px);
    padding-right: 0.5rem;
    margin-left: -0.5rem;
}
.label {
    font-family: 'Inter', sans-serif;
    font-weight: 550;
    font-size: 18px;
    color: rgba(0, 75, 241, 1);
  }

  .lsr h6, .lsr p, .lsr1 p {
   font-family: 'Inter', sans-serif; 
   font-size: clamp(0.88rem, 1.5vw, 1.5rem);
   line-height: 1.1;
   margin: 1px 0;
  }
 
}
/* ##################################################################### */
@media (min-width: 1443px) and (max-width: 1620px) {

  html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}
  body {
    max-width: 1920px;
    margin: 0 auto;
  }

  .logo img {
  height: 6.5rem;
  display: block;
  margin-top: 1.5rem;
  margin-left: 4rem;
}
.nav-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
}

  .nav-item a {
    display: inline-block;
    text-decoration: none;
    color: rgba(0, 75, 241, 1);
    font-family: 'Inter', sans-serif;
    font-size: 22px; 
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 5px 5px; /* Increased padding */
    margin-right: 3.5rem;
    transition: all 0.3s ease;
  }

  .nav-item a:hover {
    background-color:  rgba(0, 75, 241, 0.9);
    color: whitesmoke;
    transform: translateY(-2px);
  }
    .nav-item.project-link > .dropdown-menu a {
    display: block;
    font-family: 'Inter', sans-serif;
    text-align: left; /* Changed from right to left */
    padding: 4px 3px; /* Increased padding */
    font-size: 1.1rem; /* Increased from 0.7rem */
    line-height: 1.2; /* Increased from 5px to proper line height */
    color: rgba(0, 75, 241, 1);
    transition: background-color 0.2s ease;
    width: 100%;
    white-space: normal; /* Allow text to wrap to next line */
    overflow: hidden; /* Ensure text is not hidden */
  }

 /* Adjust hero to balance layout */
.hero {
    position: relative;
    display: flex;               
    flex-direction: row;           
    align-items: flex-start;           
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 0.1rem;  
    z-index: 1; /* Controls stacking if overlapping occurs */ 
    margin-top: 1.8rem;  
}

      .hero-b {
  flex: 1 1 auto; 
  max-width: 55vw;
  margin-left: 0.3rem;
  }

.hero .hero-b img.firmer {
width: clamp(185px, 25vw, 400px);
  height: auto;
   margin-left: 2.95rem;
}
     .logo2 {
    max-width: 10rem;
    height: auto;
    opacity: 0.55;
    border-radius: 50%;
    margin-left: 2.85rem;
  }
  .ppage {
    font-weight: 400;
    font-size: clamp(0.80rem, 1.5vw, 1.75rem);
     margin-left: 2.5rem;
    margin-top: 1rem;
  }

  /* Card/Slider Container - Enhanced */
  .cardi-container {
    position: relative;
    /* width: 100%; */
    max-width: 900px; /* Increased for large screens */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    flex: 1;
    min-height: 600px; /* Minimum height for consistency */
  }

  .cardi {
    position: absolute;
    top: 60%;
    left: 32%;
    transform: translate(-60%, -65%);
   width: clamp(400px, 60vw, 900px);
    height: auto;
    max-width: 2750px;
    aspect-ratio: 13/8;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 75, 241, 0.15); /* Enhanced shadow */
       margin-right: 3rem;
  }

  /* ACTIVE SLIDE */
  .cardi.active {
    opacity: 1;
    z-index: 2;
    transform: translate(-60%, -65%) scale(1);
    box-shadow: 0 25px 80px rgba(0, 75, 241, 0.25); /* Enhanced shadow for active */
  }

  /* IMAGE */
  .cardi-img-top {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover; /* Changed to cover for better large screen display */
    object-position: top;
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
  }

  p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  /* Grid Layout for Large Screens */
  .grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* gap: 3rem;
    margin: 4rem 0; */
  }

  html {
    scroll-behavior: smooth;
  }

  /* Image Optimization */
  img {
    max-width: 100%;
    height: auto;
  }

.upper2 {
  position: relative;
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1;
  color: rgba(0, 75, 241, 1);
  margin-bottom: 1rem;
  margin-left: 1rem;
}
#nav{
    font-family: var(--font-inter);
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 75, 241, 1);
}
.label{
  font-weight: 450;
  font-size: 1rem;
}
.links-container * {
  display: grid;
  grid-template-columns: auto;
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
}
.policy-link{
        font-family: var(--font-inter);
    font-size: 1rem;
      font-weight: 450;
  line-height: 1.2rem;
  padding-bottom: 0.5rem;
  color: rgba(0, 75, 241, 1);
}
.policy-link:hover {
  text-decoration: underline;
}
/* .sec1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--section-gap);
  align-items: start;
} */
.company-section {
  font-family: var(--font-inter);
  max-width: 100%;
  width: 100%;
    /* font-size: 1.3rem; */
    line-height: 1.7;
      color: rgba(0, 75, 241, 1);
      margin-left: 3rem;
      padding-bottom: 2rem;
}

.belt-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;   /* 👈 IMPORTANT */
  margin-top: 2rem;
}

.b2, .b3 {
  flex: 0 1 260px;
  max-width: 395px;
  margin-right:  clamp(2rem, 3.5vw, 5rem);
}
.b2{
  --shift: clamp(5rem, 6.4vw, 10rem);

  transform: translateX(calc(-1 * var(--shift)));
  margin-left: calc(var(--shift) + 1rem);
}


  .z, .i {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    background-color: rgba(0, 75, 241, 1);
    color: white;
    padding: 0.2rem;
  }
  .beltwrite{
    font-size: 1rem;
  }
/* Individual grid items shifted more */
.leg-eaglet-wrapper,
.lsr,
.company-section {
  position: relative;
}

#sp{
    font-family: var(--font-inter);
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 75, 241, 1); 
    line-height: 130%;
}
.lsr {
          font-family: var(--font-inter);
  padding-top: clamp(0.2rem, 1vw, 0.8rem);
  max-width: 100%;
  width: 100%;
  margin-left: 1rem;
}
.lsr p{
  font-size: 1rem;
    font-weight: 450;
    line-height: 1rem;
      color: rgba(0, 75, 241, 1); 
 }

}


/* ##################################################################### */
@media (min-width: 1621px) {

  html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}
  body {
    max-width: 2920px;
    margin: 0 auto;
  }

  .logo img {
  height: 6.5rem;
  display: block;
  margin-top: 1.5rem;
  margin-left: 4rem;
}
.nav-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
}

  .nav-item a {
    display: inline-block;
    text-decoration: none;
    color: rgba(0, 75, 241, 1);
    font-family: 'Inter', sans-serif;
    font-size: 22px; 
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 5px 5px; /* Increased padding */
    margin-right: 3.5rem;
    transition: all 0.3s ease;
  }

  .nav-item a:hover {
    background-color:  rgba(0, 75, 241, 0.9);
    color: whitesmoke;
    transform: translateY(-2px);
  }
    .nav-item.project-link > .dropdown-menu a {
    display: block;
    font-family: 'Inter', sans-serif;
    text-align: left; /* Changed from right to left */
    padding: 4px 3px; /* Increased padding */
    font-size: 1.1rem; /* Increased from 0.7rem */
    line-height: 1.2; /* Increased from 5px to proper line height */
    color: rgba(0, 75, 241, 1);
    transition: background-color 0.2s ease;
    width: 100%;
    white-space: normal; /* Allow text to wrap to next line */
    overflow: hidden; /* Ensure text is not hidden */
  }

 /* Adjust hero to balance layout */
.hero {
    position: relative;
    display: flex;               
    flex-direction: row;           
    align-items: flex-start;           
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 0.1rem;  
    z-index: 1; /* Controls stacking if overlapping occurs */ 
    margin-top: 2rem;  
}

      .hero-b {
  flex: 1 1 auto; 
  max-width: 55vw;
  margin-left: 0.3rem;
  }

.hero .hero-b img.firmer {
width: clamp(195px, 35vw, 550px);
  height: auto;
   margin-left: 2.95rem;
}
     .logo2 {
    max-width: 10rem;
    height: auto;
    opacity: 0.55;
    border-radius: 50%;
    margin-left: 2.85rem;
  }
  .ppage {
    font-weight: 400;
    font-size: clamp(2rem, 2.5vw, 1.75rem);
     margin-left: 2.5rem;
    margin-top: 1rem;
  }

  /* Card/Slider Container - Enhanced */
  .cardi-container {
    position: relative;
    /* width: 100%; */
    max-width: 950px; /* Increased for large screens */
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
    flex: 1;
    min-height: 600px; /* Minimum height for consistency */
  }

  .cardi {
    position: absolute;
    top: 65%;
    left: 44%;
    transform: translate(-60%, -65%);
    width: clamp(400px, 60vw, 950px);
    height: auto;
    max-width: 1750px;
    aspect-ratio: 13/8;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 75, 241, 0.15); /* Enhanced shadow */
       margin-right: 3rem;
  }

  /* ACTIVE SLIDE */
  .cardi.active {
    opacity: 1;
    z-index: 2;
    transform: translate(-60%, -65%) scale(1);
    box-shadow: 0 25px 80px rgba(0, 75, 241, 0.25); /* Enhanced shadow for active */
  }

  /* IMAGE */
  .cardi-img-top {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover; /* Changed to cover for better large screen display */
    object-position: top;
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
  }

  p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  /* Grid Layout for Large Screens */
  .grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* gap: 3rem;
    margin: 4rem 0; */
  }

  html {
    scroll-behavior: smooth;
  }

  /* Image Optimization */
  img {
    max-width: 100%;
    height: auto;
  }

.upper2 {
  position: relative;
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1;
  color: rgba(0, 75, 241, 1);
  margin-bottom: 1rem;
  margin-left: 1rem;
}
#nav{
    font-family: var(--font-inter);
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 75, 241, 1);
}
.label{
  font-weight: 450;
  font-size: 1rem;
}
.links-container * {
  display: grid;
  grid-template-columns: auto;
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
}
.policy-link{
        font-family: var(--font-inter);
    font-size: 1rem;
      font-weight: 450;
  line-height: 1.2rem;
  padding-bottom: 0.5rem;
  color: rgba(0, 75, 241, 1);
}
.policy-link:hover {
  text-decoration: underline;
}
/* .sec1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--section-gap);
  align-items: start;
} */
.company-section {
  font-family: var(--font-inter);
  max-width: 100%;
  width: 100%;
    /* font-size: 1.3rem; */
    line-height: 1.7;
      color: rgba(0, 75, 241, 1);
      margin-left: 3rem;
      padding-bottom: 2rem;
}

.belt-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;   /* 👈 IMPORTANT */
  margin-top: 2rem;
}

.b2, .b3 {
  flex: 0 1 260px;
  max-width: 395px;
  margin-right:  clamp(1.5rem, 3vw, 5rem);
}
.b2{
  --shift: clamp(7rem, 7.4vw, 10rem);

  transform: translateX(calc(-1 * var(--shift)));
  margin-left: calc(var(--shift) + 1rem);
}


  .z, .i {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    background-color: rgba(0, 75, 241, 1);
    color: white;
    padding: 0.2rem;
  }
  .beltwrite{
    font-size: 1rem;
  }
/* Individual grid items shifted more */
.leg-eaglet-wrapper,
.lsr,
.company-section {
  position: relative;
}

#sp{
    font-family: var(--font-inter);
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 75, 241, 1); 
    line-height: 130%;
}
.lsr {
          font-family: var(--font-inter);
  padding-top: clamp(0.2rem, 1vw, 0.8rem);
  max-width: 100%;
  width: 100%;
  margin-left: 1rem;
}
.lsr p{
  font-size: 1rem;
    font-weight: 450;
    line-height: 1rem;
      color: rgba(0, 75, 241, 1); 
 }

}
.clickable-main-image {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-image-container:hover .clickable-main-image {
    transform: scale(1.03);
}

